Tests for module 'unistr/u32-strlen'.
[gnulib.git] / ChangeLog
1 2010-01-10  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'unistr/u32-strlen'.
4         * modules/unistr/u32-strlen-tests: New file.
5         * tests/unistr/test-u32-strlen.c: New file.
6
7         Tests for module 'unistr/u16-strlen'.
8         * modules/unistr/u16-strlen-tests: New file.
9         * tests/unistr/test-u16-strlen.c: New file.
10
11         Tests for module 'unistr/u8-strlen'.
12         * modules/unistr/u8-strlen-tests: New file.
13         * tests/unistr/test-u8-strlen.c: New file.
14
15         Tests for module 'unistr/u32-prev'.
16         * modules/unistr/u32-prev-tests: New file.
17         * tests/unistr/test-u32-prev.c: New file.
18
19         Tests for module 'unistr/u16-prev'.
20         * modules/unistr/u16-prev-tests: New file.
21         * tests/unistr/test-u16-prev.c: New file.
22
23         Tests for module 'unistr/u8-prev'.
24         * modules/unistr/u8-prev-tests: New file.
25         * tests/unistr/test-u8-prev.c: New file.
26
27         Tests for module 'unistr/u32-next'.
28         * modules/unistr/u32-next-tests: New file.
29         * tests/unistr/test-u32-next.c: New file.
30
31         Tests for module 'unistr/u16-next'.
32         * modules/unistr/u16-next-tests: New file.
33         * tests/unistr/test-u16-next.c: New file.
34
35         Tests for module 'unistr/u8-next'.
36         * modules/unistr/u8-next-tests: New file.
37         * tests/unistr/test-u8-next.c: New file.
38
39         Tests for module 'unistr/u32-strmbtouc'.
40         * modules/unistr/u32-strmbtouc-tests: New file.
41         * tests/unistr/test-u32-strmbtouc.c: New file.
42
43         Tests for module 'unistr/u16-strmbtouc'.
44         * modules/unistr/u16-strmbtouc-tests: New file.
45         * tests/unistr/test-u16-strmbtouc.c: New file.
46
47         Tests for module 'unistr/u8-strmbtouc'.
48         * modules/unistr/u8-strmbtouc-tests: New file.
49         * tests/unistr/test-u8-strmbtouc.c: New file.
50
51         Tests for module 'unistr/u32-strmblen'.
52         * modules/unistr/u32-strmblen-tests: New file.
53         * tests/unistr/test-u32-strmblen.c: New file.
54
55         Tests for module 'unistr/u16-strmblen'.
56         * modules/unistr/u16-strmblen-tests: New file.
57         * tests/unistr/test-u16-strmblen.c: New file.
58
59         Tests for module 'unistr/u8-strmblen'.
60         * modules/unistr/u8-strmblen-tests: New file.
61         * tests/unistr/test-u8-strmblen.c: New file.
62
63         Tests for module 'unistr/u32-cpy-alloc'.
64         * modules/unistr/u32-cpy-alloc-tests: New file.
65         * tests/unistr/test-u32-cpy-alloc.c: New file.
66
67         Tests for module 'unistr/u16-cpy-alloc'.
68         * modules/unistr/u16-cpy-alloc-tests: New file.
69         * tests/unistr/test-u16-cpy-alloc.c: New file.
70
71         Tests for module 'unistr/u8-cpy-alloc'.
72         * modules/unistr/u8-cpy-alloc-tests: New file.
73         * tests/unistr/test-u8-cpy-alloc.c: New file.
74         * tests/unistr/test-cpy-alloc.h: New file.
75
76         Tests for module 'unistr/u32-mbsnlen'.
77         * modules/unistr/u32-mbsnlen-tests: New file.
78         * tests/unistr/test-u32-mbsnlen.c: New file.
79
80         Tests for module 'unistr/u16-mbsnlen'.
81         * modules/unistr/u16-mbsnlen-tests: New file.
82         * tests/unistr/test-u16-mbsnlen.c: New file.
83
84         Tests for module 'unistr/u8-mbsnlen'.
85         * modules/unistr/u8-mbsnlen-tests: New file.
86         * tests/unistr/test-u8-mbsnlen.c: New file.
87
88         Tests for module 'unistr/u32-chr'.
89         * modules/unistr/u32-chr-tests: New file.
90         * tests/unistr/test-u32-chr.c: New file.
91
92         Tests for module 'unistr/u16-chr'.
93         * modules/unistr/u16-chr-tests: New file.
94         * tests/unistr/test-u16-chr.c: New file.
95
96         Tests for module 'unistr/u8-chr'.
97         * modules/unistr/u8-chr-tests: New file.
98         * tests/unistr/test-u8-chr.c: New file.
99         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
100
101         Tests for module 'unistr/u32-cmp2'.
102         * modules/unistr/u32-cmp2-tests: New file.
103         * tests/unistr/test-u32-cmp2.c: New file.
104
105         Tests for module 'unistr/u16-cmp2'.
106         * modules/unistr/u16-cmp2-tests: New file.
107         * tests/unistr/test-u16-cmp2.c: New file.
108
109         Tests for module 'unistr/u8-cmp2'.
110         * modules/unistr/u8-cmp2-tests: New file.
111         * tests/unistr/test-u8-cmp2.c: New file.
112         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
113
114         Tests for module 'unistr/u32-cmp'.
115         * modules/unistr/u32-cmp-tests: New file.
116         * tests/unistr/test-u32-cmp.c: New file.
117
118         Tests for module 'unistr/u16-cmp'.
119         * modules/unistr/u16-cmp-tests: New file.
120         * tests/unistr/test-u16-cmp.c: New file.
121
122         Tests for module 'unistr/u8-cmp'.
123         * modules/unistr/u8-cmp-tests: New file.
124         * tests/unistr/test-u8-cmp.c: New file.
125         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
126
127         Tests for module 'unistr/u32-set'.
128         * modules/unistr/u32-set-tests: New file.
129         * tests/unistr/test-u32-set.c: New file.
130
131         Tests for module 'unistr/u16-set'.
132         * modules/unistr/u16-set-tests: New file.
133         * tests/unistr/test-u16-set.c: New file.
134
135         Tests for module 'unistr/u8-set'.
136         * modules/unistr/u8-set-tests: New file.
137         * tests/unistr/test-u8-set.c: New file.
138         * tests/unistr/test-set.h: New file.
139
140         Tests for module 'unistr/u32-move'.
141         * modules/unistr/u32-move-tests: New file.
142         * tests/unistr/test-u32-move.c: New file.
143
144         Tests for module 'unistr/u16-move'.
145         * modules/unistr/u16-move-tests: New file.
146         * tests/unistr/test-u16-move.c: New file.
147
148         Tests for module 'unistr/u8-move'.
149         * modules/unistr/u8-move-tests: New file.
150         * tests/unistr/test-u8-move.c: New file.
151         * tests/unistr/test-move.h: New file.
152
153         Tests for module 'unistr/u32-cpy'.
154         * modules/unistr/u32-cpy-tests: New file.
155         * tests/unistr/test-u32-cpy.c: New file.
156
157         Tests for module 'unistr/u16-cpy'.
158         * modules/unistr/u16-cpy-tests: New file.
159         * tests/unistr/test-u16-cpy.c: New file.
160
161         Tests for module 'unistr/u8-cpy'.
162         * modules/unistr/u8-cpy-tests: New file.
163         * tests/unistr/test-u8-cpy.c: New file.
164         * tests/unistr/test-cpy.h: New file.
165
166 2010-01-09  Bruno Haible  <bruno@clisp.org>
167
168         Tests for module 'unistr/u32-uctomb'.
169         * modules/unistr/u32-uctomb-tests: New file.
170         * tests/unistr/test-u32-uctomb.c: New file.
171
172         Tests for module 'unistr/u16-uctomb'.
173         * modules/unistr/u16-uctomb-tests: New file.
174         * tests/unistr/test-u16-uctomb.c: New file.
175
176         Tests for module 'unistr/u8-uctomb'.
177         * modules/unistr/u8-uctomb-tests: New file.
178         * tests/unistr/test-u8-uctomb.c: New file.
179
180         Tests for module 'unistr/u32-mbtoucr'.
181         * modules/unistr/u32-mbtoucr-tests: New file.
182         * tests/unistr/test-u32-mbtoucr.c: New file.
183
184         Tests for module 'unistr/u16-mbtoucr'.
185         * modules/unistr/u16-mbtoucr-tests: New file.
186         * tests/unistr/test-u16-mbtoucr.c: New file.
187
188         Tests for module 'unistr/u8-mbtoucr'.
189         * modules/unistr/u8-mbtoucr-tests: New file.
190         * tests/unistr/test-u8-mbtoucr.c: New file.
191
192         Tests for module 'unistr/u32-mbtouc'.
193         * modules/unistr/u32-mbtouc-tests: New file.
194         * tests/unistr/test-u32-mbtouc.c: New file.
195
196         Tests for module 'unistr/u16-mbtouc'.
197         * modules/unistr/u16-mbtouc-tests: New file.
198         * tests/unistr/test-u16-mbtouc.c: New file.
199
200         Tests for module 'unistr/u8-mbtouc'.
201         * modules/unistr/u8-mbtouc-tests: New file.
202         * tests/unistr/test-u8-mbtouc.c: New file.
203
204         Tests for module 'unistr/u32-mbtouc-unsafe'.
205         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
206         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
207         * tests/unistr/test-u32-mbtouc.h: New file.
208
209         Tests for module 'unistr/u16-mbtouc-unsafe'.
210         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
211         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
212         * tests/unistr/test-u16-mbtouc.h: New file.
213
214         Tests for module 'unistr/u8-mbtouc-unsafe'.
215         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
216         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
217         * tests/unistr/test-u8-mbtouc.h: New file.
218
219         Tests for module 'unistr/u32-mblen'.
220         * modules/unistr/u32-mblen-tests: New file.
221         * tests/unistr/test-u32-mblen.c: New file.
222
223         Tests for module 'unistr/u16-mblen'.
224         * modules/unistr/u16-mblen-tests: New file.
225         * tests/unistr/test-u16-mblen.c: New file.
226
227         Tests for module 'unistr/u8-mblen'.
228         * modules/unistr/u8-mblen-tests: New file.
229         * tests/unistr/test-u8-mblen.c: New file.
230
231         Tests for module 'unistr/u32-to-u16'.
232         * modules/unistr/u32-to-u16-tests: New file.
233         * tests/unistr/test-u32-to-u16.c: New file.
234
235         Tests for module 'unistr/u32-to-u8'.
236         * modules/unistr/u32-to-u8-tests: New file.
237         * tests/unistr/test-u32-to-u8.c: New file.
238
239         Tests for module 'unistr/u16-to-u32'.
240         * modules/unistr/u16-to-u32-tests: New file.
241         * tests/unistr/test-u16-to-u32.c: New file.
242
243         Tests for module 'unistr/u16-to-u8'.
244         * modules/unistr/u16-to-u8-tests: New file.
245         * tests/unistr/test-u16-to-u8.c: New file.
246
247         Tests for module 'unistr/u8-to-u32'.
248         * modules/unistr/u8-to-u32-tests: New file.
249         * tests/unistr/test-u8-to-u32.c: New file.
250
251         Tests for module 'unistr/u8-to-u16'.
252         * modules/unistr/u8-to-u16-tests: New file.
253         * tests/unistr/test-u8-to-u16.c: New file.
254
255         Tests for module 'unistr/u32-check'.
256         * modules/unistr/u32-check-tests: New file.
257         * tests/unistr/test-u32-check.c: New file.
258
259         Tests for module 'unistr/u16-check'.
260         * modules/unistr/u16-check-tests: New file.
261         * tests/unistr/test-u16-check.c: New file.
262
263         Tests for module 'unistr/u8-check'.
264         * modules/unistr/u8-check-tests: New file.
265         * tests/unistr/test-u8-check.c: New file.
266
267         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
268         (category_equals): New function.
269         (main): Add more tests.
270         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
271
272         * tests/unictype/test-bidi_byname.c (main): Add more tests.
273
274 2010-01-10  Bruno Haible  <bruno@clisp.org>
275
276         unistr/u*-strcoll: Try harder to distinguish different strings.
277         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
278         compare s1 and s2 to see if they are different.
279
280 2010-01-10  Bruno Haible  <bruno@clisp.org>
281
282         unistr/u*-stpncpy: Fix the return value.
283         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
284         description of the return value consistent with stpncpy in glibc.
285         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
286         written non-NUL unit.
287
288 2010-01-10  Bruno Haible  <bruno@clisp.org>
289
290         unistr/u*-next: Add missing dependencies.
291         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
292         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
293         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
294
295 2010-01-10  Bruno Haible  <bruno@clisp.org>
296
297         unistr/u8-mbsnlen: Fix return value for incomplete character.
298         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
299         u8_mblen.
300         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
301         Remove unistr/u8-mblen.
302         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
303         u16_mblen.
304         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
305         Remove unistr/u16-mblen.
306
307 2010-01-10  Bruno Haible  <bruno@clisp.org>
308
309         wchar: Fix compilation error when <wchar.h> is used from coreutils.
310         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
311         Reported by Brian Gough <bjg@gnu.org> and
312         Chris Clayton <chris2553@googlemail.com> via
313         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
314
315 2010-01-09  Bruno Haible  <bruno@clisp.org>
316
317         unistr/u16-to-u32: Reject invalid input.
318         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
319         u16_mbtouc.
320         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
321         Remove unistr/u16-mbtouc.
322
323         unistr/u16-to-u8: Reject invalid input.
324         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
325         u16_mbtouc.
326         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
327         Remove unistr/u16-mbtouc.
328
329         unistr/u8-to-u32: Reject invalid input.
330         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
331         u8_mbtouc.
332         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
333         Remove unistr/u8-mbtouc.
334
335         unistr/u8-to-u16: Reject invalid input.
336         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
337         u8_mbtouc.
338         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
339         Remove unistr/u8-mbtouc.
340
341 2010-01-09  Bruno Haible  <bruno@clisp.org>
342
343         Tests for module 'getlogin'.
344         * modules/getlogin-tests: New file.
345         * tests/test-getlogin.c: New file.
346
347         New module 'getlogin'.
348         * lib/unistd.in.h (getlogin): New declaration.
349         * lib/getlogin.c: New file.
350         * m4/getlogin.m4: New file.
351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
352         HAVE_GETLOGIN.
353         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
354         HAVE_GETLOGIN.
355         * modules/getlogin: New file.
356         * doc/posix-functions/getlogin.texi: Mention the new module.
357         Reported by John W. Eaton <jwe@gnu.org>.
358
359 2010-01-09  Bruno Haible  <bruno@clisp.org>
360
361         getlogin_r: Support for native Windows.
362         * lib/getlogin_r.c: Include <windows.h>
363         (getlogin_r): Implement for native Windows.
364         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
365         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
366         via John W. Eaton <jwe@gnu.org>.
367
368 2010-01-09  Bruno Haible  <bruno@clisp.org>
369
370         getlogin_r: Small fixes.
371         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
372         succeeds.
373         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
374         before testing whether getlogin_r is declared. No need to set
375         HAVE_DECL_GETLOGIN_R to 1.
376         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
377
378 2010-01-09  Bruno Haible  <bruno@clisp.org>
379
380         * lib/unistd.in.h (getlogin_r): Add comment.
381
382 2010-01-09  Bruno Haible  <bruno@clisp.org>
383
384         Tests for module 'getlogin_r'.
385         * modules/getlogin_r-tests: New file.
386         * tests/test-getlogin_r.c: New file.
387
388 2010-01-09  Jim Meyering  <meyering@redhat.com>
389
390         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
391         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
392         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
393
394 2010-01-08  Simon Josefsson  <simon@josefsson.org>
395
396         * lib/dup2.c (rpl_dup2): Improve comment.
397
398 2010-01-08  Eric Blake  <ebb9@byu.net>
399
400         maint.mk: allow packages to add makefile @@ exceptions
401         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
402         (sc_makefile_check): Rename...
403         (sc_makefile_at_at_check): ...to this, and use hook.
404
405         dup2: work around mingw bug
406         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
407         Reported by Simon Josefsson.
408
409 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
410
411         glob: Fix C++ compilation.
412         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
413         C++.
414
415 2010-01-07  Bruno Haible  <bruno@clisp.org>
416
417         Fix indentation of wctype.in.h, broken since 2007-01-06.
418         * lib/wctype.in.h: Fix indentation of preprocessor directives.
419
420 2010-01-07  Bruno Haible  <bruno@clisp.org>
421
422         mbslen: Avoid collision with system function.
423         * lib/string.in.h [MirBSD]: Include <wchar.h>.
424         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
425         * m4/mbslen.m4: New file.
426         * modules/mbslen (Files): Add it.
427         (configure.ac): Invoke gl_MBSLEN.
428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
429         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
430         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
431         via Ian Beckwith <ianb@erislabs.net>.
432
433 2010-01-07  Bruno Haible  <bruno@clisp.org>
434
435         dirent: Document the last fix.
436         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
437
438 2010-01-07  Bruno Haible  <bruno@clisp.org>
439
440         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
441         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
442         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
443         va_list are defined.
444         * doc/posix-headers/stdio.texi: Document the bug of missing types.
445         Reported by Eric Blake.
446
447 2010-01-07  Bruno Haible  <bruno@clisp.org>
448
449         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
450         * modules/xlist (Depends-on): Add 'list',
451         * modules/xoset (Depends-on): Add 'oset'.
452         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
453
454 2010-01-07  Bruno Haible  <bruno@clisp.org>
455
456         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
457         * doc/posix-functions/strncasecmp.texi: Likewise.
458
459 2010-01-07  Bruno Haible  <bruno@clisp.org>
460
461         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
462
463 2010-01-07  John W. Eaton  <jwe@octave.org>
464
465         wctype: allow C++ use
466         * lib/wctype.in.h: Add extern "C" block for C++.
467
468 2010-01-06  Eric Blake  <ebb9@byu.net>
469
470         maint.mk: detect incorrect GFDL usage
471         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
472
473 2010-01-06  Jim Meyering  <meyering@redhat.com>
474         and Eric Blake  <ebb9@byu.net>
475
476         maint.mk: ignore multi-line copyright in NEWS
477         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
478
479 2010-01-06  Eric Blake  <ebb9@byu.net>
480
481         select: add missing dependency
482         * modules/select-tests (Depends-on): Move sockets dependency...
483         * modules/select (Depends-on): ...here.
484         Reported by Ian Beckwith.
485
486         doc: regenerate INSTALL
487         * doc/INSTALL: Reflect recent autoconf update.
488         * doc/INSTALL.ISO: Likewise.
489         * doc/INSTALL.UTF-8: Likewise.
490
491         pread: fix compilation on glibc
492         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
493         Reported by Ralf Wildenhues.
494
495         dirent: fix test failure
496         * lib/dirent.in.h (includes): Guarantee ino_t.
497         Reported by Ralf Wildenhues.
498
499 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
500
501         linkat, renameat: avoid bad free
502         * lib/at-func2.c (at_func2): Fix typo.
503         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
504
505 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
506
507         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
508         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
509         to avoid failure of symlink test later.
510
511 2010-01-06  Eric Blake  <ebb9@byu.net>
512
513         stdio, unistd: guarantee ssize_t
514         * lib/unistd.in.h (includes): Ensure that types required by POSIX
515         2008 are exposed when needed.
516         * lib/stdio.in.h (includes): Likewise.
517         Reported by Ralf Wildenhues.
518
519 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
520
521         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
522         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
523         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
524
525 2010-01-06  Jim Meyering  <meyering@redhat.com>
526
527         readtokens: this module *does* require xalloc.h
528         It uses only functions that were omitted by the old syntax-check rule.
529         * lib/readtokens.c: Include "xalloc.h" once again.
530         * modules/readtokens (Depends-on): Add xalloc.
531         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
532
533 2010-01-05  Eric Blake  <ebb9@byu.net>
534
535         maint: support 'make announcement' from a VPATH build
536         * top/maint.mk (announcement): Look for correct NEWS file.
537
538 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
539
540         utimens (fdutimens): ignore a negative FD, per contract
541         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
542         when we have a valid file descriptor.  Otherwise, using a brand
543         new glibc (with just-patched futimens that now fails with EBADF)
544         would cause this function to fail with ENOSYS.
545         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
546         See also http://bugzilla.redhat.com/552320.
547
548 2010-01-05  Eric Blake  <ebb9@byu.net>
549
550         strcase: document what it provides
551         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
552         gnulib module.
553         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
554         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
555
556 2010-01-05  Jim Meyering  <meyering@redhat.com>
557
558         maint: remove useless inclusions of "xalloc.h"
559         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
560         * lib/readtokens.c: Likewise.
561         * lib/same.c: Likewise.
562         * modules/getloadavg (Depends-on): Remove xalloc.
563         * modules/readtokens: Likewise.
564         * modules/same: Likewise.
565
566         maint.mk: include 4 more function names in alloca.h-checking regexp
567         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
568         regexp.  Before, we would give a false-positive (saying alloca.h
569         is included unnecessarily) when the only uses involved omitted symbols.
570
571         xalloc.h: use consistent formatting
572         * lib/xalloc.h: Move declarations to start in the first column.
573
574 2010-01-05  Eric Blake  <ebb9@byu.net>
575
576         mkdir: avoid xalloc
577         * lib/mkdir.c (includes): Drop unused header.
578         Reported by John W. Eaton.
579
580 2010-01-04  Jim Meyering  <meyering@redhat.com>
581
582         nl_langinfo: avoid configure-time syntax error
583         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
584         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
585         the empty string.  Don't let that provoke a shell syntax error.
586
587         regcomp, regexec, fnmatch: avoid array bounds read error
588         * lib/regcomp.c (build_equiv_class): From glibc:
589         Use only the low 24 bits of a findidx return value as an index
590         into the weights array.  Patch by Ulrich Drepper:
591         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
592         * lib/regexec.c (check_node_accept_bytes): Likewise.
593         * lib/fnmatch_loop.c (FCT): Likewise.
594
595         regcomp: skip collseq lookup when there are no rules
596         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
597         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
598
599         regcomp: recognize ill-formed { } expressions
600         * lib/regcomp.c (parse_dup_op): From glibc:
601         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
602
603         regcomp: fix typo in comment
604         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
605         s/satisfy/satisfies/.
606
607         regcomp: sync from glibc: remove dead store
608         * lib/regcomp.c (duplicate_node_closure): Remove useless
609         search_duplicated_node call and dead store.
610
611         regcomp: sync from glibc; always use nl_langinfo
612         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
613         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
614         * modules/regex (Depends-on): Add nl_langinfo.
615
616 2010-01-04  Eric Blake  <ebb9@byu.net>
617
618         fdopendir: fix configure test
619         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
620
621 2010-01-01  Bruno Haible  <bruno@clisp.org>
622
623         wchar: Remove unused configure check.
624         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
625
626 2010-01-01  Eric Blake  <ebb9@byu.net>
627
628         headers: make check of system header explicit
629         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
630         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
631         ourselves.
632         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
633         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
634         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
635         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
636         internals.
637         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
638         missing.
639         Suggested by Bruno Haible.
640
641 2010-01-01  Jim Meyering  <meyering@redhat.com>
642
643         ChangeLog: tweak to eliminate unnecessary copyright line
644         * ChangeLog: Remove a copyright line that was mistakenly updated
645         by today's update-copyright run.  Reported by Eric Blake.
646
647         test-update-copyright: don't let envvar setting cause test failure
648         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
649
650 2010-01-01  Bruno Haible  <bruno@clisp.org>
651
652         localename: Avoid gcc warning.
653         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
654         function if it is not used.
655
656 2010-01-01  Jim Meyering  <meyering@redhat.com>
657
658         update nearly all FSF copyright year lists to include 2010
659         Use the same procedure as for 2009, outlined in
660         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
661
662         version-etc: set COPYRIGHT_YEAR to 2010
663         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
664
665 2009-12-31  Eric Blake  <ebb9@byu.net>
666
667         doc: correct availability of cygwin 1.5.x getopt
668         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
669         variables.
670         * doc/posix-functions/opterr.texi (opterr): Likewise.
671         * doc/posix-functions/optind.texi (optind): Likewise.
672         * doc/posix-functions/optopt.texi (optopt): Likewise.
673         * doc/posix-functions/tzname.texi (tzname): Likewise.
674
675         openat: update maintainer
676         * modules/openat (Maintainer): Add myself.
677
678         utimens: avoid shadowing warning
679         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
680         buffers into one, to avoid shadowing, as well as avoiding a
681         redundant stat.
682         Reported by Jim Meyering.
683
684         test-dup2: avoid compiler warning
685         * tests/test-dup2.c (is_inheritable): Only define if used.
686
687 2010-01-01  Bruno Haible  <bruno@clisp.org>
688
689         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
690         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
691         defined, use wctomb instead of wcrtomb.
692
693 2010-01-01  Bruno Haible  <bruno@clisp.org>
694
695         iconv: Reject native Solaris iconv.
696         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
697         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
698
699 2009-12-31  Bruno Haible  <bruno@clisp.org>
700
701         * tests/test-signal.c (main): Remove test of 'SIG'.
702
703 2009-12-31  Bruno Haible  <bruno@clisp.org>
704
705         spawn: Fix incomplete fix.
706         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
707         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
708         warnings for GNULIB_POSIXCHECK again.
709         Reported by Eric Blake.
710
711 2009-12-31  Bruno Haible  <bruno@clisp.org>
712
713         Avoid namespace pollution on glibc systems.
714         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
715         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
716         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
717         glibc systems.
718
719 2009-12-31  Bruno Haible  <bruno@clisp.org>
720
721         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
722         (gl_REPLACE_WCHAR_H): Turn into a no-op.
723         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
724         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
725         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
726         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
727         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
728
729 2009-12-31  Bruno Haible  <bruno@clisp.org>
730
731         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
732         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
733         afterwards.
734
735 2009-12-31  Bruno Haible  <bruno@clisp.org>
736
737         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
738         SYS_UTSNAME_H.
739
740 2009-12-31  Bruno Haible  <bruno@clisp.org>
741
742         spawn: Fix misapplied patch.
743         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
744         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
745         warnings for GNULIB_POSIXCHECK.
746
747 2009-12-31  Bruno Haible  <bruno@clisp.org>
748
749         times: Update after sys_times changed.
750         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
751         * modules/times (Files): Add it.
752         (configure.ac): Invoke gl_FUNC_TIMES.
753
754 2009-12-31  Bruno Haible  <bruno@clisp.org>
755
756         Use AC_C_INLINE where necessary.
757         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
758         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
759         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
760         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
761         * m4/mbfile.m4 (gl_MBFILE): Likewise.
762         * m4/mbiter.m4 (gl_MBITER): Likewise.
763         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
764         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
765         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
766         * modules/u64 (configure.ac): Likewise.
767
768 2009-12-31  Bruno Haible  <bruno@clisp.org>
769
770         Use AC_C_INLINE instead of module 'inline' where possible.
771         * modules/inline (Description): Clarify purpose.
772         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
773         * modules/count-one-bits (Depends-on): Remove inline.
774         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
775         * modules/openat (Depends-on): Remove inline.
776         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
777         instead of depending on module 'inline'.
778         * modules/filevercmp (Depends-on, configure.ac): Likewise.
779         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
780         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
781         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
782         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
783         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
784         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
785         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
786         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
787         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
788         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
789         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
790         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
791         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
792         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
793         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
794         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
795         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
796         Likewise.
797         * modules/unictype/property-ascii-hex-digit (Depends-on,
798         configure.ac): Likewise.
799         * modules/unictype/property-bidi-arabic-digit (Depends-on,
800         configure.ac): Likewise.
801         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
802         configure.ac): Likewise.
803         * modules/unictype/property-bidi-block-separator (Depends-on,
804         configure.ac): Likewise.
805         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
806         configure.ac): Likewise.
807         * modules/unictype/property-bidi-common-separator (Depends-on,
808         configure.ac): Likewise.
809         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
810         Likewise.
811         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
812         configure.ac): Likewise.
813         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
814         configure.ac): Likewise.
815         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
816         configure.ac): Likewise.
817         * modules/unictype/property-bidi-european-digit (Depends-on,
818         configure.ac): Likewise.
819         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
820         configure.ac): Likewise.
821         * modules/unictype/property-bidi-left-to-right (Depends-on,
822         configure.ac): Likewise.
823         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
824         configure.ac): Likewise.
825         * modules/unictype/property-bidi-other-neutral (Depends-on,
826         configure.ac): Likewise.
827         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
828         Likewise.
829         * modules/unictype/property-bidi-segment-separator (Depends-on,
830         configure.ac): Likewise.
831         * modules/unictype/property-bidi-whitespace (Depends-on,
832         configure.ac): Likewise.
833         * modules/unictype/property-combining (Depends-on, configure.ac):
834         Likewise.
835         * modules/unictype/property-composite (Depends-on, configure.ac):
836         Likewise.
837         * modules/unictype/property-currency-symbol (Depends-on,
838         configure.ac): Likewise.
839         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
840         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
841         Likewise.
842         * modules/unictype/property-default-ignorable-code-point (Depends-on,
843         configure.ac): Likewise.
844         * modules/unictype/property-deprecated (Depends-on, configure.ac):
845         Likewise.
846         * modules/unictype/property-diacritic (Depends-on, configure.ac):
847         Likewise.
848         * modules/unictype/property-extender (Depends-on, configure.ac):
849         Likewise.
850         * modules/unictype/property-format-control (Depends-on, configure.ac):
851         Likewise.
852         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
853         Likewise.
854         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
855         Likewise.
856         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
857         Likewise.
858         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
859         Likewise.
860         * modules/unictype/property-hyphen (Depends-on, configure.ac):
861         Likewise.
862         * modules/unictype/property-id-continue (Depends-on, configure.ac):
863         Likewise.
864         * modules/unictype/property-id-start (Depends-on, configure.ac):
865         Likewise.
866         * modules/unictype/property-ideographic (Depends-on, configure.ac):
867         Likewise.
868         * modules/unictype/property-ids-binary-operator (Depends-on,
869         configure.ac): Likewise.
870         * modules/unictype/property-ids-trinary-operator (Depends-on,
871         configure.ac): Likewise.
872         * modules/unictype/property-ignorable-control (Depends-on,
873         configure.ac): Likewise.
874         * modules/unictype/property-iso-control (Depends-on, configure.ac):
875         Likewise.
876         * modules/unictype/property-join-control (Depends-on, configure.ac):
877         Likewise.
878         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
879         Likewise.
880         * modules/unictype/property-line-separator (Depends-on, configure.ac):
881         Likewise.
882         * modules/unictype/property-logical-order-exception (Depends-on,
883         configure.ac): Likewise.
884         * modules/unictype/property-lowercase (Depends-on, configure.ac):
885         Likewise.
886         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
887         * modules/unictype/property-non-break (Depends-on, configure.ac):
888         Likewise.
889         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
890         Likewise.
891         * modules/unictype/property-numeric (Depends-on, configure.ac):
892         Likewise.
893         * modules/unictype/property-other-alphabetic (Depends-on,
894         configure.ac): Likewise.
895         * modules/unictype/property-other-default-ignorable-code-point
896         (Depends-on, configure.ac): Likewise.
897         * modules/unictype/property-other-grapheme-extend (Depends-on,
898         configure.ac): Likewise.
899         * modules/unictype/property-other-id-continue (Depends-on,
900         configure.ac): Likewise.
901         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
902         Likewise.
903         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
904         Likewise.
905         * modules/unictype/property-other-math (Depends-on, configure.ac):
906         Likewise.
907         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
908         Likewise.
909         * modules/unictype/property-paired-punctuation (Depends-on,
910         configure.ac): Likewise.
911         * modules/unictype/property-paragraph-separator (Depends-on,
912         configure.ac): Likewise.
913         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
914         Likewise.
915         * modules/unictype/property-pattern-white-space (Depends-on,
916         configure.ac): Likewise.
917         * modules/unictype/property-private-use (Depends-on, configure.ac):
918         Likewise.
919         * modules/unictype/property-punctuation (Depends-on, configure.ac):
920         Likewise.
921         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
922         Likewise.
923         * modules/unictype/property-radical (Depends-on, configure.ac):
924         Likewise.
925         * modules/unictype/property-sentence-terminal (Depends-on,
926         configure.ac): Likewise.
927         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
928         Likewise.
929         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
930         * modules/unictype/property-terminal-punctuation (Depends-on,
931         configure.ac): Likewise.
932         * modules/unictype/property-titlecase (Depends-on, configure.ac):
933         Likewise.
934         * modules/unictype/property-unassigned-code-value (Depends-on,
935         configure.ac): Likewise.
936         * modules/unictype/property-unified-ideograph (Depends-on,
937         configure.ac): Likewise.
938         * modules/unictype/property-uppercase (Depends-on, configure.ac):
939         Likewise.
940         * modules/unictype/property-variation-selector (Depends-on,
941         configure.ac): Likewise.
942         * modules/unictype/property-white-space (Depends-on, configure.ac):
943         Likewise.
944         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
945         Likewise.
946         * modules/unictype/property-xid-start (Depends-on, configure.ac):
947         Likewise.
948         * modules/unictype/property-zero-width (Depends-on, configure.ac):
949         Likewise.
950         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
951         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
952         Likewise.
953
954 2009-12-31  Bruno Haible  <bruno@clisp.org>
955
956         Remove unnecessary AC_C_INLINE invocation.
957         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
958         since 2009-08-21.
959
960 2009-12-31  Jim Meyering  <meyering@redhat.com>
961
962         maint.mk: don't require explicit gpg_key_ID in cfg.mk
963         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
964         With this change, we can all remove the gpg_key_ID = ... definition
965         from our respective cfg.mk files.
966
967         maint.mk: create announcement template in ~/, not in /tmp
968         * top/maint.mk (emit_upload_commands): Adjust.
969         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
970         Remove temporary file, .ci-msg.
971
972 2009-12-31  Eric Blake  <ebb9@byu.net>
973
974         link-warning: always build headers with link warnings
975         * modules/arpa_inet (Makefile.am): Always build replacement
976         header.
977         * modules/ctype (Makefile.am): Likewise.
978         * modules/dirent (Makefile.am): Likewise.
979         * modules/inttypes (Makefile.am): Likewise.
980         * modules/langinfo (Makefile.am): Likewise.
981         * modules/locale (Makefile.am): Likewise.
982         * modules/spawn (Makefile.am): Likewise.
983         * modules/sys_file (Makefile.am): Likewise.
984         * modules/sys_ioctl (Makefile.am): Likewise.
985         * modules/sys_select (Makefile.am): Likewise.
986         * modules/sys_socket (Makefile.am): Likewise.
987         * modules/sys_times (Makefile.am): Likewise.
988         * modules/sys_utsname (Makefile.am): Likewise.
989         * modules/sys_wait (Makefile.am): Likewise.
990         * modules/wchar (Makefile.am): Likewise.
991         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
992         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
993         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
994         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
995         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
996         Likewise.
997         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
998         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
999         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
1000         Likewise.
1001         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
1002         Likewise.
1003         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
1004         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
1005         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
1006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1007         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1008         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1009         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1010         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
1011         (gl_WCHAR_H_DEFAULTS): Likewise.
1012
1013 2009-12-31  Eric Blake  <ebb9@byu.net>
1014
1015         signal, spawn: use link warnings
1016         * lib/signal.in.h (sigset_t): Make unconditional.
1017         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
1018         (sigpending, sigprocmask, sigaction): Add link warnings.
1019         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
1020         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
1021         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
1022         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
1023         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
1024         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
1025         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
1026         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
1027         (posix_spawn_file_actions_destroy)
1028         (posix_spawn_file_actions_addopen)
1029         (posix_spawn_file_actions_addclose)
1030         (posix_spawwn_file_actions_adddup2): Likewise.
1031         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
1032         * tests/test-signal.c (main): Enhance test.
1033
1034         spawn: improve wrapper support
1035         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
1036         (gl_SPAWN_H_DEFAULTS): New defaults.
1037         * modules/spawn (Makefile.am): Substitute them.
1038         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
1039         Only declare if missing or broken.
1040
1041         sys_times, sys_utsname: use include_next
1042         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
1043         header.
1044         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
1045         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1046         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1047         * modules/sys_times (Depends-on): Add include_next.
1048         (Makefile.am): Substitute additional values.
1049         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1050         * lib/sys_times.in.h (includes): Include native header, if
1051         available.
1052         * lib/sys_utsname.in.h (includes): Likewise.
1053         * tests/test-sys_times.c (main): Enhance test.
1054
1055         fdutimensat: revert prior patch
1056         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
1057         utimens.h.
1058         Reported by Bruno Haible.
1059
1060 2009-12-30  Eric Blake  <ebb9@byu.net>
1061
1062         sys_wait: drop link-warning dependency
1063         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
1064         link-warning efforts.
1065         * lib/sys_wait.in.h: Likewise.
1066
1067         fdutimensat: remove bogus dependency
1068         * modules/fdutimensat (Depends-on): Drop inline.
1069
1070         unistd: fix typo
1071         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
1072
1073 2009-12-30  Bruno Haible  <bruno@clisp.org>
1074
1075         Fix compilation error with Solaris cc.
1076         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
1077         * lib/unicase/u16-is-invariant.c: Likewise.
1078         * lib/unicase/u32-is-invariant.c: Likewise.
1079         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1080
1081 2009-12-30  Bruno Haible  <bruno@clisp.org>
1082
1083         Fix test crash.
1084         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
1085         locales.
1086         Reported by Simon Josefsson <simon@josefsson.org>.
1087
1088 2009-12-30  Bruno Haible  <bruno@clisp.org>
1089
1090         Fix compilation error on most platforms.
1091         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
1092         Reported by Simon Josefsson <simon@josefsson.org>
1093         and Nelson H. F. Beebe <beebe@math.utah.edu>.
1094
1095 2009-12-30  Eric Blake  <ebb9@byu.net>
1096
1097         futimens, utimensat: work around ntfs-3g bug
1098         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
1099         a ctime bug is present, and expand workaround to cover ntfs-3g.
1100         * lib/utimens.c (fdutimens, lutimens): Likewise.
1101         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
1102         (validate_timespec): Adjust return value.
1103         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
1104         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1105         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
1106
1107 2009-12-29  Eric Blake  <ebb9@byu.net>
1108
1109         link-warning: make usage consistent
1110         * modules/ctype (Depends-on): Add link-warning.
1111         (Makefile.am): Update rules accordingly.
1112         * modules/langinfo (Depends-on, Makefile.am): Likewise.
1113         * modules/locale (Depends-on, Makefile.am): Likewise.
1114         * modules/sys_file (Makefile.am): Likewise.
1115         * modules/getopt-posix (Makefile.am): Delete unused link warning
1116         efforts.
1117         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
1118         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
1119         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
1120         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
1121
1122         stdio: remove unused variables
1123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
1124         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
1125         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1126
1127         tests: test more substitute headers
1128         * modules/ctype-tests: New file.
1129         * modules/dirent-tests: Likewise.
1130         * modules/spawn-tests: Likewise.
1131         * modules/sys_file-tests: Likewise.
1132         * modules/sys_ioctl-tests: Likewise.
1133         * modules/sys_wait-tests: Likewise.
1134         * tests/test-ctype.c: Likewise.
1135         * tests/test-dirent.c: Likewise.
1136         * tests/test-spawn.c: Likewise.
1137         * tests/test-sys_file.c: Likewise.
1138         * tests/test-sys_ioctl.c: Likewise.
1139         * tests/test-sys_wait.c: Likewise.
1140         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
1141         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
1142         whether or not flock is in use.
1143
1144         tests: remove License section from module
1145         * modules/arpa_inet-tests: Remove unneeded section.
1146         * modules/byteswap-tests: Likewise.
1147         * modules/ceilf-tests: Likewise.
1148         * modules/ceill-tests: Likewise.
1149         * modules/crypto/des-tests: Likewise.
1150         * modules/crypto/gc-arcfour-tests: Likewise.
1151         * modules/crypto/gc-arctwo-tests: Likewise.
1152         * modules/crypto/gc-des-tests: Likewise.
1153         * modules/crypto/gc-hmac-md5-tests: Likewise.
1154         * modules/crypto/gc-hmac-sha1-tests: Likewise.
1155         * modules/crypto/gc-md2-tests: Likewise.
1156         * modules/crypto/gc-md4-tests: Likewise.
1157         * modules/crypto/gc-md5-tests: Likewise.
1158         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
1159         * modules/crypto/gc-rijndael-tests: Likewise.
1160         * modules/crypto/gc-sha1-tests: Likewise.
1161         * modules/crypto/gc-tests: Likewise.
1162         * modules/crypto/md2-tests: Likewise.
1163         * modules/crypto/md4-tests: Likewise.
1164         * modules/fcntl-h-tests: Likewise.
1165         * modules/floorf-tests: Likewise.
1166         * modules/floorl-tests: Likewise.
1167         * modules/frexp-nolibm-tests: Likewise.
1168         * modules/frexp-tests: Likewise.
1169         * modules/frexpl-nolibm-tests: Likewise.
1170         * modules/frexpl-tests: Likewise.
1171         * modules/getaddrinfo-tests: Likewise.
1172         * modules/inttypes-tests: Likewise.
1173         * modules/isfinite-tests: Likewise.
1174         * modules/isinf-tests: Likewise.
1175         * modules/ldexpl-tests: Likewise.
1176         * modules/locale-tests: Likewise.
1177         * modules/math-tests: Likewise.
1178         * modules/netdb-tests: Likewise.
1179         * modules/netinet_in-tests: Likewise.
1180         * modules/printf-frexp-tests: Likewise.
1181         * modules/printf-frexpl-tests: Likewise.
1182         * modules/priv-set-tests: Likewise.
1183         * modules/random_r-tests: Likewise.
1184         * modules/round-tests: Likewise.
1185         * modules/roundf-tests: Likewise.
1186         * modules/roundl-tests: Likewise.
1187         * modules/search-tests: Likewise.
1188         * modules/select-tests: Likewise.
1189         * modules/signal-tests: Likewise.
1190         * modules/stdbool-tests: Likewise.
1191         * modules/stddef-tests: Likewise.
1192         * modules/stdint-tests: Likewise.
1193         * modules/stdio-tests: Likewise.
1194         * modules/stdlib-tests: Likewise.
1195         * modules/string-tests: Likewise.
1196         * modules/strings-tests: Likewise.
1197         * modules/sys_select-tests: Likewise.
1198         * modules/sys_socket-tests: Likewise.
1199         * modules/sys_stat-tests: Likewise.
1200         * modules/sys_time-tests: Likewise.
1201         * modules/sys_utsname-tests: Likewise.
1202         * modules/sysexits-tests: Likewise.
1203         * modules/time-tests: Likewise.
1204         * modules/trunc-tests: Likewise.
1205         * modules/truncf-tests: Likewise.
1206         * modules/truncl-tests: Likewise.
1207         * modules/tsearch-tests: Likewise.
1208         * modules/unistd-tests: Likewise.
1209         * modules/wchar-tests: Likewise.
1210         * modules/wctype-tests: Likewise.
1211
1212         tests: fix license on several tests
1213         * tests/test-des.c: Update to GPLv3+.
1214         * tests/test-flock.c: Likewise.
1215         * tests/test-fsync.c: Likewise.
1216         * tests/test-futimens.h: Likewise.
1217         * tests/test-gc-arcfour.c: Likewise.
1218         * tests/test-gc-arctwo.c: Likewise.
1219         * tests/test-gc-des.c: Likewise.
1220         * tests/test-gc-hmac-md5.c: Likewise.
1221         * tests/test-gc-hmac-sha1.c: Likewise.
1222         * tests/test-gc-md2.c: Likewise.
1223         * tests/test-gc-md4.c: Likewise.
1224         * tests/test-gc-md5.c: Likewise.
1225         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1226         * tests/test-gc-rijndael.c: Likewise.
1227         * tests/test-gc-sha1.c: Likewise.
1228         * tests/test-gc.c: Likewise.
1229         * tests/test-getcwd.c: Likewise.
1230         * tests/test-link.c: Likewise.
1231         * tests/test-link.h: Likewise.
1232         * tests/test-lutimens.h: Likewise.
1233         * tests/test-md2.c: Likewise.
1234         * tests/test-md4.c: Likewise.
1235         * tests/test-mkdir.h: Likewise.
1236         * tests/test-rename.c: Likewise.
1237         * tests/test-rename.h: Likewise.
1238         * tests/test-safe-alloc.c: Likewise.
1239         * tests/test-utimens-common.h: Likewise.
1240         * tests/test-utimens.h: Likewise.
1241
1242         maint: sync license texts
1243         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
1244         * doc/gpl-3.0.texi: Revert copyright year update.
1245         * doc/lgpl-3.0.texi: Likewise.
1246
1247 2009-12-29  Jim Meyering  <meyering@redhat.com>
1248
1249         update nearly all FSF copyright year lists to include 2009
1250         The files named by the following are exempted:
1251             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
1252               test -f "$dst" && { echo "$dst"; continue; }
1253               test -d "$dst" || continue
1254               echo "$dst"/$(basename "$src")
1255             done > exempt
1256             git ls-files tests/unictype >> exempt
1257         In the remaining files, convert to all-interval notation if
1258         - there is already at least one year interval like 2000-2003
1259         - the file is maintained by me
1260         - the file is in lib/uni*/, where that style already prevails
1261         Otherwise, use update-copyright's default.
1262
1263 2009-12-29  Simon Josefsson  <simon@josefsson.org>
1264         and Eric Blake  <ebb9@byu.net>
1265
1266         tests: don't require debug system() to pass
1267         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
1268         * tests/test-rmdir.h (test_rmdir_func): Likewise.
1269         * tests/test-unlink.h (test_unlink_func): Likewise.
1270         * tests/test-fstatat.c (main): ...into callers.
1271         * tests/test-lstat.c (main): Likewise.
1272         * tests/test-rmdir.c (main): Likewise.
1273         * tests/test-unlink.c (main): Likewise.
1274         * tests/test-unlinkat.c (main): Likewise.
1275         * tests/test-areadlink-with-size.c (main): Don't require a
1276         debug-only system call to pass, aiding cross-testing to mingw.
1277         * tests/test-areadlink.c (main): Likewise.
1278         * tests/test-areadlinkat-with-size.c (main): Likewise.
1279         * tests/test-areadlinkat.c (main): Likewise.
1280         * tests/test-canonicalize-lgpl.c (main): Likewise.
1281         * tests/test-canonicalize.c (main): Likewise.
1282         * tests/test-chown.c (main): Likewise.
1283         * tests/test-fchownat.c (main): Likewise.
1284         * tests/test-lchown.c (main): Likewise.
1285         * tests/test-fdutimensat.c (main): Likewise.
1286         * tests/test-futimens.c (main): Likewise.
1287         * tests/test-link.c (main): Likewise.
1288         * tests/test-linkat.c (main): Likewise.
1289         * tests/test-mkdir.c (main): Likewise.
1290         * tests/test-mkdirat.c (main): Likewise.
1291         * tests/test-mkfifo.c (main): Likewise.
1292         * tests/test-mkfifoat.c (main): Likewise.
1293         * tests/test-mknod.c (main): Likewise.
1294         * tests/test-readlink.c (main): Likewise.
1295         * tests/test-remove.c (main): Likewise.
1296         * tests/test-rename.c (main): Likewise.
1297         * tests/test-renameat.c (main): Likewise.
1298         * tests/test-symlink.c (main): Likewise.
1299         * tests/test-symlinkat.c (main): Likewise.
1300         * tests/test-utimens.c (main): Likewise.
1301         * tests/test-utimensat.c (main): Likewise.
1302
1303 2009-12-29  Simon Josefsson  <simon@josefsson.org>
1304
1305         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
1306         on $(UNUSED_PARAMETER_H) to avoid build failure.
1307
1308 2009-12-28  Jim Meyering  <meyering@redhat.com>
1309
1310         update-copyright: you may specify a max. line length other than 72
1311         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
1312
1313         maint: use consistent FSF copyright line syntax
1314         * lib/posixtm.c: Add missing comma in FSF copyright line.
1315         * lib/posixtm.h: Likewise.
1316         * lib/getugroups.c: Add missing ", Inc.".
1317
1318         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
1319         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
1320         FSF copyright line.  Remove trailing blanks.
1321
1322 2009-12-28  Eric Blake  <ebb9@byu.net>
1323
1324         test-dup2: reduce dependencies
1325         * modules/cloexec (Configure.ac): Set witness.
1326         * modules/dup2-tests (Depends-on): Drop cloexec.
1327         * tests/test-dup2.c (main): Skip portion of test if cloexec module
1328         not present.
1329         Suggested by Bruno Haible.
1330
1331 2009-12-26  Bruno Haible  <bruno@clisp.org>
1332
1333         Remove an unneeded dependency.
1334         * modules/fseterr (Depends-on): Remove dup2.
1335
1336 2009-12-26  Eric Blake  <ebb9@byu.net>
1337
1338         tests: use macros.h in more places
1339         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
1340         (ASSERT_STREAM): Provide default of stderr.
1341         * tests/test-dirent-safer.c: Include macros.h, using alternate
1342         stream for assertions.
1343         * tests/test-dup-safer.c: Likewise.
1344         * tests/test-freopen-safer.c: Likewise.
1345         * tests/test-getopt.c: Likewise.
1346         * tests/test-openat-safer.c: Likewise.
1347         * tests/test-pipe.c: Likewise.
1348         * tests/test-popen-safer.c: Likewise.
1349         * modules/dirent-safer-tests (Files): Include macros.h.
1350         * modules/unistd-safer-tests (Files): Likewise.
1351         * modules/freopen-safer-tests (Files): Likewise.
1352         * modules/getopt-posix-tests (Files): Likewise.
1353         * modules/openat-safer-tests (Files): Likewise.
1354         * modules/pipe-tests (Files): Likewise.
1355
1356 2009-12-26  Bruno Haible  <bruno@clisp.org>
1357
1358         javacomp: Portability fix.
1359         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
1360         that it also works on Solaris.
1361
1362 2009-12-26  Bruno Haible  <bruno@clisp.org>
1363
1364         localename: Fix storage allocation of gl_locale_name_thread's result.
1365         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
1366         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
1367         all platforms that have 'uselocale'.
1368         (gl_locale_name_thread_unsafe): New function, extracted from
1369         gl_locale_name_thread.
1370         (gl_locale_name_thread): Call struniq on all platforms that have
1371         'uselocale'.
1372         * tests/test-localename.c (test_locale_name_thread): Check that the
1373         resulting strings are permanently allocated.
1374         * modules/localename-tests (Depends-on): Add strdup.
1375
1376 2009-12-26  Bruno Haible  <bruno@clisp.org>
1377
1378         * tests/test-localename.c (categories): Fill in the strings.
1379
1380 2009-12-26  Jim Meyering  <meyering@redhat.com>
1381
1382         isdir: complete the removal of m4/isdir.m4
1383         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
1384
1385         isdir: clean up, since at least grep still uses it
1386         * lib/isdir.c: Include "isdir.h".
1387         (S_ISDIR): Remove now-unneeded definition.
1388         * modules/isdir (Files): Add lib/isdir.h.
1389         * lib/isdir.h: New file, with declaration.
1390         * m4/isdir.m4: Remove file -- unneeded.
1391
1392 2009-12-25  Bruno Haible  <bruno@clisp.org>
1393
1394         selinux-h: Make generated .h files standalone.
1395         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
1396         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
1397         * lib/se-selinux.in.h: Likewise.
1398         * modules/selinux-h (Depends-on): Add unused-parameter.
1399         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
1400         selinux/selinux.h and selinux/context.h.
1401         Suggested by Eric Blake.
1402
1403 2009-12-25  Bruno Haible  <bruno@clisp.org>
1404
1405         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
1406         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
1407         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
1408         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
1409         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
1410
1411 2009-12-24  Bruno Haible  <bruno@clisp.org>
1412
1413         openat: Fix warning.
1414         * lib/openat-proc.c: Include <unistd.h>.
1415
1416 2009-12-24  Bruno Haible  <bruno@clisp.org>
1417
1418         New module 'unused-parameter'.
1419         * build-aux/unused-parameter.h: New file, extracted from earlier
1420         gnulib-common.m4.
1421         * modules/unused-parameter: New file.
1422         * lib/unistr.h: Include unused-parameter.h.
1423         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
1424         _GL_UNUSED.
1425         * modules/unistr/base (Depends-on): Add unused-parameter.
1426
1427 2009-12-24  Bruno Haible  <bruno@clisp.org>
1428
1429         Add missing dependencies to 'extensions' module.
1430         * m4/extensions.m4: Add comment.
1431         * modules/accept4 (Depends-on): Add extensions.
1432         * modules/dup3 (Depends-on): Likewise.
1433         * modules/fcntl (Depends-on): Likewise.
1434         * modules/futimens (Depends-on): Likewise.
1435         * modules/mknod (Depends-on): Likewise.
1436         * modules/pipe2 (Depends-on): Likewise.
1437         * modules/stat-time (Depends-on): Likewise.
1438         * modules/strcasestr-simple (Depends-on): Likewise.
1439         * modules/strsignal (Depends-on): Likewise.
1440         * modules/utimensat (Depends-on): Likewise.
1441         * modules/localcharset (Depends-on): Likewise. Needed because of
1442         gl_FCNTL_O_FLAGS.
1443         * modules/wcrtomb (Depends-on): Likewise. Needed because of
1444         AC_TYPE_MBSTATE_T.
1445         * modules/wcsnrtombs (Depends-on): Likewise.
1446         * modules/wcsrtombs (Depends-on): Likewise.
1447
1448 2009-12-24  Bruno Haible  <bruno@clisp.org>
1449
1450         binary-io: Avoid gcc warning due to SET_BINARY.
1451         * lib/binary-io.h (SET_BINARY): Cast the result to void.
1452         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
1453
1454 2009-12-24  Bruno Haible  <bruno@clisp.org>
1455
1456         Avoid future namespace pollution on glibc systems.
1457         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
1458         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
1459         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
1460         glibc systems.
1461
1462 2009-12-24  Bruno Haible  <bruno@clisp.org>
1463
1464         Refactor common macros used in tests.
1465         * tests/macros.h: New file.
1466         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
1467         and/or <stdlib.h>, if appropriate.
1468         (ASSERT, SIZEOF): Remove macros.
1469         * tests/test-areadlink-with-size.c: Likewise.
1470         * tests/test-areadlinkat.c: Likewise.
1471         * tests/test-areadlinkat-with-size.c: Likewise.
1472         * tests/test-argmatch.c: Likewise.
1473         * tests/test-argv-iter.c: Likewise.
1474         * tests/test-array-mergesort.c: Likewise.
1475         * tests/test-array_list.c: Likewise.
1476         * tests/test-array_oset.c: Likewise.
1477         * tests/test-avltree_list.c: Likewise.
1478         * tests/test-avltree_oset.c: Likewise.
1479         * tests/test-avltreehash_list.c: Likewise.
1480         * tests/test-base64.c: Likewise.
1481         * tests/test-binary-io.c: Likewise.
1482         * tests/test-bitrotate.c: Likewise.
1483         * tests/test-btowc.c: Likewise.
1484         * tests/test-byteswap.c: Likewise.
1485         * tests/test-c-ctype.c: Likewise.
1486         * tests/test-c-stack.c: Likewise.
1487         * tests/test-c-strcasecmp.c: Likewise.
1488         * tests/test-c-strcasestr.c: Likewise.
1489         * tests/test-c-strncasecmp.c: Likewise.
1490         * tests/test-c-strstr.c: Likewise.
1491         * tests/test-canonicalize-lgpl.c: Likewise.
1492         * tests/test-canonicalize.c: Likewise.
1493         * tests/test-carray_list.c: Likewise.
1494         * tests/test-ceilf1.c: Likewise.
1495         * tests/test-ceilf2.c: Likewise.
1496         * tests/test-ceill.c: Likewise.
1497         * tests/test-chown.c: Likewise.
1498         * tests/test-cloexec.c: Likewise.
1499         * tests/test-copy-acl.c: Likewise.
1500         * tests/test-copy-file.c: Likewise.
1501         * tests/test-count-one-bits.c: Likewise.
1502         * tests/test-dprintf-posix.c: Likewise.
1503         * tests/test-dup2.c: Likewise.
1504         * tests/test-dup3.c: Likewise.
1505         * tests/test-duplocale.c: Likewise.
1506         * tests/test-fbufmode.c: Likewise.
1507         * tests/test-fchdir.c: Likewise.
1508         * tests/test-fchownat.c: Likewise.
1509         * tests/test-fcntl-safer.c: Likewise.
1510         * tests/test-fcntl.c: Likewise.
1511         * tests/test-fdopendir.c: Likewise.
1512         * tests/test-fdutimensat.c: Likewise.
1513         * tests/test-fflush2.c: Likewise.
1514         * tests/test-file-has-acl.c: Likewise.
1515         * tests/test-filevercmp.c: Likewise.
1516         * tests/test-flock.c: Likewise.
1517         * tests/test-floorf1.c: Likewise.
1518         * tests/test-floorf2.c: Likewise.
1519         * tests/test-floorl.c: Likewise.
1520         * tests/test-fnmatch.c: Likewise.
1521         * tests/test-fopen.h: Likewise.
1522         * tests/test-fpending.c: Likewise.
1523         * tests/test-fprintf-posix.c: Likewise.
1524         * tests/test-fpurge.c: Likewise.
1525         * tests/test-freadable.c: Likewise.
1526         * tests/test-freadahead.c: Likewise.
1527         * tests/test-freading.c: Likewise.
1528         * tests/test-freadptr.c: Likewise.
1529         * tests/test-freadptr2.c: Likewise.
1530         * tests/test-freadseek.c: Likewise.
1531         * tests/test-freopen.c: Likewise.
1532         * tests/test-frexp.c: Likewise.
1533         * tests/test-frexpl.c: Likewise.
1534         * tests/test-fseek.c: Likewise.
1535         * tests/test-fseeko.c: Likewise.
1536         * tests/test-fstatat.c: Likewise.
1537         * tests/test-fstrcmp.c: Likewise.
1538         * tests/test-fsync.c: Likewise.
1539         * tests/test-ftell.c: Likewise.
1540         * tests/test-ftello.c: Likewise.
1541         * tests/test-func.c: Likewise.
1542         * tests/test-futimens.c: Likewise.
1543         * tests/test-fwritable.c: Likewise.
1544         * tests/test-fwriting.c: Likewise.
1545         * tests/test-getcwd.c: Likewise.
1546         * tests/test-getdate.c: Likewise.
1547         * tests/test-getdelim.c: Likewise.
1548         * tests/test-getdtablesize.c: Likewise.
1549         * tests/test-getgroups.c: Likewise.
1550         * tests/test-getline.c: Likewise.
1551         * tests/test-getndelim2.c: Likewise.
1552         * tests/test-glob.c: Likewise.
1553         * tests/test-hash.c: Likewise.
1554         * tests/test-i-ring.c: Likewise.
1555         * tests/test-iconv-utf.c: Likewise.
1556         * tests/test-iconv.c: Likewise.
1557         * tests/test-idpriv-drop.c: Likewise.
1558         * tests/test-idpriv-droptemp.c: Likewise.
1559         * tests/test-inet_ntop.c: Likewise.
1560         * tests/test-inet_pton.c: Likewise.
1561         * tests/test-isblank.c: Likewise.
1562         * tests/test-isfinite.c: Likewise.
1563         * tests/test-isinf.c: Likewise.
1564         * tests/test-isnan.c: Likewise.
1565         * tests/test-isnand.h: Likewise.
1566         * tests/test-isnanf.h: Likewise.
1567         * tests/test-isnanl.h: Likewise.
1568         * tests/test-lchown.c: Likewise.
1569         * tests/test-ldexpl.c: Likewise.
1570         * tests/test-link.c: Likewise.
1571         * tests/test-linkat.c: Likewise.
1572         * tests/test-linked_list.c: Likewise.
1573         * tests/test-linkedhash_list.c: Likewise.
1574         * tests/test-localename.c: Likewise.
1575         * tests/test-lseek.c: Likewise.
1576         * tests/test-lstat.c: Likewise.
1577         * tests/test-mbmemcasecmp.c: Likewise.
1578         * tests/test-mbmemcasecoll.c: Likewise.
1579         * tests/test-mbrtowc.c: Likewise.
1580         * tests/test-mbscasecmp.c: Likewise.
1581         * tests/test-mbscasestr1.c: Likewise.
1582         * tests/test-mbscasestr2.c: Likewise.
1583         * tests/test-mbscasestr3.c: Likewise.
1584         * tests/test-mbscasestr4.c: Likewise.
1585         * tests/test-mbschr.c: Likewise.
1586         * tests/test-mbscspn.c: Likewise.
1587         * tests/test-mbsinit.c: Likewise.
1588         * tests/test-mbsncasecmp.c: Likewise.
1589         * tests/test-mbsnrtowcs.c: Likewise.
1590         * tests/test-mbspbrk.c: Likewise.
1591         * tests/test-mbspcasecmp.c: Likewise.
1592         * tests/test-mbsrchr.c: Likewise.
1593         * tests/test-mbsrtowcs.c: Likewise.
1594         * tests/test-mbsspn.c: Likewise.
1595         * tests/test-mbsstr1.c: Likewise.
1596         * tests/test-mbsstr2.c: Likewise.
1597         * tests/test-mbsstr3.c: Likewise.
1598         * tests/test-memchr.c: Likewise.
1599         * tests/test-memchr2.c: Likewise.
1600         * tests/test-memcmp.c: Likewise.
1601         * tests/test-memmem.c: Likewise.
1602         * tests/test-memrchr.c: Likewise.
1603         * tests/test-mkdir.c: Likewise.
1604         * tests/test-mkdirat.c: Likewise.
1605         * tests/test-mkfifo.c: Likewise.
1606         * tests/test-mkfifoat.c: Likewise.
1607         * tests/test-mknod.c: Likewise.
1608         * tests/test-nanosleep.c: Likewise.
1609         * tests/test-nl_langinfo.c: Likewise.
1610         * tests/test-obstack-printf.c: Likewise.
1611         * tests/test-open.c: Likewise.
1612         * tests/test-openat.c: Likewise.
1613         * tests/test-pipe-filter-gi1.c: Likewise.
1614         * tests/test-pipe-filter-gi2-main.c: Likewise.
1615         * tests/test-pipe-filter-ii1.c: Likewise.
1616         * tests/test-pipe-filter-ii2-main.c: Likewise.
1617         * tests/test-pipe2.c: Likewise.
1618         * tests/test-popen.h: Likewise.
1619         * tests/test-posixtm.c: Likewise.
1620         * tests/test-pread.c: Likewise.
1621         * tests/test-printf-frexp.c: Likewise.
1622         * tests/test-printf-frexpl.c: Likewise.
1623         * tests/test-printf-posix.c: Likewise.
1624         * tests/test-priv-set.c: Likewise.
1625         * tests/test-quotearg.c: Likewise.
1626         * tests/test-random_r.c: Likewise.
1627         * tests/test-rawmemchr.c: Likewise.
1628         * tests/test-rbtree_list.c: Likewise.
1629         * tests/test-rbtree_oset.c: Likewise.
1630         * tests/test-rbtreehash_list.c: Likewise.
1631         * tests/test-readlink.c: Likewise.
1632         * tests/test-remove.c: Likewise.
1633         * tests/test-rename.c: Likewise.
1634         * tests/test-renameat.c: Likewise.
1635         * tests/test-rmdir.c: Likewise.
1636         * tests/test-round1.c: Likewise.
1637         * tests/test-roundf1.c: Likewise.
1638         * tests/test-roundl.c: Likewise.
1639         * tests/test-safe-alloc.c: Likewise.
1640         * tests/test-sameacls.c: Likewise.
1641         * tests/test-set-mode-acl.c: Likewise.
1642         * tests/test-setenv.c: Likewise.
1643         * tests/test-sigaction.c: Likewise.
1644         * tests/test-signbit.c: Likewise.
1645         * tests/test-sleep.c: Likewise.
1646         * tests/test-snprintf-posix.c: Likewise.
1647         * tests/test-snprintf.c: Likewise.
1648         * tests/test-sprintf-posix.c: Likewise.
1649         * tests/test-stat-time.c: Likewise.
1650         * tests/test-stat.c: Likewise.
1651         * tests/test-strcasestr.c: Likewise.
1652         * tests/test-strchrnul.c: Likewise.
1653         * tests/test-strerror.c: Likewise.
1654         * tests/test-striconv.c: Likewise.
1655         * tests/test-striconveh.c: Likewise.
1656         * tests/test-striconveha.c: Likewise.
1657         * tests/test-strsignal.c: Likewise.
1658         * tests/test-strstr.c: Likewise.
1659         * tests/test-strtod.c: Likewise.
1660         * tests/test-strverscmp.c: Likewise.
1661         * tests/test-symlink.c: Likewise.
1662         * tests/test-symlinkat.c: Likewise.
1663         * tests/test-trunc1.c: Likewise.
1664         * tests/test-trunc2.c: Likewise.
1665         * tests/test-truncf1.c: Likewise.
1666         * tests/test-truncf2.c: Likewise.
1667         * tests/test-truncl.c: Likewise.
1668         * tests/test-uname.c: Likewise.
1669         * tests/test-unlink.c: Likewise.
1670         * tests/test-unlinkat.c: Likewise.
1671         * tests/test-unsetenv.c: Likewise.
1672         * tests/test-usleep.c: Likewise.
1673         * tests/test-utimens.c: Likewise.
1674         * tests/test-utimensat.c: Likewise.
1675         * tests/test-vasnprintf-posix.c: Likewise.
1676         * tests/test-vasnprintf-posix2.c: Likewise.
1677         * tests/test-vasnprintf.c: Likewise.
1678         * tests/test-vasprintf-posix.c: Likewise.
1679         * tests/test-vasprintf.c: Likewise.
1680         * tests/test-vdprintf-posix.c: Likewise.
1681         * tests/test-vfprintf-posix.c: Likewise.
1682         * tests/test-vprintf-posix.c: Likewise.
1683         * tests/test-vsnprintf-posix.c: Likewise.
1684         * tests/test-vsnprintf.c: Likewise.
1685         * tests/test-vsprintf-posix.c: Likewise.
1686         * tests/test-wcrtomb.c: Likewise.
1687         * tests/test-wcsnrtombs.c: Likewise.
1688         * tests/test-wcsrtombs.c: Likewise.
1689         * tests/test-wctype.c: Likewise.
1690         * tests/test-wcwidth.c: Likewise.
1691         * tests/test-xfprintf-posix.c: Likewise.
1692         * tests/test-xmemdup0.c: Likewise.
1693         * tests/test-xprintf-posix.c: Likewise.
1694         * tests/test-xvasprintf.c: Likewise.
1695         * tests/unicase/test-locale-language.c: Likewise.
1696         * tests/unicase/test-mapping-part1.h: Likewise.
1697         * tests/unicase/test-predicate-part1.h: Likewise.
1698         * tests/unicase/test-u8-casecmp.c: Likewise.
1699         * tests/unicase/test-u8-casecoll.c: Likewise.
1700         * tests/unicase/test-u8-casefold.c: Likewise.
1701         * tests/unicase/test-u8-is-cased.c: Likewise.
1702         * tests/unicase/test-u8-is-casefolded.c: Likewise.
1703         * tests/unicase/test-u8-is-lowercase.c: Likewise.
1704         * tests/unicase/test-u8-is-titlecase.c: Likewise.
1705         * tests/unicase/test-u8-is-uppercase.c: Likewise.
1706         * tests/unicase/test-u8-tolower.c: Likewise.
1707         * tests/unicase/test-u8-totitle.c: Likewise.
1708         * tests/unicase/test-u8-toupper.c: Likewise.
1709         * tests/unicase/test-u16-casecmp.c: Likewise.
1710         * tests/unicase/test-u16-casecoll.c: Likewise.
1711         * tests/unicase/test-u16-casefold.c: Likewise.
1712         * tests/unicase/test-u16-is-cased.c: Likewise.
1713         * tests/unicase/test-u16-is-casefolded.c: Likewise.
1714         * tests/unicase/test-u16-is-lowercase.c: Likewise.
1715         * tests/unicase/test-u16-is-titlecase.c: Likewise.
1716         * tests/unicase/test-u16-is-uppercase.c: Likewise.
1717         * tests/unicase/test-u16-tolower.c: Likewise.
1718         * tests/unicase/test-u16-totitle.c: Likewise.
1719         * tests/unicase/test-u16-toupper.c: Likewise.
1720         * tests/unicase/test-u32-casecmp.c: Likewise.
1721         * tests/unicase/test-u32-casecoll.c: Likewise.
1722         * tests/unicase/test-u32-casefold.c: Likewise.
1723         * tests/unicase/test-u32-is-cased.c: Likewise.
1724         * tests/unicase/test-u32-is-casefolded.c: Likewise.
1725         * tests/unicase/test-u32-is-lowercase.c: Likewise.
1726         * tests/unicase/test-u32-is-titlecase.c: Likewise.
1727         * tests/unicase/test-u32-is-uppercase.c: Likewise.
1728         * tests/unicase/test-u32-tolower.c: Likewise.
1729         * tests/unicase/test-u32-totitle.c: Likewise.
1730         * tests/unicase/test-u32-toupper.c: Likewise.
1731         * tests/unicase/test-ulc-casecmp.c: Likewise.
1732         * tests/unicase/test-ulc-casecoll.c: Likewise.
1733         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1734         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
1735         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1736         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1737         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
1738         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
1739         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1740         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1741         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1742         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
1743         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1744         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1745         * tests/unictype/test-bidi_byname.c: Likewise.
1746         * tests/unictype/test-bidi_name.c: Likewise.
1747         * tests/unictype/test-bidi_of.c: Likewise.
1748         * tests/unictype/test-bidi_test.c: Likewise.
1749         * tests/unictype/test-block_list.c: Likewise.
1750         * tests/unictype/test-block_of.c: Likewise.
1751         * tests/unictype/test-block_test.c: Likewise.
1752         * tests/unictype/test-categ_and.c: Likewise.
1753         * tests/unictype/test-categ_and_not.c: Likewise.
1754         * tests/unictype/test-categ_byname.c: Likewise.
1755         * tests/unictype/test-categ_name.c: Likewise.
1756         * tests/unictype/test-categ_none.c: Likewise.
1757         * tests/unictype/test-categ_of.c: Likewise.
1758         * tests/unictype/test-categ_or.c: Likewise.
1759         * tests/unictype/test-categ_test_withtable.c: Likewise.
1760         * tests/unictype/test-combining.c: Likewise.
1761         * tests/unictype/test-decdigit.c: Likewise.
1762         * tests/unictype/test-digit.c: Likewise.
1763         * tests/unictype/test-mirror.c: Likewise.
1764         * tests/unictype/test-numeric.c: Likewise.
1765         * tests/unictype/test-pr_byname.c: Likewise.
1766         * tests/unictype/test-pr_test.c: Likewise.
1767         * tests/unictype/test-predicate-part1.h: Likewise.
1768         * tests/unictype/test-scripts.c: Likewise.
1769         * tests/unictype/test-sy_c_ident.c: Likewise.
1770         * tests/unictype/test-sy_java_ident.c: Likewise.
1771         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
1772         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
1773         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
1774         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
1775         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
1776         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
1777         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
1778         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
1779         * tests/uninorm/test-canonical-decomposition.c: Likewise.
1780         * tests/uninorm/test-compat-decomposition.c: Likewise.
1781         * tests/uninorm/test-composition.c: Likewise.
1782         * tests/uninorm/test-decomposing-form.c: Likewise.
1783         * tests/uninorm/test-decomposition.c: Likewise.
1784         * tests/uninorm/test-u8-nfc.c: Likewise.
1785         * tests/uninorm/test-u8-nfd.c: Likewise.
1786         * tests/uninorm/test-u8-nfkc.c: Likewise.
1787         * tests/uninorm/test-u8-nfkd.c: Likewise.
1788         * tests/uninorm/test-u8-normcmp.c: Likewise.
1789         * tests/uninorm/test-u8-normcoll.c: Likewise.
1790         * tests/uninorm/test-u16-nfc.c: Likewise.
1791         * tests/uninorm/test-u16-nfd.c: Likewise.
1792         * tests/uninorm/test-u16-nfkc.c: Likewise.
1793         * tests/uninorm/test-u16-nfkd.c: Likewise.
1794         * tests/uninorm/test-u16-normcmp.c: Likewise.
1795         * tests/uninorm/test-u16-normcoll.c: Likewise.
1796         * tests/uninorm/test-u32-nfc.c: Likewise.
1797         * tests/uninorm/test-u32-nfd.c: Likewise.
1798         * tests/uninorm/test-u32-nfkc.c: Likewise.
1799         * tests/uninorm/test-u32-nfkd.c: Likewise.
1800         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1801         * tests/uninorm/test-u32-normcmp.c: Likewise.
1802         * tests/uninorm/test-u32-normcoll.c: Likewise.
1803         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
1804         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
1805         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
1806         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
1807         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
1808         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
1809         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
1810         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
1811         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
1812         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
1813         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
1814         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
1815         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
1816         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
1817         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
1818         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
1819         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
1820         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
1821         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
1822         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
1823         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
1824         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
1825         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
1826         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
1827         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
1828         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
1829         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
1830         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
1831         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
1832         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
1833         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
1834         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
1835         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
1836         * tests/uniwidth/test-u8-strwidth.c: Likewise.
1837         * tests/uniwidth/test-u8-width.c: Likewise.
1838         * tests/uniwidth/test-u16-strwidth.c: Likewise.
1839         * tests/uniwidth/test-u16-width.c: Likewise.
1840         * tests/uniwidth/test-u32-strwidth.c: Likewise.
1841         * tests/uniwidth/test-u32-width.c: Likewise.
1842         * tests/uniwidth/test-uc_width.c: Likewise.
1843         * tests/uniwidth/test-uc_width2.c: Likewise.
1844         * modules/acl-tests (Files): Add tests/macros.h.
1845         * modules/areadlink-tests (Files): Likewise.
1846         * modules/areadlink-with-size-tests (Files): Likewise.
1847         * modules/areadlinkat-tests (Files): Likewise.
1848         * modules/areadlinkat-with-size-tests (Files): Likewise.
1849         * modules/argmatch-tests (Files): Likewise.
1850         * modules/argv-iter-tests (Files): Likewise.
1851         * modules/array-list-tests (Files): Likewise.
1852         * modules/array-mergesort-tests (Files): Likewise.
1853         * modules/array-oset-tests (Files): Likewise.
1854         * modules/avltree-list-tests (Files): Likewise.
1855         * modules/avltree-oset-tests (Files): Likewise.
1856         * modules/avltreehash-list-tests (Files): Likewise.
1857         * modules/base64-tests (Files): Likewise.
1858         * modules/binary-io-tests (Files): Likewise.
1859         * modules/bitrotate-tests (Files): Likewise.
1860         * modules/btowc-tests (Files): Likewise.
1861         * modules/byteswap-tests (Files): Likewise.
1862         * modules/c-ctype-tests (Files): Likewise.
1863         * modules/c-stack-tests (Files): Likewise.
1864         * modules/c-strcase-tests (Files): Likewise.
1865         * modules/c-strcasestr-tests (Files): Likewise.
1866         * modules/c-strstr-tests (Files): Likewise.
1867         * modules/canonicalize-lgpl-tests (Files): Likewise.
1868         * modules/canonicalize-tests (Files): Likewise.
1869         * modules/carray-list-tests (Files): Likewise.
1870         * modules/ceilf-tests (Files): Likewise.
1871         * modules/ceill-tests (Files): Likewise.
1872         * modules/chown-tests (Files): Likewise.
1873         * modules/cloexec-tests (Files): Likewise.
1874         * modules/copy-file-tests (Files): Likewise.
1875         * modules/count-one-bits-tests (Files): Likewise.
1876         * modules/dprintf-posix-tests (Files): Likewise.
1877         * modules/dup2-tests (Files): Likewise.
1878         * modules/dup3-tests (Files): Likewise.
1879         * modules/duplocale-tests (Files): Likewise.
1880         * modules/fbufmode-tests (Files): Likewise.
1881         * modules/fchdir-tests (Files): Likewise.
1882         * modules/fcntl-safer-tests (Files): Likewise.
1883         * modules/fcntl-tests (Files): Likewise.
1884         * modules/fdopendir-tests (Files): Likewise.
1885         * modules/fdutimensat-tests (Files): Likewise.
1886         * modules/fflush-tests (Files): Likewise.
1887         * modules/filevercmp-tests (Files): Likewise.
1888         * modules/flock-tests (Files): Likewise.
1889         * modules/floorf-tests (Files): Likewise.
1890         * modules/floorl-tests (Files): Likewise.
1891         * modules/fnmatch-tests (Files): Likewise.
1892         * modules/fopen-safer-tests (Files): Likewise.
1893         * modules/fopen-tests (Files): Likewise.
1894         * modules/fpending-tests (Files): Likewise.
1895         * modules/fprintf-posix-tests (Files): Likewise.
1896         * modules/fpurge-tests (Files): Likewise.
1897         * modules/freadable-tests (Files): Likewise.
1898         * modules/freadahead-tests (Files): Likewise.
1899         * modules/freading-tests (Files): Likewise.
1900         * modules/freadptr-tests (Files): Likewise.
1901         * modules/freadseek-tests (Files): Likewise.
1902         * modules/freopen-tests (Files): Likewise.
1903         * modules/frexp-nolibm-tests (Files): Likewise.
1904         * modules/frexp-tests (Files): Likewise.
1905         * modules/frexpl-nolibm-tests (Files): Likewise.
1906         * modules/frexpl-tests (Files): Likewise.
1907         * modules/fseek-tests (Files): Likewise.
1908         * modules/fseeko-tests (Files): Likewise.
1909         * modules/fstrcmp-tests (Files): Likewise.
1910         * modules/fsync-tests (Files): Likewise.
1911         * modules/ftell-tests (Files): Likewise.
1912         * modules/ftello-tests (Files): Likewise.
1913         * modules/func-tests (Files): Likewise.
1914         * modules/futimens-tests (Files): Likewise.
1915         * modules/fwritable-tests (Files): Likewise.
1916         * modules/fwriting-tests (Files): Likewise.
1917         * modules/getcwd-tests (Files): Likewise.
1918         * modules/getdate-tests (Files): Likewise.
1919         * modules/getdelim-tests (Files): Likewise.
1920         * modules/getdtablesize-tests (Files): Likewise.
1921         * modules/getgroups-tests (Files): Likewise.
1922         * modules/getline-tests (Files): Likewise.
1923         * modules/getndelim2-tests (Files): Likewise.
1924         * modules/glob-tests (Files): Likewise.
1925         * modules/hash-tests (Files): Likewise.
1926         * modules/i-ring-tests (Files): Likewise.
1927         * modules/iconv-tests (Files): Likewise.
1928         * modules/iconv_open-utf-tests (Files): Likewise.
1929         * modules/idpriv-drop-tests (Files): Likewise.
1930         * modules/idpriv-droptemp-tests (Files): Likewise.
1931         * modules/inet_ntop-tests (Files): Likewise.
1932         * modules/inet_pton-tests (Files): Likewise.
1933         * modules/isblank-tests (Files): Likewise.
1934         * modules/isfinite-tests (Files): Likewise.
1935         * modules/isinf-tests (Files): Likewise.
1936         * modules/isnan-tests (Files): Likewise.
1937         * modules/isnand-nolibm-tests (Files): Likewise.
1938         * modules/isnand-tests (Files): Likewise.
1939         * modules/isnanf-nolibm-tests (Files): Likewise.
1940         * modules/isnanf-tests (Files): Likewise.
1941         * modules/isnanl-nolibm-tests (Files): Likewise.
1942         * modules/isnanl-tests (Files): Likewise.
1943         * modules/lchown-tests (Files): Likewise.
1944         * modules/ldexpl-tests (Files): Likewise.
1945         * modules/link-tests (Files): Likewise.
1946         * modules/linkat-tests (Files): Likewise.
1947         * modules/linked-list-tests (Files): Likewise.
1948         * modules/linkedhash-list-tests (Files): Likewise.
1949         * modules/localename-tests (Files): Likewise.
1950         * modules/lseek-tests (Files): Likewise.
1951         * modules/lstat-tests (Files): Likewise.
1952         * modules/mbmemcasecmp-tests (Files): Likewise.
1953         * modules/mbmemcasecoll-tests (Files): Likewise.
1954         * modules/mbrtowc-tests (Files): Likewise.
1955         * modules/mbscasecmp-tests (Files): Likewise.
1956         * modules/mbscasestr-tests (Files): Likewise.
1957         * modules/mbschr-tests (Files): Likewise.
1958         * modules/mbscspn-tests (Files): Likewise.
1959         * modules/mbsinit-tests (Files): Likewise.
1960         * modules/mbsncasecmp-tests (Files): Likewise.
1961         * modules/mbsnrtowcs-tests (Files): Likewise.
1962         * modules/mbspbrk-tests (Files): Likewise.
1963         * modules/mbspcasecmp-tests (Files): Likewise.
1964         * modules/mbsrchr-tests (Files): Likewise.
1965         * modules/mbsrtowcs-tests (Files): Likewise.
1966         * modules/mbsspn-tests (Files): Likewise.
1967         * modules/mbsstr-tests (Files): Likewise.
1968         * modules/memchr-tests (Files): Likewise.
1969         * modules/memchr2-tests (Files): Likewise.
1970         * modules/memcmp-tests (Files): Likewise.
1971         * modules/memmem-tests (Files): Likewise.
1972         * modules/memrchr-tests (Files): Likewise.
1973         * modules/mkdir-tests (Files): Likewise.
1974         * modules/mkfifo-tests (Files): Likewise.
1975         * modules/mkfifoat-tests (Files): Likewise.
1976         * modules/mknod-tests (Files): Likewise.
1977         * modules/nanosleep-tests (Files): Likewise.
1978         * modules/nl_langinfo-tests (Files): Likewise.
1979         * modules/obstack-printf-tests (Files): Likewise.
1980         * modules/open-tests (Files): Likewise.
1981         * modules/openat-tests (Files): Likewise.
1982         * modules/pipe-filter-gi-tests (Files): Likewise.
1983         * modules/pipe-filter-ii-tests (Files): Likewise.
1984         * modules/pipe2-tests (Files): Likewise.
1985         * modules/popen-safer-tests (Files): Likewise.
1986         * modules/popen-tests (Files): Likewise.
1987         * modules/posixtm-tests (Files): Likewise.
1988         * modules/pread-tests (Files): Likewise.
1989         * modules/printf-frexp-tests (Files): Likewise.
1990         * modules/printf-frexpl-tests (Files): Likewise.
1991         * modules/printf-posix-tests (Files): Likewise.
1992         * modules/priv-set-tests (Files): Likewise.
1993         * modules/quotearg-tests (Files): Likewise.
1994         * modules/random_r-tests (Files): Likewise.
1995         * modules/rawmemchr-tests (Files): Likewise.
1996         * modules/rbtree-list-tests (Files): Likewise.
1997         * modules/rbtree-oset-tests (Files): Likewise.
1998         * modules/rbtreehash-list-tests (Files): Likewise.
1999         * modules/readlink-tests (Files): Likewise.
2000         * modules/remove-tests (Files): Likewise.
2001         * modules/rename-tests (Files): Likewise.
2002         * modules/renameat-tests (Files): Likewise.
2003         * modules/rmdir-tests (Files): Likewise.
2004         * modules/round-tests (Files): Likewise.
2005         * modules/roundf-tests (Files): Likewise.
2006         * modules/roundl-tests (Files): Likewise.
2007         * modules/safe-alloc-tests (Files): Likewise.
2008         * modules/setenv-tests (Files): Likewise.
2009         * modules/sigaction-tests (Files): Likewise.
2010         * modules/signbit-tests (Files): Likewise.
2011         * modules/sleep-tests (Files): Likewise.
2012         * modules/snprintf-posix-tests (Files): Likewise.
2013         * modules/snprintf-tests (Files): Likewise.
2014         * modules/sprintf-posix-tests (Files): Likewise.
2015         * modules/stat-tests (Files): Likewise.
2016         * modules/stat-time-tests (Files): Likewise.
2017         * modules/strcasestr-tests (Files): Likewise.
2018         * modules/strchrnul-tests (Files): Likewise.
2019         * modules/strerror-tests (Files): Likewise.
2020         * modules/striconv-tests (Files): Likewise.
2021         * modules/striconveh-tests (Files): Likewise.
2022         * modules/striconveha-tests (Files): Likewise.
2023         * modules/strsignal-tests (Files): Likewise.
2024         * modules/strstr-tests (Files): Likewise.
2025         * modules/strtod-tests (Files): Likewise.
2026         * modules/strverscmp-tests (Files): Likewise.
2027         * modules/symlink-tests (Files): Likewise.
2028         * modules/symlinkat-tests (Files): Likewise.
2029         * modules/trunc-tests (Files): Likewise.
2030         * modules/truncf-tests (Files): Likewise.
2031         * modules/truncl-tests (Files): Likewise.
2032         * modules/uname-tests (Files): Likewise.
2033         * modules/unicase/cased-tests (Files): Likewise.
2034         * modules/unicase/ignorable-tests (Files): Likewise.
2035         * modules/unicase/locale-language-tests (Files): Likewise.
2036         * modules/unicase/tolower-tests (Files): Likewise.
2037         * modules/unicase/totitle-tests (Files): Likewise.
2038         * modules/unicase/toupper-tests (Files): Likewise.
2039         * modules/unicase/u8-casecmp-tests (Files): Likewise.
2040         * modules/unicase/u8-casecoll-tests (Files): Likewise.
2041         * modules/unicase/u8-casefold-tests (Files): Likewise.
2042         * modules/unicase/u8-is-cased-tests (Files): Likewise.
2043         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
2044         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
2045         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
2046         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
2047         * modules/unicase/u8-tolower-tests (Files): Likewise.
2048         * modules/unicase/u8-totitle-tests (Files): Likewise.
2049         * modules/unicase/u8-toupper-tests (Files): Likewise.
2050         * modules/unicase/u16-casecmp-tests (Files): Likewise.
2051         * modules/unicase/u16-casecoll-tests (Files): Likewise.
2052         * modules/unicase/u16-casefold-tests (Files): Likewise.
2053         * modules/unicase/u16-is-cased-tests (Files): Likewise.
2054         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
2055         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
2056         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
2057         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
2058         * modules/unicase/u16-tolower-tests (Files): Likewise.
2059         * modules/unicase/u16-totitle-tests (Files): Likewise.
2060         * modules/unicase/u16-toupper-tests (Files): Likewise.
2061         * modules/unicase/u32-casecmp-tests (Files): Likewise.
2062         * modules/unicase/u32-casecoll-tests (Files): Likewise.
2063         * modules/unicase/u32-casefold-tests (Files): Likewise.
2064         * modules/unicase/u32-is-cased-tests (Files): Likewise.
2065         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
2066         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
2067         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
2068         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
2069         * modules/unicase/u32-tolower-tests (Files): Likewise.
2070         * modules/unicase/u32-totitle-tests (Files): Likewise.
2071         * modules/unicase/u32-toupper-tests (Files): Likewise.
2072         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
2073         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
2074         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
2075         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
2076         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
2077         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
2078         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
2079         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
2080         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
2081         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
2082         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
2083         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
2084         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
2085         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
2086         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
2087         * modules/unictype/bidicategory-name-tests (Files): Likewise.
2088         * modules/unictype/bidicategory-of-tests (Files): Likewise.
2089         * modules/unictype/bidicategory-test-tests (Files): Likewise.
2090         * modules/unictype/block-list-tests (Files): Likewise.
2091         * modules/unictype/block-of-tests (Files): Likewise.
2092         * modules/unictype/block-test-tests (Files): Likewise.
2093         * modules/unictype/category-C-tests (Files): Likewise.
2094         * modules/unictype/category-Cc-tests (Files): Likewise.
2095         * modules/unictype/category-Cf-tests (Files): Likewise.
2096         * modules/unictype/category-Cn-tests (Files): Likewise.
2097         * modules/unictype/category-Co-tests (Files): Likewise.
2098         * modules/unictype/category-Cs-tests (Files): Likewise.
2099         * modules/unictype/category-L-tests (Files): Likewise.
2100         * modules/unictype/category-Ll-tests (Files): Likewise.
2101         * modules/unictype/category-Lm-tests (Files): Likewise.
2102         * modules/unictype/category-Lo-tests (Files): Likewise.
2103         * modules/unictype/category-Lt-tests (Files): Likewise.
2104         * modules/unictype/category-Lu-tests (Files): Likewise.
2105         * modules/unictype/category-M-tests (Files): Likewise.
2106         * modules/unictype/category-Mc-tests (Files): Likewise.
2107         * modules/unictype/category-Me-tests (Files): Likewise.
2108         * modules/unictype/category-Mn-tests (Files): Likewise.
2109         * modules/unictype/category-N-tests (Files): Likewise.
2110         * modules/unictype/category-Nd-tests (Files): Likewise.
2111         * modules/unictype/category-Nl-tests (Files): Likewise.
2112         * modules/unictype/category-No-tests (Files): Likewise.
2113         * modules/unictype/category-P-tests (Files): Likewise.
2114         * modules/unictype/category-Pc-tests (Files): Likewise.
2115         * modules/unictype/category-Pd-tests (Files): Likewise.
2116         * modules/unictype/category-Pe-tests (Files): Likewise.
2117         * modules/unictype/category-Pf-tests (Files): Likewise.
2118         * modules/unictype/category-Pi-tests (Files): Likewise.
2119         * modules/unictype/category-Po-tests (Files): Likewise.
2120         * modules/unictype/category-Ps-tests (Files): Likewise.
2121         * modules/unictype/category-S-tests (Files): Likewise.
2122         * modules/unictype/category-Sc-tests (Files): Likewise.
2123         * modules/unictype/category-Sk-tests (Files): Likewise.
2124         * modules/unictype/category-Sm-tests (Files): Likewise.
2125         * modules/unictype/category-So-tests (Files): Likewise.
2126         * modules/unictype/category-Z-tests (Files): Likewise.
2127         * modules/unictype/category-Zl-tests (Files): Likewise.
2128         * modules/unictype/category-Zp-tests (Files): Likewise.
2129         * modules/unictype/category-Zs-tests (Files): Likewise.
2130         * modules/unictype/category-and-not-tests (Files): Likewise.
2131         * modules/unictype/category-and-tests (Files): Likewise.
2132         * modules/unictype/category-byname-tests (Files): Likewise.
2133         * modules/unictype/category-name-tests (Files): Likewise.
2134         * modules/unictype/category-none-tests (Files): Likewise.
2135         * modules/unictype/category-of-tests (Files): Likewise.
2136         * modules/unictype/category-or-tests (Files): Likewise.
2137         * modules/unictype/category-test-withtable-tests (Files): Likewise.
2138         * modules/unictype/combining-class-tests (Files): Likewise.
2139         * modules/unictype/ctype-alnum-tests (Files): Likewise.
2140         * modules/unictype/ctype-alpha-tests (Files): Likewise.
2141         * modules/unictype/ctype-blank-tests (Files): Likewise.
2142         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
2143         * modules/unictype/ctype-digit-tests (Files): Likewise.
2144         * modules/unictype/ctype-graph-tests (Files): Likewise.
2145         * modules/unictype/ctype-lower-tests (Files): Likewise.
2146         * modules/unictype/ctype-print-tests (Files): Likewise.
2147         * modules/unictype/ctype-punct-tests (Files): Likewise.
2148         * modules/unictype/ctype-space-tests (Files): Likewise.
2149         * modules/unictype/ctype-upper-tests (Files): Likewise.
2150         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
2151         * modules/unictype/decimal-digit-tests (Files): Likewise.
2152         * modules/unictype/digit-tests (Files): Likewise.
2153         * modules/unictype/mirror-tests (Files): Likewise.
2154         * modules/unictype/numeric-tests (Files): Likewise.
2155         * modules/unictype/property-alphabetic-tests (Files): Likewise.
2156         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
2157         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
2158         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
2159         Likewise.
2160         * modules/unictype/property-bidi-block-separator-tests (Files):
2161         Likewise.
2162         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
2163         Likewise.
2164         * modules/unictype/property-bidi-common-separator-tests (Files):
2165         Likewise.
2166         * modules/unictype/property-bidi-control-tests (Files): Likewise.
2167         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
2168         Likewise.
2169         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
2170         Likewise.
2171         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
2172         Likewise.
2173         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
2174         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
2175         Likewise.
2176         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
2177         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
2178         Likewise.
2179         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
2180         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
2181         * modules/unictype/property-bidi-segment-separator-tests (Files):
2182         Likewise.
2183         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
2184         * modules/unictype/property-byname-tests (Files): Likewise.
2185         * modules/unictype/property-combining-tests (Files): Likewise.
2186         * modules/unictype/property-composite-tests (Files): Likewise.
2187         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
2188         * modules/unictype/property-dash-tests (Files): Likewise.
2189         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
2190         * modules/unictype/property-default-ignorable-code-point-tests (Files):
2191         Likewise.
2192         * modules/unictype/property-deprecated-tests (Files): Likewise.
2193         * modules/unictype/property-diacritic-tests (Files): Likewise.
2194         * modules/unictype/property-extender-tests (Files): Likewise.
2195         * modules/unictype/property-format-control-tests (Files): Likewise.
2196         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
2197         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
2198         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
2199         * modules/unictype/property-hex-digit-tests (Files): Likewise.
2200         * modules/unictype/property-hyphen-tests (Files): Likewise.
2201         * modules/unictype/property-id-continue-tests (Files): Likewise.
2202         * modules/unictype/property-id-start-tests (Files): Likewise.
2203         * modules/unictype/property-ideographic-tests (Files): Likewise.
2204         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
2205         * modules/unictype/property-ids-trinary-operator-tests (Files):
2206         Likewise.
2207         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
2208         * modules/unictype/property-iso-control-tests (Files): Likewise.
2209         * modules/unictype/property-join-control-tests (Files): Likewise.
2210         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
2211         * modules/unictype/property-line-separator-tests (Files): Likewise.
2212         * modules/unictype/property-logical-order-exception-tests (Files):
2213         Likewise.
2214         * modules/unictype/property-lowercase-tests (Files): Likewise.
2215         * modules/unictype/property-math-tests (Files): Likewise.
2216         * modules/unictype/property-non-break-tests (Files): Likewise.
2217         * modules/unictype/property-not-a-character-tests (Files): Likewise.
2218         * modules/unictype/property-numeric-tests (Files): Likewise.
2219         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
2220         * modules/unictype/property-other-default-ignorable-code-point-tests
2221         (Files): Likewise.
2222         * modules/unictype/property-other-grapheme-extend-tests (Files):
2223         Likewise.
2224         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
2225         * modules/unictype/property-other-id-start-tests (Files): Likewise.
2226         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
2227         * modules/unictype/property-other-math-tests (Files): Likewise.
2228         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
2229         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
2230         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
2231         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
2232         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
2233         * modules/unictype/property-private-use-tests (Files): Likewise.
2234         * modules/unictype/property-punctuation-tests (Files): Likewise.
2235         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
2236         * modules/unictype/property-radical-tests (Files): Likewise.
2237         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
2238         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
2239         * modules/unictype/property-space-tests (Files): Likewise.
2240         * modules/unictype/property-terminal-punctuation-tests (Files):
2241         Likewise.
2242         * modules/unictype/property-test-tests (Files): Likewise.
2243         * modules/unictype/property-titlecase-tests (Files): Likewise.
2244         * modules/unictype/property-unassigned-code-value-tests (Files):
2245         Likewise.
2246         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
2247         * modules/unictype/property-uppercase-tests (Files): Likewise.
2248         * modules/unictype/property-variation-selector-tests (Files): Likewise.
2249         * modules/unictype/property-white-space-tests (Files): Likewise.
2250         * modules/unictype/property-xid-continue-tests (Files): Likewise.
2251         * modules/unictype/property-xid-start-tests (Files): Likewise.
2252         * modules/unictype/property-zero-width-tests (Files): Likewise.
2253         * modules/unictype/scripts-tests (Files): Likewise.
2254         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
2255         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
2256         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
2257         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
2258         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
2259         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
2260         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
2261         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
2262         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
2263         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
2264         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
2265         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
2266         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
2267         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
2268         * modules/uninorm/composition-tests (Files): Likewise.
2269         * modules/uninorm/decomposing-form-tests (Files): Likewise.
2270         * modules/uninorm/decomposition-tests (Files): Likewise.
2271         * modules/uninorm/filter-tests (Files): Likewise.
2272         * modules/uninorm/nfc-tests (Files): Likewise.
2273         * modules/uninorm/nfd-tests (Files): Likewise.
2274         * modules/uninorm/nfkc-tests (Files): Likewise.
2275         * modules/uninorm/nfkd-tests (Files): Likewise.
2276         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
2277         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
2278         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
2279         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
2280         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
2281         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
2282         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
2283         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
2284         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
2285         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
2286         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
2287         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
2288         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
2289         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
2290         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
2291         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
2292         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
2293         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
2294         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
2295         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
2296         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
2297         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
2298         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
2299         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
2300         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
2301         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
2302         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
2303         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
2304         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
2305         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
2306         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
2307         * modules/uniwidth/u8-width-tests (Files): Likewise.
2308         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
2309         * modules/uniwidth/u16-width-tests (Files): Likewise.
2310         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
2311         * modules/uniwidth/u32-width-tests (Files): Likewise.
2312         * modules/uniwidth/width-tests (Files): Likewise.
2313         * modules/unlink-tests (Files): Likewise.
2314         * modules/unsetenv-tests (Files): Likewise.
2315         * modules/usleep-tests (Files): Likewise.
2316         * modules/utimens-tests (Files): Likewise.
2317         * modules/utimensat-tests (Files): Likewise.
2318         * modules/vasnprintf-posix-tests (Files): Likewise.
2319         * modules/vasnprintf-tests (Files): Likewise.
2320         * modules/vasprintf-posix-tests (Files): Likewise.
2321         * modules/vasprintf-tests (Files): Likewise.
2322         * modules/vdprintf-posix-tests (Files): Likewise.
2323         * modules/vfprintf-posix-tests (Files): Likewise.
2324         * modules/vprintf-posix-tests (Files): Likewise.
2325         * modules/vsnprintf-posix-tests (Files): Likewise.
2326         * modules/vsnprintf-tests (Files): Likewise.
2327         * modules/vsprintf-posix-tests (Files): Likewise.
2328         * modules/wcrtomb-tests (Files): Likewise.
2329         * modules/wcsnrtombs-tests (Files): Likewise.
2330         * modules/wcsrtombs-tests (Files): Likewise.
2331         * modules/wctype-tests (Files): Likewise.
2332         * modules/wcwidth-tests (Files): Likewise.
2333         * modules/xmemdup0-tests (Files): Likewise.
2334         * modules/xprintf-posix-tests (Files): Likewise.
2335         * modules/xvasprintf-tests (Files): Likewise.
2336
2337 2009-12-24  Eric Blake  <ebb9@byu.net>
2338
2339         test-nanosleep: fix typo
2340         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
2341         patch.
2342         Reported by Bruno Haible.
2343
2344 2009-12-24  Bruno Haible  <bruno@clisp.org>
2345
2346         Reduce namespace pollution on glibc systems.
2347         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
2348         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
2349         systems.
2350         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
2351         <getopt.h> on glibc systems.
2352         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
2353         systems.
2354         * lib/fcntl.c: Include <unistd.h> here instead.
2355
2356 2009-12-24  Bruno Haible  <bruno@clisp.org>
2357
2358         * lib/stdlib.in.h (includes): Fix typo in today's commit.
2359
2360 2009-12-24  Eric Blake  <ebb9@byu.net>
2361
2362         tests: add signature checks
2363         * tests/signature.h (SIGNATURE_CHECK): New file.
2364         * modules/atexit-tests (Files): Use it.
2365         * modules/btowc-tests (Files): Likewise.
2366         * modules/canonicalize-lgpl-tests (Files): Likewise.
2367         * modules/ceilf-tests (Files): Likewise.
2368         * modules/ceill-tests (Files): Likewise.
2369         * modules/chown-tests (Files): Likewise.
2370         * modules/dprintf-posix-tests (Files): Likewise.
2371         * modules/dup2-tests (Files): Likewise.
2372         * modules/dup3-tests (Files): Likewise.
2373         * modules/duplocale-tests (Files): Likewise.
2374         * modules/fchdir-tests (Files): Likewise.
2375         * modules/fcntl-tests (Files): Likewise.
2376         * modules/fdopendir-tests (Files): Likewise.
2377         * modules/fflush-tests (Files): Likewise.
2378         * modules/flock-tests (Files): Likewise.
2379         * modules/floorf-tests (Files): Likewise.
2380         * modules/floorl-tests (Files): Likewise.
2381         * modules/fnmatch-tests (Files): Likewise.
2382         * modules/fopen-tests (Files): Likewise.
2383         * modules/fprintf-posix-tests (Files): Likewise.
2384         * modules/freopen-tests (Files): Likewise.
2385         * modules/frexp-nolibm-tests (Files): Likewise.
2386         * modules/frexp-tests (Files): Likewise.
2387         * modules/frexpl-nolibm-tests (Files): Likewise.
2388         * modules/frexpl-tests (Files): Likewise.
2389         * modules/fseek-tests (Files): Likewise.
2390         * modules/fseeko-tests (Files): Likewise.
2391         * modules/fsync-tests (Files): Likewise.
2392         * modules/ftell-tests (Files): Likewise.
2393         * modules/ftello-tests (Files): Likewise.
2394         * modules/futimens-tests (Files): Likewise.
2395         * modules/getaddrinfo-tests (Files): Likewise.
2396         * modules/getcwd-tests (Files): Likewise.
2397         * modules/getdelim-tests (Files): Likewise.
2398         * modules/getdtablesize-tests (Files): Likewise.
2399         * modules/getgroups-tests (Files): Likewise.
2400         * modules/gethostname-tests (Files): Likewise.
2401         * modules/getline-tests (Files): Likewise.
2402         * modules/getopt-posix-tests (Files): Likewise.
2403         * modules/gettimeofday-tests (Files): Likewise.
2404         * modules/glob-tests (Files): Likewise.
2405         * modules/iconv-tests (Files): Likewise.
2406         * modules/inet_ntop-tests (Files): Likewise.
2407         * modules/inet_pton-tests (Files): Likewise.
2408         * modules/isblank-tests (Files): Likewise.
2409         * modules/lchown-tests (Files): Likewise.
2410         * modules/ldexpl-tests (Files): Likewise.
2411         * modules/link-tests (Files): Likewise.
2412         * modules/linkat-tests (Files): Likewise.
2413         * modules/lseek-tests (Files): Likewise.
2414         * modules/lstat-tests (Files): Likewise.
2415         * modules/mbrtowc-tests (Files): Likewise.
2416         * modules/mbsinit-tests (Files): Likewise.
2417         * modules/mbsnrtowcs-tests (Files): Likewise.
2418         * modules/mbsrtowcs-tests (Files): Likewise.
2419         * modules/memchr-tests (Files): Likewise.
2420         * modules/memcmp-tests (Files): Likewise.
2421         * modules/memmem-tests (Files): Likewise.
2422         * modules/memrchr-tests (Files): Likewise.
2423         * modules/mkdir-tests (Files): Likewise.
2424         * modules/mkfifo-tests (Files): Likewise.
2425         * modules/mkfifoat-tests (Files): Likewise.
2426         * modules/mknod-tests (Files): Likewise.
2427         * modules/nanosleep-tests (Files): Likewise.
2428         * modules/nl_langinfo-tests (Files): Likewise.
2429         * modules/obstack-printf-tests (Files): Likewise.
2430         * modules/open-tests (Files): Likewise.
2431         * modules/openat-tests (Files): Likewise.
2432         * modules/perror-tests (Files): Likewise.
2433         * modules/pipe2-tests (Files): Likewise.
2434         * modules/poll-tests (Files): Likewise.
2435         * modules/popen-tests (Files): Likewise.
2436         * modules/posix_spawn-tests (Files): Likewise.
2437         * modules/posix_spawnp-tests (Files): Likewise.
2438         * modules/pread-tests (Files): Likewise.
2439         * modules/printf-posix-tests (Files): Likewise.
2440         * modules/pty-tests (Files): Likewise.
2441         * modules/random_r-tests (Files): Likewise.
2442         * modules/rawmemchr-tests (Files): Likewise.
2443         * modules/readlink-tests (Files): Likewise.
2444         * modules/remove-tests (Files): Likewise.
2445         * modules/rename-tests (Files): Likewise.
2446         * modules/renameat-tests (Files): Likewise.
2447         * modules/rmdir-tests (Files): Likewise.
2448         * modules/round-tests (Files): Likewise.
2449         * modules/roundf-tests (Files): Likewise.
2450         * modules/roundl-tests (Files): Likewise.
2451         * modules/select-tests (Files): Likewise.
2452         * modules/setenv-tests (Files): Likewise.
2453         * modules/sigaction-tests (Files): Likewise.
2454         * modules/sleep-tests (Files): Likewise.
2455         * modules/snprintf-posix-tests (Files): Likewise.
2456         * modules/snprintf-tests (Files): Likewise.
2457         * modules/sprintf-posix-tests (Files): Likewise.
2458         * modules/stat-tests (Files): Likewise.
2459         * modules/strcasestr-tests (Files): Likewise.
2460         * modules/strchrnul-tests (Files): Likewise.
2461         * modules/strerror-tests (Files): Likewise.
2462         * modules/strsignal-tests (Files): Likewise.
2463         * modules/strstr-tests (Files): Likewise.
2464         * modules/strtod-tests (Files): Likewise.
2465         * modules/strverscmp-tests (Files): Likewise.
2466         * modules/symlink-tests (Files): Likewise.
2467         * modules/symlinkat-tests (Files): Likewise.
2468         * modules/times-tests (Files): Likewise.
2469         * modules/trunc-tests (Files): Likewise.
2470         * modules/truncf-tests (Files): Likewise.
2471         * modules/truncl-tests (Files): Likewise.
2472         * modules/tsearch-tests (Files): Likewise.
2473         * modules/uname-tests (Files): Likewise.
2474         * modules/unlink-tests (Files): Likewise.
2475         * modules/unsetenv-tests (Files): Likewise.
2476         * modules/usleep-tests (Files): Likewise.
2477         * modules/utimensat-tests (Files): Likewise.
2478         * modules/vasprintf-tests (Files): Likewise.
2479         * modules/vdprintf-posix-tests (Files): Likewise.
2480         * modules/vfprintf-posix-tests (Files): Likewise.
2481         * modules/vprintf-posix-tests (Files): Likewise.
2482         * modules/vsnprintf-posix-tests (Files): Likewise.
2483         * modules/vsnprintf-tests (Files): Likewise.
2484         * modules/vsprintf-posix-tests (Files): Likewise.
2485         * modules/wcrtomb-tests (Files): Likewise.
2486         * modules/wcsnrtombs-tests (Files): Likewise.
2487         * modules/wcsrtombs-tests (Files): Likewise.
2488         * modules/wcwidth-tests (Files): Likewise.
2489         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
2490         * tests/test-isinf.c (isinf): Likewise.
2491         * tests/test-isnan.c (isnan): Likewise.
2492         * tests/test-signbit.c (signbit): Likewise.
2493         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
2494         declaration, either as macro or with correct signature.
2495         (select): Ensure function under test is declared with correct
2496         signature in correct header.
2497         * tests/test-atexit.c (atexit): Likewise.
2498         * tests/test-btowc.c (btowc): Likewise.
2499         * tests/test-canonicalize-lgpl.c (realpath)
2500         (canonicalize_file_name): Likewise.
2501         * tests/test-ceilf1.c (ceilf): Likewise.
2502         * tests/test-ceill.c (ceill): Likewise.
2503         * tests/test-chown.c (chown): Likewise.
2504         * tests/test-dprintf-posix.c (dprintf): Likewise.
2505         * tests/test-dup2.c (dup2): Likewise.
2506         * tests/test-dup3.c (dup3): Likewise.
2507         * tests/test-duplocale.c (duplocale): Likewise.
2508         * tests/test-fchdir.c (fchdir): Likewise.
2509         * tests/test-fchownat.c (fchownat): Likewise.
2510         * tests/test-fcntl.c (fcntl): Likewise.
2511         * tests/test-fdopendir.c (fdopendir): Likewise.
2512         * tests/test-fflush.c (fflush): Likewise.
2513         * tests/test-flock.c (flock): Likewise.
2514         * tests/test-floorf1.c (floorf): Likewise.
2515         * tests/test-floorl.c (floorl): Likewise.
2516         * tests/test-fnmatch.c (fnmatch): Likewise.
2517         * tests/test-fopen.c (fopen): Likewise.
2518         * tests/test-fprintf-posix.c (fprintf): Likewise.
2519         * tests/test-freopen.c (freopen): Likewise.
2520         * tests/test-frexp.c (frexp): Likewise.
2521         * tests/test-frexpl.c (frexpl): Likewise.
2522         * tests/test-fseek.c (fseek): Likewise.
2523         * tests/test-fseeko.c (fseeko): Likewise.
2524         * tests/test-fstatat.c (fstatat): Likewise.
2525         * tests/test-fsync.c (fsync): Likewise.
2526         * tests/test-ftell.c (ftell): Likewise.
2527         * tests/test-ftello.c (ftello): Likewise.
2528         * tests/test-futimens.c (futimens): Likewise.
2529         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
2530         (gai_strerror): Likewise.
2531         * tests/test-getcwd.c (getcwd): Likewise.
2532         * tests/test-getdelim.c (getdelim): Likewise.
2533         * tests/test-getdtablesize.c (getdtablesize): Likewise.
2534         * tests/test-getgroups.c (getgroups): Likewise.
2535         * tests/test-gethostname.c (gethostname): Likewise.
2536         * tests/test-getline.c (getline): Likewise.
2537         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
2538         Likewise.
2539         * tests/test-gettimeofday.c (gettimeofday): Likewise.
2540         * tests/test-glob.c (glob, globfree): Likewise.
2541         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
2542         * tests/test-inet_ntop.c (inet_ntop): Likewise.
2543         * tests/test-inet_pton.c (inet_pton): Likewise.
2544         * tests/test-isblank.c (isblank): Likewise.
2545         * tests/test-lchown.c (lchown): Likewise.
2546         * tests/test-ldexpl.c (ldexpl): Likewise.
2547         * tests/test-link.c (link): Likewise.
2548         * tests/test-linkat.c (linkat): Likewise.
2549         * tests/test-lseek.c (lseek): Likewise.
2550         * tests/test-lstat.c (lstat): Likewise.
2551         * tests/test-mbrtowc.c (mbrtowc): Likewise.
2552         * tests/test-mbsinit.c (mbsinit): Likewise.
2553         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
2554         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
2555         * tests/test-memchr.c (memchr): Likewise.
2556         * tests/test-memcmp.c (memcmp): Likewise.
2557         * tests/test-memmem.c (memmem): Likewise.
2558         * tests/test-memrchr.c (memrchr): Likewise.
2559         * tests/test-mkdir.c (mkdir): Likewise.
2560         * tests/test-mkdirat.c (mkdirat): Likewise.
2561         * tests/test-mkfifo.c (mkfifo): Likewise.
2562         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
2563         * tests/test-mknod.c (mknod): Likewise.
2564         * tests/test-nanosleep.c (nanosleep): Likewise.
2565         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
2566         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
2567         Likewise.
2568         * tests/test-open.c (open): Likewise.
2569         * tests/test-openat.c (openat): Likewise.
2570         * tests/test-perror.c (perror): Likewise.
2571         * tests/test-pipe2.c (pipe2): Likewise.
2572         * tests/test-poll.c (poll): Likewise.
2573         * tests/test-popen.c (popen, pclose): Likewise.
2574         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
2575         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
2576         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
2577         (posix_spawn_file_actions_destroy)
2578         (posix_spawn_file_actions_addclose)
2579         (posix_spawn_file_actions_addopen)
2580         (posix_spawn_file_actions_adddup2): Likewise.
2581         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
2582         * tests/test-pread.c (pread): Likewise.
2583         * tests/test-printf-posix.c (printf): Likewise.
2584         * tests/test-pty.c (openpty, forkpty): Likewise.
2585         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
2586         (random_r): Likewise.
2587         * tests/test-rawmemchr.c (rawmemchr): Likewise.
2588         * tests/test-readlink.c (readlink): Likewise.
2589         * tests/test-remove.c (remove): Likewise.
2590         * tests/test-rename.c (rename): Likewise.
2591         * tests/test-renameat.c (renameat): Likewise.
2592         * tests/test-rmdir.c (rmdir): Likewise.
2593         * tests/test-round1.c (round): Likewise.
2594         * tests/test-roundf1.c (roundf): Likewise.
2595         * tests/test-roundl.c (roundl): Likewise.
2596         * tests/test-setenv.c (setenv): Likewise.
2597         * tests/test-sigaction.c (sigaction): Likewise.
2598         * tests/test-sleep.c (sleep): Likewise.
2599         * tests/test-snprintf.c (snprintf): Likewise.
2600         * tests/test-sprintf-posix.c (sprintf): Likewise.
2601         * tests/test-stat.c (stat): Likewise.
2602         * tests/test-stpncpy.c (stpncpy): Likewise.
2603         * tests/test-strcasestr.c (strcasestr): Likewise.
2604         * tests/test-strchrnul.c (strchrnul): Likewise.
2605         * tests/test-strerror.c (strerror): Likewise.
2606         * tests/test-strsignal.c (strsignal): Likewise.
2607         * tests/test-strstr.c (strstr): Likewise.
2608         * tests/test-strtod.c (strtod): Likewise.
2609         * tests/test-strverscmp.c (strverscmp): Likewise.
2610         * tests/test-symlink.c (symlink): Likewise.
2611         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
2612         * tests/test-times.c (times): Likewise.
2613         * tests/test-trunc1.c (trunc): Likewise.
2614         * tests/test-truncf1.c (truncf): Likewise.
2615         * tests/test-truncl.c (truncl): Likewise.
2616         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
2617         Likewise.
2618         * tests/test-uname.c (uname): Likewise.
2619         * tests/test-unlink.c (unlink): Likewise.
2620         * tests/test-unlinkat.c (unlinkat): Likewise.
2621         * tests/test-unsetenv.c (unsetenv): Likewise.
2622         * tests/test-usleep.c (usleep): Likewise.
2623         * tests/test-utimensat.c (utimensat): Likewise.
2624         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
2625         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
2626         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
2627         * tests/test-vprintf-posix.c (vprintf): Likewise.
2628         * tests/test-vsnprintf.c (vsnprintf): Likewise.
2629         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
2630         * tests/test-wcrtomb.c (wcrtomb): Likewise.
2631         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
2632         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
2633         * tests/test-wcwidth.c (wcwidth): Likewise.
2634
2635         build: pull in conditional headers during GNULIB_POSIXCHECK
2636         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
2637         definitions from any conditionally-included headers.
2638         * lib/stdlib.in.h (includes): Likewise.
2639         * lib/unistd.in.h (includes): Likewise.
2640
2641 2009-12-24  Bruno Haible  <bruno@clisp.org>
2642
2643         * tests/test-argv-iter.c: Include header file being tested immediately
2644         after config.h.
2645         * tests/test-base64.c: Likewise.
2646         * tests/test-flock.c: Likewise.
2647         * tests/test-fsync.c: Likewise.
2648         * tests/test-getdate.c: Likewise.
2649         * tests/test-getndelim2.c: Likewise.
2650         * tests/test-isfinite.c: Likewise.
2651         * tests/test-isinf.c: Likewise.
2652         * tests/test-strerror.c: Likewise.
2653         * tests/test-strsignal.c: Likewise.
2654
2655 2009-12-23  Eric Blake  <ebb9@byu.net>
2656
2657         unistd: work around cygwin bug
2658         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
2659         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
2660         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
2661
2662 2009-12-23  Bruno Haible  <bruno@clisp.org>
2663
2664         localename: More tests.
2665         * tests/test-localename.c (SIZEOF): New macro.
2666         (categories): New variable.
2667         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
2668         test_locale_name_default): Add test w.r.t. thread locale.
2669         (test_locale_name_thread): New function.
2670         (main): Invoke it.
2671
2672         localename: Make aware of thread locale.
2673         * lib/localename.h (gl_locale_name_thread): New declaration.
2674         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
2675         behaviour with respect to thread locale.
2676         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
2677         <langinfo.h>, glthread/lock.h.
2678         (SIZE_BITS): New macro.
2679         (string_hash): New function.
2680         (struct hash_node): New type.
2681         (HASH_TABLE_SIZE): New macro.
2682         (struniq_hash_table, struniq_lock): New variables.
2683         (struniq): New function.
2684         (gl_locale_name_thread): New function.
2685         (gl_locale_name): Invoke it.
2686         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
2687         * modules/localename (Depends-on): Add lock.
2688         Reported by Mike Gran <spk121@yahoo.com>.
2689
2690 2009-12-23  Eric Blake  <ebb9@byu.net>
2691
2692         va-args: new module
2693         * modules/va-args: New file.
2694         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
2695         * MODULES.html.sh (Core language properties): Mention it.
2696
2697         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
2698         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
2699         named alias for __attribute__((__unused__)).
2700         * lib/chown.c: Update client.
2701         * lib/fchmodat.c: Likewise.
2702         * lib/fts.c: Likewise.
2703         * lib/getdate.y: Likewise.
2704         * lib/getgroups.c: Likewise.
2705         * lib/getopt.c: Likewise.
2706         * lib/getugroups.c: Likewise.
2707         * lib/mkdir.c: Likewise.
2708         * lib/mkfifo.c: Likewise.
2709         * lib/mkfifoat.c: Likewise.
2710         * lib/mknod.c: Likewise.
2711         * lib/mknodat.c: Likewise.
2712         * lib/readlink.c: Likewise.
2713         * lib/se-context.in.h: Likewise.
2714         * lib/se-selinux.in.h: Likewise.
2715         * lib/sockets.c: Likewise.
2716         * lib/symlink.c: Likewise.
2717         * lib/symlinkat.c: Likewise.
2718         * lib/unicodeio.c: Likewise.
2719         * lib/unistr.h: Likewise.
2720         * tests/test-areadlink.c: Likewise.
2721         * tests/test-areadlinkat.c: Likewise.
2722         * tests/test-filenamecat.c: Likewise.
2723         * tests/test-fseeko.c: Likewise.
2724         * tests/test-ftello.c: Likewise.
2725         * tests/test-getdate.c: Likewise.
2726         * tests/test-getgroups.c: Likewise.
2727         * tests/test-gethostname.c: Likewise.
2728         * tests/test-quotearg.c: Likewise.
2729         * tests/test-version-etc.c: Likewise.
2730         * tests/test-xalloc-die.c: Likewise.
2731         * tests/test-xfprintf-posix.c: Likewise.
2732         * tests/test-xprintf-posix.c: Likewise.
2733         * tests/test-xvasprintf.c: Likewise.
2734
2735         tests: avoid compiler warnings
2736         * tests/test-fcntl.c (main): Delete unused parameters.
2737         * tests/test-freopen-safer.c (main): Likewise.
2738         * tests/test-xalloc-die.c (main): Mark unused parameters.
2739         * tests/test-fseeko.c (main): Likewise.
2740         * tests/test-ftello.c (main): Likewise.
2741         * tests/test-nanosleep.c (main): Avoid declaration warning.
2742         * tests/test-sleep.c (main): Likewise.
2743         * tests/test-unsetenv.c (main): Silence warning about string
2744         literal.
2745         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2746
2747 2009-12-23  Bruno Haible  <bruno@clisp.org>
2748
2749         * tests/test-localename.c (test_locale_name): New function, extracted
2750         from main. Also test mixed situations.
2751         (test_locale_name_posix, test_locale_name_environ,
2752         test_locale_name_default): New functions.
2753         (main): Invoke them all.
2754         * modules/localename-tests (configure.ac): Test for newlocale.
2755
2756 2009-12-23  Bruno Haible  <bruno@clisp.org>
2757
2758         unistd: Ensure getcwd gets declared before being overridden.
2759         * lib/unistd.in.h: Conditionally include <io.h>.
2760
2761 2009-12-22  Bruno Haible  <bruno@clisp.org>
2762
2763         wchar: Diagnose broken combination of glibc and gcc versions and flags.
2764         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
2765         (gl_WCHAR_H): Invoke it.
2766         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
2767         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
2768         Reported by Karl Berry <karl@freefriends.org>.
2769
2770 2009-12-22  Eric Blake  <ebb9@byu.net>
2771
2772         math, unistd: avoid redundant includes
2773         * lib/math.in.h (isnan): No need to re-include <math.h>.
2774         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
2775
2776         getsubopt: work around cygwin bug
2777         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
2778         avoid conflicting with system getsubopt.
2779         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
2780         bug.
2781
2782         getopt: synchronize from glibc
2783         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
2784         parameter order.  Adjust all callers.
2785         (_getopt_internal_r, main): Adjust quoting in error messages.
2786         Drop considerations for outdated POSIX 1003.2 error message.
2787         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
2788         callers.
2789         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
2790
2791         test-getopt: test stderr behavior
2792         * modules/getopt-posix-tests (Depends-on): Add dup2.
2793         * tests/test-getopt.c (ASSERT): Avoid stderr.
2794         (main): Move stderr to a temporary file.
2795         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
2796         Instead, add parameter to inform caller if output occurred.
2797         (test_getopt): Adjust all existing tests to expect silence, and
2798         add new tests of leading ":".
2799         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2800         glibc shortcomings with leading "-:" or "+:" in optstring.
2801         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2802         Likewise.
2803         * doc/posix-functions/getopt.texi (getopt): Likewise.
2804
2805         test-getopt: enhance test
2806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
2807         supports optind=0.
2808         * tests/test-getopt.c (OPTIND_MIN): Move...
2809         * tests/test-getopt.h (OPTIND_MIN): ...here.
2810         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
2811         Require that optind=0 works, since modern BSD supports it in
2812         addition to optreset, and since coreutils expects it.
2813         (test_getopt_long_only): New test.
2814         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2815         glibc shortcomings with 'W;', and enforcement of optind=0.
2816         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2817         Likewise.
2818
2819 2009-12-21  Bruno Haible  <bruno@clisp.org>
2820
2821         localename: Improvements for MacOS X and Cygwin.
2822         * lib/localename.h (gl_locale_name_environ): New declaration.
2823         * lib/localename.c (gl_locale_name_environ): New function, extracted from
2824         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
2825         (gl_locale_name_posix): Invoke it.
2826         (gl_locale_name_default): Add comments. Use Windows native API also on
2827         Cygwin.
2828
2829 2009-12-21  Bruno Haible  <bruno@clisp.org>
2830
2831         Update list of Win32 locale ids.
2832         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
2833         (LANG_SAMI): Renamed from LANG_SAAMI.
2834         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
2835         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
2836         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
2837         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
2838         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
2839         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
2840         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
2841         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
2842         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
2843         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
2844         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
2845         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
2846         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
2847         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
2848         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
2849         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
2850         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
2851         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
2852         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
2853         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
2854         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
2855         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
2856         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
2857         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
2858         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
2859         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
2860         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
2861         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
2862         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
2863         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
2864         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
2865         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
2866         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
2867         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
2868         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
2869         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
2870         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
2871         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
2872         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
2873         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
2874         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
2875         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
2876         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
2877         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
2878         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
2879         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
2880         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
2881         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
2882         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
2883         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
2884         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
2885         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
2886         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
2887         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
2888         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
2889         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
2890         Add more languages and countries for Sami, Sorbian. Add more countries
2891         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
2892         for Pashto. Change country for Syriac, Tswana.
2893
2894 2009-12-21  Eric Blake  <ebb9@byu.net>
2895
2896         test-utimens: avoid spurious failure
2897         * tests/test-chown.h (nap): Factor...
2898         * tests/nap.h: ...into new file.
2899         * tests/test-lchown.h (nap): Avoid duplication.
2900         * tests/test-utimens-common.h (nap): Use shared implementation,
2901         necessary on file systems with 1-second resolution.
2902         * modules/chown-tests (Files): Include new file.
2903         * modules/fdutimensat-tests (Files): Likewise.
2904         * modules/futimens-tests (Files): Likewise.
2905         * modules/lchown-tests (Files): Likewise.
2906         * modules/openat-tests (Files): Likewise.
2907         * modules/utimens-tests (Files): Likewise.
2908         * modules/utimensat-tests (Files): Likewise.
2909
2910 2009-12-19  Eric Blake  <ebb9@byu.net>
2911
2912         futimens, utimensat: work around Linux bug
2913         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
2914         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2915         * lib/utimensat.c (rpl_utimensat): Work around it.
2916         * lib/futimens.c (rpl_futimens): Adjust comment.
2917
2918         utimens: work around Linux ctime bug
2919         * lib/utimens.c (detect_ctime_bug): New helper function.
2920         (update_timespec): Differentiate between workaround needed for
2921         this bug vs. what is needed for systems that lack utimensat.
2922         (fdutimens, lutimens): Work around bug.
2923
2924         utimens: check for ctime update
2925         * tests/test-utimens-common.h (check_ctime): Define.
2926         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
2927         * tests/test-futimens.h (test_futimens): Likewise.
2928         * tests/test-lutimens.h (test_lutimens): Likewise.
2929         * doc/posix-functions/futimens.texi (futimens): Document the bug.
2930         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2931
2932 2009-12-19  Bruno Haible  <bruno@clisp.org>
2933
2934         dprintf-posix: Check against memory leak fixed on 2009-12-15.
2935         * tests/test-dprintf-posix2.sh: New file.
2936         * tests/test-dprintf-posix2.c: New file.
2937         * modules/dprintf-posix-tests (Files): Add them.
2938         (configure.ac): Check for getrlimit and setrlimit.
2939         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
2940
2941 2009-12-19  Bruno Haible  <bruno@clisp.org>
2942
2943         fprintf-posix: Check against memory leak fixed on 2009-12-15.
2944         * tests/test-fprintf-posix3.sh: New file.
2945         * tests/test-fprintf-posix3.c: New file.
2946         * modules/fprintf-posix-tests (Files): Add them.
2947         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
2948
2949 2009-12-19  Eric Blake  <ebb9@byu.net>
2950
2951         dirfd: fix prototype
2952         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
2953         * lib/dirfd.c (dirfd): Likewise.
2954
2955         canonicalize: reduce memory usage
2956         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
2957         allocation to size.
2958         Reported by Solar Designer <solar@openwall.com>.
2959
2960 2009-12-19  Bruno Haible  <bruno@clisp.org>
2961
2962         New module attribute 'Applicability'.
2963         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
2964         * gnulib-tool: New option --extract-applicability.
2965         (func_usage): Document it.
2966         (sed_extract_prog): Recognize it.
2967         (func_get_applicability): New function.
2968         (func_import): Generalize handling of 'link-warning' module.
2969         * modules/link-warning (Applicability): New section.
2970         * modules/arg-nonnull (Applicability): New section.
2971         Repoted by Simon Josefsson <simon@josefsson.org>.
2972
2973 2009-12-19  Bruno Haible  <bruno@clisp.org>
2974
2975         fflush: tweak
2976         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
2977         * lib/fseeko.c (rpl_fseeko): Likewise.
2978
2979 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
2980
2981         * lib/gl_list.h: Fix typo in comment.
2982
2983 2009-12-16  Eric Blake  <ebb9@byu.net>
2984
2985         fcntl: use to simplify other modules
2986         * modules/cloexec (Depends-on): Add fcntl.
2987         * modules/fchdir (Depends-on): Likewise.
2988         * modules/fd-safer-flag (Depends-on): Likewise.
2989         * modules/unistd-safer (Depends-on): Likewise.
2990         * modules/dup3 (configure.ac): Set module indicator.
2991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
2992         missing.
2993         * lib/fchdir.c (_gl_register_dup): Fix comment.
2994         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
2995         * lib/dup-safer.c (dup_safer): Likewise.
2996         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
2997         * lib/dup3.c (dup3): Likewise.
2998         * tests/test-fchdir.c (main): Enhance test.
2999         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
3000
3001         fcntl: port portions of fcntl to mingw
3002         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
3003         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
3004         replacement for mingw.
3005         * modules/fcntl (Description): Update.
3006         (Depends-on): Add dup2.
3007         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
3008         * modules/fcntl-h (Makefile.am): Substitute it.
3009         * lib/fcntl.in.h (fcntl): Update declaration.
3010         (F_DUPFD, F_GETFD): New macros, when needed.
3011         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
3012         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
3013         * tests/test-fcntl.c (check_flags, main): Enhance test for items
3014         we now guarantee.
3015
3016         fcntl: work around cygwin bug in F_DUPFD
3017         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
3018         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
3019         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
3020         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
3021         * doc/posix-functions/fcntl.texi (fcntl): Document it.
3022
3023         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
3024         * modules/fcntl (Files): List new files.
3025         (configure.ac): Run a test.
3026         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
3027         * lib/fcntl.c (rpl_fcntl): Likewise.
3028         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
3029         (gl_FCNTL_H): Always replace fcntl.h.
3030         * modules/fcntl-h (Makefile.am): Substitute witnesses.
3031         * lib/fcntl.in.h (fcntl): Declare replacement.
3032         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
3033         needed, plus a witness.
3034         * doc/posix-functions/fcntl.texi (fcntl): Document this.
3035         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
3036         * tests/test-fcntl.c: New file.
3037         * modules/fcntl-tests: Likewise.
3038
3039         binary-io: avoid potential compilation warning
3040         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
3041         directives.
3042
3043         fflush: avoid compilation error on NetBSD
3044         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
3045         between off_t and fpos_t, since the latter is sometimes a struct.
3046         * lib/fseeko.c (rpl_fseeko): Likewise.
3047         Reported by Alexander Nasonov <alnsn@yandex.ru>.
3048
3049 2009-12-15  Eric Blake  <ebb9@byu.net>
3050
3051         fcntl-h, stdio, sys_ioctl: fix declarations
3052         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
3053         function must not take arguments.
3054         * lib/sys_ioctl.in.h (ioctl): Likewise.
3055         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
3056         (open): Add a link warning.
3057
3058 2009-12-15  Jim Meyering  <meyering@redhat.com>
3059
3060         areadlink, areadlink-with-size: relax license to LGPLv2+
3061         * modules/areadlink (License): Relax to LGPLv2+.
3062         * modules/areadlink-with-size (License): Likewise.
3063
3064 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
3065             Bruno Haible  <bruno@clisp.org>
3066
3067         *printf: Fix memory leak.
3068         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
3069         * lib/vfprintf.c (vfprintf): Likewise.
3070         * lib/dprintf.c (dprintf): Likewise.
3071         * lib/vdprintf.c (vdprintf): Likewise.
3072
3073 2009-12-14  Eric Blake  <ebb9@byu.net>
3074
3075         accept4: adjust module dependencies
3076         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
3077
3078         utimens: one more try at avoiding compiler warning
3079         * lib/utimens.c (lutimens): Lower scope of result.
3080
3081 2009-12-13  Bruno Haible  <bruno@clisp.org>
3082
3083         Move the malloc checking from module 'list' to new module 'xlist'.
3084         * modules/xlist: New file.
3085         * lib/gl_xlist.h: New file.
3086         * lib/gl_xlist.c: New file.
3087         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
3088         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
3089         gl_list_add_last, gl_list_add_before, gl_list_add_after,
3090         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
3091         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
3092         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
3093         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
3094         gl_sortedlist_nx_add): New declarations.
3095         (struct gl_list_implementation): Rename and change methods accordingly.
3096         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
3097         (gl_list_nx_create): Renamed from gl_list_create.
3098         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3099         (gl_list_nx_set_at): Renamed from gl_list_set_at.
3100         (gl_list_nx_add_first): Renamed from gl_list_add_first.
3101         (gl_list_nx_add_last): Renamed from gl_list_add_last.
3102         (gl_list_nx_add_before): Renamed from gl_list_add_before.
3103         (gl_list_nx_add_after): Renamed from gl_list_add_after.
3104         (gl_list_nx_add_at): Renamed from gl_list_add_at.
3105         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3106         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
3107         gl_list_create_empty.
3108         (gl_list_nx_create): Renamed from gl_list_create.
3109         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3110         (gl_list_nx_set_at): Renamed from gl_list_set_at.
3111         (gl_list_nx_add_first): Renamed from gl_list_add_first.
3112         (gl_list_nx_add_last): Renamed from gl_list_add_last.
3113         (gl_list_nx_add_before): Renamed from gl_list_add_before.
3114         (gl_list_nx_add_after): Renamed from gl_list_add_after.
3115         (gl_list_nx_add_at): Renamed from gl_list_add_at.
3116         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3117         * lib/gl_array_list.c: Don't include xalloc.h.
3118         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
3119         NULL upon out-of-memory.
3120         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
3121         out-of-memory.
3122         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
3123         Change return type to 'int'.
3124         (gl_array_nx_set_at): Renamed from gl_array_set_at.
3125         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3126         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
3127         upon out-of-memory.
3128         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
3129         upon out-of-memory.
3130         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
3131         upon out-of-memory.
3132         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
3133         upon out-of-memory.
3134         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
3135         out-of-memory.
3136         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
3137         Update.
3138         (gl_array_list_implementation): Update.
3139         * lib/gl_carray_list.c: Don't include xalloc.h.
3140         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
3141         Return NULL upon out-of-memory.
3142         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
3143         out-of-memory.
3144         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
3145         Change return type to 'int'.
3146         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
3147         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3148         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
3149         upon out-of-memory.
3150         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
3151         upon out-of-memory.
3152         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
3153         out-of-memory.
3154         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
3155         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
3156         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
3157         Update.
3158         (gl_carray_list_implementation): Update.
3159         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
3160         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
3161         gl_linked_create_empty. Return NULL upon out-of-memory.
3162         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
3163         out-of-memory.
3164         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
3165         Change return type to 'int'. Return -1 upon out-of-memory.
3166         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
3167         out-of-memory.
3168         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
3169         upon out-of-memory.
3170         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
3171         upon out-of-memory.
3172         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
3173         NULL upon out-of-memory.
3174         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
3175         upon out-of-memory.
3176         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
3177         out-of-memory.
3178         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
3179         Update.
3180         * lib/gl_linked_list.c: Don't include xalloc.h.
3181         (gl_linked_list_implementation): Update.
3182         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
3183         (add_to_bucket): Change return type to 'int'.
3184         (gl_linkedhash_list_implementation): Update.
3185         * lib/gl_anytree_list1.h (free_subtree): New function.
3186         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
3187         gl_tree_create_empty. Return NULL upon out-of-memory.
3188         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
3189         Change return type to 'int'. Return -1 upon out-of-memory.
3190         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
3191         out-of-memory.
3192         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
3193         (gl_tree_remove_node): New function, moved here from
3194         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
3195         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
3196         Update.
3197         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
3198         malloc, not xmalloc. Return NULL upon out-of-memory.
3199         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3200         out-of-memory.
3201         (gl_tree_remove_node_from_tree): New function, extracted from
3202         gl_tree_remove_node.
3203         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3204         upon out-of-memory.
3205         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3206         out-of-memory.
3207         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3208         upon out-of-memory.
3209         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3210         upon out-of-memory.
3211         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3212         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
3213         not xmalloc. Return NULL upon out-of-memory.
3214         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3215         out-of-memory.
3216         (gl_tree_remove_node_from_tree): New function, extracted from
3217         gl_tree_remove_node.
3218         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3219         upon out-of-memory.
3220         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3221         out-of-memory.
3222         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3223         upon out-of-memory.
3224         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3225         upon out-of-memory.
3226         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3227         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
3228         gl_anytree_list1.h before gl_anyavltree_list2.h.
3229         (gl_avltree_list_implementation): Update.
3230         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
3231         gl_anytree_list1.h before gl_anyavltree_list2.h.
3232         (gl_rbtree_list_implementation): Update.
3233         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
3234         Change return type to 'int'. Return -1 upon out-of-memory. Use
3235         __builtin_expect.
3236         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
3237         (gl_avltreehash_list_implementation): Update.
3238         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
3239         (gl_rbtreehash_list_implementation): Update.
3240         * modules/array-list (Depends-on): Remove xalloc.
3241         * modules/carray-list (Depends-on): Likewise.
3242         * modules/linked-list (Depends-on): Likewise.
3243         * modules/linkedhash-list (Depends-on): Likewise.
3244         * modules/avltree-list (Depends-on): Likewise.
3245         * modules/rbtree-list (Depends-on): Likewise.
3246         * modules/avltreehash-list (Depends-on): Likewise.
3247         * modules/rbtreehash-list (Depends-on): Likewise.
3248
3249         * modules/xsublist: New file.
3250         * lib/gl_xsublist.h: New file.
3251         * lib/gl_xsublist.c: New file.
3252         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
3253         (gl_sublist_nx_create): New declaration.
3254         * lib/gl_sublist.c: Don't include xalloc.h.
3255         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
3256         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
3257         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
3258         Change return type to 'int'. Return -1 upon out-of-memory.
3259         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
3260         upon out-of-memory.
3261         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
3262         NULL upon out-of-memory.
3263         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
3264         upon out-of-memory.
3265         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
3266         NULL upon out-of-memory.
3267         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
3268         NULL upon out-of-memory.
3269         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
3270         upon out-of-memory.
3271         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
3272         (gl_sublist_list_implementation): Update.
3273         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
3274         upon out-of-memory.
3275         * modules/sublist (Depends-on): Remove xalloc.
3276
3277         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
3278         * tests/test-carray_list.c: Likewise.
3279         * tests/test-linked_list.c: Likewise.
3280         * tests/test-linkedhash_list.c: Likewise.
3281         * tests/test-avltree_list.c: Likewise.
3282         * tests/test-rbtree_list.c: Likewise.
3283         * tests/test-avltreehash_list.c: Likewise.
3284         * tests/test-rbtreehash_list.c: Likewise.
3285         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
3286         * modules/carray-list-tests (Makefile.am): Likewise.
3287         * modules/linked-list-tests (Makefile.am): Likewise.
3288         * modules/linkedhash-list-tests (Makefile.am): Likewise.
3289         * modules/avltree-list-tests (Makefile.am): Likewise.
3290         * modules/rbtree-list-tests (Makefile.am): Likewise.
3291         * modules/avltreehash-list-tests (Makefile.am): Likewise.
3292         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3293
3294         * NEWS: Mention the changes.
3295
3296         * lib/clean-temp.c: Include gl_xlist.h.
3297         * modules/clean-temp (Depends-on): Add xlist.
3298
3299         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
3300         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
3301
3302         * tests/test-array_oset.c: Include gl_xlist.h.
3303         * modules/array-oset-tests (Depends-on): Add xlist.
3304
3305         Reported by José E. Marchesi <jemarch@gnu.org>.
3306
3307 2009-12-13  Bruno Haible  <bruno@clisp.org>
3308
3309         Move the malloc checking from module 'oset' to new module 'xoset'.
3310         * modules/xoset: New file.
3311         * lib/gl_xoset.h: New file.
3312         * lib/gl_xoset.c: New file.
3313         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
3314         declarations.
3315         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
3316         (struct gl_oset_implementation): Rename and change methods accordingly.
3317         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
3318         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3319         'int'. Mark as __warn_unused_result__.
3320         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
3321         gl_oset_create_empty.
3322         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3323         'int'.
3324         * lib/gl_array_oset.c: Don't include xalloc.h.
3325         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
3326         malloc, not xmalloc.
3327         (grow): Change return type to 'int'. Don't call xalloc_die.
3328         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
3329         to 'int'.
3330         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
3331         'int'.
3332         (gl_array_oset_implementation): Update.
3333         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
3334         gl_tree_create_empty.
3335         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
3336         'int'.
3337         * lib/gl_avltree_oset.c: Don't include xalloc.h.
3338         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3339         xmalloc.
3340         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3341         not xmalloc.
3342         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3343         xmalloc.
3344         (gl_avltree_oset_implementation): Update.
3345         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
3346         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3347         xmalloc.
3348         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3349         not xmalloc.
3350         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3351         xmalloc.
3352         (gl_rbtree_oset_implementation): Update.
3353         * modules/array-oset (Depends-on): Remove xalloc.
3354         * modules/avltree-oset (Depends-on): Likewise.
3355         * modules/rbtree-oset (Depends-on): Likewise.
3356         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
3357         * tests/test-avltree_oset.c: Likewise.
3358         * tests/test-rbtree_oset.c: Likewise.
3359         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
3360         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
3361         * modules/rbtree-oset-tests (Makefile.am): Likewise.
3362         * NEWS: Mention the change.
3363
3364 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
3365
3366         maint.mk: allow a project to override release-prep commands
3367         * top/maint.mk (alpha, beta, stable): Move release-preparatory
3368         commands into a new rule.
3369         (release-prep): New rule.
3370         (release-prep-hook): New overridable variable.
3371
3372 2009-12-13  Bruno Haible  <bruno@clisp.org>
3373
3374         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
3375
3376 2009-12-13  Jim Meyering  <meyering@redhat.com>
3377
3378         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
3379         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
3380
3381 2009-12-12  Bruno Haible  <bruno@clisp.org>
3382
3383         duplocale: Tweak.
3384         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
3385
3386 2009-12-12  Karl Berry  <karl@gnu.org>
3387
3388         * config/srclist.txt (strtoll.c): tab changes, no more sync.
3389
3390 2009-12-12  Bruno Haible  <bruno@clisp.org>
3391
3392         * m4/po.m4: Undo incorrect untabification.
3393
3394 2009-12-12  Bruno Haible  <bruno@clisp.org>
3395
3396         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
3397         * modules/c-strtod (Depends-on): Add locale.
3398         * modules/c-strtold (Depends-on): Likewise.
3399
3400 2009-12-12  Bruno Haible  <bruno@clisp.org>
3401
3402         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
3403
3404 2009-12-11  Eric Blake  <ebb9@byu.net>
3405
3406         setenv: relax requirement in light of POSIX ruling
3407         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
3408         not NULL.
3409         * tests/test-setenv.c (main): Relax test.
3410         * tests/test-unsetenv.c (main): Likewise.
3411         * doc/posix-functions/setenv.texi (setenv): Document this.
3412         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
3413
3414 2009-12-11  Bruno Haible  <bruno@clisp.org>
3415
3416         New module 'fd-safer-flag'.
3417         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
3418         * lib/dup-safer.c (dup_safer_flag): Remove function.
3419         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
3420         * lib/fd-safer.c (fd_safer_flag): Remove function.
3421         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
3422         * modules/cloexec (configure.ac): Drop indicator macro.
3423         * modules/fd-safer-flag: New file.
3424         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
3425         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
3426         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
3427
3428 2009-12-11  Bruno Haible  <bruno@clisp.org>
3429
3430         Tests for module 'nl_langinfo'.
3431         * modules/nl_langinfo-tests: New file.
3432         * tests/test-nl_langinfo.sh: New file.
3433         * tests/test-nl_langinfo.c: New file.
3434
3435         New module 'nl_langinfo'.
3436         * lib/nl_langinfo.c: New file.
3437         * m4/nl_langinfo.m4: New file.
3438         * modules/nl_langinfo: New file.
3439         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
3440
3441 2009-12-11  Bruno Haible  <bruno@clisp.org>
3442
3443         Tests for module 'langinfo'.
3444         * modules/langinfo-tests: New file.
3445         * tests/test-langinfo.c: New file.
3446
3447         New module 'langinfo'.
3448         * lib/langinfo.in.h: New file.
3449         * m4/langinfo_h.m4: New file.
3450         * modules/langinfo: New file.
3451         * doc/posix-headers/langinfo.texi: Mention the new module.
3452
3453 2009-12-11  Bruno Haible  <bruno@clisp.org>
3454
3455         * lib/config.charset: Untabify.
3456
3457 2009-12-11  Bruno Haible  <bruno@clisp.org>
3458
3459         * modules/unistd-safer (configure.ac): Drop indicator macro.
3460
3461 2009-12-11  Bruno Haible  <bruno@clisp.org>
3462
3463         Move pipe2-safer code to its own file.
3464         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
3465         * lib/pipe-safer.c (pipe2_safer): Remove function.
3466         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
3467         (Makefile.am): Add it to lib_SOURCES.
3468
3469 2009-12-10  Bruno Haible  <bruno@clisp.org>
3470
3471         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
3472
3473 2009-12-10  Bruno Haible  <bruno@clisp.org>
3474
3475         Declare which arguments expect non-NULL values, for GCC and clang.
3476         * build-aux/arg-nonnull.h: New file.
3477         * modules/arg-nonnull: New file.
3478         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
3479         (inet_ntop, inet_pton): Use it.
3480         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
3481         (closedir, dirfd, opendir, scandir, alphasort): Use it.
3482         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
3483         (open, openat): Use it.
3484         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
3485         (fnmatch): Use it.
3486         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
3487         (getopt, getopt_long, getopt_long_only): Use it.
3488         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
3489         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
3490         Use it.
3491         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
3492         (iconv_open): Use it.
3493         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
3494         (strtoimax, strtoumax): Use it.
3495         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
3496         (duplocale): Use it.
3497         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
3498         (frexp, frexpl): Use it.
3499         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
3500         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
3501         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
3502         (tsearch, tfind, tdelete, twalk): Use it.
3503         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
3504         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
3505         sigpending): Use it.
3506         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
3507         (posix_spawn, posix_spawnp, posix_spawnattr_init,
3508         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
3509         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
3510         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
3511         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
3512         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
3513         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
3514         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
3515         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
3516         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
3517         Use it.
3518         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
3519         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
3520         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
3521         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
3522         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
3523         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
3524         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
3525         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
3526         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
3527         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
3528         strtoull, unsetenv): Use it.
3529         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
3530         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
3531         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
3532         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3533         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3534         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
3535         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
3536         (strcasecmp, strncasecmp): Use it.
3537         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
3538         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
3539         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
3540         rpl_setsockopt): Use it.
3541         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
3542         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
3543         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
3544         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
3545         (gettimeofday): Use it.
3546         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
3547         (times): Use it.
3548         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
3549         (uname): Use it.
3550         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
3551         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
3552         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
3553         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
3554         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
3555         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
3556         unlinkat, write): Use it.
3557         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
3558         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
3559         * lib/argv-iter.h: Include arg-nonnull.h.
3560         (_ATTRIBUTE_NONNULL_): Remove macro.
3561         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
3562         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
3563         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
3564         optimization.
3565         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
3566         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
3567         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
3568         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
3569         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
3570         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
3571         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
3572         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
3573         * modules/arpa_inet (Depends-on): Add arg-nonnull.
3574         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
3575         * modules/dirent (Depends-on): Add arg-nonnull.
3576         (Makefile.am): Insert arg-nonnull.h into dirent.h.
3577         * modules/fcntl-h (Depends-on): Add arg-nonnull.
3578         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
3579         * modules/fnmatch (Depends-on): Add arg-nonnull.
3580         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
3581         * modules/getopt-posix (Depends-on): Add arg-nonnull.
3582         (Makefile.am): Insert arg-nonnull.h into getopt.h.
3583         * modules/glob (Depends-on): Add arg-nonnull.
3584         (Makefile.am): Insert arg-nonnull.h into glob.h.
3585         * modules/iconv_open (Depends-on): Add arg-nonnull.
3586         (Makefile.am): Insert arg-nonnull.h into iconv.h.
3587         * modules/inttypes (Depends-on): Add arg-nonnull.
3588         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
3589         * modules/locale (Depends-on): Add arg-nonnull.
3590         (Makefile.am): Insert arg-nonnull.h into locale.h.
3591         * modules/math (Depends-on): Add arg-nonnull.
3592         (Makefile.am): Insert arg-nonnull.h into math.h.
3593         * modules/netdb (Depends-on): Add arg-nonnull.
3594         (Makefile.am): Insert arg-nonnull.h into netdb.h.
3595         * modules/search (Depends-on): Add arg-nonnull.
3596         (Makefile.am): Insert arg-nonnull.h into search.h.
3597         * modules/signal (Depends-on): Add arg-nonnull.
3598         (Makefile.am): Insert arg-nonnull.h into signal.h.
3599         * modules/spawn (Depends-on): Add arg-nonnull.
3600         (Makefile.am): Insert arg-nonnull.h into spawn.h.
3601         * modules/stdio (Depends-on): Add arg-nonnull.
3602         (Makefile.am): Insert arg-nonnull.h into stdio.h.
3603         * modules/stdlib (Depends-on): Add arg-nonnull.
3604         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
3605         * modules/string (Depends-on): Add arg-nonnull.
3606         (Makefile.am): Insert arg-nonnull.h into string.h.
3607         * modules/strings (Depends-on): Add arg-nonnull.
3608         (Makefile.am): Insert arg-nonnull.h into strings.h.
3609         * modules/sys_socket (Depends-on): Add arg-nonnull.
3610         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
3611         * modules/sys_stat (Depends-on): Add arg-nonnull.
3612         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
3613         * modules/sys_time (Depends-on): Add arg-nonnull.
3614         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
3615         * modules/sys_times (Depends-on): Add arg-nonnull.
3616         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
3617         * modules/sys_utsname (Depends-on): Add arg-nonnull.
3618         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
3619         * modules/time (Depends-on): Add arg-nonnull.
3620         (Makefile.am): Insert arg-nonnull.h into time.h.
3621         * modules/unistd (Depends-on): Add arg-nonnull.
3622         (Makefile.am): Insert arg-nonnull.h into unistd.h.
3623         * modules/wchar (Depends-on): Add arg-nonnull.
3624         (Makefile.am): Insert arg-nonnull.h into wchar.h.
3625         * modules/argv-iter (Depends-on): Add arg-nonnull.
3626         * tests/test-canonicalize.c (null_ptr): New function.
3627         (main): Use it.
3628         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
3629         (main): Use it.
3630         * tests/test-memmem.c (null_ptr): New function.
3631         (main): Use it.
3632         Reported by Jim Meyering.
3633
3634 2009-12-10  Bruno Haible  <bruno@clisp.org>
3635
3636         Use spaces for indentation, not tabs.
3637         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3638         * m4/*.m4: Untabify.
3639         * build-aux/*.h: Untabify.
3640         * tests/**/*.[hc]: Untabify.
3641         * README: New section "Indent with spaces, not TABs", based on
3642         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
3643         * NEWS: Mention the change.
3644
3645 2009-12-10  Bruno Haible  <bruno@clisp.org>
3646
3647         pty test: Fix link error.
3648         * modules/pty-tests (Makefile.am): Add the default LDADD value to
3649         test_pty_LDADD.
3650
3651 2009-12-07  Simon Josefsson  <simon@josefsson.org>
3652
3653         * modules/pty: New file.
3654         * modules/pty-tests: New file.
3655         * m4/pty.m4: New file.
3656         * tests/test-pty.c: New file.
3657         * doc/glibc-headers/pty.texi: Modified.
3658         * doc/glibc-functions/forkpty.texi: Modified.
3659         * doc/glibc-functions/openpty.texi: Modified.
3660
3661 2009-12-10  Bruno Haible  <bruno@clisp.org>
3662
3663         Avoid syntax error in C++ mode.
3664         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
3665
3666 2009-12-10  Bruno Haible  <bruno@clisp.org>
3667
3668         Use sed with option -e.
3669         * gnulib-tool (func_version, func_emit_copyright_notice,
3670         func_emit_initmacro_end, func_import, func_create_testdir): Pass
3671         option -e to sed.
3672         * modules/link-warning (Makefile.am): Likewise.
3673
3674 2009-12-10  Jim Meyering  <meyering@redhat.com>
3675
3676         mgetgroups: do not write bytes beyond end of malloc'd buffer
3677         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
3678         username, we call getgroups with a one-element-shorter buffer,
3679         but still told it the length was original, max_n_groups.
3680
3681 2009-12-09  Eric Blake  <ebb9@byu.net>
3682
3683         cloexec: relax license
3684         * modules/cloexec (Maintainer): Add myself.
3685         (License): Use LGPL, not GPL.
3686
3687         link-warning: optimize generation
3688         * modules/link-warning (Makefile.am): Reduce process usage.
3689
3690 2009-12-09  Bruno Haible  <bruno@clisp.org>
3691
3692         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
3693         workaround was added on 2009-11-17.
3694
3695 2009-12-09  Jim Meyering  <meyering@redhat.com>
3696             Bruno Haible  <bruno@clisp.org>
3697
3698         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
3699         * modules/link-warning (Makefile.am): Make the comment-removing sed
3700         command more robust in the face of bootstrap-prepended comment lines.
3701
3702 2009-12-09  Bruno Haible  <bruno@clisp.org>
3703
3704         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
3705         most one group.
3706
3707 2009-12-09  Simon Josefsson <simon@josefsson.org>
3708             Bruno Haible  <bruno@clisp.org>
3709
3710         * build-aux/link-warning.h: Add copyright notice.
3711         * modules/link-warning (Makefile.am): Generate link-warning.h from
3712         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
3713         * NEWS: Mention change in link-warning module.
3714         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
3715         * modules/dirent (Makefile.am): Add dependency to dirent.h.
3716         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
3717         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
3718         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
3719         * modules/math (Makefile.am): Add dependency to math.h.
3720         * modules/search (Makefile.am): Add dependency to search.h.
3721         * modules/signal (Makefile.am): Add dependency to signal.h.
3722         * modules/spawn (Makefile.am): Add dependency to spawn.h.
3723         * modules/stdio (Makefile.am): Add dependency to stdio.h.
3724         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
3725         * modules/string (Makefile.am): Add dependency to string.h.
3726         * modules/strings (Makefile.am): Add dependency to strings.h.
3727         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
3728         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
3729         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
3730         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
3731         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
3732         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
3733         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
3734         * modules/unistd (Makefile.am): Add dependency to unistd.h.
3735         * modules/wchar (Makefile.am): Add dependency to wchar.h.
3736
3737 2009-12-09  Bruno Haible  <bruno@clisp.org>
3738
3739         fchdir: Optimize away rpl_fstat when possible.
3740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
3741         REPLACE_OPEN_DIRECTORY.
3742         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
3743
3744 2009-12-09  Bruno Haible  <bruno@clisp.org>
3745
3746         * lib/fchdir.c: Update comment.
3747
3748 2009-12-09  Bruno Haible  <bruno@clisp.org>
3749
3750         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
3751
3752 2009-12-08  Eric Blake  <ebb9@byu.net>
3753
3754         fchdir: avoid memory leak on re-registration.
3755         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
3756
3757 2009-12-08  Jim Meyering  <meyering@redhat.com>
3758
3759         init.sh: avoid Solaris 10 /bin/sh portability problem
3760         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
3761         sourced script:
3762           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
3763           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
3764           bar
3765         tests/init.sh relied on that, accepting a --set-path=DIR argument,
3766         and two tests used that idiom.
3767         * tests/init.sh: Update suggested usage comments.
3768         (path_prepend_): New function, to be used in place
3769         of the --src-path=DIR option.
3770         (setup_): Move PATH-prepending code into path_prepend_.
3771         * tests/test-pread.sh: Adapt to new usage.
3772         * tests/test-xalloc-die.sh: Likewise.
3773
3774 2009-12-08  Simon Josefsson  <simon@josefsson.org>
3775
3776         * doc/gnulib.texi (Glibc pty.h): Add.
3777         * doc/glibc-functions/forkpty.texi: Add.
3778         * doc/glibc-functions/openpty.texi: Add.
3779         Suggested by Bruno Haible.
3780
3781 2009-12-08  Eric Blake  <ebb9@byu.net>
3782
3783         fchdir: fix logic bugs
3784         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
3785         * tests/test-fchdir.c (main): Enhance test.
3786         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
3787         is in use.
3788
3789         dup2: fix logic bugs
3790         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
3791         REPLACE_DUP2 to decide when rpl_dup2 is needed.
3792         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
3793         exists.
3794         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
3795
3796 2009-12-07  Eric Blake  <ebb9@byu.net>
3797
3798         unlink: fix m4 detection
3799         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
3800
3801         unistd-safer: add unit test
3802         * modules/unistd-safer-tests: New file.
3803         * tests/test-dup-safer.c: Likewise.
3804         * tests/test-cloexec.c (setmode): Avoid compiler warning.
3805         * tests/test-dup2.c (setmode): Likewise.
3806         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
3807
3808         cloexec: preserve text vs. binary across dup_cloexec
3809         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
3810         mode.
3811         * modules/dup2-tests (Depends-on): Add binary-io.
3812         * modules/cloexec-tests (Depends-on): Likewise.
3813         * tests/test-dup2.c (setmode, is_mode): New helpers.
3814         (main): Add tests that translation mode is preserved.
3815         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
3816         Reported by Bruno Haible.
3817
3818         mgetgroups: reduce duplicate listings
3819         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
3820         resulting array.
3821         * tests/test-chown.h (test_chown): Simplify client.
3822         * tests/test-lchown.h (test_lchown): Likewise.
3823
3824 2009-12-06  Bruno Haible  <bruno@clisp.org>
3825
3826         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
3827         value.
3828
3829 2009-12-06  Bruno Haible  <bruno@clisp.org>
3830
3831         * lib/progname.c: Include stdio.h, stdlib.h.
3832         (set_program_name): Reject a NULL argument.
3833
3834 2009-12-05  Eric Blake  <ebb9@byu.net>
3835
3836         pipe2-safer: new module
3837         * modules/pipe2-safer: New file.
3838         * lib/unistd-safer.h (pipe2_safer): New prototype.
3839         * lib/unistd--.h (pipe2): New wrapper.
3840         * lib/pipe-safer.c (pipe2_safer): New function.
3841         * modules/pipe (Depends-on): Add pipe2-safer.
3842         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
3843
3844         stdlib-safer: preserve cloexec flag for mkostemp[s]
3845         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
3846         fd_safer_flag.
3847
3848         unistd-safer: allow preservation of cloexec status via flag
3849         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
3850         prototypes.
3851         * lib/dup-safer.c (dup_safer_flag): New function.
3852         * lib/fd-safer.c (fd_safer_flag): Likewise.
3853         * modules/cloexec (configure.ac): Set witness.
3854
3855         test-dup2: enhance test
3856         * modules/dup2-tests (Depends-on): Add cloexec.
3857         * tests/test-dup2.c (main): Enhance test.
3858
3859         cloexec: add dup_cloexec
3860         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
3861         header and comments.
3862         * lib/cloexec.c (set_cloexec_flag): Add comments.
3863         (dup_cloexec): New function, with mingw implementation borrowed
3864         from...
3865         * lib/w32spawn.h (dup_noinherit): ...here.
3866         * modules/execute (Depends-on): Add cloexec.
3867         * modules/pipe (Depends-on): Likewise.
3868         * modules/cloexec (Depends-on): Add dup2.
3869         * modules/cloexec-tests (Files): New file.
3870         * tests/test-cloexec.c: Likewise.
3871
3872         test-xalloc-die: fix test for mingw
3873         * modules/xalloc-die-tests (Files): Add tests/init.sh.
3874         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
3875         directory and .exe suffix off argv[0] output.
3876
3877         test-fseeko: fix test for mingw
3878         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
3879         than undefining fseek, so test will pass on mingw.
3880
3881 2009-12-05  Bruno Haible  <bruno@clisp.org>
3882
3883         * lib/progname.h (set_program_name): Clarify specification.
3884         * lib/progname.c (set_program_name): Likewise.
3885         Reported by Jim Meyering.
3886
3887 2009-12-05  Jim Meyering  <meyering@redhat.com>
3888
3889         maint.mk: backslash-escape parens in default regexp
3890         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
3891         backslash-escape the literal parentheses.
3892
3893         maint.mk: news-date-check: use grep -E
3894         * top/maint.mk (today): Define a Make variable, not a...
3895         (news-date-check): ...shell variable.
3896         (news-date-regexp): Use the Make variable.
3897         Use grep's -E option.  Change the failing diagnostic to mention
3898         the variable, $(news-date-regexp).
3899
3900 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
3901
3902         maintainer-makefile: allow customization of NEWS entry format
3903         * top/maint.mk (news-date-regexp): New overridable variable.
3904         (news-date-check): Use it.
3905
3906 2009-12-04  Eric Blake  <ebb9@byu.net>
3907
3908         mgetgroups: add xgetgroups, and avoid ENOSYS failures
3909         * lib/mgetgroups.h (xgetgroups): New prototype.
3910         * lib/mgetgroups.c (xgetgroups): New wrapper.
3911         (mgetgroups): Handle ENOSYS.
3912         * modules/mgetgroups (Depends-on): Add realloc.
3913         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
3914
3915         mgetgroups: avoid argument promotion issues with -1
3916         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
3917         for invalid gid_t.
3918         * tests/test-chown.h (getegid, test_chown): Likewise.
3919         * tests/test-lchown.h (getegid, test_lchown): Likewise.
3920
3921 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
3922
3923         exclude: Fix header file problems.
3924         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
3925
3926 2009-12-01  Jim Meyering  <meyering@redhat.com>
3927
3928         fts: fts_open: do not let an empty string cause immediate failure
3929         This is required in support of GNU rm, for which the command
3930         "rm A '' B" must process and remove both A and B, in spite of
3931         the empty string argument.
3932         * lib/fts.c (fts_open): Do not let the presence of an empty string
3933         cause fts_open to fail immediately.  Most fts-using tools must be
3934         able to process all arguments, in order, and can be expected to
3935         diagnose such arguments themselves.
3936
3937 2009-11-30  Eric Blake  <ebb9@byu.net>
3938
3939         utimens: fix compilation error
3940         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
3941         Declare variable at right scope.
3942
3943 2009-11-29  Jim Meyering  <meyering@redhat.com>
3944
3945         bootstrap: handle perl-5.11's changed --version output
3946         * build-aux/bootstrap (get_version): Handle perl separately,
3947         since perl-5.11's --version output is different.
3948
3949 2009-11-28  Jim Meyering  <meyering@redhat.com>
3950
3951         userspec: depend on the inttostr module, too
3952         * modules/userspec (Depends-on): Add inttostr.
3953
3954         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
3955         * lib/userspec.c (parse_with_separator): Do not accept a user ID
3956         number of MAXUID when it evaluates to (uid_t) -1.
3957         Likewise for group ID.  Reported by Matt McCutchen in
3958         <http://savannah.gnu.org/bugs/?28113>
3959
3960         userspec: reformat to use spaces, not TABs
3961         * lib/userspec.c: Expand TABs to spaces.
3962         Add Emacs' "indent-tabs-mode: nil" hint.
3963
3964 2009-11-27  Eric Blake  <ebb9@byu.net>
3965
3966         getopt-gnu: flush out another BSD bug
3967         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
3968         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
3969         flush out BSD bug.
3970         * tests/test-getopt.h (test_getopt): End lists with NULL.
3971         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3972         (test_getopt_long_posix): Enhance test.
3973         * modules/getopt-posix-tests (Depends-on): Add stdbool.
3974         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
3975         getopt-gnu.
3976         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3977         Likewise.
3978
3979 2009-11-27  Simon Josefsson  <simon@josefsson.org>
3980
3981         * modules/idpriv-droptemp-tests (Notice): Fix text.
3982
3983 2009-11-27  Jim Meyering  <meyering@redhat.com>
3984
3985         test-xalloc-die: avoid spurious failure due to libtool argv difference
3986         In a libtool-enabled project, this test would fail due to a difference
3987         in the emitted program name, e.g.,
3988         -test-xalloc-die: memory exhausted
3989         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
3990         Use program to avoid that.
3991         * modules/xalloc-die-tests (Depends-on): Add progname.
3992         * tests/test-xalloc-die.c: Include progname.h".
3993         (program_name): Remove decl.
3994         (main): Call set_program_name.
3995         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
3996
3997 2009-11-26  Richard Jones  <rjones@redhat.com>
3998
3999         w32sock: leave win32 error in place.
4000         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
4001
4002 2009-11-26  Eric Blake  <ebb9@byu.net>
4003
4004         init.sh: suggest to use skip_ and fail_ functions in comments
4005         * tests/init.sh: Add a sentence.
4006
4007 2009-11-25  Bruno Haible  <bruno@clisp.org>
4008
4009         init.sh: add documentation in comments
4010         * tests/init.sh: Add some developer and user documentation.
4011
4012 2009-11-26  Jim Meyering  <meyering@redhat.com>
4013
4014         init.sh: accommodate even those who specify bogus srcdir manually
4015         * tests/init.sh: Normally, srcdir is guaranteed by automake and
4016         configure-time tests to be sanitized, so that there is no need to
4017         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
4018         (with no double quotes) suffices.  However, since tests may be
4019         invoked manually, and since you may explicitly set srcdir to the
4020         name of a directory containing spaces, do quote its uses here.
4021         * tests/test-pread.sh: Likewise.
4022         Suggested by Bruno Haible.
4023
4024         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
4025         * tests/test-pread.sh: Write no data into the pipe, because
4026         test-pread actually reads none.  This avoids a diagnostic,
4027         "bash: echo: write error: Broken pipe", that arises in the unusual
4028         event something is ignoring SIGPIPE, and might be interpreted
4029         as some sort of failure.  Reported by Bruno Haible.
4030
4031 2009-11-25  Jim Meyering  <meyering@redhat.com>
4032
4033         test-pread: cover failure with ESPIPE and EINVAL
4034         * tests/test-pread.c (main): Test for failure, too.
4035         * tests/test-pread.sh: Invoke with stdin on a pipe.
4036         Suggested by Eric Blake.
4037
4038         pread: improvement and fix
4039         * modules/pread (Depends-on): Depend on lseek, for portability to
4040         e.g., mingw.  Suggested by Eric Blake.
4041         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
4042
4043         unistd.in.h: correct declaration of pread
4044         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
4045         Reported by Richard W.M. Jones.
4046
4047         test-pread.sh: distribute the test script
4048         * modules/pread-tests (Files): Include test-pread.sh.
4049
4050         test-pread.sh: clean up
4051         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
4052         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
4053         That is unnecessary, since it's always ".".
4054         Suggestion from Eric Blake.
4055
4056         test-pread.sh: make executable
4057         * tests/test-pread.sh: Set executable bit.
4058         Reported by Eric Blake.
4059
4060         correct typo in test-pread.sh
4061         * tests/test-pread.sh: Add #! line.
4062
4063         test pread
4064         * tests/test-pread.c: New file.
4065         * tests/test-pread.sh: Likewise.
4066         * modules/pread-tests: Likewise.
4067
4068         pread: new module
4069         * modules/pread: New file.
4070         * lib/unistd.in.h (pread): Define/declare.
4071         * lib/pread.c (pread): New file.
4072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
4073         * modules/unistd (Makefile.am): Substitute witnesses.
4074         * doc/posix-functions/pread.texi (pread): Update.
4075         * MODULES.html.sh: Add pread.
4076
4077 2009-11-25  Jim Meyering  <meyering@redhat.com>
4078
4079         tests/init.sh: new file to be used via most *.sh tests
4080         * tests/init.sh: New file.
4081
4082 2009-11-25  Eric Blake  <ebb9@byu.net>
4083
4084         utimens: work around older Linux failure with symlinks
4085         * lib/utimens.c (lutimensat_works_really): New variable.
4086         (fdutimens, lutimens): Use it to manage kernels that support
4087         nanosecond times on files, but not on symlinks.
4088         Reported by OndÅ™ej Vašík.
4089
4090         utimes: fix configure grammar
4091         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
4092
4093 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
4094
4095         regex: Fix fastmap for multibyte character ranges.
4096         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
4097         characters when a multibyte character range is included.
4098
4099 2009-11-22  Andy Wingo  <wingo@pobox.com>
4100
4101         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
4102         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
4103
4104 2009-11-24  Bruno Haible  <bruno@clisp.org>
4105
4106         doc: Most *_l functions exist in MacOS X 10.5.
4107         * doc/posix-functions/duplocale.texi: Update platforms list.
4108         * doc/posix-functions/freelocale.texi: Likewise.
4109         * doc/posix-functions/newlocale.texi: Likewise.
4110         * doc/posix-functions/uselocale.texi: Likewise.
4111         * doc/posix-functions/isalnum_l.texi: Likewise.
4112         * doc/posix-functions/isalpha_l.texi: Likewise.
4113         * doc/posix-functions/isblank_l.texi: Likewise.
4114         * doc/posix-functions/iscntrl_l.texi: Likewise.
4115         * doc/posix-functions/isdigit_l.texi: Likewise.
4116         * doc/posix-functions/isgraph_l.texi: Likewise.
4117         * doc/posix-functions/islower_l.texi: Likewise.
4118         * doc/posix-functions/isprint_l.texi: Likewise.
4119         * doc/posix-functions/ispunct_l.texi: Likewise.
4120         * doc/posix-functions/isspace_l.texi: Likewise.
4121         * doc/posix-functions/isupper_l.texi: Likewise.
4122         * doc/posix-functions/iswalnum_l.texi: Likewise.
4123         * doc/posix-functions/iswalpha_l.texi: Likewise.
4124         * doc/posix-functions/iswblank_l.texi: Likewise.
4125         * doc/posix-functions/iswcntrl_l.texi: Likewise.
4126         * doc/posix-functions/iswctype_l.texi: Likewise.
4127         * doc/posix-functions/iswdigit_l.texi: Likewise.
4128         * doc/posix-functions/iswgraph_l.texi: Likewise.
4129         * doc/posix-functions/iswlower_l.texi: Likewise.
4130         * doc/posix-functions/iswprint_l.texi: Likewise.
4131         * doc/posix-functions/iswpunct_l.texi: Likewise.
4132         * doc/posix-functions/iswspace_l.texi: Likewise.
4133         * doc/posix-functions/iswupper_l.texi: Likewise.
4134         * doc/posix-functions/iswxdigit_l.texi: Likewise.
4135         * doc/posix-functions/isxdigit_l.texi: Likewise.
4136         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
4137         * doc/posix-functions/strcasecmp_l.texi: Likewise.
4138         * doc/posix-functions/strcoll_l.texi: Likewise.
4139         * doc/posix-functions/strfmon_l.texi: Likewise.
4140         * doc/posix-functions/strftime_l.texi: Likewise.
4141         * doc/posix-functions/strncasecmp_l.texi: Likewise.
4142         * doc/posix-functions/strxfrm_l.texi: Likewise.
4143         * doc/posix-functions/tolower_l.texi: Likewise.
4144         * doc/posix-functions/toupper_l.texi: Likewise.
4145         * doc/posix-functions/towctrans_l.texi: Likewise.
4146         * doc/posix-functions/towlower_l.texi: Likewise.
4147         * doc/posix-functions/towupper_l.texi: Likewise.
4148         * doc/posix-functions/wcscoll_l.texi: Likewise.
4149         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
4150         * doc/posix-functions/wctrans_l.texi: Likewise.
4151         * doc/posix-functions/wctype_l.texi: Likewise.
4152         * doc/glibc-functions/strptime_l.texi: Likewise.
4153         * doc/glibc-functions/strtod_l.texi: Likewise.
4154         * doc/glibc-functions/strtof_l.texi: Likewise.
4155         * doc/glibc-functions/strtol_l.texi: Likewise.
4156         * doc/glibc-functions/strtold_l.texi: Likewise.
4157         * doc/glibc-functions/strtoll_l.texi: Likewise.
4158         * doc/glibc-functions/strtoul_l.texi: Likewise.
4159         * doc/glibc-functions/strtoull_l.texi: Likewise.
4160         * doc/glibc-functions/wcsftime_l.texi: Likewise.
4161         * doc/glibc-functions/wcstod_l.texi: Likewise.
4162         * doc/glibc-functions/wcstof_l.texi: Likewise.
4163         * doc/glibc-functions/wcstol_l.texi: Likewise.
4164         * doc/glibc-functions/wcstold_l.texi: Likewise.
4165         * doc/glibc-functions/wcstoll_l.texi: Likewise.
4166         * doc/glibc-functions/wcstoul_l.texi: Likewise.
4167         * doc/glibc-functions/wcstoull_l.texi: Likewise.
4168
4169 2009-11-24  Bruno Haible  <bruno@clisp.org>
4170
4171         duplocale: Fix logic bug.
4172         * lib/duplocale.c: Don't include <langinfo.h>.
4173         (_NL_LOCALE_NAME): Remove macro.
4174         (rpl_duplocale): Use setlocale instead of nl_langinfo.
4175         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
4176
4177 2009-11-23  Jim Meyering  <meyering@redhat.com>
4178
4179         test-update-copyright: don't hard-code /usr/bin/perl
4180         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
4181         perl to print the current year.  Gilles Espinasse reported that
4182         the replaced use of perl was hard-coded as /usr/bin/perl.
4183
4184 2009-11-23  Bruno Haible  <bruno@clisp.org>
4185
4186         duplocale: Add support for glibc 2.3.x.
4187         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
4188
4189 2009-11-22  Bruno Haible  <bruno@clisp.org>
4190
4191         vasnprintf: Tiny optimization.
4192         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
4193         MacOS X.
4194
4195 2009-11-22  Bruno Haible  <bruno@clisp.org>
4196
4197         Tests for module 'duplocale'.
4198         * modules/duplocale-tests: New file.
4199         * tests/test-duplocale.c: New file.
4200
4201         New module 'duplocale'.
4202         * m4/duplocale.m4: New file.
4203         * lib/locale.in.h (duplocale): New declaration.
4204         * lib/duplocale.c: New file.
4205         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
4206         gl_LOCALE_H_DEFAULTS): New macros.
4207         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
4208         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
4209         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
4210         REPLACE_DUPLOCALE.
4211         * modules/duplocale: New file.
4212         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
4213
4214 2009-11-22  Bruno Haible  <bruno@clisp.org>
4215
4216         * modules/locale-tests (configure.ac): Test for newlocale function.
4217         * tests/test-locale.c: When the system has extended locale functions,
4218         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
4219
4220         locale: Make locale_t available when possible.
4221         * lib/locale.in.h: Include <xlocale.h> when it exists.
4222         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
4223         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
4224         * modules/locale (Depends-on): Add extensions.
4225         (Makefile.am): Also substitute HAVE_XLOCALE_H.
4226         * doc/posix-headers/locale.texi: Document the problem with locale_t.
4227
4228 2009-11-22  Bruno Haible  <bruno@clisp.org>
4229
4230         Add comments.
4231         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
4232         invocation.
4233         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
4234         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4235         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
4236
4237 2009-11-22  Bruno Haible  <bruno@clisp.org>
4238
4239         error: account for the possibility of freopen (stdout).
4240         * lib/error.c: Include <unistd.h>.
4241         (flush_stdout): New function, extracted from error and error_at_line.
4242         Determine stdout's fd dynamically.
4243         (error, error_at_line): Invoke flush_stdout.
4244         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
4245         * modules/error (Depends-on): Add unistd.
4246
4247 2009-11-22  Bruno Haible  <bruno@clisp.org>
4248
4249         diffseq: Add comment.
4250         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
4251
4252 2009-11-22  Jim Meyering  <meyering@redhat.com>
4253
4254         c-stack: avoid defining an unused static function
4255         * lib/c-stack.c (find_stack_direction): Do not define this function
4256         when it will not be used.
4257
4258         diffseq: avoid spurious gcc warnings
4259         * lib/diffseq.h (IF_LINT2): Define.
4260         (compareseq): Use it to initialize two members of "part".
4261         This avoids two used-uninitialized warnings.
4262
4263 2009-11-21  Jim Meyering  <meyering@redhat.com>
4264
4265         c-stack: avoid "ignoring return value of `write'" warning
4266         * lib/c-stack.c: Include "ignore-value.h".
4267         (die): Explicitly ignore each write return value.
4268         * modules/c-stack (Depends-on): Add ignore-value.
4269
4270 2009-11-21  Bruno Haible  <bruno@clisp.org>
4271
4272         diffseq: reduce scope of variable 'best'.
4273         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
4274         variable, earlier used for two different purposes.
4275
4276 2009-11-21  Jim Meyering  <meyering@redhat.com>
4277
4278         diffseq: remove useless assignment to "best"
4279         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
4280         assignment.  At that point "best" is already guaranteed to be zero.
4281
4282 2009-11-20  Eric Blake  <ebb9@byu.net>
4283
4284         build: mention ftp redirector in release announcements
4285         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
4286         values that used to come from cfg.mk; mention FTP redirect URL.
4287         * build-aux/announce-gen: Mention the mirror list.
4288         Suggested by Karl Berry.
4289
4290         nanosleep: improve port to mingw
4291         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
4292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
4293         LIB_NANOSLEEP, but only when needed.
4294         * modules/select (Link): Document LIBSOCKET.
4295         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
4296         enough.
4297
4298         nanosleep: work around cygwin bug
4299         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
4300         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
4301         bug.
4302         (getnow): Delete, not needed.
4303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
4304         LIB_CLOCK_GETTIME.
4305         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
4306         clock-time, gettime.
4307         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
4308         bug.
4309         * modules/nanosleep-tests: New test.
4310         * tests/test-nanosleep.c: New file.
4311
4312         sleep: work around cygwin bug
4313         * lib/sleep.c (rpl_sleep): Work around the bug.
4314         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
4315         (gl_PREREQ_SLEEP): Delete unused macro.
4316         * modules/sleep (Depends-on): Add verify.
4317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4318         * modules/unistd (Makefile.am): Substitute witness.
4319         * lib/unistd.in.h (sleep): Update prototype.
4320         * doc/posix-functions/sleep.texi (sleep): Document the bug.
4321         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
4322         * modules/sleep-tests (Depends-on): Check for alarm.
4323
4324 2009-11-20  Jim Meyering  <meyering@redhat.com>
4325
4326         maint.mk: improve sc_prohibit_magic_number_exit
4327         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
4328         so it does not match uses like System.exit(1).
4329         Add comments showing how to correct all offenders.
4330
4331 2009-11-19  Eric Blake  <ebb9@byu.net>
4332
4333         xalloc-die-tests: add missing library
4334         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
4335
4336         test-xvasprintf: silence compiler warnings
4337         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
4338         empty string from gcc.
4339
4340 2009-11-19  Jim Meyering  <meyering@redhat.com>
4341
4342         xfreopen: new module, from coreutils
4343         * modules/xfreopen: New module.
4344         * lib/xfreopen.c: New file.
4345         * lib/xfreopen.h: New file.
4346         * MODULES.html.sh (File stream based Input/Output"): Add it.
4347
4348 2009-11-19  Eric Blake  <ebb9@byu.net>
4349
4350         manywarnings: depend on warnings
4351         * modules/manywarnings (Depends-on): Add warnings.
4352
4353         build: avoid compiler warnings
4354         * lib/select.c (rpl_select): Delete unused variable.
4355         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
4356
4357 2009-11-18  Eric Blake  <ebb9@byu.net>
4358
4359         tests: avoid false negative with --with-packager
4360         * tests/test-version-etc.sh: Discard packager information.
4361         * tests/test-argp-version-etc-1.sh: Likewise.
4362         Reported by Mike Frysinger.
4363
4364         utimens: fix regression on Solaris
4365         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
4366         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
4367         can only change fd timestamps via futimesat.  Instead, use an
4368         additional witness macro to avoid BSD bug.
4369         Reported by Jim Meyering.
4370
4371 2009-11-17  Eric Blake  <ebb9@byu.net>
4372
4373         usleep: use it to simplify tests
4374         * modules/stat-time-tests (Depends-on): Add usleep.
4375         (configure.ac): Drop usleep check.
4376         * modules/chown-tests (Depends-on, configure.ac): Likewise.
4377         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
4378         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
4379         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
4380         * modules/openat-tests (Depends-on, configure.ac): Likewise.
4381         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
4382         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
4383         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
4384         Likewise.
4385         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
4386         * tests/test-lchown.h (nap): Likewise.
4387         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
4388         * tests/test-stat-time.c (nap): Likewise.
4389         * tests/test-utimens-common.h (nap): Update comments.
4390
4391         usleep: new module
4392         * modules/usleep: New file.
4393         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4394         * lib/usleep.c (usleep): Likewise.
4395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
4396         * modules/unistd (Makefile.am): Substitute witnesses.
4397         * lib/unistd.in.h (usleep): Add declaration.
4398         * doc/pastposix-functions/usleep.texi (usleep): Document this.
4399         * MODULES.html.sh (Date and time): Likewise.
4400         * modules/usleep-tests (Depends-on): New test.
4401         * tests/test-usleep.c: New file.
4402
4403         chown: work around OpenBSD bug
4404         * lib/chown.c (rpl_chown): Work around the bug.
4405         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
4406         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
4407         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
4408         * modules/chown (Depends-on): Add stdbool.
4409         * modules/lchown (Depends-on): Likewise.
4410         * doc/posix-functions/chown.texi (chown): Document the bug.
4411         * doc/posix-functions/lchown.texi (lchown): Likewise.
4412         * tests/test-lchown.h (test_chown): Relax test.
4413
4414         mkstemp: avoid conflict with C++ keyword template
4415         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
4416         * lib/mkostemp.c (mkostemp): Likewise.
4417         * lib/mkostemps.c (mkostemps): Likewise.
4418         * lib/mkstemp.c (mkstemp): Likewise.
4419         * lib/mkstemps.c (mkstemps): Likewise.
4420
4421         xalloc-die-tests: optimize
4422         * tests/test-xalloc-die.sh: Reduce number of processes.
4423
4424 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4425
4426         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
4427         patch from ludo@gnu.org (Ludovic Courtès).
4428
4429 2009-11-17  Jim Meyering  <meyering@redhat.com>
4430
4431         version-etc: use proper license string
4432         * modules/version-etc (License): Use LGPL, not LGPLv3+.
4433         * modules/version-etc-fsf: Likewise.
4434
4435 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4436
4437         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
4438         printed to stdout.  Deal with EOL differences.
4439
4440 2009-11-17  Eric Blake  <ebb9@byu.net>
4441
4442         unsetenv: work around Solaris bug
4443         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
4444         * lib/unsetenv.c (rpl_unsetenv): Work around it.
4445         Reported by Jim Meyering.
4446
4447         vasnprintf: avoid compiler warnings
4448         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
4449         variables.
4450         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
4451
4452 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4453
4454         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
4455         settings since xalloc-die is no longer the self test,
4456         xalloc-die.sh is.
4457
4458 2009-11-17  Jim Meyering  <meyering@redhat.com>
4459
4460         test-xalloc-die.sh: make the code agree with the commit log
4461         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
4462         at the end, just in case you happen to have a test-xalloc-die
4463         program in some other PATH directory.
4464
4465         test-xalloc-die.sh: fix a portability bug
4466         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
4467         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
4468         Otherwise, argv[0] (as often seen in diagnostics) would be too
4469         system-dependent, sometimes with, and sometimes without the leading "./".
4470
4471         version-etc-fsf: relax license to LGPLv3+
4472         * modules/version-etc-fsf (License): Relax license.
4473
4474 2009-11-16  Eric Blake  <ebb9@byu.net>
4475
4476         xalloc-die-tests: avoid printing null pointer
4477         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
4478         shell script.
4479         * tests/test-xalloc-die.c (program_name): Declare.
4480         * tests/test-xalloc-die.sh (tmpfiles): New file.
4481
4482         setenv, unsetenv: work around various bugs
4483         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
4484         (setenv) [HAVE_SETENV]: Work around bugs.
4485         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
4486         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
4487         for bugs.
4488         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
4489         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
4490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
4491         * modules/stdlib (Makefile.am): Update substitutions.
4492         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
4493         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
4494         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4495         * modules/setenv-tests: New test.
4496         * modules/unsetenv-tests: Likewise.
4497         * tests/test-setenv.c: New file.
4498         * tests/test-unsetenv.c: Likewise.
4499
4500 2009-11-16  Jim Meyering  <meyering@redhat.com>
4501
4502         version-etc: relax license to LGPLv3+
4503         * modules/version-etc (License): Relax license.
4504
4505         better AC_REQUIRE expanded-before-required-warning avoidance
4506         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
4507         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
4508         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
4509         which is no longer needed.
4510
4511 2009-11-16  Eric Blake  <ebb9@byu.net>
4512
4513         test-freading: clean up temporary file
4514         * tests/test-freading.c (main): Remove file on success, and use
4515         ASSERT more liberally.
4516         Reported by Jim Meyering.
4517
4518 2009-11-16  Jim Meyering  <meyering@redhat.com>
4519
4520         avoid new AC_REQUIRE expanded-before-required warnings
4521         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
4522         merely using it.
4523         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
4524         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
4525
4526 2009-11-15  Simon Josefsson  <simon@josefsson.org>
4527
4528         * tests/test-xalloc-die.c: New file.
4529         * modules/xalloc-die-tests: New file.
4530         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
4531         XFAIL_TESTS so it can be appended by modules.
4532
4533 2009-11-15  Simon Josefsson  <simon@josefsson.org>
4534
4535         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
4536         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
4537
4538 2009-11-14  Eric Blake  <ebb9@byu.net>
4539
4540         fnmatch: avoid compiler warning
4541         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
4542         to silence compiler warning about mismatch signedness in ?:.
4543         Reported by Robert Millan.
4544
4545         intprops: add double-inclusion guard
4546         * lib/intprops.h: Allow idempotent includes.
4547         Suggested by Bruce Korb.
4548
4549         openat: detect Solaris fchownat bug
4550         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
4551         penalizing glibc chownat when only lchownat is broken.
4552         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
4553         trailing slash bugs.
4554         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
4555         * modules/openat-tests (Files): Include more files.
4556         (Depends-on): Add mgetgroups, sleep, stat-time.
4557         (configure.ac): Add additional checks.
4558         (Makefile.am): Build new test.
4559         * tests/test-fchownat.c: New file.
4560
4561         lchown: detect Solaris and FreeBSD bug
4562         * lib/lchown.c (rpl_lchown): Work around bug.
4563         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
4564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4565         * modules/unistd (Makefile.am): Populate it.
4566         * lib/unistd.in.h (lchown): Update declaration.
4567         * doc/posix-functions/lchown.texi (lchown): Document the bug.
4568         * modules/lchown-tests: New file.
4569         * tests/test-lchown.h (test_lchown): Likewise.
4570         * tests/test-lchown.c (main): Likewise.
4571
4572         chown: detect Solaris and FreeBSD bug
4573         * lib/chown.c (rpl_chown): Work around bug.
4574         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
4575         (gl_PREREQ_CHOWN): Delete.
4576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4577         * modules/unistd (Makefile.am): Populate it.
4578         * lib/unistd.in.h (chown): Update declaration.
4579         * lib/lchown.c (chown): Update client.
4580         * modules/lchown (Depends-on): Add lstat.
4581         * doc/posix-functions/chown.texi (chown): Document the bug.
4582         * doc/posix-functions/getgroups.texi (getgroups): Document
4583         getgroups pitfall.
4584         * modules/chown-tests: New file.
4585         * tests/test-chown.h (test_chown): Likewise.
4586         * tests/test-chown.c (main): Likewise.
4587
4588 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
4589
4590         gnulib-tool: correctly detect absence of m4 directories
4591         * gnulib-tool: Avoid extra newline on data passed to wc -l.
4592
4593 2009-11-14  Jim Meyering  <meyering@redhat.com>
4594
4595         maint.mk: Prohibit inclusion of "xalloc.h" without use.
4596         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4597
4598 2009-11-14  John W. Eaton  <jwe@gnu.org>
4599
4600         strftime.h: wrap funtion declaration in extern "C" block
4601         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
4602
4603 2009-11-13  Eric Blake  <ebb9@byu.net>
4604
4605         getgroups: avoid compiler warning
4606         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
4607
4608         getgroups: work around FreeBSD bug
4609         * lib/getgroups.c (rpl_getgroups): Work around the bug.
4610         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
4611         * doc/posix-functions/getgroups.texi (getgroups): Document it.
4612         * tests/test-getgroups.c (main): Fix buffer overrun.
4613
4614         getgroups: avoid compilation failure
4615         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
4616         * modules/getgroups (Depends-on): Add stdint.
4617
4618 2009-11-13  Jim Meyering  <meyering@redhat.com>
4619
4620         test-getgroups: avoid compilation failure
4621         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
4622
4623 2009-11-13  Eric Blake  <ebb9@byu.net>
4624
4625         mgetgroups: new module, taken from coreutils
4626         * modules/mgetgroups: New file.
4627         * lib/mgetgroups.h: Likewise.
4628         * lib/mgetgroups.c (mgetgroups): Likewise.
4629         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
4630         * MODULES.html.sh (Users and groups): Mention it.
4631
4632         getgroups: don't expose GETGROUPS_T to user
4633         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
4634         an element at a time if GETGROUPS_T is wrong size.
4635         * lib/getugroups.h (getugroups): Change signature.
4636         * lib/unistd.in.h (getgroups): Likewise.
4637         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
4638         signature needs fixing.
4639         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
4640         AC_TYPE_GETGROUPS.
4641         * modules/group-member (Depends-on): Add getgroups.
4642         * lib/group-member.c (group_info, get_group_info): Use gid_t.
4643         (group_member): Rely on getgroups replacement.
4644         * lib/getugroups.c (getugroups): Use gid_t.
4645         * tests/test-getgroups.c (main): Likewise.
4646         * NEWS: Mention the signature change.
4647         * doc/posix-functions/getgroups.texi (getgroups): Mention the
4648         problem with signature.
4649         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
4650         GETGROUPS_T is still useful for setgroups.
4651
4652         getgroups, getugroups: provide stubs for mingw
4653         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
4654         * lib/getugroups.c (getugroups): Likewise.
4655         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
4656         function.  Modernize replacement scheme.
4657         (gl_PREREQ_GETGROUPS): Delete.
4658         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
4659         * modules/getgroups (configure.ac): Declare witness.
4660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4661         * modules/unistd (Depends-on): Substitute witness.
4662         * lib/unistd.in.h (getgroups): Declare replacement.
4663
4664         getgroups: avoid calling exit
4665         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
4666         drop xalloc.
4667         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
4668         dependencies.
4669         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
4670         exiting, in the rare case of malloc failure.
4671
4672         getgroups: fix logic error
4673         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
4674         has more than 20 groups.
4675         * modules/getgroups-tests: New test.
4676         * tests/test-getgroups.c: New file.
4677
4678 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4679
4680         * tests/test-base64.c: Improve.
4681
4682 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4683
4684         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
4685         Blake <ebb9@byu.net>.
4686
4687 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4688
4689         * tests/test-xvasprintf.c: Add %s%s related checks.
4690
4691 2009-11-12  Eric Blake  <ebb9@byu.net>
4692
4693         version-etc: match standards.texi style
4694         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
4695         and use <> only for URLs.
4696
4697 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
4698
4699         fts: do not fail on a submount during traversal
4700         * lib/fts.c (fts_build): Read the stat info again after opening
4701         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
4702         Original report at http://bugzilla.redhat.com/501848.
4703
4704 2009-11-12  Jim Meyering  <meyering@redhat.com>
4705
4706         bootstrap: sync from coreutils
4707         * build-aux/bootstrap (bootstrap_epilogue): New function.
4708         Use git_modules_config in one more place.  This make bootstrap's
4709         --gnulib-srcdir option more useful for testing.
4710
4711         bootstrap: generalize autoheader check
4712         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
4713         AC_CONFIG_HEADERS.
4714
4715 2009-11-11  Eric Blake  <ebb9@byu.net>
4716
4717         mkfifoat: use new modules for Solaris and BSD bugs
4718         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
4719         * lib/mkfifoat.c (mknodat): Split...
4720         * lib/mknodat.c (mknodat): ...into new file.
4721         * modules/mkfifoat (Files): Ship new file.
4722         (Depends-on): Add mkfifo, mknod.
4723         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
4724         (Depends-on): Add symlink.
4725         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
4726         redundant with test_mkfifo.h.
4727         (do_mkfifoat, do_mknodat): New helpers.
4728
4729         mknod: new module
4730         * modules/mknod: New file.
4731         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
4732         * lib/mknod.c (mknod): Likewise.
4733         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4734         defaults.
4735         * modules/sys_stat (Makefile.am): Substitute them.
4736         * lib/sys_stat.in.h (mknod): Declare replacement.
4737         * MODULES.html.sh (Support for systems lacking POSIX:2008):
4738         Document it.
4739         * doc/posix-functions/mknod.texi (mknod): Likewise.
4740         * modules/mknod-tests: New test.
4741         * tests/test-mknod.c: Likewise.
4742
4743         mkfifo: new module
4744         * modules/mkfifo: New file.
4745         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
4746         * lib/mkfifo.c (mkfifo): Likewise.
4747         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4748         defaults.
4749         * modules/sys_stat (Makefile.am): Substitute them.
4750         * lib/sys_stat.in.h (mkfifo): Declare replacement.
4751         * MODULES.html.sh (Support for systems lacking POSIX:2008):
4752         Document it.
4753         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
4754         * modules/mkfifo-tests: New test.
4755         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
4756         from test-mkfifoat.c.
4757         * tests/test-mkfifo.c: New file.
4758
4759         readlink: detect FreeBSD bug
4760         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
4761         slash on symlink.
4762         * doc/posix-functions/readlink.texi (readlink): Document the bug.
4763         * tests/test-readlink.h (test_readlink): Enhance test.
4764
4765         symlink: detect FreeBSD bug
4766         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
4767         slash on symlink.
4768         * doc/posix-functions/symlink.texi (symlink): Document the bug.
4769         * tests/test-symlink.h (test_symlink): Enhance test.
4770
4771 2009-11-10  Eric Blake  <ebb9@byu.net>
4772
4773         link: detect FreeBSD bug
4774         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
4775         symlink.
4776         * doc/posix-functions/link.texi (link): Document the bug.
4777         * tests/test-link.h (test_link): Enhance test.
4778         * tests/test-linkat.c (main): Update caller.
4779
4780         unlink, remove: detect FreeBSD bug
4781         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
4782         slash on symlink.
4783         * doc/posix-functions/unlink.texi (unlink): Document the bug.
4784         * doc/posix-functions/remove.texi (remove): Likewise.
4785         * tests/test-unlink.h (test_unlink): Enhance test.
4786         * tests/test-remove.c (main): Likewise.
4787
4788 2009-11-09  Eric Blake  <ebb9@byu.net>
4789
4790         rename: detect FreeBSD bug
4791         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
4792         slash on symlink.
4793         * modules/renameat-tests (Depends-on): Add filenamecat.
4794         * tests/test-rename.h (test_rename): Allow one more errno.
4795         * tests/test-renameat.c (main): Likewise.
4796         * doc/posix-functions/rename.texi (rename): Document the bug.
4797
4798         open: detect FreeBSD bug
4799         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
4800         symlink.
4801         * doc/posix-functions/open.texi (open): Document the bug.
4802         * doc/posix-functions/utimes.texi (utimes): Likewise.
4803         * tests/test-open.h (test_open): Add parameters, and test symlink
4804         handling.
4805         * tests/test-open.c (main): Adjust caller.
4806         * tests/test-fcntl-safer.c (main): Likewise.
4807         * modules/open-tests (Depends-on): Add stdbool, symlink.
4808         * modules/fcntl-safer-tests (Depends-on): Likewise.
4809         * tests/test-openat.c (main): Add test-open tests.
4810
4811         stat: detect FreeBSD bug
4812         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
4813         symlink.
4814         * doc/posix-functions/stat.texi (stat): Document the bug.
4815         * tests/test-stat.h (test_stat_func): Add argument.
4816         * tests/test-stat.c (main): Adjust caller.
4817         * tests/test-fstatat.c (main): Likewise.
4818         * modules/stat-tests (Depends-on): Add stdbool, symlink.
4819         Reported by Jim Meyering.
4820
4821 2009-11-09  James Youngman  <jay@gnu.org>
4822
4823         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
4824         * lib/strftime.c: Correct placement of #include "ignore-value.h".
4825
4826 2009-11-08  Jim Meyering  <meyering@redhat.com>
4827
4828         utimens: remove invalid futimesat call
4829         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
4830         It used the file descriptor of the target file as the DIR_FD
4831         parameter and NULL as the file name.  That caused failure with
4832         errno == EFAULT on FreeBSD-8.0-rc2
4833
4834 2009-11-07  Eric Blake  <ebb9@byu.net>
4835
4836         fflush, freadseek: use fseeko, not fseek
4837         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4838         (clear_ungetc_buffer): Avoid potential problems on large files.
4839         * lib/freadseek.c (freadseek): Likewise.
4840         * modules/freadseek (Depends-on): Add fseeko.
4841         * modules/fseek (configure.ac): Set a witness.
4842         * tests/test-fflush.c (main): Use fseeko.
4843         * tests/test-fpurge.c (fseek): Disable link warning.
4844         * tests/test-freadable.c (fseek): Likewise.
4845         * tests/test-freading.c (fseek): Likewise.
4846         * tests/test-fseeko.c (fseek): Likewise.
4847         * tests/test-ftell.c (fseek): Likewise.
4848         * tests/test-ftello.c (fseek): Likewise.
4849         * tests/test-fwritable.c (fseek): Likewise.
4850         * tests/test-fwriting.c (fseek): Likewise.
4851
4852 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4853
4854         * modules/memchr (Depends-on): Drop getpagesize dependency.
4855
4856 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4857
4858         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
4859         Reported by Ludovic Courtès.
4860         * build-aux/pmccabe2html: Improve example usage.
4861         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
4862
4863 2009-11-06  Jim Meyering  <meyering@redhat.com>
4864
4865         do-release-commit-and-tag: New module.
4866         Automate the release-commit and tag process.
4867         * build-aux/do-release-commit-and-tag: New script, from coreutils.
4868         * modules/do-release-commit-and-tag: New file.
4869         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4870
4871 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4872
4873         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
4874         because test-select.c uses inet_pton.
4875
4876 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4877
4878         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
4879         GETADDRINFO_LIB.  Bump serial number.
4880         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
4881         Suggested by Eric Blake <ebb9@byu.net>.
4882
4883 2009-11-05  Eric Blake  <ebb9@byu.net>
4884
4885         strtod: detect darwin bug
4886         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
4887         Reported by Leo Davis.
4888
4889         freopen-safer: new module
4890         * modules/freopen-safer: New module.
4891         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
4892         * lib/freopen-safer.c (freopen_safer): New file.
4893         * lib/stdio-safer.h (freopen_safer): New declaration.
4894         * lib/stdio--.h (freopen): New override.
4895         * MODULES.html.sh (File stream based Input/Output): Mention it.
4896         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
4897         freopen-safer module.
4898         * doc/posix-functions/stderr.texi (stderr): Likewise.
4899         * doc/posix-functions/stdin.texi (stdin): Likewise.
4900         * doc/posix-functions/stdout.texi (stdout): Likewise.
4901         * modules/freopen-safer-tests: New test.
4902         * tests/test-reopen-safer.c: New file.
4903
4904 2009-11-05  Jim Meyering  <meyering@redhat.com>
4905
4906         maint.mk: Prohibit inclusion of "close-stream.h" without use.
4907         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4908
4909 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4910
4911         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
4912
4913 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4914
4915         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
4916
4917 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4918
4919         Fix link error.
4920         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
4921         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4922
4923 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4924
4925         * tests/test-func.c: Also test value of __func__.
4926
4927 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4928
4929         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
4930         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
4931
4932 2009-11-05  Bruno Haible  <bruno@clisp.org>
4933
4934         Fix link error.
4935         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
4936         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4937         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
4938
4939 2009-11-05  Bruno Haible  <bruno@clisp.org>
4940
4941         Tests for module 'inet_pton'.
4942         * modules/inet_pton-tests: New file.
4943         * tests/test-inet_pton.c: New file.
4944
4945 2009-11-05  Bruno Haible  <bruno@clisp.org>
4946
4947         Tests for module 'inet_ntop'.
4948         * modules/inet_ntop-tests: New file.
4949         * tests/test-inet_ntop.c: New file.
4950
4951 2009-11-04  Eric Blake  <ebb9@byu.net>
4952
4953         stdlib-safer: wrap all mkstemp variants
4954         * modules/mkostemp (configure.ac): Set witness.
4955         * modules/mkostemps (configure.ac): Likewise.
4956         * modules/mkstemps (configure.ac): Likewise.
4957         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
4958         (mkstemps_safer): Wrap more functions.
4959         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
4960         wrapping.
4961         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
4962         (mkstemps_safer): Implement the wrappers.
4963
4964         mkstemps, mkostemps: new modules
4965         * modules/mkostemps: New module.
4966         * modules/mkstemps: Likewise.
4967         * lib/mkostemps.c (mkostemps): New file.
4968         * lib/mkstemps.c (mkstemps): Likewise.
4969         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
4970         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
4971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
4972         * modules/stdlib (Makefile.am): Substitute them.
4973         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
4974         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
4975         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4976         * doc/gnulib.texi (Glibc stdlib.h): Include them.
4977         * MODULES.html.sh (File system functions): Mention them.
4978
4979         tempname: resync from glibc
4980         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
4981         same values for __GT_FILE as glibc.  Abort even when assertions
4982         are disabled.
4983         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
4984         match its value otherwise.  Allow idempotent inclusion.
4985         * lib/mkdtemp.c (mkdtemp): Adjust caller.
4986         * lib/mkostemp.c (mkostemp): Likewise.
4987         * lib/mkstemp.c (mkstemp): Likewise.
4988         * lib/tmpfile.c (tmpfile): Likewise.
4989         * NEWS: Document this.
4990
4991         utimens: fix use of futimens on older Linux
4992         * lib/utimens.c (fdutimens): Use updated, rather than original,
4993         timespec to avoid bug in older Linux kernel.
4994         Reported by Simon Josefsson.
4995
4996 2009-11-04  Bruno Haible  <bruno@clisp.org>
4997
4998         Make num_processors more flexible and consistent.
4999         * lib/nproc.h (enum nproc_query): New type.
5000         (num_processors): Add a 'query' argument.
5001         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
5002         (num_processors): Add a 'query' argument. Test the value of the
5003         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
5004         mingw, count the number of CPUs available for the current process.
5005         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
5006         Check for sched_getaffinity and sched_getaffinity_np.
5007         * modules/nproc (Depends-on): Add c-ctype, extensions.
5008         * NEWS: Mention the change.
5009
5010 2009-11-03  Bruno Haible  <bruno@clisp.org>
5011
5012         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
5013
5014 2009-11-03  Jim Meyering  <meyering@redhat.com>
5015
5016         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
5017         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
5018         if it is defined.
5019
5020 2009-11-02  Eric Blake  <ebb9@byu.net>
5021
5022         mktime, timegm: share common declaration
5023         * lib/mktime-internal.h: New file.
5024         * lib/mktime.c: Use it rather than open-coding a declaration.
5025         * lib/timegm.c: Likewise.
5026         * modules/mktime (Files): Ship it.
5027         * modules/timegm (Files): Likewise.
5028         Suggested by Bruno Haible.
5029
5030         test-update-copyright: update test to match script changes
5031         * tests/test-update-copyright.sh: Avoid hard-coding perl
5032         location.  Don't update *.bak created by earlier runs.
5033
5034 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
5035             Simon Josefsson  <simon@josefsson.org>
5036             Bruno Haible  <bruno@clisp.org>
5037
5038         Fix link error on Solaris 8.
5039         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
5040         also in libnsl. Define also INET_PTON_LIB.
5041         * modules/inet_pton (Link): New section.
5042
5043 2009-11-02  Simon Josefsson  <simon@josefsson.org>
5044             Bruno Haible  <bruno@clisp.org>
5045
5046         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
5047         * modules/inet_ntop (Link): New section.
5048         Reported by Boyan Kasarov <bkasarov@gmail.com>.
5049
5050 2009-11-02  Eric Blake  <ebb9@byu.net>
5051
5052         maint: avoid compiler warnings in m4 macros
5053         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
5054         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
5055
5056 2009-11-02  Simon Josefsson  <simon@josefsson.org>
5057
5058         * m4/pmccabe2html.m4: Remove file.
5059         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
5060         function.  Change maintainer.
5061         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
5062         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
5063         Courtès).
5064
5065 2009-10-31  Eric Blake  <ebb9@byu.net>
5066
5067         fseeko: fix m4 regression
5068         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
5069         regression from 2009-10-27.
5070         Reported by Ralf Wildenhues.
5071
5072 2009-10-31  Jim Meyering  <meyering@redhat.com>
5073
5074         inttostr: aesthetics and improved (compile-time) safety
5075         Define inttype_is_signed rather than inttype_is_unsigned,
5076         since the sole use is via "#if inttype_is_signed".
5077         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
5078         inttype_is_unsigned.
5079         * lib/offtostr.c (inttype_is_signed): Likewise.
5080         * lib/uinttostr.c (inttype_is_signed): Likewise.
5081         * lib/umaxtostr.c (inttype_is_signed): Likewise.
5082         * lib/inttostr.c (inttostr): Use verify to cross-check the
5083         inttype_is_signed value and the signedness of the actual type.
5084         * modules/inttostr (Depends-on): Add verify.
5085
5086 2009-10-30  Eric Blake  <ebb9@byu.net>
5087
5088         build: avoid compiler warnings
5089         * lib/fchmodat.c (lchmod): Mark unused variables.
5090         * lib/getopt.c (_getopt_initialize): Likewise.
5091         * lib/mktime.c (__mktime_internal): Provide prototype.
5092         * lib/inttostr.c (inttostr): Avoid compiler warning even with
5093         older gcc that do not understand #pragma GCC diagnostic.
5094         * lib/uinttostr.c (inttype_is_unsigned): Define.
5095         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
5096
5097 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5098
5099         stat: fix compilation on AIX
5100         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
5101         only see struct stat64.
5102
5103 2009-10-30  Eric Blake  <ebb9@byu.net>
5104
5105         exclude: make more robust
5106         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
5107         rather than masking a coding bug.
5108         Suggested by Bruno Haible.
5109
5110 2009-10-30  Jim Meyering  <meyering@redhat.com>
5111
5112         perl scripts: remove #!/usr/bin/perl in favor of more portable...
5113         Rather than putting #!/usr/bin/perl on the first line,
5114         start with a variant of what's recommended by "man perlrun" that
5115         invokes the first "perl" program from your shell's search path.
5116         * build-aux/gitlog-to-changelog: Replace #!... as above.
5117         Add a "Local Variables" perl mode setting.
5118         Prompted by a patch from Ludovic Courtès.
5119         Improved by Eric Blake.
5120         * build-aux/useless-if-before-free: Likewise.
5121         * build-aux/announce-gen: Likewise.
5122         * build-aux/update-copyright: Likewise.
5123
5124 2009-10-29  Eric Blake  <ebb9@byu.net>
5125
5126         filenamecat-lgpl: adjust clients
5127         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
5128         filenamecat.
5129         * modules/renameat (Depends-on): Likewise.
5130
5131         filenamecat: split into filenamecat-lgpl
5132         * modules/filenamecat-lgpl: New module.
5133         * modules/filenamecat (Files): Move library-safe files into
5134         filenamecat-lgpl.
5135         (Depends-on): Add filenamecat-lgpl.
5136         (configure.ac): Declare witness.
5137         * lib/filenamecat.h (file_name_concat): Only declare when using
5138         GPL module.
5139         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
5140         Move...
5141         * lib/filenamecat-lgpl.c: ...into new file.
5142         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
5143         (gl_FILE_NAME_CONCAT): Use it.
5144         * MODULES.html.sh (File system functions): Mention new module.
5145
5146         argp: avoid memory leak
5147         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
5148         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
5149         base_name, since the latter malloc()s and can call exit().
5150         Leak introduced 2006-07-03.
5151
5152         dirname-lgpl: adjust clients that don't need full dirname
5153         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
5154         * modules/filenamecat (Depends-on): Likewise.
5155         * modules/linkat (Depends-on): Likewise.
5156         * modules/mkancesdirs (Depends-on): Likewise.
5157         * modules/mkdir (Depends-on): Likewise.
5158         * modules/openat (Depends-on): Likewise.
5159         * modules/savewd (Depends-on): Likewise.
5160         * modules/rename (Depends-on): Likewise.
5161         (License): Relax license.
5162         * modules/mkdir-tests (Depends-on): Drop progname.
5163         (Makefile.am): Delete unneeded LDADD.
5164         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
5165
5166         dirname: split into dirname-lgpl
5167         * modules/dirname-lgpl: New module.
5168         * modules/dirname (Files): Move library-safe files into
5169         dirname-lgpl.
5170         (Depends-on): Add dirname-lgpl.
5171         (configure.ac): Declare witness.
5172         * modules/double-slash-root (License): Relax license.
5173         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
5174         module.
5175         * lib/dirname.c (dir_len, mdir_name): Move...
5176         * lib/dirname-lgpl.c: ...into new file.
5177         * lib/basename.c (last_component, base_len): Move...
5178         * lib/basename-lgpl.c: ...into new file.
5179         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
5180         (gl_DIRNAME): Use it.
5181         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
5182         Mention new module.
5183         * modules/dirname-tests (Depends-on): Add progname.
5184         * tests/test-dirname.c (program_name): Delete.
5185
5186         mkdir: make safe for libraries
5187         * modules/mkdir (Depends-on): Drop xalloc.
5188         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
5189         exit.
5190
5191         tests: avoid some compiler warnings
5192         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
5193         literals.
5194         * tests/test-memchr.c (main): Avoid type mismatch.
5195         * tests/test-arpa_inet.c (main): Avoid unused parameters.
5196         * tests/test-base64.c (main): Likewise.
5197         * tests/test-getdelim.c (main): Likewise.
5198         * tests/test-gethostname.c (main): Likewise.
5199         * tests/test-getline.c (main): Likewise.
5200         * tests/test-netinet_in.c (main): Likewise.
5201         * tests/test-select.c (open_server_socket, main): Likewise.
5202         * tests/test-select-stdin.c (main): Likewise.
5203         * tests/test-sockets.c (main): Likewise.
5204         * tests/test-strsignal.c (main): Likewise.
5205         * tests/test-sys_select.c (main): Likewise.
5206         * tests/test-sys_socket.c (main): Likewise.
5207         * tests/test-u64.c (main): Likewise.
5208         * tests/test-xfprintf-posix.c (main): Likewise.
5209         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
5210
5211         sockets: avoid compiler warning
5212         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
5213
5214         maint: detect usage(1) and other suspicious exits
5215         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
5216
5217 2009-10-29  Jim Meyering  <meyering@redhat.com>
5218
5219         timespec: long-to-int truncation could make timespec_cmp malfunction
5220         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
5221         a multiple of 2^32 nanoseconds as no difference.
5222
5223 2009-10-28  Jim Meyering  <meyering@redhat.com>
5224
5225         fprintftime: wrap macro code argument in "do {...} while(0)"
5226         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
5227         cpy macro must be a statement that can be followed by a semicolon.
5228         Now that the else clause contains a comment and is hence longer
5229         than one line, I require curly braces.  That in turn requires
5230         that we wrap this code block in the standard do...while(0).
5231
5232         fprintftime: remove stray semicolon from previous change
5233         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
5234
5235         fprintftime: avoid a warning about ignored fwrite return value
5236         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
5237         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
5238         that is unsafe.
5239         * modules/fprintftime (Depends-on): Add ignore-value.
5240
5241         exclude: avoid an unwarranted warning
5242         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
5243
5244 2009-10-27  Eric Blake  <ebb9@byu.net>
5245
5246         fseek: avoid compilation failure when fflush is replaced
5247         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
5248         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
5249         module is in use.
5250         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
5251         module is not in use; since REPLACE_FSEEK worked otherwise.
5252         (GNULIB_FTELLO): Likewise for ftell.
5253         Reported by Ian Beckwith and others.
5254
5255 2009-10-27  Bruno Haible  <bruno@clisp.org>
5256
5257         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
5258         Reported by Jim Meyering.
5259
5260 2009-10-27  Jim Meyering  <jim@meyering.net>
5261             Bruno Haible  <bruno@clisp.org>
5262
5263         Avoid warning despite dropping the return value of fwrite.
5264         * lib/unicodeio.c: Include ignore-value.h.
5265         (fwrite_success_callback): Explicitly ignore fwrite's return value.
5266         * modules/unicodeio (Depends-on): Add ignore-value.
5267
5268 2009-10-26  Eric Blake  <ebb9@byu.net>
5269
5270         areadlinkat: fix fallback path
5271         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
5272         pointer and zero.
5273
5274 2009-10-22  Pádraig Brady  <P@draigBrady.com>
5275
5276         Use a better IO block size for modern systems
5277         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
5278         * lib/md2.c: Likewise.
5279         * lib/md4.c: Likewise.
5280         * lib/md5.c: Likewise.
5281         * lib/sha1.c: Likewise.
5282         * lib/sha256.c: Likewise.
5283         * lib/sha512.c: Likewise.
5284
5285 2009-10-22  Eric Blake  <ebb9@byu.net>
5286
5287         tests: avoid several compiler warnings
5288         * tests/test-getcwd.c (main): Avoid buffer underflow.
5289         * tests/test-getdate.c (main): String literals are not safe with
5290         putenv, so use setenv.  Declare unused argument.
5291         * modules/getdate-tests (Depends-on): Add setenv.
5292         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
5293         problems with string literals in char *.
5294         * tests/test-hash.c (main): Avoid shadowing declaration.
5295         (insert_new): Treat string literals as char const *.
5296         * tests/test-getopt.h (test_getopt): Likewise.
5297         (getopt_loop): Alter types to minimize casting elsewhere.
5298         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
5299         (test_getopt_long_posix): Likewise.
5300         (do_getopt_long): Add wrapper to minimize casting.
5301         * tests/test-atexit.c (clear_temp_file): Use void.
5302         * tests/test-areadlink-with-size.c (main): Declare unused
5303         arguments.
5304         * tests/test-areadlink.c (main): Likewise.
5305         * tests/test-areadlinkat-with-size.c (main): Likewise.
5306         * tests/test-areadlinkat.c (main): Likewise.
5307         * tests/test-canonicalize-lgpl.c (main): Likewise.
5308         * tests/test-canonicalize.c (main): Likewise.
5309         * tests/test-dirent-safer.c (main): Likewise.
5310         * tests/test-dirname.c (main): Likewise.
5311         * tests/test-dup2.c (main): Likewise.
5312         * tests/test-fchdir.c (main): Likewise.
5313         * tests/test-fcntl-h.c (main): Likewise.
5314         * tests/test-fcntl-safer.c (main): Likewise.
5315         * tests/test-fdopendir.c (main): Likewise.
5316         * tests/test-fdutimensat.c (main): Likewise.
5317         * tests/test-fflush.c (main): Likewise.
5318         * tests/test-filenamecat.c (main): Likewise.
5319         * tests/test-filevercmp.c (main): Likewise.
5320         * tests/test-fopen-safer.c (main): Likewise.
5321         * tests/test-fopen.c (main): Likewise.
5322         * tests/test-fpending.c (main): Likewise.
5323         * tests/test-fpurge.c (main): Likewise.
5324         * tests/test-freading.c (main): Likewise.
5325         * tests/test-fstatat.c (main): Likewise.
5326         * tests/test-fsync.c (main): Likewise.
5327         * tests/test-futimens.c (main): Likewise.
5328         * tests/test-getndelim2.c (main): Likewise.
5329         * tests/test-gettimeofday.c (main): Likewise.
5330         * tests/test-getopt.c (main): Likewise.
5331         * tests/test-i-ring.c (main): Likewise.
5332         * tests/test-inttypes.c (main): Likewise.
5333         * tests/test-link.c (main): Likewise.
5334         * tests/test-lstat.c (main): Likewise.
5335         * tests/test-math.c (main): Likewise.
5336         * tests/test-md5.c (main): Likewise.
5337         * tests/test-memchr2.c (main): Likewise.
5338         * tests/test-memrchr.c (main): Likewise.
5339         * tests/test-mkdir.c (main): Likewise.
5340         * tests/test-mkdirat.c (main): Likewise.
5341         * tests/test-mkfifoat.c (main): Likewise.
5342         * tests/test-open.c (main): Likewise.
5343         * tests/test-openat-safer.c (main): Likewise.
5344         * tests/test-openat.c (main): Likewise.
5345         * tests/test-quotearg.c (main): Likewise.
5346         * tests/test-rawmemchr.c (main): Likewise.
5347         * tests/test-readlink.c (main): Likewise.
5348         * tests/test-remove.c (main): Likewise.
5349         * tests/test-rename.c (main): Likewise.
5350         * tests/test-renameat.c (main): Likewise.
5351         * tests/test-rmdir.c (main): Likewise.
5352         * tests/test-sha1.c (main): Likewise.
5353         * tests/test-signal.c (main): Likewise.
5354         * tests/test-sigaction.c (main): Likewise.
5355         * tests/test-stat.c (main): Likewise.
5356         * tests/test-stat-time.c (main): Likewise.
5357         * tests/test-stddef.c (main): Likewise.
5358         * tests/test-stdint.c (main): Likewise.
5359         * tests/test-stdio.c (main): Likewise.
5360         * tests/test-stdlib.c (main): Likewise.
5361         * tests/test-strchrnul.c (main): Likewise.
5362         * tests/test-strerror.c (main): Likewise.
5363         * tests/test-string.c (main): Likewise.
5364         * tests/test-strtod.c (main): Likewise.
5365         * tests/test-strverscmp.c (main): Likewise.
5366         * tests/test-symlink.c (main): Likewise.
5367         * tests/test-symlinkat.c (main): Likewise.
5368         * tests/test-sys_stat.c (main): Likewise.
5369         * tests/test-sys_time.c (main): Likewise.
5370         * tests/test-time.c (main): Likewise.
5371         * tests/test-unistd.c (main): Likewise.
5372         * tests/test-unlink.c (main): Likewise.
5373         * tests/test-unlinkat.c (main): Likewise.
5374         * tests/test-utimens.c (main): Likewise.
5375         * tests/test-utimensat.c (main): Likewise.
5376         * tests/test-version-etc.c (main): Likewise.
5377         * tests/test-wchar.c (main): Likewise.
5378         * tests/test-wctype.c (main): Likewise.
5379         * tests/test-xprintf-posix.c (main): Likewise.
5380         * tests/test-posixtm.c (main): Likewise.
5381         (STREQ): Delete unused macro.
5382         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
5383         shadowed variables.
5384         * tests/test-memchr.c (main): Likewise.
5385
5386 2009-10-21  Eric Blake  <ebb9@byu.net>
5387
5388         areadlinkat: avoid failure on older glibc
5389         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
5390         rather than mis-comparing 0 against FUNC_RESULT of char*.
5391
5392 2009-10-21  Bruno Haible  <bruno@clisp.org>
5393
5394         * modules/stpncpy (License): Relicense under LGPLv2+.
5395         Reported by David Lutterkort <lutter@redhat.com>.
5396
5397 2009-10-20  Eric Blake  <ebb9@byu.net>
5398
5399         utimensat: work around Solaris 9 bug
5400         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
5401         has trailing slash bugs.
5402         * tests/test-lutimens.h (test_lutimens): Enhance test.
5403         * tests/test-utimens.h (test_utimens): Likewise.
5404         * doc/posix-functions/utime.texi (utime): Enhance documentation.
5405         * doc/posix-functions/utimes.texi (utimes): Likewise.
5406         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5407         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
5408         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
5409         * doc/posix-functions/futimens.texi (futimens): Likewise.
5410
5411         fdutimensat: new module
5412         * modules/fdutimensat: New file.
5413         * lib/fdutimensat.c (fdutimensat): Likewise.
5414         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
5415         * MODULES.html.sh (File system functions): Mention module.
5416         * modules/fdutimensat-tests: New test.
5417         * tests/test-fdutimensat.c: Likewise.
5418
5419         doc: regenerate INSTALL
5420         * doc/INSTALL: Reflect recent autoconf update.
5421         * doc/INSTALL.ISO: Likewise.
5422         * doc/INSTALL.UTF-8: Likewise.
5423
5424 2009-10-20  Pádraig Brady  <P@draigBrady.com>
5425
5426         acl: warn if ACL support is not detected
5427         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
5428
5429 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
5430
5431         * lib/nproc.h: Add extern "C" block for C++.
5432
5433 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
5434             Bruno Haible  <bruno@clisp.org>
5435
5436         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
5437         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
5438         * doc/posix-functions/isalpha.texi: Likewise.
5439         * doc/posix-functions/isblank.texi: Likewise.
5440         * doc/posix-functions/iscntrl.texi: Likewise.
5441         * doc/posix-functions/isdigit.texi: Likewise.
5442         * doc/posix-functions/isgraph.texi: Likewise.
5443         * doc/posix-functions/islower.texi: Likewise.
5444         * doc/posix-functions/isprint.texi: Likewise.
5445         * doc/posix-functions/ispunct.texi: Likewise.
5446         * doc/posix-functions/isspace.texi: Likewise.
5447         * doc/posix-functions/isupper.texi: Likewise.
5448         * doc/posix-functions/isxdigit.texi: Likewise.
5449
5450 2009-10-18  Bruno Haible  <bruno@clisp.org>
5451
5452         Tests for module 'isblank'.
5453         * modules/isblank-tests: New file.
5454         * tests/test-isblank.c: New file.
5455
5456         New module 'isblank'.
5457         * lib/isblank.c: New file.
5458         * m4/isblank.m4: New file.
5459         * modules/isblank: New file.
5460         * doc/posix-functions/isblank.texi: Mention the new module.
5461
5462 2009-10-18  Bruno Haible  <bruno@clisp.org>
5463
5464         New module 'ctype'.
5465         * lib/ctype.in.h: New file.
5466         * m4/ctype.m4: New file.
5467         * modules/ctype: New file.
5468         * doc/posix-headers/ctype.texi: Mention the new module.
5469
5470 2009-10-18  Jim Meyering  <meyering@redhat.com>
5471
5472         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
5473         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
5474         right after its initialization, rather than farther down.
5475         Keeping these in close proximity makes it easier to ensure
5476         that each such variable is initialized.  E.g.,
5477
5478             LIB_CLOCK_GETTIME=
5479             AC_SUBST([LIB_CLOCK_GETTIME])
5480
5481         This change also increments these serial numbers.
5482         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
5483         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5485
5486 2009-10-18  Bruno Haible  <bruno@clisp.org>
5487
5488         Don't let environment variables perturb build.
5489         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
5490         (gl_PREREQ_GETHRXTIME): ... not here.
5491
5492 2009-10-18  Bruno Haible  <bruno@clisp.org>
5493
5494         Avoid symlink attack in localcharset module.
5495         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
5496         (O_NOFOLLOW): Define fallback.
5497         (get_charset_aliases): Don't open the file if it is a symbolic link.
5498         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
5499         gl_FCNTL_H.
5500         (gl_FCNTL_H): Require it.
5501         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
5502         * modules/localcharset (Files): Add m4/fcntl_h.m4.
5503         Reported by Fergal Glynn <fglynn@veracode.com>.
5504
5505 2009-10-18  Bruno Haible  <bruno@clisp.org>
5506
5507         Implement nproc for mingw.
5508         * lib/nproc.c: Include <windows.h>
5509         (num_processors): On native Windows platforms, try GetSystemInfo.
5510
5511 2009-10-18  Bruno Haible  <bruno@clisp.org>
5512
5513         Implement nproc for IRIX.
5514         * lib/nproc.c: Include <sys/sysmp.h>.
5515         (num_processors): On IRIX systems, try sysmp.
5516         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
5517
5518 2009-10-18  Bruno Haible  <bruno@clisp.org>
5519
5520         Implement nproc for HP-UX.
5521         * lib/nproc.c: Include <sys/pstat.h>
5522         (num_processors): On HP-UX systems, try pstat_getdynamic.
5523         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
5524         pstat_getdynamic.
5525
5526 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
5527             Bruno Haible  <bruno@clisp.org>
5528
5529         Implement nproc for NetBSD, OpenBSD.
5530         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
5531         (ARRAY_SIZE): New macro.
5532         (num_processors): On BSD systems, try sysctl of HW_NCPU.
5533         * m4/nproc.m4: New file.
5534         * modules/nproc (Files): Add m4/nproc.m4.
5535         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
5536         (Makefile.am): Instead, augment lib_SOURCES.
5537
5538 2009-10-18  Bruno Haible  <bruno@clisp.org>
5539
5540         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
5541         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
5542         sys/param.h.
5543
5544 2009-10-16  Eric Blake  <ebb9@byu.net>
5545
5546         utimensat: new module
5547         * modules/utimensat: New file.
5548         * lib/utimensat.c (utimensat): Likewise.
5549         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5550         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
5551         so we can work around Linux bugs.
5552         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5553         * modules/sys_stat (Makefile.am): Substitute them.
5554         * lib/sys_stat.in.h (utimensat): Declare it.
5555         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5556         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5557         * modules/utimensat-tests: New test.
5558         * tests/test-utimensat.c: Likewise.
5559
5560         utimens: let lutimens work on non-symlinks
5561         * lib/utimens.c (lutimens): Fall back to utimens rather than
5562         failing with ENOSYS, when file is not a symlink.
5563         (utimens): Reduce redirection.
5564         * tests/test-lutimens.h (test_lutimens): Update test to cover
5565         non-symlinks.
5566         * tests/test-utimens.h (test_utimens): Update test to cover
5567         symlinks.
5568         * tests/test-utimens.c (main): Update caller.
5569
5570         utimens: cache whether utimensat syscall works
5571         * lib/utimens.c (utimensat_works_really): New cache variable.
5572         (fdutimens, lutimens): Use it to avoid failing syscall.
5573
5574         test-stat-time, test-utimens: improve portability
5575         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
5576         ext4 on alpha, and for cygwin.
5577         * tests/test-utimens-common.h: New file.
5578         (nap): Factor delays into single function.
5579         * tests/test-lutimens.h (test_lutimens): Use new header.
5580         * tests/test-futimens.h (test_futimens): Likewise.
5581         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
5582         timestamps to occur from same machine, as was done previously for
5583         test_utimens.
5584         * modules/utimens-tests (Files): Ship new file.
5585         * modules/futimens-tests (Files): Likewise.
5586         Reported in part by Jim Meyering.
5587
5588         sys_stat: sort replacement declarations
5589         * lib/sys_stat.in.h: Sort declarations.
5590         * lib/futimens.c (futimens): Fix typo.
5591
5592 2009-10-15  Jim Meyering  <meyering@redhat.com>
5593
5594         don't let environment settings perturb build
5595         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
5596         could cause a configure-time and/or build-time malfunction.
5597         Typically, a configure-time function-in-library test is performed
5598         via code like this:
5599
5600           LIB_VAR=
5601           AC_SUBST([LIB_VAR])
5602           prefix_saved_LIBS=$LIBS
5603             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
5604                        [test "$ac_cv_search_FUNC" = "none required" ||
5605                         LIB_VAR=$ac_cv_search_FUNC])
5606           LIBS=$prefix_saved_LIBS
5607
5608         However, in each of the files affected by this change, the LIB_VAR=
5609         initialization was omitted.  Thus, when set in the environment, its
5610         value would propagate into generated Makefiles when FUNC is not found
5611         in LIB_NAME.
5612         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
5613         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5615
5616 2009-10-14  Eric Blake  <ebb9@byu.net>
5617
5618         fchdir: avoid infinite recursion in mingw
5619         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
5620         recursing.
5621
5622         test-stat-time: port to mingw
5623         * tests/test-stat-time.c (force_unlink): Return a value.
5624         (test_ctime) [W32]: Fix compilation error.
5625         (nap): Don't call usleep with too large an argument.  Use
5626         force_unlink.
5627         * doc/pastposix-functions/usleep.texi (usleep): Document the
5628         portability issue.
5629
5630 2009-10-13  Jim Meyering  <meyering@redhat.com>
5631
5632         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
5633         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
5634         * modules/pipe-filter-ii: Likewise.
5635         * modules/sys_socket-tests: Likewise.
5636         * modules/tsearch-tests: Likewise.
5637         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
5638         (check): Depend on it.
5639
5640 2009-10-12  Eric Blake  <ebb9@byu.net>
5641
5642         utimens-tests: port to NFS file systems
5643         * tests/test-utimens.h (test_utimens): Refactor utimecmp
5644         comparisons to avoid spurious failures from timestamp drift
5645         between NFS machines.
5646
5647 2009-10-12  Eric Blake  <ebb9@byu.net>
5648
5649         stat-time-tests: minor cleanups
5650         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
5651         * tests/test-stat-time.c (nap): Separate assignment from call.
5652         Suggested by Paolo Bonzini and Bruno Haible.
5653
5654         sys_stat: guarantee struct timespec
5655         * lib/sys_stat.in.h (includes): Always include <time.h>
5656         * modules/sys_stat (Depends-on): Add time.
5657         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
5658         mode_t permission values.
5659         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
5660         get at subsecond timestamps.
5661
5662 2009-10-10  Eric Blake  <ebb9@byu.net>
5663
5664         futimens: new module
5665         * modules/futimens: New file.
5666         * lib/futimens.c (futimens): Likewise.
5667         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
5668         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
5669         we can work around Linux bugs.
5670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5671         * modules/sys_stat (Makefile.am): Substitute them.
5672         * lib/sys_stat.in.h (futimens): Declare it.
5673         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5674         * doc/posix-functions/futimens.texi (futimens): Likewise.
5675         * modules/futimens-tests: New test.
5676         * tests/test-futimens.c: Likewise.
5677
5678         utimens: introduce fdutimens
5679         * lib/utimens.h (fdutimens): New prototype.
5680         * lib/utimens.c (gl_futimens): Move guts...
5681         (fdutimens): ...to new interface.
5682         * tests/test-utimens.c (do_fdutimens): Use it.
5683
5684         utimens: add UTIME_NOW and UTIME_OMIT support
5685         * lib/utimens.c (validate_timespec, update_timespec): New helper
5686         functions.
5687         (gl_futimens, lutimens): Use them.
5688         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
5689         stdbool, sys_stat.
5690         (Link): Mention resulting library dependency.
5691         * modules/utimecmp (Link): Likewise.
5692         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
5693         (Makefile.am): Pick up library dependency.
5694         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
5695         definition.
5696         * tests/test-sys_stat.c: Test the definitions.
5697         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
5698         * NEWS: Document library dependency.
5699
5700         utimecmp: support symlink timestamps
5701         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
5702         hashing when possible.  Use pathconf when available.
5703         (SYSCALL_RESOLUTION): Recognize tighter resolution.
5704         * modules/utimecmp (Depends-on): Add lstat.
5705
5706         utimens: add lutimens interface
5707         * lib/utimens.c (lutimens): New function.
5708         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
5709         * lib/utimens.h (lutimens): Declare new interface.
5710         * tests/test-utimens.c (main): Enhance test.
5711         * tests/test-lutimens.h (test_lutimens): New file.
5712         * modules/utimens-tests (Files): Distribute it.
5713         (Depends-on): Add symlink.
5714         (configure.ac): Check for usleep.
5715
5716         utimens: validate futimens usage
5717         * lib/utimens.c (gl_futimens): Require valid fd up front, using
5718         fewer syscalls on failure later on.  Avoid compiler warning on
5719         mingw.
5720         * modules/utimens (Depends-on): Add dup2.
5721
5722         utimens: add test
5723         * modules/utimens-tests: New test.
5724         * tests/test-utimens.h: New file.
5725         * tests/test-futimens.h: Likewise.
5726         * tests/test-utimens.c: Likewise.
5727
5728         doc: mention timestamp portability issues
5729         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
5730         instead.
5731         * doc/posix-functions/utime.texi (utime): Likewise.
5732         * doc/posix-functions/utimes.texi (utimes): Likewise.
5733         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
5734         instead.
5735         * doc/posix-functions/futimens.texi (futimens): Mention utimens
5736         module.
5737         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5738         Mention weakness with symlink timestamps.
5739         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
5740         to utimensat/futimens instead.
5741         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
5742
5743         test-dup2: enhance test
5744         * tests/test-dup2.c (main): Also check AT_FDCWD.
5745
5746         test-stat-time: avoid more spurious failures
5747         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
5748         xfs; and avoid race if the two timestamps cross quantization edge.
5749
5750         relocatable: prefer 'file system' over 'filesystem'
5751         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
5752         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
5753         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
5754         * doc/relocatable.texi (Enabling Relocatability): Likewise.
5755         * lib/relocatable.c (compute_curr_prefix): Likewise.
5756
5757 2009-10-10  Jim Meyering  <meyering@redhat.com>
5758
5759         stat-time-tests: check for the usleep function
5760         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
5761
5762 2009-10-10  Bruno Haible  <bruno@clisp.org>
5763
5764         * modules/xnanosleep: Put the Link section after the Include section.
5765
5766 2009-10-09  Eric Blake  <ebb9@byu.net>
5767
5768         dup2: work around FreeBSD 6.1 bug
5769         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
5770         * doc/posix-functions/dup2.texi (dup2): Document it.
5771         Reported by Nelson H. F. Beebe and Jim Meyering.
5772
5773         test-stat-time: port to buggy NFS clients
5774         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
5775         (test_ctime): Also skip test if mtime and ctime are skewed.
5776
5777         maint: prefer 'file system' over 'filesystem'
5778         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
5779         * doc/posix-functions/lstat.texi (lstat): Likewise.
5780         * lib/file-has-acl.c (file_has_acl): Likewise.
5781         * lib/fwriteerror.c [TEST]: Likewise.
5782         * tests/test-areadlink.h (test_areadlink): Likewise.
5783         * tests/test-areadlinkat-with-size.c (main): Likewise.
5784         * tests/test-areadlinkat.c (main): Likewise.
5785         * tests/test-canonicalize-lgpl.c (main): Likewise.
5786         * tests/test-canonicalize.c (main): Likewise.
5787         * tests/test-fstatat.c (main): Likewise.
5788         * tests/test-linkat.c (main): Likewise.
5789         * tests/test-lstat.h (test_lstat_func): Likewise.
5790         * tests/test-mkdir.h (test_mkdir): Likewise.
5791         * tests/test-readlink.h (test_readlink): Likewise.
5792         * tests/test-remove.c (main): Likewise.
5793         * tests/test-rename.h (test_rename): Likewise.
5794         * tests/test-renameat.c (main): Likewise.
5795         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5796         * tests/test-symlink.h (test_symlink): Likewise.
5797         * tests/test-symlinkat.c (main): Likewise.
5798         * tests/test-unlink.h (test_unlink_func): Likewise.
5799         * tests/test-unlinkat.c (main): Likewise.
5800
5801         maint: make realtime library usage explicit
5802         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
5803         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
5804         * modules/settime (Link): Likewise.
5805         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
5806
5807         test-stat-time: speed up execution
5808         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
5809         warning on mingw.
5810         (nap): New helper function.
5811         (prepare_test): Use it to reduce sleep time.
5812         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
5813         execution.
5814         * modules/stat-time-tests (configure.ac): Check for usleep.
5815
5816 2009-10-09  Jim Meyering  <meyering@redhat.com>
5817
5818         selinux-h: always use getfilecon wrappers
5819         * lib/getfilecon.c: New file.
5820         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
5821         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
5822         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
5823         (fgetfilecon): Provide a stub.
5824         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
5825         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
5826         file unconditionally.
5827         When <selinux/selinux.h> is found, arrange to use wrappers.
5828         * modules/selinux-h (Files): Add getfilecon.c.
5829         (Makefile.am): Substitute include-next-related bits
5830         into the now-always-generated selinux/selinux.h file.
5831         * doc/glibc-functions/lgetfilecon.texi: New file.
5832         * doc/glibc-functions/fgetfilecon.texi: New file.
5833         * doc/glibc-functions/getfilecon.texi: New file.
5834         * doc/glibc-functions/getfilecon-desc.texi: New file.
5835         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
5836         which to pull in the new files.
5837         * MODULES.html.sh (Misc): Add selinux-h.
5838
5839 2009-10-08  Jim Meyering  <meyering@redhat.com>
5840
5841         unistd: fix comment typo
5842         * lib/unistd.in.h (euidaccess): Fix a comment typo.
5843
5844 2009-10-08  Eric Blake  <ebb9@byu.net>
5845
5846         areadlink: use SIZE_MAX consistently
5847         * modules/areadlink (Depends-on): Add stdint.
5848         * modules/areadlink-with-size (Depends-on): Likewise.
5849         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
5850         gives NULL; drop sys/types, since unistd gives size_t; and add
5851         stdint for SIZE_MAX.
5852         (SIZE_MAX): Rely on headers.
5853         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
5854         and add stdint.
5855         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
5856         (SIZE_MAX): Likewise.
5857         (INITIAL_BUF_SIZE): Turn into enum.
5858         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
5859
5860 2009-10-08  Jim Meyering  <meyering@redhat.com>
5861
5862         areadlinkat: avoid compilation failure
5863         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
5864         Fix typo in comment.
5865
5866 2009-10-07  Eric Blake  <ebb9@byu.net>
5867
5868         areadlinkat-with-size: new module
5869         * modules/areadlinkat-with-size: New module.
5870         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
5871         * lib/areadlink.h (areadlinkat): Declare it.
5872         * MODULES.html.sh (File system functions): Mention it.
5873         * modules/areadlinkat-with-size-tests: New test.
5874         * tests/test-areadlinkat-with-size.c: New file.
5875
5876         xreadlinkat: new module
5877         * modules/xreadlinkat: New module.
5878         * lib/xreadlinkat.c (xreadlinkat): New file.
5879         * lib/xreadlink.h (xreadlinkat): Declare it.
5880         * MODULES.html.sh (File system functions): Mention it.
5881
5882         areadlinkat: new module
5883         * lib/at-func.c (FUNC_FAIL): New define.
5884         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
5885         * modules/areadlinkat: New module.
5886         * lib/linkat.c (areadlinkat): Move...
5887         * lib/areadlinkat.c (areadlinkat): ...to new file.
5888         * lib/areadlink.h (areadlinkat): Declare it.
5889         * modules/linkat (Depends-on): Add areadlinkat.
5890         * MODULES.html.sh (File system functions): Mention it.
5891         * modules/areadlinkat-tests: New test.
5892         * tests/test-areadlinkat.c: New file.
5893
5894         areadlink, areadlink-with-size: add tests
5895         * modules/areadlink-tests: New test.
5896         * modules/areadlink-with-size-tests: Likewise.
5897         * tests/test-areadlink.h: New file.
5898         * tests/test-areadlink.c: Likewise.
5899         * tests/test-areadlink-with-size.c: Likewise.
5900
5901         maint: minor cleanups
5902         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
5903         _UNUSED_PARAMETER_ instead.
5904         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
5905         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
5906         * modules/linkat-tests (Files): Distribute test-link.h.
5907
5908         openat, utimens: whitespace cleanup
5909         * lib/openat.c: Prefer space throughout, rather than mix of 8
5910         spaces vs. tabs.
5911         * lib/at-func.c: Likewise.
5912         * lib/utimens.c: Likewise.
5913
5914         openat: avoid using wrong fd
5915         * lib/openat.c (openat_permissive): Reject user's fd if saving the
5916         working directory chooses same fd.
5917         * lib/at-func.c (AT_FUNC_NAME): Likewise.
5918
5919         mkdir, mkdirat: fix cygwin 1.5.x bug
5920         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
5921         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
5922         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
5923         bug.
5924         (gl_PREREQ_MKDIR): Delete unused macro.
5925         * modules/mkdir (Files): Track file rename.
5926         (configure.ac): Update macro name.
5927         * modules/openat (Depends-on): Add mkdir.
5928         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
5929
5930         mkdir, mkdirat: add tests
5931         * modules/mkdir-tests: New test.
5932         * tests/test-mkdir.h: New file.
5933         * tests/test-mkdir.c: Likewise.
5934         * tests/test-mkdirat.c: Likewise.
5935         * modules/openat-tests (Files): Add new files.
5936         (Makefile.am): Run new test.
5937
5938 2009-10-06  Eric Blake  <ebb9@byu.net>
5939
5940         doc: tweak *at function documentation
5941         * doc/posix-functions/faccessat.texi (faccessat): Mention
5942         known issue with replacement.
5943         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
5944         * doc/posix-functions/linkat.texi (linkat): Likewise.
5945         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
5946         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
5947         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5948         * doc/posix-functions/renameat.texi (renameat): Likewise.
5949         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5950
5951         openat: fix GNU/Hurd bug in unlinkat
5952         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
5953         broken.
5954         * doc/posix-functions/unlink.texi (unlink): Document this.
5955         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
5956
5957         fdopendir: fix GNU/Hurd bug
5958         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
5959         allowing non-directory fds.
5960         * lib/fdopendir.c (rpl_fdopendir): Work around it.
5961         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5962         * modules/dirent (Makefile.am): Substitute it.
5963         * lib/dirent.in.h (fdopendir): Declare replacement.
5964         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
5965         * tests/test-fdopendir.c (main): Test something other than
5966         /dev/null, since on Hurd that behaves like a directory.
5967
5968         test-symlink: port to GNU/Hurd
5969         * tests/test-symlink.h (test_symlink): Relax expected errno.
5970
5971         doc: tweak more cygwin information
5972         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
5973         now compatible with glibc.
5974         * doc/posix-functions/getopt.texi (getopt): Likewise.
5975
5976         getopt-gnu: add another test
5977         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
5978         guarantee behavior relied on by m4.
5979         * tests/test-getopt.c (main): Use it.
5980         * modules/getopt-posix-tests (Depends-on): Add setenv.
5981         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
5982
5983         getopt: fix compilation on darwin
5984         * lib/getopt.in.h (includes): Leave breadcrumbs during system
5985         include.
5986         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
5987         Reported by Ludovic Courtès.
5988
5989 2009-10-06  Bruno Haible  <bruno@clisp.org>
5990
5991         * modules/size_max (Description): Discourage its use.
5992         Reported by Simon Josefsson.
5993
5994 2009-10-06  Jim Meyering  <meyering@redhat.com>
5995
5996         linkat: avoid compilation failure
5997         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
5998
5999 2009-10-05  Eric Blake  <ebb9@byu.net>
6000
6001         linkat: support Linux 2.6.17
6002         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
6003         linkat on Linux, but allow cache variable override.
6004         * lib/linkat.c (rpl_linkat): Define override.
6005         * modules/linkat (Depends-on): Add symlinkat.
6006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
6007         * modules/unistd (Makefile.am): Substitute it.
6008         * lib/unistd.in.h (linkat): Declare replacement.
6009         Reported by Pádraig Brady.
6010
6011         quotearg: port test to systems with C.UTF-8 locale
6012         * tests/test-quotearg.c (struct result_strings): Add another
6013         member, differentiating between C.ASCII and C.UTF-8 handling.
6014         (compare_strings): Add parameter.
6015         (main): Adjust all callers.
6016
6017         getopt: avoid clash with FreeBSD _getopt_internal
6018         * lib/getopt.in.h (_getopt_internal): Override the name.
6019         * lib/getopt_int.h (includes): Pick up any overrides.
6020         Reported by Reuben Thomas.
6021
6022         hash: allow C89 compilation
6023         * lib/hash.c (check_tuning): Move declaration before statement.
6024         Reported by Reuben Thomas.
6025
6026 2009-10-05  Karl Berry  <karl@gnu.org>
6027
6028         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
6029
6030 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
6031             Bruno Haible  <bruno@clisp.org>
6032
6033         * lib/uname.c (uname): Use a table-driven algorithm to compute
6034         Windows NT versions.
6035
6036 2009-10-04  Bruno Haible  <bruno@clisp.org>
6037
6038         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
6039         program_invocation_short_name.
6040         * modules/progname (configure.ac): Test for presence of
6041         program_invocation_short_name.
6042         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
6043
6044 2009-10-04  Bruno Haible  <bruno@clisp.org>
6045
6046         * lib/progname.c (set_program_name): Fix comment.
6047         Reported by Jim Meyering.
6048
6049 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
6050             Bruno Haible  <bruno@clisp.org>
6051
6052         * lib/uname.c: Include <string.h>.
6053         (uname): Do only one call to GetVersionEx in the common case.
6054
6055 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
6056             Bruno Haible  <bruno@clisp.org>
6057
6058         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
6059         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
6060         (uname): Add support for Windows CE and various non-x86 CPU types.
6061
6062 2009-10-03  Bruno Haible  <bruno@clisp.org>
6063
6064         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
6065         invocation to tests/configure.ac.
6066         Reported by Ian Beckwith <ianb@erislabs.net>.
6067
6068 2009-10-02  Eric Blake  <ebb9@byu.net>
6069
6070         fchdir: avoid compiler warning
6071         * lib/fchdir.c (canonicalize_file_name)
6072         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
6073
6074         test-open: support mingw errno values
6075         * tests/test-open.h (test_open): Relax test.
6076         * tests/test-fopen.h (test_fopen): Likewise.
6077         * tests/test-openat-safer.c (main): Likewise.
6078
6079         open: fix opening directory on mingw
6080         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
6081
6082         test-open: on GNU/Hurd, /dev/null is a directory
6083         * tests/test-fopen.h (main): Rename...
6084         (test_fopen): ...to this.  Use a guaranteed non-directory when
6085         confirming open behavior on trailing slash.
6086         * tests/test-openat-safer.c (main): Likewise.
6087         * tests/test-open.h (main): Likewise....
6088         (test_open): ...to this.
6089         * tests/test-fopen.c (main): Adjust caller.
6090         * tests/test-fopen-safer.c (main): Likewise.
6091         * tests/test-open.c (main): Likewise.
6092         * tests/test-fcntl-safer.c (main): Likewise.
6093         Reported by Samuel Thibault.
6094
6095         rename, fchdir: don't ignore chdir failure
6096         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
6097         * lib/rename.c (rpl_rename) [W32]: Likewise.
6098         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
6099         an empty destination directory if source cannot be renamed,
6100         although there is still possibility for failure.
6101         * doc/posix-functions/rename.texi (rename): Document the race.
6102         Reported by Jim Meyering.
6103
6104         maint: cleanup whitespace in recent commits
6105         * lib/rename.c (rpl_rename): Remove tabs.
6106         * tests/test-link.h (test_link): Likewise.
6107         * lib/fchdir.c (get_name): Likewise.
6108         Reported by Jim Meyering.
6109
6110 2009-10-02  Ben Pfaff  <blp@gnu.org>
6111
6112         relocatable-prog-wrapper: Add missing dependency on
6113         double-slash-root.
6114         * modules/relocatable-prog-wrapper: Add dependency.
6115         Reported by Ian Beckwith <ianb@erislabs.net>.
6116
6117 2009-10-02  Eric Blake  <ebb9@byu.net>
6118
6119         renameat: fix Solaris bugs
6120         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
6121         needed fixing.
6122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
6123         * modules/stdio (Makefile.am): Substitute it.
6124         * lib/stdio.in.h (renameat): Declare replacement.
6125         * lib/renameat.c (rpl_renameat): Implement fix.
6126
6127         renameat: new module
6128         * modules/renameat: New file.
6129         * lib/renameat.c (renameat): Likewise.
6130         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
6131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6132         * modules/stdio (Makefile.am): Substitute them.
6133         * lib/stdio.in.h (renameat): Declare it.
6134         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6135         * doc/posix-functions/renameat.texi (renameat): Likewise.
6136         * modules/renameat-tests: New test.
6137         * tests/test-renameat.c: Likewise.
6138
6139         rename: fix mingw bugs
6140         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
6141         directory overwrite bugs.
6142
6143         rename: fix another cygwin 1.5 bug
6144         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
6145         checks.
6146         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
6147         unnecessary cygwin workarounds.  Also work around bug with moving
6148         full directory onto an empty one.
6149         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
6150
6151         rename-dest-slash: merge into rename module
6152         * modules/rename-dest-slash (Status): Mark obsolete.
6153         (Depends-on): Add rename.
6154         (Files): Let rename do it all.
6155         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
6156         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
6157         * m4/rename-dest-slash.m4: ...so this file can be deleted.
6158         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
6159         * lib/rename.c (rpl_rename): Update comments.
6160
6161         rename: fix cygwin 1.5.x bugs
6162         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
6163         * lib/rename.c (rpl_rename): Work around them.
6164         * modules/rename (Depends-on): Add same-inode.
6165
6166         rename: fix Solaris 10 bug
6167         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6168         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
6169         was the only bug.
6170
6171         rename: fix Solaris 9 bug
6172         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
6173         on non-directory.  Avoid calling exit.
6174         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
6175         strdup.
6176         * modules/rename-tests (Depends-on): Drop lstat.
6177         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6178         (gl_PREREQ_RENAME): Delete unused macro.
6179
6180         rename-dest-slash: fix NetBSD bug
6181         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
6182         links.
6183         * modules/rename-dest-slash (Depends-on): Add same-inode.
6184
6185         rename-tests: new test, exposes several platform bugs
6186         * modules/rename-tests: New file.
6187         * tests/test-rename.h: Likewise.
6188         * tests/test-rename.c: Likewise.
6189         * doc/posix-functions/rename.texi (rename): Improve documentation,
6190         including bugs that will eventually be fixed in gnulib.
6191
6192 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
6193
6194         * lib/uname.c: Include <stdlib.h>
6195         (uname): Assume version info is available.
6196
6197 2009-10-02  Jim Meyering  <meyering@redhat.com>
6198
6199         gnu-web-doc-update: correct --help output
6200         * build-aux/gnu-web-doc-update: Make --help output relevant.
6201
6202         gnu-web-doc-update: add standard options
6203         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
6204
6205         gnu-web-doc-update: New module.
6206         Use this script to automatically update the on-line web documentation
6207         for your GNU project at http://www.gnu.org/software/$pkg/manual/
6208         * modules/gnu-web-doc-update: New file, from coreutils.
6209         * build-aux/gnu-web-doc-update: New script.
6210
6211 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
6212
6213         link: LoadLibrary is not needed.
6214         * lib/link.c: Use GetModuleHandle.
6215
6216 2009-10-01  Eric Blake  <ebb9@byu.net>
6217
6218         getopt: bump serial number
6219         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
6220         change.
6221
6222         tests: tighten link, rmdir, and remove tests
6223         * tests/test-link.h (includes): No need to use <config.h> here.
6224         Clean up if directory hard link was created, otherwise test for
6225         trailing '.'.
6226         * tests/test-linkat.c (main): Simplify.
6227         * tests/test-remove.c (main): Enhance test for trailing '.'.
6228         * tests/test-rmdir.h (test_rmdir_func): Likewise.
6229
6230 2009-10-01  Jim Meyering  <meyering@redhat.com>
6231
6232         maint.mk: requiring "make major" was annoying, for a "minor" release.
6233         What is intended is "stable", to contrast with alpha and beta,
6234         so require "make stable", not "make major".
6235         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
6236         (get_tool_versions): Likewise.
6237         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
6238
6239 2009-09-30  Ben Pfaff  <blp@gnu.org>
6240
6241         Fix broken build of replacement for Windows tmpfile().
6242         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
6243         flags argument added along with the 'mkostemp' module.
6244
6245 2009-09-28  Bruno Haible  <bruno@clisp.org>
6246
6247         Avoid identifier clash with POSIX function 'remove' defined as a macro.
6248         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
6249         to 'remove_elt'.
6250         (gl_list_remove): Update.
6251         * lib/gl_list.c (gl_list_remove): Update.
6252         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
6253         to 'remove_elt'.
6254         (gl_oset_remove): Update.
6255         * lib/gl_list.c (gl_oset_remove): Update.
6256         Reported by Eric Blake.
6257
6258 2009-09-28  Eric Blake  <ebb9@byu.net>
6259
6260         doc: mention yet more cygwin 1.7 status
6261         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
6262         cygwin.
6263         * doc/glibc-functions/execvpe.texi (execvpe): New file.
6264         * doc/gnulib.texi (Glibc unistd.h): Mention it.
6265
6266         argp: fix test failure
6267         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
6268         that are not upper-case.  Pass correct range to tolower.
6269
6270 2009-09-27  Jim Meyering  <meyering@redhat.com>
6271
6272         test-yesno: work around sparc-dash here-document infelicity
6273         Without this change, the literal \177 byte in a here document
6274         would make dash 0.5.5.1-3 access uninitialized memory.
6275         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
6276         Instead, use a marker, "@", and filter through tr to create the desired
6277         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
6278
6279 2009-09-27  Bruno Haible  <bruno@clisp.org>
6280
6281         Disable untested support for new flavours of ACLs on AIX.
6282         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
6283         progress.
6284         * lib/set-mode-acl.c (qset_acl): Likewise.
6285
6286 2008-12-07  Bruno Haible  <bruno@clisp.org>
6287
6288         Add support for new flavours of ACLs on AIX. (Untested.)
6289         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
6290         (file_has_acl): Add support for newer AIX.
6291         * lib/set-mode-acl.c (qset_acl): Likewise.
6292         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
6293         Rainer Tammer <tammer@tammer.net>.
6294
6295 2009-09-26  Eric Blake  <ebb9@byu.net>
6296
6297         argp: fix compilation of getopt
6298         * lib/getopt.in.h (includes): Use different guard than glibc.
6299         Reported by Sergey Poznyakoff.
6300
6301         doc: mention more cygwin 1.7 status
6302         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
6303         bug.
6304         * doc/posix-functions/execl.texi (execl): Likewise.
6305         * doc/posix-functions/execle.texi (execle): Likewise.
6306         * doc/posix-functions/execlp.texi (execlp): Likewise.
6307         * doc/posix-functions/execv.texi (execv): Likewise.
6308         * doc/posix-functions/execve.texi (execve): Likewise.
6309         * doc/posix-functions/execvp.texi (execvp): Likewise.
6310         * doc/glibc-functions/canonicalize_file_name.texi
6311         (canonicalize_file_name): Cygwin 1.7 now provides this.
6312         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
6313         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
6314         on AT_SYMLINK_NOFOLLOW.
6315
6316 2009-09-24  Eric Blake  <ebb9@byu.net>
6317
6318         test-linkat: make test more robust
6319         * tests/test-linkat.c (main): Avoid collision with EEXIST.
6320
6321         getopt: fix inclusion guards for cygwin
6322         * modules/getopt-posix (Depends-on): Add include-next.
6323         (Makefile.am): Substitute more items in replacement header.
6324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
6325         <getopt.h>.
6326         * lib/getopt.in.h (includes): Use split inclusion guard, and
6327         prefer <getopt.h> over include <unistd.h> when one is present.
6328         (option): Also override name of 'struct option'.
6329
6330         same-inode: revert prior change; it is not yet ready
6331         * NEWS: Undo mention of this change.
6332         * lib/same-inode.h (same-inode.h): Undo tri-state change.
6333         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6334         * lib/cycle-check.c (cycle_check): Likewise.
6335         * lib/same.c (same_name): Likewise.
6336         * lib/at-func2.c (at_func2): Likewise.
6337
6338 2009-09-23  Eric Blake  <ebb9@byu.net>
6339
6340         linkat: new module
6341         * modules/linkat: New file.
6342         * lib/at-func2.c (at_func2): Likewise.
6343         * lib/linkat.c (linkat): Likewise.
6344         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6345         * lib/openat-priv.h (at_func2): Add declaration.
6346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6347         * modules/unistd (Makefile.am): Substitute them.
6348         * lib/unistd.in.h (linkat): Declare it.
6349         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6350         * doc/posix-functions/linkat.texi (linkat): Likewise.
6351         * doc/posix-functions/link.texi (link): Tweak wording.
6352         * tests/test-link.c (main): Move guts...
6353         * tests/test-link.h (test_link): ...into new file.
6354         * modules/linkat-tests: New test.
6355         * tests/test-linkat.c: Likewise.
6356         * modules/link-tests (Files): Ship new file.
6357         (Depends-on): Add stdbool.
6358
6359         dirname: add library-safe mdir_name
6360         * lib/dirname.h (mdir_name): New prototype.
6361         * lib/dirname.c (dir_name): Move guts...
6362         (mdir_name): ...to new function that avoids xalloc_die.
6363
6364         fchdir: another mingw fix
6365         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
6366         * lib/fchdir.c (get_name): New helper method; skips canonicalize
6367         on mingw (where it has not yet been ported), and make it optional
6368         elsewhere.
6369         (_gl_register_fd): Use it.
6370
6371         same-inode: make SAME_INODE tri-state, to port to mingw
6372         * NEWS: Mention this change.
6373         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
6374         st_ino always being 0.
6375         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6376         * lib/cycle-check.c (cycle_check): Likewise.
6377         * lib/same.c (same_name): Likewise.
6378
6379         lstat: avoid mingw compilation error
6380         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
6381         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
6382         lstat ourselves.
6383         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
6384         was adequate.
6385         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
6386         the checks for lstat.
6387         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
6388
6389         link: fix test failure on Solaris 9
6390         * lib/link.c (rpl_link): Don't assume link will catch bogus
6391         trailing slash on source.
6392
6393         test-symlinkat: enhance test
6394         * tests/test-readlink.c (main): Move guts...
6395         * tests/test-readlink.h (test_readlink): ...into new file.
6396         * tests/test-symlink.c (main): Move guts...
6397         * tests/test-symlink.h (test_symlink): ...into new file.
6398         * tests/test-symlinkat.c (main): Use new files for further
6399         coverage.
6400         (do_symlink, do_readlink): New helper functions.
6401         * modules/symlink-tests (Files): Ship new file.
6402         (Depends-on): Add stdbool.
6403         * modules/readlink-tests (Files): Ship new file.
6404         (Depends-on): Add stdbool.
6405         * modules/symlinkat-tests (Files): Use new files.
6406
6407 2009-09-23  Eric Blake  <ebb9@byu.net>
6408
6409         readlink: document portability issue with symlink length
6410         * doc/posix-functions/lstat.texi (lstat): Mention that some file
6411         systems have bogus st_size on symlinks, and mention the
6412         areadlink-with-size module.
6413         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6414         * doc/posix-functions/readlink.texi (readlink): Mention the
6415         areadlink module, and ERANGE failure.
6416         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6417         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
6418
6419         readlink: fix Solaris 9 bug with trailing slash
6420         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
6421         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
6422         * doc/posix-functions/readlink.texi (readlink): Document this.
6423         * modules/readlink-tests: New test.
6424         * tests/test-readlink.c: Likewise.
6425
6426         readlink: fix cygwin 1.5.x bug with return type
6427         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
6428         * lib/unistd.in.h (readlink): Use ssize_t.
6429         * lib/readlink.c (readlink): Likewise.
6430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6431         * modules/unistd (Makefile.am): Substitute it.
6432         * lib/unistd.in.h (readlink): Declare replacement.
6433         * doc/posix-functions/readlink.texi (readlink): Document this.
6434
6435         symlink: use throughout gnulib
6436         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
6437         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
6438         symlink is not used.
6439         * modules/symlinkat (Depends-on): Add symlink.
6440         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6441         * modules/canonicalize-tests (Depends-on): Likewise.
6442         * modules/lstat-tests (Depends-on): Likewise.
6443         * modules/openat-tests (Depends-on): Likewise.
6444         * modules/remove-tests (Depends-on): Likewise.
6445         * modules/rmdir-tests (Depends-on): Likewise.
6446         * modules/unlink-tests (Depends-on): Likewise.
6447         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
6448         * tests/test-canonicalize.c (symlink): Likewise.
6449         * tests/test-fstatat.c (symlink): Likewise.
6450         * tests/test-lstat.c (symlink): Likewise.
6451         * tests/test-remove.c (symlink): Likewise.
6452         * tests/test-rmdir.c (symlink): Likewise.
6453         * tests/test-unlink.c (symlink): Likewise.
6454         * tests/test-unlinkat.c (symlink): Likewise.
6455
6456         symlink: new module, for Solaris 9 bug
6457         * modules/symlink: New file.
6458         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6459         * lib/symlink.c: Likewise.
6460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6461         * modules/unistd (Makefile.am): Substitute them.
6462         * lib/unistd.in.h (symlink): Declare replacement.
6463         * MODULES.html.sh (File system functions): Mention it.
6464         * doc/posix-functions/symlink.texi (symlink): Likewise.
6465         * modules/symlink-tests: New test.
6466         * tests/test-symlink.c: Likewise.
6467
6468 2009-09-23  Bruno Haible  <bruno@clisp.org>
6469
6470         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
6471         when needed.
6472         Test case: gnulib-tool --import --with-tests atexit inttypes.
6473         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
6474
6475 2009-09-23  Bruno Haible  <bruno@clisp.org>
6476
6477         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
6478         subcommand, not in a subshell.
6479
6480 2009-09-22  Eric Blake  <ebb9@byu.net>
6481
6482         unistd: sort replacement declarations
6483         * lib/unistd.in.h: Sort declarations.
6484
6485         open, openat: minor optimization
6486         * lib/open.c (open): If open succeeded, len is non-zero.
6487         * lib/openat.c (rpl_openat): Likewise.
6488
6489         link-follow: ensure correct result
6490         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
6491         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
6492         distinguish between possible failures.
6493
6494 2009-09-21  Eric Blake  <ebb9@byu.net>
6495
6496         fts: avoid compiler warning
6497         * lib/fts.c (dirent_inode_sort_may_be_useful)
6498         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
6499
6500 2009-09-19  Bruno Haible  <bruno@clisp.org>
6501
6502         * lib/progreloc.c (canonicalize_file_name): New declaration.
6503
6504 2009-09-19  Eric Blake  <ebb9@byu.net>
6505
6506         link: fix quoting
6507         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
6508
6509         openat: fix openat bugs on Solaris 9
6510         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
6511         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
6512         * modules/openat (Depends-on): Add open.
6513         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
6514         * modules/fcntl-h (Makefile.am): Substitute it.
6515         * lib/fcntl.in.h (openat): Declare replacement.
6516         * doc/posix-functions/openat.texi (openat): Document this.
6517
6518         openat: move fstatat and unlinkat into correct files
6519         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
6520         compiled.
6521         * lib/openat.c (fstatat, unlinkat): Move...
6522         * lib/fstatat.c (fstatat): ...into correct files.
6523         * lib/unlinkat.c (unlinkat): Likewise.
6524
6525         openat: fix unlinkat bugs on Solaris 9
6526         * lib/unlinkat.c (unlinkat): New file.
6527         * modules/openat (Depends-on): Add unlink.
6528         (Files): Distribute it.
6529         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
6530         trailing slash behavior is broken.
6531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6532         * modules/unistd (Makefile.am): Substitute it.
6533         * lib/unistd.in.h (unlinkat): Declare replacement.
6534         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
6535
6536         openat: fix fstatat bugs on Solaris 9
6537         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
6538         stat.
6539         * doc/posix-functions/fstatat.texi (fstatat): Document this.
6540
6541         test-unlinkat: enhance test, to expose Solaris 9 bug
6542         * tests/test-unlink.c (main): Factor guts...
6543         * tests/test-unlink.h (test_rmdir_func): ...into new file.
6544         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
6545         * tests/test-rmdir.c (main): Adjust caller.
6546         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
6547         (unlinker): New helper function.
6548         (rmdirat): Enhance check.
6549         * modules/rmdir-tests (Depends-on): Add stdbool.
6550         * modules/unlink-tests (Depends-on): Likewise.
6551         (Files): Add test-unlink.h.
6552         * modules/openat-tests (Files): Likewise.
6553         (Depends-on): Add unlinkdir.
6554
6555         test-fstatat: new test, to expose Solaris 9 bugs
6556         * tests/test-stat.c (main): Factor guts...
6557         * tests/test-stat.h (test_stat_func): ...into new file.
6558         * tests/test-lstat.c (main): Factor guts...
6559         * tests/test-lstat.h (test_lstat_func): ...into new file.
6560         * tests/test-fstatat.c: New file.
6561         * modules/stat-tests (Files): Add test-stat.h.
6562         * modules/lstat-tests (Files): Add test-lstat.h.
6563         (Depends-on): Add stdbool.
6564         * modules/openat-tests (Depends-on): Add pathmax.
6565         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
6566         (Makefile.am): Run new test.
6567
6568         remove: new module, for mingw and Solaris 9 bugs
6569         * modules/remove: New file.
6570         * lib/remove.c: Likewise.
6571         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
6572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6573         * modules/stdio (Makefile.am): Use them.
6574         * lib/stdio.in.h (remove): Declare replacement.
6575         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6576         * doc/posix-functions/remove.texi (remove): Likewise.
6577         * modules/remove-tests: New test.
6578         * tests/test-remove.c: Likewise.
6579
6580         unlink: new module, for Solaris 9 bug
6581         * modules/unlink: New file.
6582         * lib/unlink.c: Likewise.
6583         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6585         * modules/unistd (Makefile.am): Use them.
6586         * lib/unistd.in.h (stat): Declare replacement.
6587         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6588         * doc/posix-functions/unlink.texi (unlink): Likewise.
6589         * modules/unlink-tests: New test.
6590         * tests/test-unlink.c: Likewise.
6591
6592         lstat: fix Solaris 9 bug
6593         * lib/lstat.c (lstat): Also check for trailing slash on
6594         non-symlink, non-directories.  Use stat module to simplify logic.
6595         * doc/posix-functions/lstat.texi (lstat): Document it.
6596         * modules/lstat-tests (Depends-on): Add errno, same-inode.
6597         (configure.ac): Check for symlink.
6598         * tests/test-lstat.c (main): Add more tests.
6599
6600         stat: add as dependency to other modules
6601         * modules/chown (Depends-on): Add stat.
6602         * modules/euidaccess (Depends-on): Likewise.
6603         * modules/fchdir (Depends-on): Likewise.
6604         * modules/isdir (Depends-on): Likewise.
6605         * modules/link (Depends-on): Likewise.
6606         * modules/lstat (Depends-on): Likewise.
6607         * modules/mkdir-p (Depends-on): Likewise.
6608         * modules/modechange (Depends-on): Likewise.
6609         * modules/open (Depends-on): Likewise.
6610         * modules/readlink (Depends-on): Likewise.
6611         * modules/same (Depends-on): Likewise.
6612
6613         stat: fix Solaris 9 bug
6614         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
6615         slash.
6616         * lib/stat.c (rpl_stat): Work around it.
6617         * doc/posix-functions/stat.texi (stat): Update documentation.
6618
6619         stat: new module, for mingw bug
6620         * modules/stat: New file.
6621         * lib/stat.c: Likewise.
6622         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6623         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6624         * modules/sys_stat (Makefile.am): Use them.
6625         * lib/sys_stat.in.h (stat): Declare replacement.
6626         * lib/openat.c (fstatat): Deal with lstat and stat being function
6627         macros.
6628         * modules/openat (Depends-on): Add inline.
6629         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6630         * doc/posix-functions/stat.texi (stat): Likewise.
6631         * modules/stat-tests: New test.
6632         * tests/test-stat.c: Likewise.
6633
6634 2009-09-19  Jim Meyering  <meyering@redhat.com>
6635
6636         syntax-check: detect unnecessary inclusion of canonicalize.h
6637         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
6638
6639 2009-09-19  Eric Blake  <ebb9@byu.net>
6640
6641         canonicalize-lgpl: adjust clients to use correct header
6642         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6643         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
6644         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
6645         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
6646         * lib/progreloc.c (includes): Likewise.
6647
6648 2009-09-19  Jim Meyering  <meyering@redhat.com>
6649
6650         test-posixtm.c: correct a comment
6651         * tests/test-posixtm.c: Correct first-line comment.
6652         Spotted by Eric Blake.
6653
6654 2009-09-16  Jim Meyering  <meyering@redhat.com>
6655
6656         posixtm-tests: make T const-correct; add a test case
6657         * tests/test-posixtm.c (T): Declare const.
6658         Add a test for -(2^31+1).
6659         Remove useless can-succeed-only-in-2002 test.
6660
6661         posixtm-tests: adjust the sole failing test
6662         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
6663         expected output matches what mktime now produces.  Cross-checked via
6664         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
6665
6666         posixtm: move #ifdef'd tests into a new module
6667         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
6668         * tests/test-posixtm.c: ... this new file.
6669         * modules/posixtm-tests: New module.
6670
6671 2009-09-19  Eric Blake  <ebb9@byu.net>
6672
6673         openat: simplify use of at-func.c
6674         * lib/at-func.c (includes): Include prerequisites here, to
6675         simplify requirements on client files.
6676         * lib/openat-priv.h: Add double-inclusion guard.
6677         * lib/faccessat.c (includes): Simplify.
6678         * lib/fchmodat.c (includes): Likewise.
6679         * lib/fchownat.c (includes): Likewise.
6680         * lib/mkdirat.c (includes): Likewise.
6681         * lib/mkfifoat.c (includes): Likewise.
6682         * lib/symlinkat.c (includes): Likewise.
6683
6684         openat: allow return of fd 0
6685         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
6686         * modules/save-cwd (Depends-on): Replace fcntl-safer with
6687         unistd-safer.
6688         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
6689         <fcntl.h>; this module does not leak fds.
6690         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
6691         must be allowed to return 0, leaving openat_safer to add the
6692         safety.
6693         (openat_permissive): Avoid writing to just-opened fd 2 if
6694         restoring the current directory fails.
6695         * lib/openat-die.c (openat_restore_fail): Add comment.
6696         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
6697         (save_cwd): Guarantee safe fd, but without use of open_safer.
6698         * tests/test-openat.c: New test.
6699         * modules/openat-tests (Files, Makefile.am): Distribute and build
6700         new file.
6701
6702         relocatable-prog-wrapper: fix build
6703         * modules/relocatable-prog-wrapper (Files): Update name of
6704         canonicalize m4 file, broken on 2009-09-17.
6705         Reported by emad hajjar <aleppos@hotmail.com>.
6706
6707 2009-09-19  Bruno Haible  <bruno@clisp.org>
6708
6709         * lib/safe-alloc.h: Use the standard header with GPL copyright.
6710         * lib/safe-alloc.c: Likewise.
6711         Reported by Ian Beckwith <ianb@erislabs.net>.
6712
6713 2009-09-18  Bruno Haible  <bruno@clisp.org>
6714
6715         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
6716         Reported by <erobles@sensacd.com.mx>.
6717
6718 2009-09-17  Eric Blake  <ebb9@byu.net>
6719
6720         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
6721         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
6722         slashes when checking if last component is missing.
6723         * tests/test-canonicalize.c (main): Test this.
6724
6725         canonicalize, canonicalize-lgpl: honor // if distinct from /
6726         * modules/canonicalize (Files): Add double-slash-root.m4.
6727         * modules/canonicalize-lgpl (Files): Likewise.
6728         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6729         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
6730         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
6731         fallback definition.
6732         (canonicalize_filename_mode): Use it to protect //.
6733         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
6734         (__realpath): Likewise.
6735         * tests/test-canonicalize.c (main): Test this.
6736         * tests/test-canonicalize-lgpl.c (main): Likewise.
6737         * modules/canonicalize-tests (Depends-on): Add same-inode.
6738         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6739
6740         canonicalize-lgpl: fix glibc bug with trailing slash
6741         * m4/canonicalize-lgpl.m4: Move contents...
6742         * m4/canonicalize.m4: ...here.
6743         (gl_CANONICALIZE_LGPL): Factor realpath check...
6744         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
6745         glibc 2.3.5 bug, fixed 2005-04-27.
6746         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
6747         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
6748         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
6749         * modules/canonicalize-lgpl (Files): Manage file rename.
6750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6751         * modules/stdlib (Makefile.am): Substitute witness.
6752         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
6753         is needed.
6754         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
6755         replacement is required.
6756         * lib/canonicalize.c (canonicalize_file_name): Likewise.
6757         * doc/glibc-functions/canonicalize_file_name.texi
6758         (canonicalize_file_name): Document this.
6759         * doc/posix-functions/realpath.texi (realpath): Likewise.
6760
6761         canonicalize-lgpl: reject non-directory with trailing slash
6762         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
6763         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
6764         catches failures in glibc 2.3.5.
6765         * tests/test-canonicalize.c (main): Likewise.
6766
6767         canonicalize-lgpl: use native realpath if it works
6768         * lib/canonicalize-lgpl.c (realpath): Guard with
6769         FUNC_REALPATH_WORKS.
6770         * lib/stdlib.in.h (realpath): Make declaration optional based on
6771         HAVE_REALPATH.
6772         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
6773         native realpath works.
6774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6775         * modules/stdlib (Makefile.am): Substitute witness.
6776
6777         canonicalize, canonicalize-lgpl: use <stdlib.h>
6778         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
6779         (Include): Mention <stdlib.h>.
6780         (configure.ac): Mention functions we provide.
6781         * modules/canonicalize (configure.ac): Likewise.
6782         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
6783         realpath if canonicalize_file_name is missing.
6784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
6785         * modules/stdlib (Makefile.am): Substitute witnesses.
6786         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
6787         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
6788         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
6789         * NEWS: Document this.
6790         * doc/glibc-functions/canonicalize_file_name.texi
6791         (canonicalize_file_name): Likewise.
6792         * doc/posix-functions/realpath.texi (realpath): Likewise.
6793         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
6794
6795         test-canonicalize: consolidate into single C program
6796         * tests/test-canonicalize.sh: Delete; move setup into...
6797         * tests/test-canonicalize.c (main): ...the program, making it
6798         easier to run in debugger.  Add some tests.
6799         * modules/canonicalize-tests (Files): Remove unused file.
6800         (Depends-on): Add progname.
6801         (configure.ac, Makefile.am): Simplify.
6802
6803         test-canonicalize-lgpl: consolidate into single C program
6804         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
6805         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
6806         easier to run in debugger.  Add some tests.
6807         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
6808         (configure.ac, Makefile.am): Simplify.
6809
6810         canonicalize: avoid resolvepath
6811         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
6812         unnecessary checks.
6813         * lib/canonicalize.c (includes): Simplify.
6814         (canonicalize_file_name): Drop resolvepath implementation.
6815         * modules/canonicalize (Depends-on): Drop filenamecat.
6816
6817         canonicalize: don't lose errno
6818         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
6819         over calls to free.
6820
6821         canonicalize: simplify errno handling
6822         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
6823         assignment.
6824
6825         canonicalize, canonicalize-lgpl: update module dependencies
6826         * modules/canonicalize (Depends-on): Add extensions, lstat,
6827         pathmax, stdlib.
6828         (Files): Drop pathmax.h.
6829         (configure.ac): Adjust macro name.
6830         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
6831         lstat, stdlib, sys_stat.
6832         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
6833         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
6834         extensions.
6835         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
6836         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
6837         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
6838         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
6839         declaration, if available.
6840         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
6841         we can rely on the readlink module.
6842         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
6843         (includes): Use <unistd.h> unconditionally.
6844
6845 2009-09-17  Eric Blake  <ebb9@byu.net>
6846
6847         maint: make Include sections of modules consistent
6848         * modules/alloca: Use only header name; no need to list #include.
6849         * modules/alloca-opt: Likewise.
6850         * modules/arpa_inet: Likewise.
6851         * modules/canon-host: Likewise.
6852         * modules/configmake: Likewise.
6853         * modules/dirent: Likewise.
6854         * modules/eealloc: Likewise.
6855         * modules/environ: Likewise.
6856         * modules/fchdir: Likewise.
6857         * modules/fcntl: Likewise.
6858         * modules/fcntl-h: Likewise.
6859         * modules/gethrxtime: Likewise.
6860         * modules/gettime: Likewise.
6861         * modules/ignore-value: Likewise.
6862         * modules/inet_ntop: Likewise.
6863         * modules/inet_pton: Likewise.
6864         * modules/inttypes: Likewise.
6865         * modules/isnand-nolibm: Likewise.
6866         * modules/isnanf-nolibm: Likewise.
6867         * modules/mbchar: Likewise.
6868         * modules/mbfile: Likewise.
6869         * modules/mbiter: Likewise.
6870         * modules/mbuiter: Likewise.
6871         * modules/netdb: Likewise.
6872         * modules/netinet_in: Likewise.
6873         * modules/nproc: Likewise.
6874         * modules/pagealign_alloc: Likewise.
6875         * modules/poll: Likewise.
6876         * modules/printf-frexp: Likewise.
6877         * modules/pthread: Likewise.
6878         * modules/putenv: Likewise.
6879         * modules/random_r: Likewise.
6880         * modules/relocatable-prog: Likewise.
6881         * modules/search: Likewise.
6882         * modules/select: Likewise.
6883         * modules/selinux-h: Likewise.
6884         * modules/settime: Likewise.
6885         * modules/signal: Likewise.
6886         * modules/size_max: Likewise.
6887         * modules/socklen: Likewise.
6888         * modules/ssize_t: Likewise.
6889         * modules/stdarg: Likewise.
6890         * modules/stdbool: Likewise.
6891         * modules/stddef: Likewise.
6892         * modules/stdint: Likewise.
6893         * modules/stdio: Likewise.
6894         * modules/stdlib: Likewise.
6895         * modules/string: Likewise.
6896         * modules/strings: Likewise.
6897         * modules/sys_file: Likewise.
6898         * modules/sys_ioctl: Likewise.
6899         * modules/sys_select: Likewise.
6900         * modules/sys_socket: Likewise.
6901         * modules/sys_stat: Likewise.
6902         * modules/sys_time: Likewise.
6903         * modules/sys_times: Likewise.
6904         * modules/sys_utsname: Likewise.
6905         * modules/sys_wait: Likewise.
6906         * modules/sysexits: Likewise.
6907         * modules/time: Likewise.
6908         * modules/times: Likewise.
6909         * modules/tmpfile: Likewise.
6910         * modules/trim: Likewise.
6911         * modules/unistd: Likewise.
6912         * modules/wchar: Likewise.
6913         * modules/wctype: Likewise.
6914
6915 2009-09-17  Bruno Haible  <bruno@clisp.org>
6916
6917         Make getdate.y compile on QNX and NetBSD 5 / i386.
6918         * m4/getdate.m4 (gl_GETDATE): Conditionally define
6919         TIME_T_FITS_IN_LONG_INT.
6920         * lib/getdate.y (long_time_t): New type.
6921         (relative_time): Change type of 'seconds' field to long_time_t.
6922         (get_date): Update types of local variables. Check against overflow
6923         during conversion from long_time_t to time_t.
6924         Reported by Matt Kraai <kraai@ftbfs.org>
6925         and Hasso Tepper <hasso@netbsd.org>.
6926
6927 2009-09-17  Bruno Haible  <bruno@clisp.org>
6928
6929         * modules/COPYING: Update copyright years.
6930         * modules/README: Likeiwse.
6931         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
6932         Reported by Ian Beckwith <ianb@erislabs.net>.
6933
6934 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
6935
6936         * users.txt: Update references for gnuit package.
6937
6938 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
6939
6940         * m4/getdelim.m4: Fix typo in copyright line.
6941
6942 2009-09-17  Bruno Haible  <bruno@clisp.org>
6943
6944         * lib/atoll.c: Use the standard header with GPL copyright.
6945         * lib/argz.in.h: Likewise.
6946         * lib/glob.c: Likewise.
6947         * lib/glob-libc.h: Likewise.
6948         * lib/random_r.c: Likewise.
6949         * lib/siglist.h: Likewise.
6950         * lib/strsignal.c: Likewise.
6951         Reported by Ian Beckwith <ianb@erislabs.net>.
6952
6953 2009-09-17  Eric Blake  <ebb9@byu.net>
6954
6955         rmdir: ensure correct dependency order
6956         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
6957
6958 2009-09-17  Bruno Haible  <bruno@clisp.org>
6959
6960         Disable assertion that fails on NetBSD 5 / i386.
6961         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
6962         Reported by Sam Steingold <sds@gnu.org>
6963         and Hasso Tepper <hasso@netbsd.org>.
6964
6965 2009-09-16  Eric Blake  <ebb9@byu.net>
6966
6967         unlinkdir: port to mingw
6968         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
6969         on which no one can unlink a directory.
6970
6971         stdlib: sort witness names
6972         * modules/stdlib (Makefile.am): Sort replacements.
6973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6974         * lib/stdlib.in.h: Likewise.
6975
6976         parse-duration-tests: avoid link failure
6977         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
6978         LIBINTL.
6979         Reported by Tom G. Christensen.
6980
6981         openat-tests: ensure unlinkat behaves like rmdir
6982         * tests/test-rmdir.c (main): Factor guts...
6983         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
6984         * modules/rmdir-tests (Files): Ship new file.
6985         * modules/openat-tests: New test.
6986         * tests/test-unlinkat.c: Likewise.
6987
6988         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
6989         * modules/rmdir-errno (Status, Notice): Now obsolete.
6990
6991         rmdir: work around cygwin 1.5.x and mingw bugs
6992         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
6993         * lib/rmdir.c (rmdir): Work around it.
6994         * modules/rmdir (Status, Notice): No longer obsolete.
6995         (Files): Add dos.m4.
6996         (Depends-on): Add unistd.
6997         (configure.ac): Set witnesses.
6998         (License): Relax to LGPLv2+.
6999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
7000         * modules/unistd (Makefile.am): Substitute witnesses.
7001         * lib/unistd.in.h (rmdir): Declare replacement.
7002         * doc/posix-functions/rmdir.texi (rmdir): Document this.
7003         * modules/rmdir-tests: New tests.
7004         * tests/test-rmdir.c: Likewise.
7005
7006 2009-09-15  Eric Blake  <ebb9@byu.net>
7007
7008         fchdir: improve use of replacement functions
7009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
7010         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
7011         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
7012         REPLACE_CLOSEDIR.
7013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
7014         * modules/sys_stat (Makefile.am): Substitute correct witness.
7015         * modules/dirent (Makefile.am): Likewise.
7016         * modules/unistd (Makefile.am): Likewise.
7017         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
7018         * lib/unistd.in.h (dup): Likewise.
7019         * lib/sys_stat.in.h (fstat): Likewise.
7020
7021         maint: ignore gnulib-tool temp files
7022         * .gitignore: Ignore files created during gnulib-tool --test.
7023
7024 2009-09-13  Jim Meyering  <meyering@redhat.com>
7025
7026         posixtm: don't reject a time that specify "60" as the number of seconds
7027         * lib/posixtm.c (posixtime): The code to reject invalid dates
7028         would also reject a time specified with the .60 suffix.
7029         But POSIX allows that, in order to accommodate leap seconds.
7030         So don't reject it.
7031         (main): Adjust tests accordingly.
7032         * modules/posixtm (Depends-on): Add stpcpy.
7033
7034 2009-09-11  Jim Meyering  <meyering@redhat.com>
7035
7036         announce-gen: include [$release_type] in emitted Subject:
7037         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
7038         e.g., [stable] in the emitted Subject: line.
7039
7040 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7041
7042         Remove obsolete macros from several modules.
7043         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
7044         obsolete Autoconf macros with their modern counterparts.
7045         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
7046         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
7047         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
7048         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
7049         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
7050         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7052         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7053         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7054         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
7055         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7056         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7057         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
7058         * m4/sockets.m4 (gl_SOCKETS): Likewise.
7059         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
7060         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
7061         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
7062         * m4/time_r.m4 (gl_TIME_R): Likewise.
7063         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7064         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
7065         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7066
7067         Fix copyright header in build-aux scripts.
7068         * build-aux/git-version-gen: Fix copyright header to match GPLv3
7069         recommendation.
7070         * build-aux/ncftpput-ftp: Likewise.
7071         * build-aux/update-copyright: Likewise.
7072
7073 2009-09-09  Eric Blake  <ebb9@byu.net>
7074
7075         test-link: allow Linux choice of errno
7076         * tests/test-link.c (main): Relax test for alternate error.
7077
7078         strndup: fix improper m4 caching
7079         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
7080         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
7081         (gl_PREREQ_STRNDUP): Delete.
7082         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
7083         * modules/string (Makefile.am): Substitute it.
7084         * lib/string.in.h (strndup): Modernize prototype.
7085
7086         getcwd: port to mingw
7087         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
7088         different from the POSIX assumptions made throughout the getcwd
7089         module; fortunately, the mingw getcwd does not need replacement.
7090         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
7091         * modules/getcwd-tests: New test.
7092         * tests/test-getcwd.c: Likewise.
7093
7094         link: fix platform bugs
7095         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
7096         * lib/link.c (link): Work around them.  Fix related mingw bug.
7097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
7098         * modules/unistd (Makefile.am): Substitute it.
7099         * lib/unistd.in.h (link): Declare replacement.
7100         * doc/posix-functions/link.texi (link): Document this.
7101         * modules/link (Depends-on): Add strdup-posix, sys_stat.
7102
7103         test-link: consolidate into single C program, test more cases
7104         * tests/test-link.sh: Delete.
7105         * tests/test-link.c: Test more error conditions.  Exposes bugs on
7106         at least Cygwin and Solaris.
7107         * modules/link-tests (Files): Remove unused file.
7108         (Depends-on): Add errno, sys_stat.
7109         (Makefile.am): Simplify.
7110
7111 2009-09-08  Bruno Haible  <bruno@clisp.org>
7112
7113         Work around towlower, towupper bug on mingw.
7114         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
7115         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
7116         * doc/posix-functions/towlower.texi: Mention the mingw bug.
7117         * doc/posix-functions/towupper.texi: Likewise.
7118         Reported by Eric Blake.
7119
7120 2009-09-08  Jim Meyering  <meyering@redhat.com>
7121
7122         build: don't try to run autoheader if we don't use it
7123         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
7124         is not used in configure.ac.
7125
7126 2009-09-08  Eric Blake  <ebb9@byu.net>
7127
7128         euidaccess: fix compilation error
7129         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
7130
7131         rawmemchr: relax license
7132         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
7133         okay.
7134         Reported by Jim Meyering.
7135
7136         mkfifoat: new module
7137         * modules/mkfifoat: New file.
7138         * lib/mkfifoat.c: Likewise.
7139         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
7140         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7141         * modules/sys_stat (Makefile.am): Use them.
7142         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
7143         * MODULES.html.sh (File system functions): Mention module.
7144         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7145         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7146         * modules/mkfifoat-tests: New test.
7147         * tests/test-mkfifoat.c: Likewise.
7148
7149         strchrnul: relax license
7150         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
7151         okay.
7152         Reported by Jim Meyering.
7153
7154 2009-09-08  Eric Blake  <ebb9@byu.net>
7155
7156         fstatat: fix compilation on Solaris
7157         * lib/fstatat.c (includes): Add fcntl.h.
7158         Reported by Pádraig Brady.
7159
7160 2009-09-07  Eric Blake  <ebb9@byu.net>
7161
7162         rename: modernize replacement
7163         * modules/rename (Depends-on): Add stdio.
7164         (configure.ac): Declare witness.
7165         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
7166         stdio take care of replacement.
7167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
7168         * modules/stdio (Makefile.am): Substitute them.
7169         * lib/stdio.in.h (rename): Declare replacement.
7170         * lib/rename.c (includes): Allow cross-compilation to non-windows
7171         machines.
7172         * doc/posix-functions/rename.texi (rename): Improve
7173         documentation.
7174
7175         stdio: sort witness names
7176         * modules/stdio (Makefile.am): Sort replacements.
7177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7178         * lib/stdio.in.h: Likewise.
7179
7180         getcwd: minor cleanups
7181         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
7182         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
7183
7184         openat: provide more convenience names
7185         * modules/faccessat (configure.ac): Add C witness.
7186         * lib/unistd.in.h (readlinkat): Fix typo.
7187         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
7188         convenience wrappers.
7189         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
7190         wrappers in syntax checks.
7191
7192 2009-09-06  Eric Blake  <ebb9@byu.net>
7193
7194         doc: fix comments in recent patches
7195         * lib/faccessat.c: Mention correct function.
7196         * lib/fchmodat.c: Likewise.
7197         * lib/fchownat.c: Likewise.
7198         * lib/symlinkat.c: Likewise.
7199         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
7200         constants.
7201
7202         faccessat, symlinkat: continue cleanup of previous patch
7203         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
7204         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7205         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
7206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
7207         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
7208         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
7209         set.
7210
7211 2009-09-06  Bruno Haible  <bruno@clisp.org>
7212
7213         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
7214         (fstatat): Declare if GNULIB_FSTATAT is set.
7215         (mkdirat): Declare if GNULIB_MKDIRAT is set.
7216         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
7217         (unlinkat): Declare if GNULIB_UNLINKAT is set.
7218         * modules/fcntl-h (Files): Remove m4/openat.m4.
7219         * modules/sys_stat (Files): Remove m4/openat.m4.
7220         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
7221         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
7222         * modules/unistd (Files): Remove m4/openat.m4.
7223         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
7224         GNULIB_OPENAT.
7225         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
7226         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
7227         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7228         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
7229         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
7230         gl_OPENAT_DEFAULTS.
7231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
7232         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
7233         Don't require gl_OPENAT_DEFAULTS.
7234         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
7235         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
7236         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
7237         (gl_OPENAT_DEFAULTS): Remove macro.
7238
7239 2009-09-06  Bruno Haible  <bruno@clisp.org>
7240
7241         * modules/openat (configure.ac): Remove unneeded witness.
7242
7243 2009-09-06  Bruno Haible  <bruno@clisp.org>
7244
7245         Set errno to ENOSYS when a function is entirely unsupported.
7246         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
7247         EOPNOTSUPP.
7248         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7249         * modules/chown (Depends-on): Remove errno.
7250
7251 2009-09-06  Bruno Haible  <bruno@clisp.org>
7252
7253         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
7254
7255 2009-09-06  Bruno Haible  <bruno@clisp.org>
7256
7257         * lib/sys_stat.in.h: Fix preprocessor command indentation.
7258
7259 2009-09-06  Ben Pfaff  <blp@gnu.org>
7260             Bruno Haible  <bruno@clisp.org>
7261
7262         Work around a glibc bug in strtok_r.
7263         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
7264         Undefine if UNDEFINE_STRTOK_R is set.
7265         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
7266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7267         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
7268         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
7269         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
7270         UNDEFINE_STRTOK_R.
7271         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
7272
7273 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
7274
7275         exclude: minor fix
7276         * lib/exclude.c: Include wctype.h
7277
7278 2009-09-06  Akim Demaille  <demaille@gostai.com>
7279
7280         bootstrap: improve error message
7281         * build-aux/bootstrap (find_tool): Upon failure, report the list
7282         of candidates.
7283         Honor the initial value of the envvar.
7284
7285 2009-09-05  Eric Blake  <ebb9@byu.net>
7286
7287         symlinkat: new module
7288         * modules/symlinkat: New file.
7289         * lib/symlinkat.c: Likewise.
7290         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
7291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7292         * modules/unistd (Makefile.am): Use them.
7293         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
7294         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
7295         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
7296         * MODULES.html.sh (File system functions): Mention module.
7297         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7298         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7299         * modules/symlinkat-tests: New test.
7300         * tests/test-symlinkat.c: Likewise.
7301
7302         test-openat-safer: add more checks
7303         * tests/test-openat-safer.c (main): Check more code paths.
7304
7305 2009-09-05  Jim Meyering  <meyering@redhat.com>
7306
7307         syntax-check: detect unnecessary inclusion of openat.h
7308         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
7309
7310 2009-09-05  Bruno Haible  <bruno@clisp.org>
7311
7312         Support towlower, towupper.
7313         * doc/posix-functions/towlower.texi: Mention module wctype.
7314         * doc/posix-functions/towupper.texi: Likewise.
7315         * lib/wctype.in.h (towlower, towupper): New functions.
7316         * tests/test-wctype.c: Include stdio.h, stdlib.h.
7317         (ASSERT): New macro.
7318         (e): New variable.
7319         (main): Test also towlower, towupper. Test WEOF argument.
7320         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
7321
7322 2009-09-05  Bruno Haible  <bruno@clisp.org>
7323
7324         Fix conversion behaviour when the input is invalid.
7325         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
7326         mark occurring in first pass of indirect conversion.
7327         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
7328         input.
7329         Found by clang's static analyzer.
7330
7331 2009-09-05  Bruno Haible  <bruno@clisp.org>
7332
7333         * tests/test-striconveh.c (main): Test indirect conversion on platforms
7334         where direct conversion is possible.
7335
7336 2009-09-04  Eric Blake  <ebb9@byu.net>
7337
7338         openat: fail with ENOENT on empty name
7339         * lib/openat-proc.c (openat_proc_name): Special-case the empty
7340         buffer.
7341
7342         link-follow: fix logic bug in prior patch
7343         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
7344         reversed sense of yes and no in prior patch.  Avoid confusing
7345         compilation failure with desired semantics.
7346
7347         link-follow: accomodate mingw and cross-compilation
7348         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
7349         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
7350         cross-compilation results to -1, to make linkat easier to
7351         implement when cross-compiling.  Trivially support mingw.
7352         * modules/link-follow (configure.ac): Call new name.
7353         * NEWS: Mention this.
7354
7355 2009-09-03  Eric Blake  <ebb9@byu.net>
7356
7357         faccessat: compile replacement
7358         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
7359         needed.
7360
7361         fts: fix compilation error
7362         * lib/fts.c (includes): Re-add "openat.h", for
7363         openat_needs_fchdir.
7364
7365         faccessat: new module
7366         * modules/faccessat: New file.
7367         * lib/faccessat.c: Likewise.
7368         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7370         * modules/unistd (Makefile.am): Use it.
7371         * lib/unistd.in.h (faccessat): Declare it.
7372         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
7373         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
7374         * MODULES.html.sh (File system functions): Mention it.
7375         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
7376         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7377
7378         euidaccess: prefer POSIX over non-standard implementation
7379         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
7380         * lib/euidaccess.c (euidaccess): Use it if available.
7381
7382         openat: make template easier to use
7383         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
7384         AT_FUNC_F2 to be undefined.
7385         (VALIDATE_FLAG): New macro; use it to reject bad flags.
7386         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
7387         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
7388         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
7389         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
7390         Likewise.
7391         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
7392         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
7393         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
7394         Likewise.
7395
7396         openat: declare in POSIX headers
7397         * NEWS: Mention this.
7398         * modules/openat (configure.ac): Declare witnesses.
7399         (Depends-on): Add fcntl-h, sys_stat, unistd.
7400         (Include): Mention correct headers.
7401         * modules/fcntl-h (Depends-on): Add link-warning.
7402         (Files): Add openat.m4.
7403         (Makefile.am): Substitute witnesses.
7404         * modules/sys_stat (Files, Makefile.am): Likewise.
7405         * modules/unistd (Files, Makefile.am): Likewise.
7406         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
7407         (gl_OPENAT_DEFAULTS): New macro.
7408         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
7409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
7410         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
7411         (SYS_STAT_H): Remove unused variable.
7412         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
7413         * lib/fcntl--.h (includes): Remove unneeded header.
7414         * lib/openat-safer.c (includes): Likewise.
7415         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
7416         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
7417         appropriate headers.
7418         (__OPENAT_PREFIX): Delete.
7419         * lib/fcntl.in.h (openat): Provide declaration.
7420         (AT_FDCWD): Fix Solaris bug.
7421         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
7422         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
7423         * lib/fchmodat.c (includes):  Adjust to find declaration.
7424         * lib/fchownat.c (includes): Likewise.
7425         * lib/mkdirat.c (includes): Likewise.
7426         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
7427         still visible.
7428
7429 2009-09-02  Eric Blake  <ebb9@byu.net>
7430
7431         errno: use consistently
7432         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
7433         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
7434         * lib/canonicalize.c (ELOOP): Likewise.
7435         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
7436         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
7437         * lib/lchown.c (EOPNOTSUPP): Likewise.
7438         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
7439         * lib/savewd.c (ESTALE): Likewise.
7440         * lib/settime.c (ENOSYS): Likewise.
7441         * lib/utimens.c (ENOSYS): Likewise.
7442         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
7443         * lib/chdir-safer.c (ELOOP): Likewise.
7444         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
7445         * modules/c-stack (Depends-on): Add errno.
7446         * modules/canonicalize (Depends-on): Likewise.
7447         * modules/chdir-safer (Depends-on): Likewise.
7448         * modules/fdopendir (Depends-on): Likewise.
7449         * modules/inet_ntop (Depends-on): Likewise.
7450         * modules/inet_pton (Depends-on): Likewise.
7451         * modules/lchown (Depends-on): Likewise.
7452         * modules/openat (Depends-on): Likewise.
7453         * modules/savewd (Depends-on): Likewise.
7454         * modules/settime (Depends-on): Likewise.
7455         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
7456
7457         fts: avoid leaking fds
7458         * modules/fts (Depends-on): Add cloexec.
7459         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
7460         flag.
7461
7462         fts: make directory fds more robust
7463         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
7464         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
7465
7466         backupfile, chdir-long, fts, savedir: make safer
7467         * lib/backupfile.c (includes): Use "dirent--.h", since
7468         numbered_backup can write to stderr during readdir.
7469         * lib/savedir.c (includes): Likewise.
7470         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
7471         emulation can write to stderr on failure.
7472         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
7473         * lib/getcwd.c: Document why opendir_safer is unused.
7474         * lib/glob.c: Likewise.
7475         * lib/scandir.c: Likewise.
7476         * lib/openat-proc.c: Likewise, for open_safer.
7477         * modules/backupfile (Depends-on): Add dirent-safer.
7478         * modules/savedir (Depends-on): Likewise.
7479         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
7480         * modules/chdir-long (Depends-on): Add openat-safer.
7481
7482         openat-safer: new module
7483         * modules/openat-safer: New file.
7484         * lib/openat-safer.c: Likewise.
7485         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
7486         * lib/fcntl-safer.h (openat_safer): Declare.
7487         * lib/fcntl--.h (openat): Override.
7488         * MODULES.html.sh (File descriptor based I/O): Mention it.
7489         * lib/openat.h: Add double-inclusion guards.
7490         * lib/openat.c (includes): Only include "fcntl-safer.h", not
7491         "fcntl--.h", so we can implement openat.
7492         * modules/openat-safer-tests: New test.
7493         * tests/test-openat-safer.c: New file.
7494
7495         dirent-safer: new module
7496         * modules/dirent-safer: New file.
7497         * lib/dirent--.h: Likewise.
7498         * lib/dirent-safer.h: Likewise.
7499         * lib/opendir-safer.c: Likewise.
7500         * m4/dirent-safer.m4: Likewise.
7501         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
7502         * modules/dirent-safer-tests: New test.
7503         * tests/test-dirent-safer.c: New file.
7504         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
7505
7506         fdopendir: optimize on mingw
7507         * lib/unistd.in.h (_gl_directory_name): New prototype.
7508         * lib/fchdir.c (_gl_directory_name): Implement it.
7509         (fchdir): Use it to simplify implementation.
7510         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
7511         fchdir, when available, to avoid calling [f]chdir().
7512
7513         fdopendir: split into its own module
7514         * lib/openat.c (fdopendir): Move...
7515         * lib/fdopendir.c: ...into new file.
7516         * modules/fdopendir: New module.
7517         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
7518         * modules/openat (Depends-on): Add fdopendir.
7519         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
7520         fdopendir here.
7521         * modules/savedir (Depends-on): Only need fdopendir, not full
7522         openat.
7523         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
7524         * lib/openat.h (fdopendir): Drop prototype.
7525         * lib/dirent.in.h (fdopendir): Provide prototype.
7526         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
7527         * modules/dirent (Makefile.am): Substitute them.
7528         * MODULES.html.sh (File system functions): Mention it.
7529         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
7530         * modules/fdopendir-tests: New file.
7531         * tests/test-fdopendir.c: Likewise.
7532
7533         fchdir: use more consistent macro convention
7534         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
7535         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
7536         REPLACE_FCHDIR, rather than relying on config.h macros.
7537         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
7538         inside a single make-time REPLACE_FCHDIR block, rather than using
7539         the config.h FCHDIR_REPLACEMENT.
7540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
7541         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
7542         Manage fstat replacement.
7543         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
7544         REPLACE_FCHDIR.
7545         * modules/sys_stat (Files): Add m4/unistd_h.m4.
7546         (Makefile.am): Substitute REPLACE_FCHDIR.
7547         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
7548         FCHDIR_REPLACEMENT.
7549         * lib/dup-safer.c (dup_safer): Likewise.
7550         * lib/dup2.c (rpl_dup2): Likewise.
7551         * lib/dup3.c (rpl_dup3): Likewise.
7552         * lib/open.c (rpl_open): Likewise.
7553
7554         fchdir: simplify error handling, and support dup3
7555         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
7556         stdbool, malloc-posix, realloc-posix.
7557         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
7558         (ensure_dirs_slot): Return false on allocation failure.
7559         (rpl_dup2): Delete.
7560         (_gl_register_dup): New function.
7561         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
7562         (_gl_register_fd): Close fd on allocation failure.
7563         * lib/fcntl.in.h (_gl_register_fd): Update signature.
7564         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
7565         prototype.
7566         (rpl_dup2_fchdir): Delete prototype.
7567         * lib/open.c (open): Update caller.
7568         * lib/dup2.c (dup2): Track fchdir metadata.
7569         * lib/dup3.c (dup3): Likewise.
7570         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
7571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
7572
7573 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7574
7575         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
7576         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
7577         don't pass arguments to AC_OUTPUT.
7578
7579 2009-09-02  Bruno Haible  <bruno@clisp.org>
7580
7581         * modules/mkdtemp (License): Relicense under LGPLv2+.
7582         Reported by Paolo Bonzini.
7583
7584 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7585
7586         Replace uses of obsolete autoconf macros in Jim's modules.
7587         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
7588         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
7589         can evoke a warning from autoconf when run with -Wobsolete
7590         enabled.  They were declared obsolete for good reasons (see
7591         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
7592         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
7593         should not continue using the deprecated macros.
7594         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
7595         obsolete Autoconf macros with modern counterparts.
7596         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7597         * m4/dos.m4 (gl_AC_DOS): Likewise.
7598         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
7599         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7600         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
7601         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
7602         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
7603         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
7604         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
7605         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
7606         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
7607         Likewise.
7608         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7609         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7610         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
7611         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
7612         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7613         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
7614
7615 2009-09-01  Eric Blake  <ebb9@byu.net>
7616
7617         fchdir: fix off-by-one bug in previous patch
7618         * lib/fchdir.c (rpl_fstat): Use correct bounds.
7619         (_gl_unregister_fd): Delete useless if.
7620
7621 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
7622
7623         maint.mk: sort the list of syntax-check rules
7624         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
7625         easier to get a sense of progress when the rules are run sequentially
7626         and take a long time.
7627
7628 2009-09-01  Simon Josefsson  <simon@josefsson.org>
7629
7630         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
7631         * modules/netinet_in: Likewise.
7632         * modules/sys_file: Likewise.
7633         * modules/sys_ioctl: Likewise.
7634         * modules/sys_select: Likewise.
7635         * modules/sys_socket: Likewise.
7636         * modules/sys_stat: Likewise.
7637         * modules/sys_time: Likewise.
7638         * modules/sys_times: Likewise.
7639         * modules/sys_utsname: Likewise.
7640         * modules/sys_wait: Likewise.
7641
7642 2009-09-01  Jim Meyering  <meyering@redhat.com>
7643
7644         fts: help ensure that return values are not ignored
7645         * lib/fts_.h (__GNUC_PREREQ): Define.
7646         (__attribute_warn_unused_result__): Define.
7647         (fts_children, fts_close, fts_open, fts_read): Declare with
7648         __attribute_warn_unused_result__.
7649
7650         fts: fts_close now fails also when closing a dir file descriptor fails
7651         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
7652         and propagate to caller, along with errno.
7653
7654         announce-gen: correct formatting in --help output
7655         * build-aux/announce-gen (usage): Move the one-line description in
7656         --help output "up", to where it belongs, just after Usage:.
7657
7658 2009-08-31  Eric Blake  <ebb9@byu.net>
7659
7660         fchdir: port to mingw
7661         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
7662         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
7663         opened, then use a substitute.
7664         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
7665         replacement.
7666         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
7667         (_gl_register_fd): No need to check stat if open already filters
7668         all directories.
7669         (fchdir): Fix error condition to match POSIX.
7670         * modules/fchdir (Depends-on): Add sys_stat.
7671         * doc/posix-functions/open.texi (open): Document the limitation.
7672         * modules/fchdir-tests: New file.
7673         * tests/test-fchdir.c: Likewise.
7674
7675         canonicalize: allow cross-testing from cygwin to mingw
7676         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
7677         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
7678         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
7679         Likewise.
7680         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
7681         target does not support symlinks.
7682         * tests/test-canonicalize-lgpl.sh: Likewise.
7683
7684         chown: avoid compilation warning on mingw
7685         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
7686         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
7687         mingw.
7688         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7689         * modules/chown (Depends-on): Add errno.
7690
7691 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7692
7693         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
7694         command.
7695
7696 2009-08-31  Jim Meyering  <meyering@redhat.com>
7697
7698         canonicalize: remove useless initialization
7699         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
7700         initialization of local, "end".
7701
7702 2009-08-30  Bruno Haible  <bruno@clisp.org>
7703
7704         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
7705         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
7706         ENOSYS.
7707
7708 2009-08-30  Bruno Haible  <bruno@clisp.org>
7709
7710         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
7711         /usr/xpg4/bin/tr when it exists.
7712         * tests/test-pipe-filter-gi1.sh: Likewise.
7713
7714 2009-08-30  Bruno Haible  <bruno@clisp.org>
7715
7716         Work around deficient /usr/bin/id program on Solaris.
7717         * tests/test-file-has-acl.sh (ID): New variable.
7718         * tests/test-set-mode-acl.sh (ID): Likewise.
7719         * tests/test-copy-acl.sh (ID): Likewise.
7720         * tests/test-copy-file.sh (ID): Likewise.
7721
7722 2009-08-30  Bruno Haible  <bruno@clisp.org>
7723
7724         New module 'xstriconveh'.
7725         * lib/xstriconveh.h: New file.
7726         * lib/xstriconveh.c: New file.
7727         * modules/xstriconveh: New file.
7728
7729 2009-08-30  Bruno Haible  <bruno@clisp.org>
7730
7731         Make it easier to use mem_cd_iconveh.
7732         * lib/striconveh.h (iconveh_t): New type.
7733         (iconveh_open, iconveh_close): New declarations.
7734         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7735         with a single 'const iconveh_t *' argument.
7736         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
7737         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7738         with a single 'const iconveh_t *' argument.
7739         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
7740         * tests/test-striconveh.c (main): Update.
7741         * NEWS: Mention the change.
7742
7743 2009-08-30  Bruno Haible  <bruno@clisp.org>
7744
7745         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
7746         problem.
7747
7748 2009-08-30  Bruno Haible  <bruno@clisp.org>
7749
7750         Work around iconv_open problem on Solaris.
7751         * lib/iconv_open-solaris.gperf: New file.
7752         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
7753         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
7754         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
7755         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
7756         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
7757         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
7758
7759 2009-08-29  Jim Meyering  <meyering@redhat.com>
7760
7761         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
7762         * top/maint.mk (cvs-check): Remove target; it was just an alias
7763         to the better-named vc-diff-check.
7764         (maintainer-distcheck): Remove rule.  It was used only from
7765         the (alpha/beta/major) target, and all of its commands but one
7766         were coreutils-specific.
7767         (vc-dist): Remove rule.
7768         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
7769         Run vc-diff-check, not vc-dist.
7770         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
7771
7772 2009-08-27  Bruno Haible  <bruno@clisp.org>
7773
7774         * tests/test-bitrotate.c (main): Remove test that uses a shift count
7775         of 0.
7776
7777 2009-08-27  Bruno Haible  <bruno@clisp.org>
7778
7779         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
7780         compilers.
7781         * doc/func.texi: Document the SunPRO C bug.
7782
7783 2009-08-27  Bruno Haible  <bruno@clisp.org>
7784
7785         Fix link error on Solaris.
7786         * tests/test-parse-duration.c (xstrdup): Remove function.
7787
7788 2009-08-26  Pádraig Brady  <P@draigbrady.com>
7789
7790         ignore-value: handle pointer types, too
7791         * lib/ignore-value.h (__attribute__): Remove definition.
7792         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
7793         of a more concise and more-often effective "(void) i" statement.
7794         (ignore_ptr): New function to suppress warnings from functions that
7795         return pointers, and to make it explicit that one function doesn't
7796         handle all cases.
7797
7798 2009-08-25  Bruno Haible  <bruno@clisp.org>
7799
7800         dup2: work around a Linux bug.
7801         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
7802         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
7803         * doc/posix-functions/dup2.texi: Mention the Linux bug.
7804         Reported by Simon Josefsson.
7805
7806 2009-08-25  Jim Meyering  <meyering@redhat.com>
7807
7808         libguestfs uses gnulib
7809         * users.txt: Add libguestfs.
7810
7811 2009-08-24  Eric Blake  <ebb9@byu.net>
7812
7813         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
7814         * lib/pipe2.c (includes): Add binary-io.h.
7815         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
7816
7817 2009-08-24  Bruno Haible  <bruno@clisp.org>
7818
7819         Tolerate declared but missing accept4 syscall.
7820         * lib/accept4.c (accept4): Invoke original accept4 function first, if
7821         available.
7822         * lib/sys_socket.in.h (accept4): If the function is already present,
7823         override it.
7824         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
7825         * modules/accept4 (Makefile.am): Compile accept4.c always.
7826         Reported by Paolo Bonzini and Eric Blake.
7827
7828 2009-08-23  Bruno Haible  <bruno@clisp.org>
7829
7830         New module 'accept4'.
7831         * lib/sys_socket.in.h (accept4): New declaration.
7832         * lib/accept4.c: New file.
7833         * m4/accept4.m4: New file.
7834         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7835         GNULIB_ACCEPT4, HAVE_ACCEPT4.
7836         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
7837         HAVE_ACCEPT4.
7838         * modules/accept4: New file.
7839         * doc/glibc-functions/accept4.texi: Mention the new module.
7840
7841 2009-08-24  Jim Meyering  <meyering@redhat.com>
7842
7843         progname: also set global program_invocation_name, when possible
7844         Before this change, a libtool-enabled program that calls glibc's
7845         error function would report the program name as
7846         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
7847         * modules/progname (configure.ac): Check for a declaration of
7848         program_invocation_name.
7849         * lib/progname.c:  Include <errno.h>.
7850         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
7851         Set program_invocation_name.
7852
7853 2009-08-23  Bruno Haible  <bruno@clisp.org>
7854
7855         * lib/dup3.c: Include <string.h>.
7856
7857 2009-08-23  Bruno Haible  <bruno@clisp.org>
7858
7859         * lib/dup3.c (dup3): Test only once whether the system actually exists.
7860         * lib/pipe2.c (pipe2): Likewise.
7861         Suggested by Eric Blake.
7862
7863 2009-08-23  Bruno Haible  <bruno@clisp.org>
7864
7865         Tolerate declared but missing dup3 syscall.
7866         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
7867         * lib/unistd.in.h (dup3): If the function is already present,
7868         override it.
7869         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
7870         * modules/dup3 (Makefile.am): Compile dup3.c always.
7871         Reported by Paolo Bonzini.
7872
7873 2009-08-23  Bruno Haible  <bruno@clisp.org>
7874
7875         Tolerate declared but missing pipe2 syscall.
7876         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
7877         available.
7878         * lib/unistd.in.h (pipe2): If the function is already present,
7879         override it.
7880         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
7881         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
7882         Reported by Paolo Bonzini.
7883
7884 2009-08-23  Bruno Haible  <bruno@clisp.org>
7885
7886         * lib/pipe2.c (pipe2): Move #ifs inside function.
7887
7888 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7889
7890         quotearg: document limitations of quote_these_too
7891         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
7892         those limitations are created.
7893         * lib/quotearg.h (set_char_quoting): Document that digits and
7894         letters that are special after backslash are not permitted.
7895         (quotearg_char): Cross-reference set_char_quoting documentation.
7896
7897 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
7898
7899         quotearg: implement custom_quoting_style
7900         * lib/quotearg.c: (struct quoting_options): Add left_quote and
7901         right_quote fields.
7902         (set_custom_quoting): New public function.
7903         (quotearg_buffer_restyled): Add left_quote and right_quote
7904         arguments, handle them very much like locale quoting, and update
7905         all uses.
7906         (quotearg_n_custom): New public function.
7907         (quotearg_n_custom_mem): New public function.
7908         (quotearg_custom): New public function.
7909         (quotearg_custom_mem): New public function.
7910         * lib/quotearg.h: Prototype and document new public functions.
7911         (enum quoting_style): For escape_quoting_style and
7912         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
7913         ignored even though they're otherwise like c_quoting_style.
7914         Add custom_quoting_style member and document with comparison to
7915         clocale_quoting_style.
7916         * tests/test-quotearg.c (custom_quotes): New array.
7917         (custom_results): New array.
7918         (main): Extend to test custom quoting.
7919
7920 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7921
7922         quotearg: fix right quote escaping when it's in quote_these_too
7923         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
7924         quote, be sure to prepend only one backslash.
7925         * tests/test-quotearg.c (use_quote_double_quotes): New function.
7926         (main): Test it.
7927
7928 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7929
7930         quotearg-tests: test escaping of embedded locale quotes
7931         * tests/test-quotearg.c (struct result_strings): Add member for
7932         new input.
7933         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
7934         (inputs): Add new input.
7935         (results_g): Add expected results.
7936         (flag_results): Likewise.
7937         (locale_results): Likewise.
7938         (compare_strings): Check those.
7939
7940 2009-08-23  Bruno Haible  <bruno@clisp.org>
7941
7942         Tests for module 'dup3'.
7943         * modules/dup3-tests: New file.
7944         * tests/test-dup3.c: New file.
7945
7946         New module 'dup3'.
7947         * lib/unistd.in.h (dup3): New declaration.
7948         * lib/dup3.c: New file.
7949         * m4/dup3.m4: New file.
7950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
7951         HAVE_DUP3.
7952         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
7953         * modules/dup3: New file.
7954         * doc/glibc-functions/dup3.texi: Mention the new module.
7955
7956 2009-08-23  Bruno Haible  <bruno@clisp.org>
7957
7958         Tweak the dup2 test.
7959         * tests/test-dup2.c (main): Create the test file empty. Verify that an
7960         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
7961         the test file is still empty. Fix argument order of lseek.
7962
7963 2009-08-23  Bruno Haible  <bruno@clisp.org>
7964
7965         Avoid test link errors when the modules getopt-gnu, gettext are used.
7966         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
7967         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7968
7969 2009-08-23  Bruno Haible  <bruno@clisp.org>
7970
7971         Fix getdtablesize() on mingw.
7972         * lib/getdtablesize.c (getdtablesize): Implement differently.
7973         * lib/unistd.in.h (getdtablesize): Improve comment.
7974
7975 2009-08-23  Bruno Haible  <bruno@clisp.org>
7976
7977         New module 'mkostemp'.
7978         Based on Ulrich Drepper's 2007-08-10 change in glibc.
7979         * lib/stdlib.in.h (mksotemp): New declaration.
7980         * lib/mkostemp.c: New file, from glibc with modifications.
7981         * lib/tempname.h (GT_FILE): Remove outdated comment.
7982         (gen_tempname): Add flags argument.
7983         * lib/tempname.c (__GT_BIGFILE): Remove macro.
7984         (__GT_FILE): Map to 1.
7985         (small_open, large_open): Remove macros.
7986         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
7987         * lib/mkstemp.c (mkstemp): Update.
7988         * lib/mkdtemp.c (mkdtemp): Likewise.
7989         * m4/mkostemp.m4: New file.
7990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
7991         HAVE_MKOSTEMP.
7992         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
7993         HAVE_MKOSTEMP.
7994         * modules/mkostemp: New file, based on modules/mkstemp.
7995         * doc/glibc-functions/mkostemp.texi: Mention the new module.
7996         * NEWS: Mention the change.
7997
7998 2009-08-23  Bruno Haible  <bruno@clisp.org>
7999
8000         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
8001         Reported by Eric Blake.
8002
8003 2009-08-23  Bruno Haible  <bruno@clisp.org>
8004
8005         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
8006         Reported by Eric Blake.
8007
8008 2009-08-23  Bruno Haible  <bruno@clisp.org>
8009
8010         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
8011         * modules/pipe2 (Depends-on): Likewise.
8012
8013 2009-08-23  Eric Blake  <ebb9@byu.net>
8014
8015         fcntl-h: add O_TTY_INIT support
8016         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
8017         * tests/test-fcntl-h.c (o): Test it.
8018         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8019
8020         fcntl-h: rename from fcntl, in preparation for fcntl(2)
8021         * modules/fcntl: Move <fcntl.h> header replacement...
8022         * modules/fcntl-h: ...to new name, so as not to collide with
8023         like-named function.
8024         * tests/test-fcntl.c: Rename...
8025         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
8026         * modules/fcntl-tests: Rename...
8027         * modules/fcntl-h-tests: ...to this.  Update test file name.
8028         * modules/chdir-long (Depends-on): Update clients.
8029         * modules/chdir-safer (Depends-on): Likewise.
8030         * modules/fcntl-safer (Depends-on): Likewise.
8031         * modules/fts (Depends-on): Likewise.
8032         * modules/mkancesdirs (Depends-on): Likewise.
8033         * modules/mkdir-p (Depends-on): Likewise.
8034         * modules/open (Depends-on): Likewise.
8035         * modules/savewd (Depends-on): Likewise.
8036         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
8037         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8038
8039 2009-08-22  Bruno Haible  <bruno@clisp.org>
8040
8041         * modules/binary-io (License): Relicense under LGPL.
8042         * modules/pipe2 (License): Likewise.
8043
8044 2009-08-22  Bruno Haible  <bruno@clisp.org>
8045
8046         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
8047         return value.
8048         * lib/pipe-filter-gi.c (filter_init): Likewise.
8049         Reported by Eric Blake.
8050
8051 2009-08-22  Bruno Haible  <bruno@clisp.org>
8052
8053         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
8054         * modules/pipe (Depends-on): Add pipe2.
8055
8056 2009-08-22  Bruno Haible  <bruno@clisp.org>
8057
8058         Tests for module 'pipe2'.
8059         * modules/pipe2-tests: New file.
8060         * tests/test-pipe2.c: New file.
8061
8062         New module 'pipe2'.
8063         * lib/unistd.in.h (pipe2): New declaration.
8064         * lib/pipe2.c: New file.
8065         * m4/pipe2.m4: New file.
8066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
8067         HAVE_PIPE2.
8068         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
8069         * modules/pipe2: New file.
8070         * doc/glibc-functions/pipe2.texi: Mention the new module.
8071
8072 2009-08-22  Bruno Haible  <bruno@clisp.org>
8073
8074         Reference some new glibc functions.
8075         * doc/glibc-functions/accept4.texi: New file.
8076         * doc/glibc-functions/dup3.texi: New file.
8077         * doc/glibc-functions/mkostemp.texi: New file.
8078         * doc/glibc-functions/pipe2.texi: New file.
8079         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
8080         (Glibc sys/socket.h): Refer to accept4.
8081         (Glibc unistd.h): Refer to dup3, pipe2.
8082         Reported by Eric Blake.
8083
8084 2009-08-22  Jim Meyering  <meyering@redhat.com>
8085             Bruno Haible  <bruno@clisp.org>
8086
8087         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
8088         This makes it so packages using automake-1.11's silent-rules option
8089         can print e.g., a single "GEN    configmake.h" line, rather than
8090         the 30+ statements that perform the job.  If you want to see the
8091         actual commands, you can still run "make V=1".
8092         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
8093         so that make output is abbreviated when those variables are defined
8094         appropriately.
8095         * modules/argz: Likewise.
8096         * modules/arpa_inet: Likewise.
8097         * modules/byteswap: Likewise.
8098         * modules/configmake: Likewise.
8099         * modules/dirent: Likewise.
8100         * modules/errno: Likewise.
8101         * modules/fcntl: Likewise.
8102         * modules/float: Likewise.
8103         * modules/fnmatch: Likewise.
8104         * modules/getopt-posix: Likewise.
8105         * modules/glob: Likewise.
8106         * modules/iconv_open: Likewise.
8107         * modules/inttypes: Likewise.
8108         * modules/localcharset: Likewise.
8109         * modules/locale: Likewise.
8110         * modules/math: Likewise.
8111         * modules/netdb: Likewise.
8112         * modules/netinet_in: Likewise.
8113         * modules/poll: Likewise.
8114         * modules/posix_spawnp-tests: Likewise.
8115         * modules/sched: Likewise.
8116         * modules/search: Likewise.
8117         * modules/selinux-h: Likewise.
8118         * modules/signal: Likewise.
8119         * modules/spawn: Likewise.
8120         * modules/stdarg: Likewise.
8121         * modules/stdbool: Likewise.
8122         * modules/stddef: Likewise.
8123         * modules/stdint: Likewise.
8124         * modules/stdio: Likewise.
8125         * modules/stdlib: Likewise.
8126         * modules/string: Likewise.
8127         * modules/strings: Likewise.
8128         * modules/sys_file: Likewise.
8129         * modules/sys_ioctl: Likewise.
8130         * modules/sys_select: Likewise.
8131         * modules/sys_socket: Likewise.
8132         * modules/sys_stat: Likewise.
8133         * modules/sys_time: Likewise.
8134         * modules/sys_times: Likewise.
8135         * modules/sys_utsname: Likewise.
8136         * modules/sys_wait: Likewise.
8137         * modules/sysexits: Likewise.
8138         * modules/time: Likewise.
8139         * modules/unistd: Likewise.
8140         * modules/wchar: Likewise.
8141         * modules/wctype: Likewise.
8142
8143 2009-08-22  Jim Meyering  <meyering@redhat.com>
8144
8145         announce-gen: detect write failure
8146         * build-aux/announce-gen: Add Coda at end.
8147         Remove equivalent-but-more-verbose block at top.
8148
8149 2009-08-19  Akim Demaille  <demaille@gostai.com>
8150
8151         bootstrap: --help to stdout.
8152         * bootstrap (usage): Don't send --help to stderr.
8153         Use a here doc instead of a long string.
8154
8155 2009-08-21  Eric Blake  <ebb9@byu.net>
8156
8157         test-popen-safer: split from test-popen
8158         * tests/test-popen.c (main): Move...
8159         * tests/test-popen.h: ...into new file.
8160         * tests/test-popen-safer2.c: New file.
8161         * modules/popen-tests (Files): Add test-popen.h.
8162         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
8163         Suggested by Bruno Haible.
8164
8165         test-fcntl-safer: split from test-open
8166         * tests/test-open.c (main): Move...
8167         * tests/test-open.h: ...into new file.
8168         * tests/test-fcntl-safer.c: New file.
8169         * modules/open-tests (Files): Add test-open.h.
8170         * modules/fcntl-safer-tests: New file.
8171         Suggested by Bruno Haible.
8172
8173         test-fopen-safer: split from test-fopen
8174         * tests/test-fopen.c (main): Move...
8175         * tests/test-fopen.h: ...into new file.
8176         * tests/test-fopen-safer.c: New file.
8177         * modules/fopen-tests (Files): Add test-fopen.h.
8178         * modules/fopen-safer-tests: New file.
8179         Suggested by Bruno Haible.
8180
8181 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
8182
8183         popen-safer: test O_CLOEXEC at run-time.
8184         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
8185
8186 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
8187
8188         fcntl: move more flags to the header
8189         * lib/cloexec.c: Do not define FD_CLOEXEC here.
8190         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
8191         * lib/fcntl.in.h: Do both things here.
8192
8193 2009-08-21  Jim Meyering  <meyering@redhat.com>
8194
8195         consistently remove $@-t before redirecting to it
8196         * modules/argz: Remove $@-t and $@ before redirecting to the former.
8197         * modules/alloca-opt: Likewise.
8198         * modules/byteswap: Likewise.
8199         * modules/fnmatch: Likewise.
8200         * modules/getopt-posix: Likewise.
8201         * modules/glob: Likewise.
8202         * modules/poll: Likewise.
8203         * modules/posix_spawnp-tests: Likewise.
8204         * modules/sys_socket: Likewise.
8205         * modules/sysexits: Likewise.
8206
8207 2009-08-21  Eric Blake  <ebb9@byu.net>
8208
8209         popen: simplify access to original popen
8210         * lib/popen.c (rpl_popen): No need to worry about popen being a
8211         macro.
8212         Reported by Bruno Haible.
8213
8214 2009-08-20  Eric Blake  <ebb9@byu.net>
8215
8216         build: avoid some compiler warnings
8217         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
8218         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
8219         type.
8220         (new_exclude_segment, excluded_file_pattern_p)
8221         (excluded_file_name_p): Reduce scope.
8222         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
8223         old-style declaration.
8224
8225 2009-08-20  Simon Josefsson  <simon@josefsson.org>
8226
8227         * tests/test-exclude1.sh: Handle Windows EOL.
8228         * tests/test-exclude2.sh: Likewise.
8229         * tests/test-exclude3.sh: Likewise.
8230         * tests/test-exclude4.sh: Likewise.
8231         * tests/test-exclude5.sh: Likewise.
8232         * tests/test-exclude6.sh: Likewise.
8233         * tests/test-exclude7.sh: Likewise.
8234
8235 2009-08-19  Akim Demaille  <demaille@gostai.com>
8236
8237         bootstrap: find sha1sum when named gsha1sum.
8238         * bootstrap (find_tool): New.
8239         ($SHA1SUM): New.
8240         Use it.
8241
8242 2009-08-20  Jim Meyering  <meyering@redhat.com>
8243
8244         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
8245         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
8246         expression that converts "." in a file name to "\." in the resulting
8247         regexp.  Start with a dummy statement, so that prior shell variable
8248         definitions are expanded portably.  Reported by Simon Josefsson.
8249
8250 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
8251
8252         Fix polling for writeability of a screen buffer.
8253         * lib/poll.c: Distinguish input and screen buffers for the
8254         Win32 implementation.
8255         * lib/select.c: Likewise.
8256
8257 2009-08-19  Eric Blake  <ebb9@byu.net>
8258
8259         popen-safer: prevent popen from clobbering std descriptors
8260         * modules/popen-safer: New file.
8261         * lib/popen-safer.c: Likewise.
8262         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
8263         * lib/stdio--.h (popen): Provide override.
8264         * lib/stdio-safer.h (popen_safer): Provide declaration.
8265         * tests/test-popen.c (includes): Partially test this.
8266         * modules/popen-safer-tests: New file, for more tests.
8267         * tests/test-popen-safer.c: Likewise.
8268         * MODULES.html.sh (file stream based Input/Output): Mention it.
8269
8270         tests: test some of the *-safer modules
8271         * modules/fopen-safer (Depends-on): Add fopen.
8272         * modules/fcntl-safer (Depends-on): Add fcntl.
8273         * modules/stdlib-safer (Depends-on): Add stdlib.
8274         (configure.ac): Set indicator.
8275         * modules/unistd-safer (configure.ac): Likewise.
8276         * modules/tmpfile-safer (configure.ac): Likewise.
8277         (Depends-on): Add tmpfile.
8278         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
8279         active.
8280         * tests/test-fopen.c (includes): Test safer versions when they are
8281         in use.
8282         * tests/test-open.c (includes): Likewise.
8283
8284         popen: fix cygwin 1.5 bug when stdin closed
8285         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
8286         * modules/popen: New file.
8287         * modules/popen-tests: Likewise.
8288         * tests/test-popen.c: Likewise.
8289         * m4/popen.m4: Likewise.
8290         * lib/popen.c: Likewise.
8291         * lib/stdio.in.h (popen): New declaration.
8292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
8293         * modules/stdio (Makefile.am): Likewise.
8294         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
8295
8296 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
8297
8298         maint.mk: give full control over update-copyright exclusions
8299         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
8300         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
8301         (update-copyright): Don't force inclusion of top-level
8302         ChangeLog.  Don't force exclusion of all COPYING files, but make
8303         them the default exclusion instead.
8304
8305 2009-08-16  Bruno Haible  <bruno@clisp.org>
8306
8307         Fix test failures on Solaris 10.
8308         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
8309         tests when Solaris iconv() is used.
8310         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
8311         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
8312         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
8313         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
8314         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
8315
8316 2009-08-16  Bruno Haible  <bruno@clisp.org>
8317
8318         Fix test failures on Solaris 10.
8319         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
8320         'tr' program and pass it as first argument.
8321         * tests/test-pipe-filter-gi1.sh: Likewise.
8322         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
8323         program as first argument.
8324         * tests/test-pipe-filter-gi1.c (main): Likewise.
8325
8326 2009-08-16  Eric Blake  <ebb9@byu.net>
8327
8328         fpurge: fix previous commits
8329         * modules/fpurge (Makefile.am): Make replacement conditional,
8330         partially reverting 2007-04-29 change; missed in previous
8331         attempt.
8332         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
8333         is missing.
8334
8335 2009-08-16  Bruno Haible  <bruno@clisp.org>
8336
8337         Clarify fpurge's effect on the file position.
8338         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
8339         * tests/test-fpurge.c (main): Make a second pass for checking the file
8340         position.
8341
8342 2009-08-16  Bruno Haible  <bruno@clisp.org>
8343
8344         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
8345         declaration of fpurge is missing.
8346         * tests/test-fpurge.c (main): Check that the file has not more contents
8347         than expected. Close the file before removing it.
8348
8349 2009-08-15  Eric Blake  <ebb9@byu.net>
8350
8351         fpurge: don't wrap working cygwin implementation
8352         * lib/fpurge.c (fpurge): Fix comment typo.
8353         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
8354         1.7 to avoid replacement.
8355         * tests/test-fpurge.c (main): Enhance test.
8356
8357 2009-08-15  Eric Blake  <ebb9@byu.net>
8358         and Jim Meyering  <meyering@redhat.com>
8359
8360         test-update-copyright: skip if perl is insufficient
8361         * tests/test-update-copyright.sh: Failure to run maintainer tool
8362         should not cause testsuite failure on cygwin 1.5.
8363
8364 2009-08-14  Eric Blake  <ebb9@byu.net>
8365
8366         doc: mention more functions added in cygwin 1.7.0
8367         * doc/posix-headers/limits.texi (limits.h): Update for recent
8368         cygwin additions.
8369         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
8370         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8371         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
8372         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
8373         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
8374
8375 2009-08-14  Eric Blake  <ebb9@byu.net>
8376
8377         maint.mk: simplify update-copyright rule
8378         * top/maint.mk (update-copyright-local): Delete, and document how
8379         to do it in cfg.mk instead.
8380         (update-copyright-exclude-regexp): Delete, and document how to do
8381         it in .x-update-copyright instead.
8382         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
8383         exclude ChangeLog.
8384
8385 2009-08-14  Bruno Haible  <bruno@clisp.org>
8386
8387         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
8388
8389 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8390
8391         maint.mk: support update-copyright-env
8392         * top/maint.mk (update-copyright-env): Define place-holder.
8393         (update-copyright): Expand $(update-copyright-env) before
8394         invoking update-copyright.
8395
8396 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8397
8398         update-copyright: implement forced reformatting
8399         * build-aux/update-copyright: Implement and document
8400         UPDATE_COPYRIGHT_FORCE.
8401         * tests/test-update-copyright.sh: Test it.
8402
8403 2009-08-14  Eric Blake  <ebb9@byu.net>
8404         and Bruno Haible  <bruno@clisp.org>
8405
8406         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
8407         * tests/test-locale.c: Revert previous patch related to NULL.
8408         * tests/test-stdio.c: Likewise.
8409         * tests/test-stdlib.c: Likewise.
8410         * tests/test-string.c: Likewise.
8411         * tests/test-unistd.c: Likewise.
8412         * modules/time-tests (Depends-on): Add verify.
8413         * modules/wchar-tests (Depends-on): Likewise.
8414         * tests/test-time.c: Test for NULL compliance.
8415         * tests/test-wchar.c: Likewise.
8416         * modules/locale (Depends-on): Add stddef.
8417         * modules/stdio (Depends-on): Likewise.
8418         * modules/stdlib (Depends-on): Likewise.
8419         * modules/string (Depends-on): Likewise.
8420         * modules/time (Depends-on): Likewise.
8421         * modules/unistd (Depends-on): Likewise.
8422         * modules/wchar (Depends-on): Likewise.
8423         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
8424         * lib/stdlib.in.h (includes): Likewise.
8425         * lib/string.in.h (includes): Likewise.
8426         * lib/time.in.h (includes): Likewise.
8427         * lib/unistd.in.h (includes): Likewise.
8428         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
8429         replaced.
8430         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8431         * m4/stddef_h.m4: New file.
8432         * modules/stddef: Likewise.
8433         * lib/stddef.in.h: Likewise.
8434         * modules/stddef-tests: Likewise.
8435         * tests/test-stddef.c: Likewise.
8436         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
8437         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
8438         * doc/posix-headers/locale.texi (locale.h): Likewise.
8439         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
8440         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8441         * doc/posix-headers/string.texi (string.h): Likewise.
8442         * doc/posix-headers/time.texi (time.h): Likewise.
8443         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
8444         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
8445
8446 2009-08-14  Eric Blake  <ebb9@byu.net>
8447
8448         doc: improve git diff of texinfo files
8449         * .gitattributes: Add rule for *.texi files, with hint on how to
8450         use it.
8451         Copied from m4, and based on a report by Bruno Haible.
8452
8453 2009-08-14  Bruno Haible  <bruno@clisp.org>
8454
8455         Disable multithread support by default on Cygwin 1.5.x for real.
8456         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
8457
8458 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8459
8460         update-copyright: much ado about intervals
8461         * build-aux/update-copyright: Implement and document
8462         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
8463         of copyright year intervals.
8464         Also, document UPDATE_COPYRIGHT_YEAR.
8465         * tests/test-update-copyright.sh: Test it.
8466
8467         update-copyright: convert 2-digit to 4-digit years
8468         * build-aux/update-copyright: Implement and document.
8469         * tests/test-update-copyright.sh: Update.
8470
8471 2009-08-14  Jim Meyering  <meyering@redhat.com>
8472
8473         test-exclude: avoid coreutils "make check" failure
8474         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
8475         just as in test-argmatch.c.
8476
8477 2009-08-13  Eric Blake  <ebb9@byu.net>
8478
8479         test-dup2: fix bad assumption
8480         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
8481         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
8482
8483         test-version-etc: fix CRLF portability issue
8484         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
8485         recognize \r.
8486         * tests/test-argp-version-etc-1.sh: Likewise.
8487
8488         getopt: update client modules
8489         * modules/argp (Depends-on): Use getopt-gnu.
8490         * modules/git-merge-changelog (Depends-on): Likewise.
8491         * modules/long-options (Depends-on): Likewise.
8492         * modules/xstrtol (Depends-on): Likewise.
8493
8494 2009-08-13  Simon Josefsson  <simon@josefsson.org>
8495
8496         * tests/test-version-etc.sh: Don't fail on different
8497         project/version.  Don't fail on CRLF differences.  Rewrite to use
8498         multiple -e instead of multiple sed forks, suggested by Eric Blake
8499         <ebb9@byu.net>.
8500         * tests/test-argp-version-etc-1.sh: Likewise.
8501
8502 2009-08-13  Simon Josefsson  <simon@josefsson.org>
8503
8504         * tests/test-version-etc.sh: Don't fail on different
8505         project/version.
8506
8507 2009-08-12  Bruno Haible  <bruno@clisp.org>
8508
8509         Tests for modules 'getopt-posix', 'getopt-gnu'.
8510         * modules/getopt-posix-tests: New file.
8511         * tests/test-getopt.c: New file.
8512         * tests/test-getopt.h: New file.
8513         * tests/test-getopt_long.h: New file.
8514
8515         New modules 'getopt-posix', 'getopt-gnu'.
8516         * modules/getopt-gnu: New file, renamed from modules/getopt.
8517         * modules/getopt-posix: New file.
8518         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
8519         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
8520         (gl_GETOPT): Remove macro.
8521         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
8522         Disable the test against BSD systems that declare optreset. Test
8523         against mingw bug. Test against lack of support of optional arguments
8524         on many platforms.
8525         * doc/glibc-headers/getopt.texi: Update module name and list of
8526         relevant platforms.
8527         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
8528         'getopt-gnu' and more portability problems.
8529         * NEWS: Mention the changes.
8530
8531 2009-08-12  Bruno Haible  <bruno@clisp.org>
8532
8533         Ensure that optarg etc. get declared by <unistd.h>.
8534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
8535         AC_USE_SYSTEM_EXTENSIONS.
8536         * modules/getopt (Depends-on): Add 'extensions'.
8537
8538 2009-08-12  Bruno Haible  <bruno@clisp.org>
8539
8540         Avoid test link errors.
8541         * modules/pipe-filter-ii-tests (Makefile.am): Define
8542         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
8543         * modules/pipe-filter-gi-tests (Makefile.am): Define
8544         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
8545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8546
8547 2009-08-12  Bruno Haible  <bruno@clisp.org>
8548
8549         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
8550         gl_GETOPT_SUBSTITUTE before.
8551         (gl_GETOPT): Use it.
8552         * m4/argp.m4 (gl_ARGP): Update.
8553         Reported by Sergey Poznyakoff.
8554
8555         * m4/getopt.m4: Reorder macros.
8556         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
8557         (gl_GETOPT_SUBSTITUTE): Remove macro.
8558
8559 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8560
8561         Minor improvement in gitlog-to-changelog
8562
8563         * build-aux/gitlog-to-changelog: New option `--format' makes
8564         output format string configurable.
8565
8566 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8567
8568         Optimize exclude: use hash tables for non-wildcard patterns.
8569
8570         * lib/exclude.c: Include hash.h and mbuiter.h
8571         (struct exclude_pattern, exclude_segment): New data types.
8572         (struct exclude): Rewrite.
8573         (fnmatch_pattern_has_wildcards): New function.
8574         (new_exclude_segment, free_exclude_segment): New functions.
8575         (excluded_file_pattern_p, excluded_file_name_p): New functions.
8576         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
8577         * lib/exclude.h (is_fnmatch_pattern): New prototype.
8578         * modules/exclude: Depend on hash and mbuiter.
8579
8580         * modules/exclude-tests: New file.
8581         * tests/test-exclude.c: New file.
8582         * tests/test-exclude1.sh: New file.
8583         * tests/test-exclude2.sh: New file.
8584         * tests/test-exclude3.sh: New file.
8585         * tests/test-exclude4.sh: New file.
8586         * tests/test-exclude5.sh: New file.
8587         * tests/test-exclude6.sh: New file.
8588         * tests/test-exclude7.sh: New file.
8589
8590 2009-08-12  Bruno Haible  <bruno@clisp.org>
8591
8592         Ensure that getopt() gets declared by <unistd.h>.
8593         * lib/unistd.in.h: Conditionally include getopt.h.
8594         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
8595         Set GNULIB_UNISTD_H_GETOPT.
8596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8597         GNULIB_UNISTD_H_GETOPT.
8598         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
8599
8600 2009-08-12  Bruno Haible  <bruno@clisp.org>
8601
8602         Clarify logic.
8603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
8604         gl_replace_getopt instead of GETOPT_H.
8605
8606 2009-08-12  Bruno Haible  <bruno@clisp.org>
8607
8608         * m4/getopt.m4: Add comments.
8609
8610 2009-08-12  Bruno Haible  <bruno@clisp.org>
8611
8612         Disable multithread support by default on Cygwin 1.5.x.
8613         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
8614         set gl_use_threads=no if not specified otherwise.
8615
8616 2009-08-11  Bruno Haible  <bruno@clisp.org>
8617
8618         Avoid compilation error on NetBSD 5.0.
8619         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
8620         * tests/test-stdio.c: Likewise.
8621         * tests/test-stdlib.c: Likewise.
8622         * tests/test-string.c: Likewise.
8623         * tests/test-unistd.c: Likewise.
8624         Reported by Greg Troxel <gdt@ir.bbn.com>
8625         at <https://savannah.gnu.org/support/?106973>.
8626
8627 2009-08-11  Bruno Haible  <bruno@clisp.org>
8628
8629         * modules/dup2-tests (Depends-on): Remove close.
8630
8631         Undo 2009-07-19 commit.
8632         * modules/acl-tests (Depends-on): Remove close.
8633         * modules/binary-io-tests (Depends-on): Likewise.
8634         * modules/closein-tests (Depends-on): Likewise.
8635         * modules/flock-tests (Depends-on): Likewise.
8636         * modules/fsync-tests (Depends-on): Likewise.
8637         * modules/lseek-tests (Depends-on): Likewise.
8638         * modules/pipe-tests (Depends-on): Likewise.
8639         * modules/posix_spawn-tests (Depends-on): Likewise.
8640         * modules/posix_spawnp-tests (Depends-on): Likewise.
8641         * modules/stat-time-tests (Depends-on): Likewise.
8642         * modules/yesno-tests (Depends-on): Likewise.
8643
8644 2009-08-10  Bruno Haible  <bruno@clisp.org>
8645
8646         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
8647
8648 2009-08-10  Bruno Haible  <bruno@clisp.org>
8649
8650         Fix a gcc warning.
8651         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
8652
8653 2009-08-10  Bruno Haible  <bruno@clisp.org>
8654
8655         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
8656         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
8657         not only the first time.
8658         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
8659         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
8660         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
8661         is 1, not only the the first time.
8662
8663 2009-08-10  Bruno Haible  <bruno@clisp.org>
8664
8665         Make it possible to use module 'gethostname' without module 'close'.
8666         * lib/unistd.in.h (close): Evoke a link error only if
8667         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8669         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8670         * modules/unistd (Makefile.am): Substitute
8671         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8672         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
8673         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8674         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8675         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8676         * modules/sys_ioctl (Makefile.am): Substitute
8677         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8678         * modules/socket (configure.ac): On native Windows, set
8679         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
8680         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8681         Reported by Sam Steingold <sds@gnu.org>.
8682
8683 2009-08-10  Bruno Haible  <bruno@clisp.org>
8684
8685         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
8686         * modules/ioctl (configure.ac): Likewise.
8687
8688 2009-08-10  Bruno Haible  <bruno@clisp.org>
8689
8690         Avoid collision between gnulib wrapper and libintl wrapper.
8691         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
8692         already defined in intl/printf.c.
8693         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
8694         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
8695
8696 2009-08-09  Bruno Haible  <bruno@clisp.org>
8697
8698         Make <sys/select.h> really self-contained, also on Solaris 10.
8699         * lib/sys_select.in.h: Include <string.h>.
8700         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
8701         Solaris 10 problem.
8702         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
8703         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
8704         Reported by Jim Meyering.
8705
8706 2009-08-09  Bruno Haible  <bruno@clisp.org>
8707
8708         Avoid warnings from 'aclocal' that are due to a use of macro name
8709         AM_XGETTEXT_OPTION that is not defined in automake.
8710         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
8711         automake.
8712         * modules/error (configure.ac): Likewise.
8713         * modules/propername (configure.ac): Likewise.
8714         * modules/vasprintf (configure.ac): Likewise.
8715         * modules/verror (configure.ac): Likewise.
8716         * modules/xprintf (configure.ac): Likewise.
8717         * modules/xvasprintf (configure.ac): Likewise.
8718
8719 2009-08-08  Bruno Haible  <bruno@clisp.org>
8720
8721         Avoid compilation error in C++ mode.
8722         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
8723         Reported by Sam Steingold <sds@gnu.org>.
8724
8725 2009-08-08  Bruno Haible  <bruno@clisp.org>
8726
8727         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
8728         for the various Unix platforms.
8729         * doc/posix-headers/limits.texi: Update platforms list regarding
8730         HOST_NAME_MAX.
8731         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8732
8733 2009-08-07  Jim Meyering  <meyering@redhat.com>
8734
8735         selinux-at: fix typo in a comment
8736         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
8737         Spotted by Paolo Bonzini.
8738
8739         selinux-at: remove redundant m4 code, add documentation
8740         * modules/selinux-at (configure.ac): Remove redundant code.
8741         LIB_SELINUX is already set via the dependent module, selinux-h.
8742         (Include): Add quotes around selinux-at.h.
8743         * lib/selinux-at.h: Add documentation.
8744         Reported by Bruno Haible in
8745         http://marc.info/?l=gnulib-bug&m=124958988300749
8746
8747 2009-08-07  Bruno Haible  <bruno@clisp.org>
8748
8749         Avoid link error on MacOS X 10.3 and 10.4.
8750         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
8751         on non-ELF systems.
8752         * lib/argp-pv.c (argp_program_version): Likewise.
8753         Reported by Simon Josefsson.
8754
8755 2009-08-07  Simon Josefsson  <simon@josefsson.org>
8756
8757         * tests/test-version-etc.sh: Use $EXEEXT.
8758
8759 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
8760
8761         update-copyright: update documentation to point to maint.mk
8762         * build-aux/update-copyright: Here.
8763
8764 2009-08-06  Jim Meyering  <meyering@redhat.com>
8765
8766         maint.mk: support update-copyright-local
8767         * top/maint.mk (update-copyright-local): Define place-holder.
8768         (update-copyright): Depend on $(update-copyright-local).
8769
8770 2009-08-06  Jim Meyering  <meyering@redhat.com>
8771
8772         selinux-at: new module
8773         Initially written for coreutils, this module will soon be
8774         used by findutils, too.
8775         * MODULES.html.sh [Misc]: Add selinux-at.
8776         * lib/selinux-at.h: New file, from coreutils.
8777         * lib/selinux-at.c: Likewise.
8778         * modules/selinux-at: Likewise.
8779         (License): Change from LGPL to GPL, since it depends
8780         on the GPL'd openat module.
8781
8782         doc: update README
8783         * README: Remove references to cogito.
8784         Remove cvs-repo-updating instructions from 2007.
8785         Don't imply that CVS is better if you have limited disk space.
8786
8787 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8788
8789         update-copyright: support C-style comments
8790         * build-aux/update-copyright: Implement and document.
8791         * tests/test-update-copyright.sh: Test.
8792
8793 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8794
8795         update-copyright: support omitted "(C)"
8796         * build-aux/update-copyright: Implement and document.  Also,
8797         allow variable whitespace before "(C)".
8798         * tests/test-update-copyright.sh: Test.
8799
8800 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8801
8802         update-copyright: don't trip on non-FSF copyright statements
8803         * build-aux/update-copyright: Fix so that the first correctly
8804         formatted FSF copyright statement is recognized no matter what
8805         appears before it.  Update documentation.
8806         * tests/test-update-copyright.sh: Test that.
8807
8808 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8809
8810         update-copyright: clean up code a little
8811         * build-aux/update-copyright: Append "_re" to the name of any
8812         variable holding a regular expression.
8813         Replace "old" and "new" with "stmt" in variable names.
8814         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
8815         handled correctly.
8816         Format code more consistently.
8817
8818 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8819
8820         update-copyright-tests: improve portability
8821         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
8822         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
8823
8824 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
8825
8826         update-copyright: support @copyright{} and &copy;
8827         * build-aux/update-copyright: Implement and document.
8828         * tests/test-update-copyright.sh: Test.
8829
8830 2009-08-04  Jim Meyering  <meyering@redhat.com>
8831
8832         update-copyright-tests: correctly test EOL=\r\n handling
8833         * tests/test-update-copyright.sh: Put \r at the end of some lines
8834         for the dos-eol tests.  Based on a patch by Joel E. Denny.
8835
8836         maint.mk: make update-copyright exclusion list more configurable
8837         * top/maint.mk (update-copyright): Default to excluding COPYING,
8838         but allow an override, in case someone does want to update that file.
8839
8840         maint.mk: don't update copyright date in COPYING
8841         * top/maint.mk (update-copyright): Exclude COPYING.
8842
8843         maint.mk: add a copyright-updating rule
8844         * top/maint.mk (update-copyright): New rule.
8845         Derived from coreutils/Makefile.am.
8846
8847         update-copyright: rename some variables
8848         * build-aux/update-copyright: Rename a few variables for clarity.
8849         Tweak syntax.  List Joel E. Denny as coauthor.
8850
8851 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
8852
8853         update-copyright: fix bug for 2-digit last year and add tests
8854         * build-aux/update-copyright: Fix bug.
8855         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
8856         specified.
8857         * modules/update-copyright-tests: New
8858         * tests/test-update-copyright.sh: New.
8859
8860 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8861
8862         update-copyright: handle leading tabs in line prefix
8863         * build-aux/update-copyright: Count leading tabs as 8 spaces
8864         when computing margin.  This helps with the formatting of
8865         ChangeLogs, for example.
8866         Fix documentation a little.
8867
8868 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8869
8870         update-copyright: support EOL=\r\n
8871         * build-aux/update-copyright: Implement that.
8872
8873 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8874
8875         update-copyright: automatically format copyright statements
8876         * build-aux/update-copyright: Implement that.
8877         Also, be a little more predictable and safer by always failing
8878         when the full copyright format is not perfectly recognized as an
8879         unbroken whole.  Discussed at
8880         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
8881         Rewrite documentation.
8882
8883 2009-08-03  Bruno Haible  <bruno@clisp.org>
8884
8885         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
8886
8887 2009-08-02  Bruno Haible  <bruno@clisp.org>
8888
8889         Tests for module 'uname'.
8890         * modules/uname-tests: New file.
8891         * tests/test-uname.c: New file.
8892
8893         New module 'uname'.
8894         * lib/uname.c: New file.
8895         * m4/uname.m4: New file.
8896         * modules/uname: New file.
8897         * doc/posix-functions/uname.texi: Mention the new module.
8898
8899 2009-08-02  Bruno Haible  <bruno@clisp.org>
8900
8901         Tests for module 'sys_utsname'.
8902         * modules/sys_utsname-tests: New file.
8903         * tests/test-sys_utsname.c: New file.
8904
8905         New module 'sys_utsname'.
8906         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
8907         * m4/sys_utsname_h.m4: New file.
8908         * modules/sys_utsname: New file.
8909         * doc/posix-headers/sys_utsname.texi: Mention the new module.
8910
8911 2009-08-02  Bruno Haible  <bruno@clisp.org>
8912
8913         Implicitly initialize the sockets library.
8914         * lib/gethostname.c: Include sockets.h.
8915         (rpl_gethostname): Invoke gl_sockets_startup.
8916         * lib/socket.c: Include sockets.h.
8917         (rpl_socket): Invoke gl_sockets_startup.
8918         * modules/gethostname (Depends-on): Add sockets.
8919         * modules/socket (Depends-on): Likewise.
8920         * tests/test-poll.c: Don't include sockets.h.
8921         (main): Don't invoke gl_sockets_startup.
8922         * tests/test-select.c: Don't include sockets.h.
8923         (main): Don't invoke gl_sockets_startup.
8924
8925 2009-08-02  Bruno Haible  <bruno@clisp.org>
8926
8927         Allow multiple calls to gl_sockets_startup.
8928         * lib/sockets.c (initialized_sockets_version): New variable.
8929         (gl_sockets_startup): Do nothing if already called for this or a higher
8930         version.
8931         (gl_sockets_cleanup): Reset initialized_sockets_version.
8932
8933 2009-08-03  Simon Josefsson  <simon@josefsson.org>
8934
8935         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
8936         different project/version.
8937
8938 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
8939             Bruno Haible  <bruno@clisp.org>
8940
8941         Tests for module 'pipe-filter-gi'.
8942         * modules/pipe-filter-gi-tests: New file.
8943         * tests/test-pipe-filter-gi1.sh: New file.
8944         * tests/test-pipe-filter-gi1.c: New file.
8945         * tests/test-pipe-filter-gi2.sh: New file.
8946         * tests/test-pipe-filter-gi2-main.c: New file.
8947         * tests/test-pipe-filter-gi2-child.c: New file.
8948
8949         New module 'pipe-filter-gi'.
8950         * lib/pipe-filter-gi.c: New file.
8951         * modules/pipe-filter-gi: New file.
8952
8953 2009-08-02  Bruno Haible  <bruno@clisp.org>
8954             Paolo Bonzini  <bonzini@gnu.org>
8955
8956         Tests for module 'pipe-filter-ii'.
8957         * modules/pipe-filter-ii-tests: New file.
8958         * tests/test-pipe-filter-ii1.sh: New file.
8959         * tests/test-pipe-filter-ii1.c: New file.
8960         * tests/test-pipe-filter-ii2.sh: New file.
8961         * tests/test-pipe-filter-ii2-main.c: New file.
8962         * tests/test-pipe-filter-ii2-child.c: New file.
8963
8964         New module 'pipe-filter-ii'.
8965         * lib/pipe-filter.h: New file.
8966         * lib/pipe-filter-ii.c: New file.
8967         * lib/pipe-filter-aux.h: New file.
8968         * modules/pipe-filter-ii: New file.
8969
8970 2009-08-02  Simon Josefsson  <simon@josefsson.org>
8971
8972         * lib/gc-libgcrypt.c: Change copyright to FSF.
8973         * lib/gc-gnulib.c: Likewise.
8974
8975 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
8976
8977         * lib/gethostname.c: Include limits.h.
8978
8979 2009-08-02  Simon Josefsson  <simon@josefsson.org>
8980             Bruno Haible  <bruno@clisp.org>
8981
8982         Ensure HOST_NAME_MAX as part of the gethostname module.
8983         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
8984         define also HOST_NAME_MAX.
8985         * tests/test-gethostname.c: Include <limits.h>.
8986         (main): Check also HOST_NAME_MAX.
8987         * doc/posix-headers/limits.texi: Document the mingw problem.
8988
8989 2009-08-02  Bruno Haible  <bruno@clisp.org>
8990
8991         * lib/gethostname.c (gethostname): Fix handling of large len argument.
8992         Add comments.
8993
8994 2009-03-31  Simon Josefsson  <simon@josefsson.org>
8995
8996         * lib/gethostname.c: Add Windows wrapper.
8997         * m4/gethostname.m4: Look for gethostname in -lws2_32.
8998         * modules/gethostname: Depend on sys_socket & errno, for also
8999         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
9000         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
9001
9002 2009-07-31  Jim Meyering  <meyering@redhat.com>
9003
9004         getloadavg: fix symbol name in comment
9005         * lib/getloadavg.c: Correct a typo I introduced when adding
9006         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
9007         Matt Kraai spotted the problem.
9008
9009 2009-07-29  Matt Kraai  <mkraai@beckman.com>
9010
9011         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
9012         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
9013         code also if ! defined N_NAME_POINTER.
9014         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
9015         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
9016         but the n_name member is a 12-byte array.
9017
9018 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
9019
9020         update-copyright: generalize comment handling
9021         * build-aux/update-copyright: Handle copyright statements
9022         within more comment styles.
9023         Document usage.
9024         Report any file with an external copyright holder or parse failure.
9025
9026 2009-07-29  Jim Meyering  <meyering@redhat.com>
9027
9028         mktime: correct setting of REPLACE_MKTIME
9029         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
9030
9031         update-copyright: new module
9032         * modules/update-copyright: New file.
9033         * build-aux/update-copyright: New file.
9034         * MODULES.html.sh (maint+release support): Add update-copyright.
9035
9036 2009-07-27  Bruno Haible  <bruno@clisp.org>
9037
9038         Fix compilation error when <ctime> is used and mktime is replaced.
9039         * lib/time.in.h (mktime): New declaration.
9040         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
9041         REPLACE_MKTIME instead of defining mktime in config.h.
9042         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
9043         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
9044         Reported by Ross McFarland <rwmcfa1@neces.com>.
9045
9046 2009-07-27  Bruno Haible  <bruno@clisp.org>
9047
9048         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
9049         Reported by Matt Kraai <mkraai@beckman.com>.
9050
9051 2009-07-25  Jim Meyering  <meyering@redhat.com>
9052
9053         maint.mk: avoid warnings about missing files
9054         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
9055         diagnostic when .prev-version does not exist.
9056         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
9057         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
9058         nonexistent cfg.mk.
9059         Suggestions from Simon Josefsson.
9060
9061 2009-07-25  Bruno Haible  <bruno@clisp.org>
9062
9063         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
9064         defined as macros. Needed on QNX 6.4.1.
9065         Reported by Matt Kraai <mkraai@beckman.com>.
9066
9067 2009-07-23  Jim Meyering  <meyering@redhat.com>
9068
9069         maint.mk: invoke "make dist" with a working value of XZ_OPT
9070         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
9071
9072 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
9073
9074         Make fseeko.c compile on QNX.
9075         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
9076
9077 2009-07-22  Peter Simons  <simons@cryp.to>
9078
9079         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
9080         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
9081         * lib/md4.h: Likewise.
9082         * lib/md5.h: Likewise.
9083         * lib/sha1.h: Likewise.
9084         * lib/sha256.h: Likewise.
9085         * lib/sha512.h: Likewise.
9086
9087         tests-sha1: don't assign literal string to 'char *' variable
9088         * tests/test-sha1.c (main): Declare locals with "const" to match
9089         attributes of the right hand side.
9090
9091 2009-07-21  Eric Blake  <ebb9@byu.net>
9092
9093         dup2: fix more mingw problems
9094         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
9095         fd to itself.
9096         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9097         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
9098         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
9099         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
9100         care of mingw bugs.
9101
9102 2009-07-21  Jim Meyering  <meyering@redhat.com>
9103
9104         vc-list-files: avoid failure when /bin/sh is dash
9105         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
9106         On some Debian based systems, /bin/sh is a symlink to dash, and running
9107         this command would omit the "/" following each 'tests' prefix:
9108           dash -x build-aux/vc-list-files -C . tests
9109         That is because bash and dash work differently:
9110           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
9111           bash ok
9112           dash odd
9113
9114 2009-07-21  Eric Blake  <ebb9@byu.net>
9115
9116         dup2-tests: test previous patch
9117         * modules/dup2-tests: New file.
9118         * tests/test-dup2.c: Likewise.
9119         * tests/test-open.c (main): Avoid unspecified behavior.
9120         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
9121         test.
9122
9123         dup2: work around mingw and cygwin 1.5 bug
9124         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
9125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9126         * modules/unistd (Makefile.am): Substitute it.
9127         * lib/unistd.in.h (dup2): Declare the replacement.
9128         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
9129         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
9130         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
9131         * modules/execute (Depends-on): Add dup2.
9132         * modules/fseterr (Depends-on): Likewise.
9133         * modules/pipe (Depends-on): Likewise.
9134         * modules/posix_spawn-internal (Depends-on): Likewise.
9135
9136 2009-07-21  Bruno Haible  <bruno@clisp.org>
9137
9138         * modules/.gitattributes: New file.
9139
9140 2009-07-20  Bruno Haible  <bruno@clisp.org>
9141
9142         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
9143         (main): Use it.
9144
9145 2009-07-20  Eric Blake  <ebb9@byu.net>
9146
9147         test-pipe: make a bit more robust.
9148         * tests/test-pipe.c (myerr): Allow error messages regardless of
9149         what we do to stderr.
9150         (test_pipe): Rearrange to avoid deadlock.
9151         (child_main): Try a larger read, to ensure we avoided deadlock.
9152         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
9153         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
9154         if misused.
9155
9156 2009-07-19  Jim Meyering  <meyering@redhat.com>
9157
9158         fts: avoid false-positive cycle-detection
9159         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
9160         for each new command line argument.
9161
9162 2009-07-19  Bruno Haible  <bruno@clisp.org>
9163
9164         Fix build error on mingw with the modules sys_select and unistd.
9165         * modules/acl-tests (Depends-on): Add close.
9166         * modules/binary-io-tests (Depends-on): Likewise.
9167         * modules/closein-tests (Depends-on): Likewise.
9168         * modules/flock-tests (Depends-on): Likewise.
9169         * modules/fsync-tests (Depends-on): Likewise.
9170         * modules/lseek-tests (Depends-on): Likewise.
9171         * modules/pipe-tests (Depends-on): Likewise.
9172         * modules/posix_spawn-tests (Depends-on): Likewise.
9173         * modules/posix_spawnp-tests (Depends-on): Likewise.
9174         * modules/stat-time-tests (Depends-on): Likewise.
9175         * modules/yesno-tests (Depends-on): Likewise.
9176
9177 2009-07-19  Bruno Haible  <bruno@clisp.org>
9178
9179         Unify conditionals.
9180         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
9181         macros, not at the compiler macros.
9182         * lib/pipe.c: Likewise.
9183         * lib/execute.c: Likewise.
9184         * lib/spawni.c: Likewise.
9185
9186 2009-07-19  Bruno Haible  <bruno@clisp.org>
9187
9188         Fix handling of closed stdin/stdout/stderr on mingw.
9189         * lib/w32spawn.h: Include unistd.h.
9190         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
9191         file descriptor with O_NOINHERIT flag.
9192         (fd_safer_noinherit): New function, based on fd-safer.c.
9193         (dup_safer_noinherit): New function, based on dup-safer.c.
9194         (undup_safer_noinherit): New function.
9195         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
9196         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
9197         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
9198         instead of fd_safer.
9199         * tests/test-pipe.c: Include <windows.h>.
9200         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
9201
9202         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
9203         from main.
9204         (test_pipe): Pass an extra argument for disambiguation.
9205         (main): Invoke parent_main or child_main.
9206
9207         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
9208         consistently.
9209
9210 2009-07-18  Eric Blake  <ebb9@byu.net>
9211
9212         test-pipe: fix mingw build
9213         * tests/test-pipe.c (main): Avoid fcntl on mingw.
9214
9215 2009-07-18  Bruno Haible  <bruno@clisp.org>
9216
9217         * modules/pipe-tests (Makefile.am): Fix typo.
9218
9219 2009-07-18  Eric Blake  <ebb9@byu.net>
9220
9221         error: fix mingw build
9222         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
9223         Reported by Bruno Haible.
9224
9225         error: avoid undefined use of stdout
9226         * lib/error.c (error, error_at_line): Check that fd 1 is open
9227         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
9228         is handling faults and the close_stdout module wants to report the
9229         detection of closed stdout as an error.
9230
9231 2009-07-17  Eric Blake  <ebb9@byu.net>
9232
9233         pipe: be robust in face of closed fds
9234         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
9235         should cause child to misbehave.
9236         * modules/pipe-tests: New module.
9237         * tests/test-pipe.c: New file.
9238         * tests/test-pipe.sh: New file.
9239         Reported by Akim Demaille.
9240
9241 2009-07-14  Bruno Haible  <bruno@clisp.org>
9242
9243         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
9244         Reported by anonymous kc.
9245
9246 2009-07-07  Jim Meyering  <meyering@redhat.com>
9247
9248         maint.mk: don't look for translatable strings in *.m4 or *.mk
9249         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
9250         when searching for translatable strings.
9251
9252 2009-07-05  Jim Meyering  <meyering@redhat.com>
9253
9254         remove superfluous parentheses in STREQ definition
9255         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
9256         * lib/getugroups.c (STREQ): Likewise.
9257         * lib/fnmatch.c (STREQ): Likewise.
9258         Spotted by Bruno Haible.
9259
9260 2009-07-04  Jim Meyering  <meyering@redhat.com>
9261
9262         argv-iter: new module
9263         * MODULES.html.sh: Add argv-iter.
9264         * lib/argv-iter.c, lib/argv-iter.h: New files.
9265         * modules/argv-iter: New file.
9266         * modules/argv-iter-tests: New file.
9267         * tests/test-argv-iter.c: Test it.
9268
9269 2009-07-04  Bruno Haible  <bruno@clisp.org>
9270
9271         Fix assertion.
9272         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
9273         contains more exact copies of a given entry than file2, leave the extra
9274         copies unpaired rather than aborting.
9275         Reported by Eric Blake.
9276
9277 2009-07-02  Bruno Haible  <bruno@clisp.org>
9278
9279         Speedup git-merge-changelog for git cherry-pick.
9280         * lib/git-merge-changelog.c (struct entries_mapping): New type.
9281         (entries_mapping_get): New function, extracted from compute_mapping.
9282         (entries_mapping_reverse_get): New function.
9283         (compute_mapping): Add a 'full' argument. Return the result in a
9284         'struct entries_mapping'.
9285         (main): Update. Access the mappings through entries_mapping_get.
9286         Reported by Eric Blake.
9287
9288 2009-07-02  Bruno Haible  <bruno@clisp.org>
9289
9290         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
9291         best_i.
9292
9293 2009-07-02  Bruno Haible  <bruno@clisp.org>
9294
9295         Speed up approximate search for matching ChangeLog entries.
9296         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
9297         argument. Call fstrcmp_bounded instead of fstrcmp.
9298         (compute_mapping, try_split_merged_entry, main): Update callers.
9299
9300 2009-07-02  Bruno Haible  <bruno@clisp.org>
9301
9302         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
9303
9304 2009-06-30  Bruno Haible  <bruno@clisp.org>
9305
9306         Reduce the number of uc_is_cased calls.
9307         * lib/unicase.h (casing_suffix_context_t): Add
9308         'first_char_except_ignorable' field.
9309         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
9310         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
9311         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
9312         Update initializer.
9313         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
9314         case-ignorable characters.
9315         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
9316         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
9317         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
9318         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
9319         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
9320
9321 2009-06-30  Bruno Haible  <bruno@clisp.org>
9322
9323         Tests for module 'unicase/ignorable'.
9324         * modules/unicase/ignorable-tests: New file.
9325         * tests/unicase/test-ignorable.c: New file, generated by
9326         gen-uni-tables.
9327
9328         Tests for module 'unicase/cased'.
9329         * modules/unicase/cased-tests: New file.
9330         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
9331         * tests/unicase/test-predicate-part1.h: New file, derived from
9332         tests/unictype/test-predicate-part1.h.
9333         * tests/unicase/test-predicate-part2.h: New file, same as
9334         tests/unictype/test-predicate-part2.h.
9335
9336         Fix evaluation of "Before C" condition of FINAL_SIGMA.
9337         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
9338         (output_casing_properties): New function.
9339         (main): Call it.
9340         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
9341         * lib/unicase/cased.c: Include unictype/bitmap.h.
9342         (uc_is_cased): Define through a bitmap lookup.
9343         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
9344         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
9345         (uc_is_case_ignorable): Define through a bitmap lookup.
9346         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
9347         lib/unictype/bitmap.h.
9348         (Depends-on): Add inline. Clean up.
9349         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
9350         lib/unictype/bitmap.h.
9351         (Depends-on): Add inline. Clean up.
9352         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
9353         recognition.
9354         * tests/unicase/test-u16-tolower.c (main): Likewise.
9355         * tests/unicase/test-u32-tolower.c (main): Likewise.
9356
9357 2009-06-30  Bruno Haible  <bruno@clisp.org>
9358
9359         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
9360         * lib/unicase/u16-casemap.c: Likewise.
9361         * lib/unicase/u32-casemap.c: Likewise.
9362
9363 2009-06-29  Bruno Haible  <bruno@clisp.org>
9364
9365         Define u32_casefold as a wrapper around u32_ct_casefold.
9366         * lib/unicase/u32-casefold.c: Update.
9367         * modules/unicase/u32-casefold (Depends-on): Add
9368         unicase/u32-ct-casefold, unicase/empty-prefix-context,
9369         unicase/empty-suffix-context. Clean up.
9370
9371         Define u16_casefold as a wrapper around u16_ct_casefold.
9372         * lib/unicase/u16-casefold.c: Update.
9373         * modules/unicase/u16-casefold (Depends-on): Add
9374         unicase/u16-ct-casefold, unicase/empty-prefix-context,
9375         unicase/empty-suffix-context. Clean up.
9376
9377         Define u8_casefold as a wrapper around u8_ct_casefold.
9378         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
9379         * lib/unicase/u8-casefold.c: Update.
9380         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
9381         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9382
9383         Define u32_totitle as a wrapper around u32_ct_totitle.
9384         * lib/unicase/u32-totitle.c: Update.
9385         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
9386         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9387
9388         Define u16_totitle as a wrapper around u16_ct_totitle.
9389         * lib/unicase/u16-totitle.c: Update.
9390         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
9391         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9392
9393         Define u8_totitle as a wrapper around u8_ct_totitle.
9394         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
9395         functions.
9396         (FUNC): Delegate to U_CT_TOTITLE.
9397         * lib/unicase/u8-totitle.c: Update.
9398         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
9399         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9400
9401         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
9402         invocation.
9403         * modules/unicase/u32-tolower (Depends-on): Add
9404         unicase/empty-prefix-context, unicase/empty-suffix-context.
9405
9406         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
9407         invocation.
9408         * modules/unicase/u16-tolower (Depends-on): Add
9409         unicase/empty-prefix-context, unicase/empty-suffix-context.
9410
9411         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
9412         * modules/unicase/u8-tolower (Depends-on): Add
9413         unicase/empty-prefix-context, unicase/empty-suffix-context.
9414
9415         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
9416         invocation.
9417         * modules/unicase/u32-toupper (Depends-on): Add
9418         unicase/empty-prefix-context, unicase/empty-suffix-context.
9419
9420         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
9421         invocation.
9422         * modules/unicase/u16-toupper (Depends-on): Add
9423         unicase/empty-prefix-context, unicase/empty-suffix-context.
9424
9425         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
9426         * modules/unicase/u8-toupper (Depends-on): Add
9427         unicase/empty-prefix-context, unicase/empty-suffix-context.
9428
9429         New module 'unicase/u32-ct-casefold'.
9430         * lib/unicase/u32-ct-casefold.c: New file.
9431         * modules/unicase/u32-ct-casefold: New file.
9432
9433         New module 'unicase/u16-ct-casefold'.
9434         * lib/unicase/u16-ct-casefold.c: New file.
9435         * modules/unicase/u16-ct-casefold: New file.
9436
9437         New module 'unicase/u8-ct-casefold'.
9438         * lib/unicase/u8-ct-casefold.c: New file.
9439         * lib/unicase/u-ct-casefold.h: New file, derived from
9440         lib/unicase/u-casefold.h.
9441         * modules/unicase/u8-ct-casefold: New file.
9442
9443         New module 'unicase/u32-ct-totitle'.
9444         * lib/unicase/u32-ct-totitle.c: New file.
9445         * modules/unicase/u32-ct-totitle: New file.
9446
9447         New module 'unicase/u16-ct-totitle'.
9448         * lib/unicase/u16-ct-totitle.c: New file.
9449         * modules/unicase/u16-ct-totitle: New file.
9450
9451         New module 'unicase/u8-ct-totitle'.
9452         * lib/unicase/u8-ct-totitle.c: New file.
9453         * lib/unicase/u-ct-totitle.h: New file, derived from
9454         lib/unicase/u-totitle.h.
9455         * modules/unicase/u8-ct-totitle: New file.
9456
9457         New module 'unicase/u32-ct-tolower'.
9458         * lib/unicase/u32-ct-tolower.c: New file.
9459         * modules/unicase/u32-ct-tolower: New file.
9460
9461         New module 'unicase/u16-ct-tolower'.
9462         * lib/unicase/u16-ct-tolower.c: New file.
9463         * modules/unicase/u16-ct-tolower: New file.
9464
9465         New module 'unicase/u8-ct-tolower'.
9466         * lib/unicase/u8-ct-tolower.c: New file.
9467         * modules/unicase/u8-ct-tolower: New file.
9468
9469         New module 'unicase/u32-ct-toupper'.
9470         * lib/unicase/u32-ct-toupper.c: New file.
9471         * modules/unicase/u32-ct-toupper: New file.
9472
9473         New module 'unicase/u16-ct-toupper'.
9474         * lib/unicase/u16-ct-toupper.c: New file.
9475         * modules/unicase/u16-ct-toupper: New file.
9476
9477         New module 'unicase/u8-ct-toupper'.
9478         * lib/unicase/u8-ct-toupper.c: New file.
9479         * modules/unicase/u8-ct-toupper: New file.
9480
9481         Add context arguments to u*_casemap functions.
9482         * lib/unicase/unicasemap.h: Include unicase.h.
9483         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
9484         suffix_context arguments.
9485         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
9486         functions.
9487         (FUNC): Add prefix_context and suffix_context arguments. Use
9488         uc_is_cased and uc_is_case_ignorable.
9489         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
9490         * lib/unicase/u16-casemap.c: Likewise.
9491         * lib/unicase/u32-casemap.c: Likewise.
9492         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
9493         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9494         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
9495         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9496         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
9497         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9498
9499         New module 'unicase/u32-suffix-context'.
9500         * lib/unicase/u32-suffix-context.c: New file.
9501         * modules/unicase/u32-suffix-context: New file.
9502
9503         New module 'unicase/u16-suffix-context'.
9504         * lib/unicase/u16-suffix-context.c: New file.
9505         * modules/unicase/u16-suffix-context: New file.
9506
9507         New module 'unicase/u8-suffix-context'.
9508         * lib/unicase/u8-suffix-context.c: New file.
9509         * lib/unicase/u-suffix-context.h: New file.
9510         * modules/unicase/u8-suffix-context: New file.
9511
9512         New module 'unicase/empty-suffix-context'.
9513         * lib/unicase/empty-suffix-context.c: New file.
9514         * modules/unicase/empty-suffix-context: New file.
9515
9516         New module 'unicase/u32-prefix-context'.
9517         * lib/unicase/u32-prefix-context.c: New file.
9518         * modules/unicase/u32-prefix-context: New file.
9519
9520         New module 'unicase/u16-prefix-context'.
9521         * lib/unicase/u16-prefix-context.c: New file.
9522         * modules/unicase/u16-prefix-context: New file.
9523
9524         New module 'unicase/u8-prefix-context'.
9525         * lib/unicase/u8-prefix-context.c: New file.
9526         * lib/unicase/u-prefix-context.h: New file.
9527         * lib/unicase/context.h: New file.
9528         * modules/unicase/u8-prefix-context: New file.
9529
9530         New module 'unicase/empty-prefix-context'.
9531         * lib/unicase/empty-prefix-context.c: New file.
9532         * modules/unicase/empty-prefix-context: New file.
9533
9534         New module 'unicase/ignorable'.
9535         * lib/unicase/ignorable.c: New file.
9536         * modules/unicase/ignorable: New file.
9537
9538         New module 'unicase/cased'.
9539         * lib/unicase/caseprop.h: New file.
9540         * lib/unicase/cased.c: New file.
9541         * modules/unicase/cased: New file.
9542
9543         New functions for case mapping of substrings.
9544         * lib/unicase.h (casing_prefix_context_t): New type.
9545         (unicase_empty_prefix_context): New variable.
9546         (u8_casing_prefix_context, u16_casing_prefix_context,
9547         u32_casing_prefix_context, u8_casing_prefixes_context,
9548         u16_casing_prefixes_context, u32_casing_prefixes_context): New
9549         declarations.
9550         (casing_suffix_context_t): New type.
9551         (unicase_empty_suffix_context): New variable.
9552         (u8_casing_suffix_context, u16_casing_suffix_context,
9553         u32_casing_suffix_context, u8_casing_suffixes_context,
9554         u16_casing_suffixes_context, u32_casing_suffixes_context,
9555         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
9556         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
9557         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
9558         declarations.
9559
9560 2009-06-28  Jim Meyering  <meyering@redhat.com>
9561
9562         boostrap: indent only with spaces
9563         * build-aux/bootstrap: Indent only with spaces, never TABs.
9564
9565         bootstrap: split long lines
9566         * build-aux/bootstrap: Keep line length < 80.
9567
9568         bootstrap: sync from coreutils
9569         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
9570         just as autoreconf does.  Verify a list of prerequisite
9571         package-name,version-number pairs if defined in bootstrap.conf.
9572         Refer to README-prereq, if prerequisites are not satisfied.
9573
9574 2009-06-27  Eric Blake  <ebb9@byu.net>
9575
9576         tests: add test for bogus NULL definition
9577         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
9578         * tests/test-stdlib.c: Likewise.
9579         * tests/test-string.c: Likewise.
9580         * tests/test-locale.c: Likewise.
9581         * tests/test-unistd.c: Likewise.
9582         * modules/stdio-tests (Depends-on): Add verify.
9583         * modules/stdlib-tests (Depends-on): Likewise.
9584         * modules/string-tests (Depends-on): Likewise.
9585         * modules/locale-tests (Depends-on): Likewise.
9586         * modules/unistd-tests (Depends-on): Likewise.
9587
9588 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9589
9590         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
9591         self-explaining comment.
9592         * m4/selinux-selinux-h: Update serial.
9593         (gl_LIBSELINUX): New macro, adding a warning for missing development
9594         packages to code extracted from...
9595         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
9596         Add warning for missing development packages here, too.
9597
9598 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
9599
9600         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
9601
9602 2009-06-25  Eric Blake  <ebb9@byu.net>
9603
9604         version-etc: fix regression
9605         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
9606         gcc.
9607         (version_etc): Use it, to catch bugs with trailing NULL.
9608         * lib/version-etc.c (version_etc_arn): Delete unused argument.
9609         (version_etc_va): Fix logic bug.
9610         * modules/version-etc-tests: Add test.
9611         * tests/test-version-etc.c: New file.
9612         * tests/test-version-etc.sh: Likewise.
9613
9614 2009-06-25  Sam Steingold  <sds@gnu.org>
9615
9616         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
9617         mbtowc declaration.
9618
9619 2009-06-25  Eric Blake  <ebb9@byu.net>
9620
9621         fpurge: migrate into <stdio.h>
9622         * lib/fpurge.h: Delete...
9623         * lib/stdio.in.h (fpurge): ...and declare here, instead.
9624         * lib/fpurge.c (fpurge): Change declaring header.
9625         * modules/fpurge (Files): Drop deleted file.
9626         (Depends-on): Add stdio.
9627         (configure.ac): Set witness.
9628         * modules/stdio (Makefile.am): Support fpurge macros.
9629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9630         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
9631         * lib/fflush.c: Update client.
9632         * tests/test-fpurge.c: Likewise.
9633         * NEWS: Mention the change.
9634
9635 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9636
9637         * lib/argp-version-etc.c (program_authors): Add const
9638         qualifier.
9639         * lib/version-etc.c: Fix typos in the comments.
9640         * modules/argp-version-etc: Depends on version-etc.
9641
9642 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9643
9644         argp-version-etc: new module.
9645
9646         * lib/argp-version-etc.c: New file.
9647         * lib/argp-version-etc.h: New file.
9648         * modules/argp-version-etc: New file.
9649         * modules/argp-version-etc-tests: New file.
9650         * tests/test-argp-version-etc.c: New test.
9651         * tests/test-argp-version-etc-1.sh: New test.
9652
9653 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9654
9655         Provide additional interfaces and documentation for version-etc
9656         module.
9657
9658         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
9659         interfaces.
9660         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
9661         prototypes.
9662
9663 2009-06-24  Bruno Haible  <bruno@clisp.org>
9664
9665         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
9666         HAVE_LIB${NAME} macro.
9667         Reported by Sam Steingold <sds@gnu.org>.
9668
9669 2009-06-23  Simon Josefsson  <simon@josefsson.org>
9670
9671         * modules/hash-tests (test_hash_LDADD): Link to libintl when
9672         needed.
9673
9674 2009-06-21  Bruno Haible  <bruno@clisp.org>
9675
9676         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
9677         work.
9678         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
9679         together with LIB${NAME}, LTLIB${NAME}.
9680         Reported by Sam Steingold <sds@gnu.org>.
9681
9682 2009-06-20  Jim Meyering  <meyering@redhat.com>
9683
9684         tests: make sc_require_test_exit_idiom more generic
9685         * top/maint.mk (Exit_witness_file): New overridable variable.
9686         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
9687         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
9688
9689 2009-06-19  Jim Meyering  <meyering@redhat.com>
9690
9691         hash: reverse order of src/dst parameters in an internal interface
9692         * lib/hash.c (transfer_entries): Reverse order of parameters to
9693         put DST before SRC.  Adjust callers.
9694
9695         tests: test-hash: avoid wholesale duplication
9696         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
9697         Instead, use a loop and add a single conditional.
9698
9699         tests: test-hash: allow seed selection via a command line argument
9700         * tests/test-hash.c (get_seed): New function.
9701         (main): Use it.
9702
9703 2009-06-19  Eric Blake  <ebb9@byu.net>
9704
9705         hash: avoid memory leak on allocation failure
9706         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
9707         failure.  Factor repeated algorithm...
9708         (transfer_entries): ...into new helper routine.
9709         (hash_delete): React to hash_rehash return value.
9710
9711         hash: reduce memory pressure in hash_rehash no-op case
9712         * lib/hash.c (next_prime): Avoid overflow.
9713         (hash_initialize): Factor bucket size computation...
9714         (compute_bucket_size): ...into new helper function.
9715         (hash_rehash): Use new function and open coding to reduce memory
9716         pressure, and avoid a memory leak in USE_OBSTACK code.
9717         Reported by Jim Meyering.
9718
9719 2009-06-18  Eric Blake  <ebb9@byu.net>
9720
9721         hash: make rotation more obvious
9722         * modules/hash (Depends-on): Add bitrotate and stdint.
9723         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
9724         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
9725         (SIZE_MAX): Rely on headers for definition.
9726         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
9727         (raw_hasher): Use rotr_sz.
9728         Suggested by Jim Meyering.
9729
9730         hash: fix memory leak in last patch
9731         * lib/hash.c (hash_rehash): Avoid memory leak.
9732
9733         hash: avoid no-op rehashing
9734         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
9735
9736         hash: provide default callback functions
9737         * lib/hash.c (raw_hasher, raw_comparator): New functions.
9738         (hash_initialize): Use them as defaults.
9739         * tests/test-hash.c (main): Test this.
9740
9741         hash: minor optimization
9742         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
9743         when possible.
9744         (hash_initialize): Document this promise.
9745         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
9746         * tests/test-hash.c (hash_compare_strings): Test this.
9747
9748 2009-06-18  Bruno Haible  <bruno@clisp.org>
9749
9750         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
9751         going to be replaced anyway.
9752
9753 2009-06-18  Bruno Haible  <bruno@clisp.org>
9754
9755         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
9756         in one place.
9757         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
9758         be replaced anyway.
9759
9760 2009-06-18  Eric Blake  <ebb9@byu.net>
9761
9762         hash: check for resize before insertion
9763         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
9764         threshold before insertion, so that a pathological hash_rehash
9765         that fills every bucket can still trigger another rehash.
9766
9767 2009-06-18  Jim Meyering  <meyering@redhat.com>
9768
9769         hash-tests: add a loop around the small tests
9770         * tests/test-hash.c (main): Repeat small tests with selected
9771         small initial table sizes.
9772
9773 2009-06-17  Eric Blake  <ebb9@byu.net>
9774
9775         hash: minor cleanups
9776         * lib/hash.h (hash_entry): Make opaque, by moving...
9777         * lib/hash.c (hash_entry): ...here.
9778         (hash_insert): Clarify restrictions on what can be inserted.
9779         (hash_get_next): Clarify when it is safe to remove an element
9780         during traversal.
9781         (check_tuning): Skip verification when tuning is known safe.
9782         (hash_initialize): Clarify restrictions on tuning.
9783
9784 2009-06-17  Jim Meyering  <jim@meyering.net>
9785         and Eric Blake  <ebb9@byu.net>
9786
9787         hash-tests: new module
9788         * modules/hash-tests: New file.
9789         * tests/test-hash.c: New file.
9790
9791 2009-06-17  Eric Blake  <ebb9@byu.net>
9792
9793         strstr-simple: document new module
9794         * MODULES.html.sh: Document new module.
9795
9796         strstr, strcasestr: replace on platforms with broken memchr
9797         * modules/strstr: Split into...
9798         * modules/strstr-simple: ...new module that does not care about
9799         performance, but does care about glibc bug.
9800         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
9801         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
9802         if platform memchr is broken, per Debian bug 521737.
9803         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
9804         memchr.
9805         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
9806         * doc/posix-functions/strstr.texi (strstr): Document the fix.
9807         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9808         * modules/mountlist (Depends-on): Add strstr-simple.
9809         * modules/gen-uni-tables (Depends-on): Likewise.
9810         * modules/argz (Depends-on): Add strstr.
9811
9812 2009-06-17  Bruno Haible  <bruno@clisp.org>
9813
9814         * modules/posix_spawn-internal (Depends-on): Add errno.
9815
9816 2009-06-17  Bruno Haible  <bruno@clisp.org>
9817
9818         Define missing ESTALE on Interix 3.5.
9819         * lib/errno.in.h (ESTALE): Assign a value if missing.
9820         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
9821         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
9822         missing.
9823         * doc/posix-headers/errno.texi: Mention the Interix bug.
9824         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
9825
9826 2009-06-15  Eric Blake  <ebb9@byu.net>
9827
9828         memchr, memchr2: add valgrind exception
9829         * lib/memchr.valgrind: New file.
9830         * lib/memchr2.valgrind: New file.
9831         * modules/memchr (Files): Distribute valgrind file.
9832         * modules/memchr2 (Files): Likewise.
9833
9834         docs: memchr is no longer obsolete
9835         * MODULES.html.sh: Move memchr from obsolete to string.h section.
9836         * lib/string.in.h (memchr): Simplify logic.
9837
9838 2009-06-14  Jim Meyering  <meyering@redhat.com>
9839
9840         link-follow: fix the "checking..." message to not mention trailing slash
9841         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
9842         never considered trailing slashes.
9843
9844 2009-06-14  Bruno Haible  <bruno@clisp.org>
9845
9846         * m4/memchr.m4: Mention also the bug on IA-64.
9847         * doc/posix-functions/memchr.texi: Likewise.
9848
9849 2009-06-12  Eric Blake  <ebb9@byu.net>
9850
9851         memchr: detect broken x86_64 and alpha implementations
9852         * modules/memchr-tests (Depends-on): Move mmap detection...
9853         * modules/memchr (Depends-on): ...here.
9854         (configure.ac): Set indicator.
9855         * lib/string.in.h (memchr): Declare replacement.
9856         * modules/string (Makefile.am): Trigger replacement.
9857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
9858         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
9859         bugs.
9860         * doc/posix-functions/memchr.texi (memchr): Document the bug.
9861         * modules/getpagesize (License): Relax license.
9862
9863 2009-06-11  Bruno Haible  <bruno@clisp.org>
9864
9865         * lib/idpriv.h: Add more references.
9866
9867 2009-06-08  Bruno Haible  <bruno@clisp.org>
9868
9869         Tests for module 'idpriv-droptemp'.
9870         * modules/idpriv-droptemp-tests: New file.
9871         * tests/test-idpriv-droptemp.sh: New file.
9872         * tests/test-idpriv-droptemp.su.sh: New file.
9873         * tests/test-idpriv-droptemp.c: New file.
9874
9875         New module 'idpriv-droptemp'.
9876         * lib/idpriv-droptemp.c: New file.
9877         * modules/idpriv-droptemp: New file.
9878
9879 2009-06-08  Bruno Haible  <bruno@clisp.org>
9880
9881         Tests for module 'idpriv-drop'.
9882         * modules/idpriv-drop-tests: New file.
9883         * tests/test-idpriv-drop.sh: New file.
9884         * tests/test-idpriv-drop.su.sh: New file.
9885         * tests/test-idpriv-drop.c: New file.
9886
9887         New module 'idpriv-drop'.
9888         * lib/idpriv.h: New file.
9889         * lib-idpriv-drop.c: New file.
9890         * m4/idpriv.m4: New file.
9891         * modules/idpriv-drop: New file.
9892
9893 2009-06-08  Bruno Haible  <bruno@clisp.org>
9894
9895         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
9896         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9897         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9898         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9899         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9900         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9901         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9902
9903 2009-06-08  Eric Blake  <ebb9@byu.net>
9904
9905         test-strstr: use memory fence, when possible
9906         * tests/test-strstr.c (main): Use memory fence, in order to be
9907         more likely to trigger Debian bug 521737.
9908         * modules/strstr-tests (Files): Pull in additional files.
9909
9910         memchr: no longer obsolete, for wider field testing
9911         * modules/memchr (Status, Notice): Delete, this module is no
9912         longer obsolete.
9913         * modules/vasnprintf (Depends-on): Add memchr.
9914
9915 2009-06-07  Jim Meyering  <meyering@redhat.com>
9916
9917         hash: declare some functions with the warn_unused_result attribute
9918         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
9919
9920 2009-06-07  Bruno Haible  <bruno@clisp.org>
9921
9922         * tests/test-alignof.c: Don't test int64_t if it does not exist.
9923         Reported by Eric Blake.
9924
9925 2009-06-06  Eric Blake  <ebb9@byu.net>
9926
9927         test-alignof: fix typo with long double
9928         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
9929         compiler error.
9930
9931 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
9932
9933         Escape non-texinfo { and }s.
9934         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
9935         markup error.
9936
9937 2009-06-04  Jim Meyering  <meyering@redhat.com>
9938
9939         gitlog-to-changelog: don't infloop on an empty commit log
9940         * build-aux/gitlog-to-changelog: Warn about an empty log message.
9941         Reported by Boris Petersen <transacid@centerim.org>.
9942
9943 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
9944
9945         version-etc: extend for packagers
9946         Add three new configure options, intended for packagers:
9947           --with-packager="packager name"
9948           --with-packager-version="packager-specific version"
9949           --with-packager-bug-reports="packager bug reporting"
9950         An example with coreutils:
9951           $ ./configure \
9952             --with-packager=Gentoo \
9953             --with-packager-bug-report=http://bugs.gentoo.org/ \
9954             --with-packager-version="patchset 1.6"
9955           $ ./src/ls --version | head -n2
9956           ls (GNU coreutils) 7.1-dirty
9957           Packaged by Gentoo (patchset 1.6)
9958         Note that the bug reporting info via --help doesn't show up because
9959         coreutils uses its own custom emit_bug_reporting_address() implementation
9960         in src/system.h.  If it didn't, it'd look like:
9961           $ ./src/ls --help | tail -n4
9962           Report bugs to <bug-coreutils@gnu.org>.
9963           Report Gentoo bugs to <http://bugs.gentoo.org/>.
9964           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
9965           General help using GNU software: <http://www.gnu.org/gethelp/>.
9966         * lib/version-etc.c: Print new information, if provided.
9967         * m4/version-etc.m4: New file.
9968         * modules/version-etc (Files): Add m4/version-etc.m4.
9969         (configure.ac): Add gl_VERSION_ETC.
9970
9971 2009-05-31  Bruno Haible  <bruno@clisp.org>
9972
9973         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
9974         and 'int64_t'.
9975         * modules/alignof-tests (Dependencies): Add stdint.
9976         Reported by Eric Blake.
9977
9978 2009-05-31  Bruno Haible  <bruno@clisp.org>
9979
9980         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
9981         restriction due to compiler bugs.
9982         Reported by Eric Blake.
9983
9984 2009-05-31  Simon Josefsson  <simon@josefsson.org>
9985             Bruno Haible  <bruno@clisp.org>
9986
9987         Fix test-alignof failure.
9988         * lib/alignof.h (alignof_slot): New macro.
9989         (alignof_type): New macro, with the same semantics as the previous
9990         'alignof'.
9991         (alignof): Alias to alignof_slot.
9992         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
9993         check that the results are usable as constant expressions.
9994
9995 2009-05-31  Bruno Haible  <bruno@clisp.org>
9996
9997         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
9998         * tests/test-memchr.c (main): Check that memchr does not read past the
9999         first occurrence of the byte.
10000         * tests/test-strstr.c (main): Update comment.
10001         Suggested by Eric Blake.
10002
10003 2009-05-30  Bruno Haible  <bruno@clisp.org>
10004
10005         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
10006         detail how to use dumpbin.
10007         Reported by David Byron <dbyron@dbyron.com>.
10008
10009 2009-06-02  Simon Josefsson  <simon@josefsson.org>
10010
10011         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
10012
10013 2009-06-02  Simon Josefsson  <simon@josefsson.org>
10014
10015         * m4/manywarnings.m4: Add GCC 4.4 warnings.
10016
10017 2009-05-28  Bruno Haible  <bruno@clisp.org>
10018
10019         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
10020         build-aux/ files.
10021
10022 2009-05-28  Simon Josefsson  <simon@josefsson.org>
10023
10024         * gnulib-tool (func_import): Transform license on build-aux/ files too.
10025
10026 2009-05-27  Simon Josefsson  <simon@josefsson.org>
10027
10028         * gnulib-tool (sed_transform_main_lib_file)
10029         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
10030         regexps.
10031
10032 2009-05-26  Simon Josefsson  <simon@josefsson.org>
10033
10034         * tests/test-strstr.c: Add another self-test.
10035         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
10036         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
10037
10038 2009-05-23  Bruno Haible  <bruno@clisp.org>
10039
10040         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
10041         change.
10042
10043 2009-05-21  Bruno Haible  <bruno@clisp.org>
10044
10045         Simplify use of mode_t varargs.
10046         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
10047         uses 'mode_t' or 'int'.
10048         * lib/openat.c (openat): Likewise.
10049         * lib/open-safer.c (open_safer): Likewise.
10050         * m4/mode_t.m4: New file.
10051         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
10052         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
10053         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
10054         * modules/open (Files): Add m4/mode_t.m4.
10055         * modules/openat (Files): Likewise.
10056         * modules/fcntl-safer (Files): Likewise.
10057         Suggested by Eric Blake.
10058
10059 2009-05-21  Pádraig Brady  <P@draigbrady.com>
10060
10061         * doc/glibc-functions/fallocate.texi: New file.
10062         * doc/gnulib.texi: Include it.
10063
10064 2009-05-21  Eric Blake  <ebb9@byu.net>
10065             Bruno Haible  <bruno@clisp.org>
10066
10067         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
10068         invocations.
10069         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
10070
10071 2009-05-21  Eric Blake  <ebb9@byu.net>
10072             Bruno Haible  <bruno@clisp.org>
10073
10074         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
10075         include_next. Fix of 2008-11-20 commit.
10076         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
10077         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
10078         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
10079         NEXT_MATH_H.
10080         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
10081         instead of NEXT_MATH_H.
10082
10083 2009-05-21  Bruno Haible  <bruno@clisp.org>
10084
10085         Avoid redefinition warnings for SIZE_MAX.
10086         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
10087         Reported by Simon Josefsson.
10088
10089 2009-05-21  Bruno Haible  <bruno@clisp.org>
10090
10091         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
10092         AC_CACHE_VAL.
10093
10094 2009-05-20  Bruno Haible  <bruno@clisp.org>
10095
10096         Make zeroptr.h work on mingw.
10097         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
10098         mprotect.
10099         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
10100         * modules/memchr2-tests (configure.ac): Likewise.
10101         * modules/memcmp-tests (configure.ac): Likewise.
10102         * modules/memmem-tests (configure.ac): Likewise.
10103         * modules/memrchr-tests (configure.ac): Likewise.
10104         Reported by Simon Josefsson.
10105
10106 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10107
10108         * tests/test-glob.c: Include string.h for strcmp prototype.
10109
10110 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10111
10112         * modules/getdelim (Depends-on): Add explicit stdint, although it
10113         was implicitly already pulled in via realloc-posix.
10114         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
10115
10116 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10117
10118         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
10119         G. Christensen" <tgc@jupiterrise.com>.
10120         * m4/sys_socket_h.m4: Check for sa_family_t.
10121         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
10122         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
10123         * tests/test-sys_socket.c: Check that sa_family_t works.
10124
10125 2009-05-18  Eric Blake  <ebb9@byu.net>
10126
10127         maint.mk: allow gnulib_dir in VPATH build
10128         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
10129
10130 2009-05-15  Jim Meyering  <meyering@redhat.com>
10131
10132         maint.mk: Give gnulib_dir a default definition.
10133         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
10134         Thus, most packages no longer need to specify this variable in cfg.mk
10135
10136 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
10137
10138         rename.m4: fix typos that would make non-mingw cross-configure fail
10139         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
10140
10141 2009-05-13  Eric Blake  <ebb9@byu.net>
10142
10143         mmap-anon: avoid out-of-order autoconf expansion
10144         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
10145         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
10146         * modules/memchr-tests (Depends-on): Add extensions.
10147         * modules/memchr2-tests (Depends-on): Add extensions.
10148         * modules/memcmp-tests (Depends-on): Add extensions.
10149         * modules/memmem-tests (Depends-on): Add extensions.
10150         * modules/memrchr-tests (Depends-on): Add extensions.
10151
10152 2009-05-13  Bruno Haible  <bruno@clisp.org>
10153
10154         Make some tests ISO C 99 compliant.
10155         * tests/zerosize-ptr.h: New file.
10156         * tests/test-memchr.c: Include zerosize-ptr.h.
10157         (main): Use a zero-size object pointer instead of NULL.
10158         * tests/test-memchr2.c: Include zerosize-ptr.h.
10159         (main): Use a zero-size object pointer instead of NULL.
10160         * tests/test-memcmp.c: Include zerosize-ptr.h.
10161         (main): Use a zero-size object pointer instead of NULL.
10162         * tests/test-memmem.c: Include zerosize-ptr.h.
10163         (main): Use a zero-size object pointer instead of NULL.
10164         * tests/test-memrchr.c: Include zerosize-ptr.h.
10165         (main): Use a zero-size object pointer instead of NULL.
10166         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
10167         m4/mmap-anon.m4.
10168         (Depends-on): Add getpagesize.
10169         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10170         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
10171         m4/mmap-anon.m4.
10172         (Depends-on): Add getpagesize.
10173         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10174         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
10175         m4/mmap-anon.m4.
10176         (Depends-on): Add getpagesize.
10177         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10178         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
10179         m4/mmap-anon.m4.
10180         (Depends-on): Add getpagesize.
10181         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10182         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
10183         m4/mmap-anon.m4.
10184         (Depends-on): Add getpagesize.
10185         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10186
10187 2009-05-12  Bruno Haible  <bruno@clisp.org>
10188
10189         Tests for module 'alignof'.
10190         * modules/alignof-tests: New file.
10191         * tests/test-alignof.c: New file.
10192
10193 2009-05-12  Bruno Haible  <bruno@clisp.org>
10194
10195         Fix alignof macro.
10196         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
10197         vendor compilers that are always correct.
10198
10199 2009-05-12  Bruno Haible  <bruno@clisp.org>
10200
10201         Make the MAP_ANONYMOUS detection work on HP-UX 11.
10202         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
10203         not whether its fully works.
10204
10205 2009-05-12  Bruno Haible  <bruno@clisp.org>
10206
10207         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
10208
10209 2009-05-12  Jim Meyering  <meyering@redhat.com>
10210
10211         * top/maint.mk: Adjust backslash alignment.
10212
10213 2009-05-11  Simon Josefsson  <simon@josefsson.org>
10214
10215         * top/maint.mk: Make $(srcdir)/build-aux configurable.
10216
10217 2009-05-11  Eric Blake  <ebb9@byu.net>
10218
10219         argp: avoid undefined behavior
10220         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
10221         macros.
10222
10223 2009-05-08  Simon Josefsson  <simon@josefsson.org>
10224
10225         * tests/test-vc-list-files-git.sh: Do git config of user.email and
10226         user.name to prevent git commit from complaining.
10227
10228 2009-05-10  Bruno Haible  <bruno@clisp.org>
10229
10230         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
10231         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
10232         it rewrites every file name only once.
10233         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
10234
10235 2009-05-08  Bruno Haible  <bruno@clisp.org>
10236
10237         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
10238         instead of 'max'.
10239
10240 2009-05-08  Simon Josefsson  <simon@josefsson.org>
10241
10242         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
10243         sockaddr_storage test.
10244
10245 2009-05-07  Simon Josefsson  <simon@josefsson.org>
10246
10247         * modules/sys_socket (Makefile.am): Substitute
10248         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
10249         * m4/sys_socket_h.m4: Check for sockaddr_storage.
10250         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
10251         * tests/test-sys_socket.c: Check sockaddr_storage.
10252
10253 2009-05-08  Bruno Haible  <bruno@clisp.org>
10254
10255         New module 'alignof'.
10256         * lib/alignof.h: New file.
10257         * modules/alignof: New file.
10258
10259 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10260             Bruno Haible  <bruno@clisp.org>
10261
10262         Fix test-file-has-acl on FreeBSD.
10263         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
10264         mask is implicitly added.
10265         * tests/test-file-has-acl.c: Include <signal.h>.
10266         (main): Terminate the test after 5 seconds.
10267         * modules/acl-tests (configure.ac): Check for alarm function.
10268
10269 2009-05-04  Bruno Haible  <bruno@clisp.org>
10270
10271         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
10272         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
10273         * modules/errno (configure.ac): Drop AC_REQUIRE.
10274         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
10275         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
10276
10277 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10278
10279         * modules/glob-tests: New module.
10280         * tests/test-glob.c: Add.
10281
10282 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10283
10284         * modules/fnmatch-tests: New module.
10285         * tests/test-fnmatch.c: Add.
10286
10287 2009-05-04  Eric Blake  <ebb9@byu.net>
10288
10289         maint: make the new no-submodule-changes rule VPATH-safe
10290         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
10291
10292 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10293             Bruno Haible  <bruno@clisp.org>
10294
10295         acl: Fix infinite loop on FreeBSD.
10296         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
10297         of return value from acl_get_entry.
10298         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
10299         Likewise.
10300
10301 2009-05-03  Bruno Haible  <bruno@clisp.org>
10302
10303         * lib/acl-internal.h (acl_entries): Clarify return value.
10304         * lib/acl_entries.c (acl_entries): Likewise.
10305
10306 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10307
10308         Bug fix in acl module.
10309         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
10310
10311 2009-05-03  Bruno Haible  <bruno@clisp.org>
10312
10313         Create gperf-generated file in the source dir, not in the build dir.
10314         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
10315         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
10316         * modules/unicase/locale-language (unicase/locale-languages.h):
10317         Likewise.
10318         * modules/unicase/special-casing (unicase/special-casing-table.h):
10319         Likewise.
10320         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
10321         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
10322         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
10323         Reported by Ralf Wildenhues.
10324
10325 2009-05-03  Bruno Haible  <bruno@clisp.org>
10326
10327         * modules/fnmatch (Description, configure.ac): Taken from
10328         fnmatch-posix.
10329         * modules/fnmatch-posix: Turn into a symbolic reference to the
10330         'fnmatch' module, and deprecate.
10331         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
10332
10333 2009-05-03  Bruno Haible  <bruno@clisp.org>
10334
10335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
10336         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
10337         Reported by Ralf Wildenhues.
10338
10339 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10340
10341         * m4/fnmatch.m4: Fix fnmatch re-define.
10342
10343 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10344
10345         priv-set: new module and tests; adapt write-any-file
10346         * lib/priv-set.c: New file.
10347         * lib/priv-set.h: New file.
10348         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
10349         * lib/write-any-file.c: Simplify by using priv-set module.
10350         * m4/priv-set.m4: New file.
10351         * modules/priv-set: New file.
10352         * modules/unlinkdir: Add dependency on priv-set module.
10353         * modules/write-any-file: Likewise.
10354
10355         Tests for module 'priv-set'.
10356         * modules/priv-set-tests: New file.
10357         * tests/test-priv-set.c: New file.
10358
10359 2009-05-03  Jim Meyering  <meyering@redhat.com>
10360             Bruno Haible  <bruno@clisp.org>
10361
10362         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
10363         use the converted UTF-8 variant of the name instead.
10364
10365 2009-05-03  Jim Meyering  <meyering@redhat.com>
10366
10367         tests: tighten some getdate tests
10368         * tests/test-getdate.c (main): Tighten tests: require equality,
10369         not just greater than.  Set TZ envvar to UTC0.
10370
10371 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
10372
10373         getdate: correctly interpret "next monday" when run on a Monday
10374         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
10375         that e.g., "next tues" (when run on a tuesday) results in a date
10376         that is one week in the future, and not today's date.
10377         I.e., add a week when the wday is the same as the current one.
10378         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
10379         and earlier by Martin Bernreuther and Jan Minář.
10380         * tests/test-getdate.c (main): Check that "next DAY" is always in
10381         the future and that "last DAY" is always in the past.
10382
10383 2009-05-02  Jim Meyering  <meyering@redhat.com>
10384
10385         build: ensure that a release build fails when a submodule is unclean
10386         * top/maint.mk (no-submodule-changes): New rule.
10387         (alpha beta major): Depend on it.
10388
10389 2009-05-02  Bruno Haible  <bruno@clisp.org>
10390
10391         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
10392         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
10393         shell variable gl_fnmatch_required to detect which variant is
10394         requested.
10395         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
10396         gl_FUNC_FNMATCH_POSIX.
10397         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
10398         exclude fnmatch-posix.
10399
10400 2009-05-02  Bruno Haible  <bruno@clisp.org>
10401
10402         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
10403         * modules/mbsrtowcs (License): Change to LGPLv2+.
10404         * modules/strnlen1 (License): Likewise.
10405         Reported by Simon Josefsson.
10406
10407 2009-05-02  Bruno Haible  <bruno@clisp.org>
10408
10409         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
10410         "cross".
10411         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
10412         gnulib-tool was called with option --source-base=lib.
10413
10414 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10415
10416         Use automake *-local hooks without commands, for extensibility.
10417         * modules/localcharset (Makefile.am): Rename install-exec-local
10418         rule to install-exec-localcharset, and make it a prerequisite of
10419         install-exec-local.  Likewise, rename the uninstall-local rule to
10420         uninstall-localcharset, and make it a prerequisite of the former.
10421
10422 2009-05-01  Bruno Haible  <bruno@clisp.org>
10423
10424         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
10425         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10426         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
10427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
10428         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
10429         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10430         m4/locale-zh.m4, m4/codeset.m4.
10431
10432         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10433         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
10434         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10435         m4/locale-zh.m4.
10436
10437         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
10438         REPLACE_WCRTOMB if mbstate_t must be replaced.
10439         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
10440         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
10441
10442 2009-05-01  Bruno Haible  <bruno@clisp.org>
10443
10444         Avoid compiler warnings when redefining macros defined by <libintl.h>.
10445         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
10446         dngettext, dcngettext, textdomain, bindtextdomain,
10447         bind_textdomain_codeset): Undefine before redefining.
10448
10449 2009-04-30  Bruno Haible  <bruno@clisp.org>
10450
10451         Fix bug introduced on 2009-04-25.
10452         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
10453         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
10454         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
10455         is defined.
10456         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
10457         is defined.
10458         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
10459         is defined.
10460         Reported by Elbert_Pol <elbert.pol@gmail.com>.
10461
10462 2009-04-28  Bruno Haible  <bruno@clisp.org>
10463
10464         Comment tweaks.
10465         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
10466         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
10467         * lib/unicase.h (u*_casexfrm): Likewise.
10468         Reported by Paolo Bonzini.
10469
10470 2009-04-28  Bruno Haible  <bruno@clisp.org>
10471
10472         Fix a compilation error.
10473         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
10474         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10475         Reported by Jim Meyering.
10476
10477 2009-04-27  Bruno Haible  <bruno@clisp.org>
10478
10479         New module 'libunistring'.
10480         * modules/libunistring: New file.
10481         * m4/libunistring.m4: New file.
10482         * MODULES.html.sh (Unicode string functions): Add it.
10483
10484 2009-04-27  Eric Blake  <ebb9@byu.net>
10485
10486         maint.mk: allow package-specific header to provide <config.h>
10487         * top/maint.mk (sc_require_config_h): New variable.
10488         (sc_require_config_h, sc_require_config_h_first): Use it.
10489
10490 2009-04-27  Simon Josefsson  <simon@josefsson.org>
10491
10492         * top/maint.mk (sc_avoid_if_before_free): Except
10493         useless-if-before-free script.
10494
10495 2009-04-27  Eric Blake  <ebb9@byu.net>
10496
10497         maintainer-makefile: depend on all required helper scripts
10498         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
10499         useless-if-before-free.
10500         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
10501         version, rather than assuming gnulib checkout is available.
10502         Reported by Simen Josefsson.
10503
10504 2009-04-26  Bruno Haible  <bruno@clisp.org>
10505
10506         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
10507         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
10508         "../" or "..".
10509
10510 2009-04-26  Bruno Haible  <bruno@clisp.org>
10511
10512         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
10513         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
10514         AC_LIB_HAVE_LINKFLAGS.
10515
10516 2009-04-26  Bruno Haible  <bruno@clisp.org>
10517
10518         Simplify calling convention of u*_conv_from_encoding.
10519         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
10520         u32_conv_from_encoding): Expect a resultbuf argument and return the
10521         result directly as a pointer.
10522         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
10523         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
10524         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
10525         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
10526         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
10527         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10528         Update.
10529         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
10530         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
10531         * lib/vasnprintf.c (VASNPRINTF): Update.
10532         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
10533         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
10534         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
10535         * NEWS: Mention the change.
10536
10537 2009-04-26  Bruno Haible  <bruno@clisp.org>
10538
10539         Simplify calling convention of u*_conv_to_encoding.
10540         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
10541         u32_conv_to_encoding): Expect a resultbuf argument and return the
10542         result directly as a pointer.
10543         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10544         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
10545         freeing scaled_offsets if mem_iconveha failed.
10546         * lib/unicase/u-casexfrm.h (FUNC): Update.
10547         * lib/uninorm/u-normxfrm.h (FUNC): Update.
10548         * lib/vasnprintf.c (VASNPRINTF): Update.
10549         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
10550         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
10551         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
10552         * NEWS: Mention the change.
10553
10554 2009-04-26  Bruno Haible  <bruno@clisp.org>
10555
10556         Avoid test failures on AIX and OSF/1.
10557         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
10558         malloc(0).
10559         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10560         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10561         Likewise.
10562         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
10563         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
10564         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
10565         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
10566         * doc/posix-functions/malloc.texi: Document the portability problem
10567         related to malloc(0).
10568
10569 2009-04-26  Bruno Haible  <bruno@clisp.org>
10570
10571         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
10572         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
10573         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
10574
10575 2009-04-25  Bruno Haible  <bruno@clisp.org>
10576
10577         Avoid link error when creating a namespace clean library.
10578         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
10579         as macro with arguments if already defined as an alias.
10580         * lib/signbitf.c (gl_signbitf): Don't undefine.
10581         * lib/signbitd.c (gl_signbitd): Don't undefine.
10582         * lib/signbitl.c (gl_signbitl): Don't undefine.
10583
10584 2009-04-25  Jim Meyering  <meyering@redhat.com>
10585
10586         vc-list-files: fix another quoting bug
10587         * build-aux/vc-list-files: Avoid sed backslash expansion
10588         of pathological directory names.
10589
10590 2009-04-25  Eric Blake  <ebb9@byu.net>
10591
10592         vc-list-files: fix shell quoting error
10593         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
10594         timestamp.
10595
10596 2009-04-25  Jim Meyering  <meyering@redhat.com>
10597
10598         vc-list-files: restore lost functionality with subdir argument
10599         * build-aux/vc-list-files: When given a non-"." sub-directory
10600         argument, substitute the $dir/ prefix back onto each resulting name.
10601         Otherwise, coreutils' root_tests check would fail.
10602
10603 2009-04-24  Eric Blake  <ebb9@byu.net>
10604
10605         vc-list-files: ignore git symlinks
10606         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
10607         than ls-files, to ignore git symlinks.
10608
10609         maint.mk: import improvements from m4
10610         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
10611         (move_if_change): Delete unused macro.
10612         (news-date-check, vc-diff-check): Support VPATH builds.
10613         (announcement): Likewise.  Split --bootstrap-tools list...
10614         (boostrap-tools): ...into separate list, which can be overridden
10615         in cfg.mk.
10616         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
10617         requiring dependency on useless-if-before-free module.
10618         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
10619         Support VPATH builds.
10620
10621 2009-04-24  Jim Meyering  <meyering@redhat.com>
10622
10623         maint.mk: remove coreutils-specific rules and variables
10624         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
10625         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
10626         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
10627
10628         maint.mk: remove obsolete rule
10629         * top/maint.mk (rel-check): Remove rule.
10630         (WGET, WGETFLAGS): Remove now-unused variables.
10631
10632 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10633
10634         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
10635         consistency.
10636
10637         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
10638         '$(PATH_SEPARATOR)' instead of ':'.
10639
10640 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10641
10642         * lib/getopt1.c (main): Use 'const' for static array.
10643
10644 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10645
10646         * top/maint.mk: Sync with coreutils.
10647         * NEWS: Explain incompatibilities.
10648
10649 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10650             Bruno Haible  <bruno@clisp.org>
10651
10652         Fix cross-compilation results.
10653         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
10654         statement, as third argument of AC_TRY_RUN.
10655         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10656         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10657         Likewise.
10658         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10659         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10660         Likewise.
10661         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10662         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
10663         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
10664
10665 2009-04-20  Bruno Haible  <bruno@clisp.org>
10666
10667         Avoid test failure on mingw.
10668         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
10669
10670 2009-04-20  Bruno Haible  <bruno@clisp.org>
10671
10672         Avoid compilation error on mingw.
10673         * modules/localename-tests (Depends-on): Add locale.
10674
10675 2009-04-19  Bruno Haible  <bruno@clisp.org>
10676
10677         Support for building a shared library on Windows platforms.
10678         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
10679         (main): Test the presence of UNINORM_NFC here.
10680         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
10681         (main): Test the presence of UNINORM_NFD here.
10682         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
10683         (main): Test the presence of UNINORM_NFKC here.
10684         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
10685         (main): Test the presence of UNINORM_NFKD here.
10686
10687 2009-04-19  Bruno Haible  <bruno@clisp.org>
10688
10689         Avoid a compiler warning.
10690         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
10691         Change type of variable 'sequence'.
10692
10693 2009-04-19  Bruno Haible  <bruno@clisp.org>
10694
10695         * modules/configmake (Makefile.am): When the contents of configmake.h
10696         does not change, arrange to preserve its modification time.
10697
10698 2009-04-17  Simon Josefsson  <simon@josefsson.org>
10699
10700         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
10701         gettext domain.
10702
10703 2009-04-16  Jim Meyering  <meyering@redhat.com>
10704
10705         useless-if-before-free: improve conversion code
10706         * build-aux/useless-if-before-free: Adjust code-in-comment to match
10707         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
10708
10709 2009-04-14  Bruno Haible  <bruno@clisp.org>
10710
10711         * modules/fcntl (Depends-on): Add extensions.
10712         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
10713
10714 2009-04-12  Ben Pfaff  <blp@gnu.org>
10715
10716         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
10717         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
10718
10719 2009-03-20  Ben Pfaff  <blp@gnu.org>
10720
10721         Make rename replace existing destinations on Windows.
10722         * m4/rename.m4: Add test for Mingw.
10723         * lib/rename.c: Add rename replacement that uses MoveFileEx with
10724         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
10725         * doc/posix-functions/rename.texi: Document.
10726
10727 2009-04-10  Bruno Haible  <bruno@clisp.org>
10728
10729         New include file "iconveh.h".
10730         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
10731         * lib/striconveh.h: Include it.
10732         (enum iconv_ilseq_handler): Remove definition.
10733         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
10734         striconveh.h.
10735         * lib/striconveha.c: Include striconveh.h.
10736         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
10737         * modules/striconveh (Files): Add lib/iconveh.h.
10738         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
10739         lib/striconveh.h.
10740
10741 2009-04-10  Bruno Haible  <bruno@clisp.org>
10742
10743         * lib/uniconv.h: Update comment.
10744
10745 2009-04-10  Bruno Haible  <bruno@clisp.org>
10746
10747         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
10748         always.
10749         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10750         * lib/unistr/u16-mbtouc-aux.c: Likewise.
10751         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10752         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
10753         "unistring-notinline.h", so that the function gets defined always.
10754         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10755         * lib/unistr/u8-uctomb.c: Likewise.
10756         * lib/unistr/u16-mbtouc.c: Likewise.
10757         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10758         * lib/unistr/u16-uctomb.c: Likewise.
10759         * lib/unistr/u32-mbtouc.c: Likewise.
10760         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10761         * lib/unistr/u32-uctomb.c: Likewise.
10762
10763 2009-04-10  Bruno Haible  <bruno@clisp.org>
10764
10765         Mark 'utime' obsolete.
10766         * modules/utime (Status, Notice): New sections.
10767         Suggested by Jim Meyering.
10768
10769         Fix cross-compile guess for utime test.
10770         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
10771         autoconf.
10772         * doc/posix-functions/utime.texi: Give more precisions.
10773         Reported by Jan <ipif@ymail.com>.
10774
10775 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
10776
10777         filevercmp: correct today's change
10778         * lib/filevercmp.c: Also handle coreutils' test inputs.
10779         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
10780
10781         Fix regression in 'filevercmp' module. Thanks Sven Joachim
10782         for reporting it.
10783         * lib/filevercmp.c: Special handle for "", "." and "..".
10784         * tests/test-filevercmp.c: Enlarge the set suite.
10785
10786 2009-04-07  Jim Meyering  <meyering@redhat.com>
10787
10788         useless-if-before-free: show how to remove braced useless free, too
10789         * build-aux/useless-if-before-free: still only in a comment, though.
10790
10791 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
10792
10793         maint.mk: import changes to syntax-check macros from coreutils
10794         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
10795         Use them in the relevant macros.
10796
10797 2009-04-06  Bruno Haible  <bruno@clisp.org>
10798
10799         Fix unportable use of bit-fields.
10800         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
10801         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
10802         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
10803
10804 2009-04-06  Bruno Haible  <bruno@clisp.org>
10805
10806         Avoid test failures on AIX and OSF/1.
10807         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
10808         that malloc(0) = NULL.
10809         * tests/unicase/test-u8-tolower.c (check): Likewise.
10810         * tests/unicase/test-u8-totitle.c (check): Likewise.
10811         * tests/unicase/test-u8-toupper.c (check): Likewise.
10812         * tests/unicase/test-u16-casefold.c (check): Likewise.
10813         * tests/unicase/test-u16-tolower.c (check): Likewise.
10814         * tests/unicase/test-u16-totitle.c (check): Likewise.
10815         * tests/unicase/test-u16-toupper.c (check): Likewise.
10816         * tests/unicase/test-u32-casefold.c (check): Likewise.
10817         * tests/unicase/test-u32-tolower.c (check): Likewise.
10818         * tests/unicase/test-u32-totitle.c (check): Likewise.
10819         * tests/unicase/test-u32-toupper.c (check): Likewise.
10820         * tests/uninorm/test-u8-nfc.c (check): Likewise.
10821         * tests/uninorm/test-u8-nfd.c (check): Likewise.
10822         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
10823         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
10824         * tests/uninorm/test-u16-nfc.c (check): Likewise.
10825         * tests/uninorm/test-u16-nfd.c (check): Likewise.
10826         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
10827         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
10828         * tests/uninorm/test-u32-nfc.c (check): Likewise.
10829         * tests/uninorm/test-u32-nfd.c (check): Likewise.
10830         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
10831         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
10832
10833 2009-04-05  Bruno Haible  <bruno@clisp.org>
10834
10835         Work around an autoconf limitation.
10836         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
10837         comment line if it would be longer than 3 KB.
10838
10839 2009-04-05  Bruno Haible  <bruno@clisp.org>
10840
10841         Avoid test failure with libiconv-1.13.
10842         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
10843         of the expected test results.
10844
10845 2009-04-05  Bruno Haible  <bruno@clisp.org>
10846
10847         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
10848         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
10849         that it should be installed.
10850
10851 2009-04-05  Bruno Haible  <bruno@clisp.org>
10852
10853         * gnulib-tool: New option --copy-file.
10854         (func_usage): Document it.
10855         (func_dest_tmpfilename): Moved out of func_import.
10856         (func_add_file, func_update_file): New functions, extracted from
10857         func_import.
10858         (func_import): Update.
10859
10860 2009-04-05  Karl Berry  <karl@gnu.org>
10861
10862         * README: prominently mention gnulib-tool.
10863         Rearrange sections so getting the code is near the top.
10864
10865 2009-04-05  Bruno Haible  <bruno@clisp.org>
10866
10867         * lib/unicase.h: Mention u*_cmp2.
10868         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10869         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
10870         * lib/unicase/ulc-casecmp.c: Likewise.
10871         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
10872         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
10873         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
10874         unistr/u8-cmp.
10875         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
10876         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
10877         unistr/u16-cmp.
10878         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
10879         unistr/u32-cmp.
10880
10881         * lib/uninorm.h: Mention u*_cmp2.
10882         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10883         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
10884         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
10885         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
10886         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
10887         unistr/u8-cmp.
10888         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
10889         unistr/u16-cmp.
10890         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
10891         unistr/u32-cmp.
10892
10893         New module 'unistr/u32-cmp2'.
10894         * lib/unistr/u32-cmp2.c: New file.
10895         * modules/unistr/u32-cmp2: New file.
10896
10897         New module 'unistr/u16-cmp2'.
10898         * lib/unistr/u16-cmp2.c: New file.
10899         * modules/unistr/u16-cmp2: New file.
10900
10901         New module 'unistr/u8-cmp2'.
10902         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
10903         * lib/unistr/u8-cmp2.c: New file.
10904         * lib/unistr/u-cmp2.h: New file.
10905         * modules/unistr/u8-cmp2: New file.
10906
10907 2009-04-05  Bruno Haible  <bruno@clisp.org>
10908
10909         * lib/unictype.h (uc_property_is_valid): New macro.
10910         * tests/unictype/test-pr_byname.c (main): Use it.
10911
10912         * lib/unistr.h: Doc fixes.
10913         * lib/uniconv.h: Doc fixes.
10914         * lib/unictype.h: Doc fixes.
10915
10916 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
10917
10918         Port coreutils 7.2 to Solaris 8.
10919
10920         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
10921         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
10922         for Solaris 8.  This is a bit of a hack, as it means it's the
10923         caller's responsibility to add -lnsl if needed, but most likely it
10924         won't be needed since only getaddrinfo uses this and getaddrinfo
10925         isn't needed on Solaris 8.
10926
10927         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
10928         problem to Solaris 8 encountered with coreutils 7.2, which
10929         resulted in a message "fnmatch.c:292: warning: passing argument 4
10930         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
10931         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
10932
10933 2009-04-03  Simon Josefsson  <simon@josefsson.org>
10934
10935         * m4/ld-version-script.m4: Add FIXME comment.
10936
10937 2009-04-02  Simon Josefsson  <simon@josefsson.org>
10938
10939         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
10940         SOVERSION variable.
10941
10942 2009-04-02  Bruno Haible  <bruno@clisp.org>
10943
10944         * Makefile (info, html, dvi, pdf): Combine the rules.
10945         Suggested by Jim Meyering.
10946
10947 2009-04-01  Bruno Haible  <bruno@clisp.org>
10948
10949         * Makefile (info, html, dvi, pdf): New targets.
10950         Reported by Reuben Thomas <rrt@sc3d.org>.
10951
10952 2009-04-01  Bruno Haible  <bruno@clisp.org>
10953
10954         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
10955         can be put into PATH.
10956         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
10957
10958 2009-04-01  Bruno Haible  <bruno@clisp.org>
10959
10960         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
10961
10962 2009-04-01  Bruno Haible  <bruno@clisp.org>
10963
10964         Rename module 'visibility'.
10965         * modules/lib-symbol-visibility: Renamed from modules/visibility.
10966         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
10967         * doc/gnulib.texi: Update.
10968         * MODULES.html.sh (Misc): Update.
10969         * NEWS: Mention the change.
10970
10971 2009-04-01  Simon Josefsson  <simon@josefsson.org>
10972
10973         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
10974         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
10975         Eric Blake <ebb9@byu.net> for review.
10976         * MODULES.html.sh: Add lib-msvc-compat.
10977         * doc/gnulib.texi: Link to new section.
10978         * m4/ld-output-def.m4: New file.
10979         * doc/ld-output-def.texi: New file.
10980
10981 2009-04-01  Simon Josefsson  <simon@josefsson.org>
10982
10983         Rename ld-version-script to lib-symbol-versions.  Suggested by
10984         Bruno Haible <bruno@clisp.org>.
10985         * modules/ld-version-script: Renamed to lib-symbol-versions.
10986         * doc/ld-version-script.texi: Fix module name.
10987         * MODULES.html.sh: Add lib-symbol-versions.
10988
10989 2009-03-31  Simon Josefsson  <simon@josefsson.org>
10990
10991         * modules/u64-tests: New file.
10992         * tests/test-u64.c: New file.
10993
10994 2009-03-04  Simon Josefsson  <simon@josefsson.org>
10995
10996         * MODULES.html.sh: Mention u64.
10997         * modules/u64: New module.
10998         * modules/crypto/sha512: Depend on u64 module instead of providing
10999         u64.h.
11000
11001 2009-03-27  Eric Blake  <ebb9@byu.net>
11002
11003         test-strerror: make debugging EAI_SYSTEM easier
11004         * modules/getaddrinfo-tests (Depends-on): Add strerror.
11005         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
11006         failure was EAI_SYSTEM.
11007
11008 2009-03-25  Bruno Haible  <bruno@clisp.org>
11009
11010         Fix a problem with --enable-relocatable on Solaris 7.
11011         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
11012         since 2008-02-24.
11013
11014 2009-03-25  Eric Blake  <ebb9@byu.net>
11015
11016         test-sockets: avoid gcc warning
11017         * tests/test-sockets.c (main): Silence compiler warning.
11018
11019 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
11020
11021         New modules nproc, pthread, contributed by Glen Lenker.
11022
11023         * MODULES.html.sh: Add pthread, nproc.
11024         * lib/nproc.c: New file.
11025         * lib/nproc.h: New file.
11026         * lib/pthread.in.h: New file.
11027         * m4/pthread.m4: New file.
11028         * modules/nproc: New file.
11029         * modules/pthread: New file.
11030
11031 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11032
11033         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
11034         New variable.
11035
11036 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
11037
11038         filevercmp: handle simple~ and numbered.~3~ backup suffixes
11039         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
11040         * tests/test-filevercmp.c: Add tests for backup suffixes.
11041
11042 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11043
11044         * modules/stdlib (Depends-on): Add stdint, needed when defining
11045         struct random_data on, for example, HP-UX 10.20.  Reported by
11046         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11047
11048 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11049
11050         * lib/readline.c (readline): Call fflush on stdout after printing
11051         prompt.
11052
11053 2009-03-20  Bruno Haible  <bruno@clisp.org>
11054
11055         Remove dependency from 'close' module to -lws2_32 on native Windows.
11056         * lib/close-hook.h: New file.
11057         * lib/close-hook.c: New file.
11058         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
11059         w32sock.h.
11060         (_gl_close_fd_maybe_socket): Remove function.
11061         (rpl_close): Invoke execute_all_close_hooks instead of
11062         _gl_close_fd_maybe_socket.
11063         * lib/sockets.c: Include close-hook.h, w32sock.h.
11064         (close_fd_maybe_socket): New function, essentially from lib/close.c.
11065         (close_sockets_hook): New variable.
11066         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
11067         (gl_sockets_cleanup): Unregister it.
11068         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
11069         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
11070         * modules/close-hook: New file.
11071         * modules/close (Files): Remove lib/w32sock.h.
11072         (Depends-on): Add close-hook.
11073         (Link): Remove section.
11074         * modules/sockets (Files): Add lib/w32sock.h.
11075         (Depends-on): Add close-hook.
11076         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
11077         invocation.
11078         * NEWS: Mention that LIB_CLOSE is gone.
11079
11080 2009-03-23  Eric Blake  <ebb9@byu.net>
11081
11082         signal-tests: test previous patch
11083         * tests/test-signal.c: New file.
11084         * modules/signal-tests: Likewise.
11085
11086         signal.h: always support 'volatile sig_atomic_t'
11087         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
11088         (gl_SIGNAL_H_DEFAULTS): Add a default.
11089         * modules/signal (Makefile.am): Substitute if needed.
11090         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
11091         users can blindly add volatile.
11092         * doc/posix-headers/signal.texi (signal.h): Document it.
11093         Reported by Matthew Woehlke.
11094
11095 2009-03-23  Jim Meyering  <meyering@redhat.com>
11096
11097         pathmax: PATH_MAX: use pathconf only when available
11098         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
11099         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
11100         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
11101         This avoids a link failure in a PSP cross-compilation environment
11102         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
11103
11104         * lib/vasnprintf.c (divide): Fix typo in comment.
11105
11106 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11107
11108         * gnulib-tool (func_filter_filelist): Fix comment.
11109
11110 2009-03-20  Bruno Haible  <bruno@clisp.org>
11111
11112         Make sockets.h self-contained.
11113         * lib/sockets.c: Include sockets.h first.
11114         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
11115
11116 2009-03-19  Eric Blake  <ebb9@byu.net>
11117
11118         doc: mention more functions added in cygwin 1.7.0
11119         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
11120         addition.
11121         * doc/posix-functions/log2f.texi: Likewise.
11122
11123 2009-03-19  Jim Meyering  <meyering@redhat.com>
11124
11125         fsusage: avoid syntax error due to statement-before-declaration
11126         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
11127         after all declarations.  Reported by Matthew Woehlke in
11128         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
11129
11130 2009-03-18  Eric Blake  <ebb9@byu.net>
11131
11132         build-aux/compile: sync from automake
11133         * build-aux/compile: New file, from automake.
11134         * config/srclist.txt: Mention build-aux/compile.
11135
11136 2009-03-17  Bruno Haible  <bruno@clisp.org>
11137
11138         * lib/git-merge-changelog.c: Fix typo in comment.
11139         Reported by Reuben Thomas <rrt@sc3d.org>.
11140
11141 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
11142
11143         * m4/regex.m4: update and improve help for
11144         --without-included-regex.
11145
11146 2009-03-17  Simon Josefsson  <simon@josefsson.org>
11147
11148         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
11149         failure on missing include files.
11150
11151 2009-03-17  Eric Blake  <ebb9@byu.net>
11152
11153         doc: mention more functions added in cygwin 1.7.0
11154         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
11155         addition.
11156         * doc/posix-functions/fwscanf.texi: Likewise.
11157         * doc/posix-functions/swprintf.texi: Likewise.
11158         * doc/posix-functions/swscanf.texi: Likewise.
11159         * doc/posix-functions/vfwprintf.texi: Likewise.
11160         * doc/posix-functions/vfwscanf.texi: Likewise.
11161         * doc/posix-functions/vswprintf.texi: Likewise.
11162         * doc/posix-functions/vswscanf.texi: Likewise.
11163         * doc/posix-functions/vwprintf.texi: Likewise.
11164         * doc/posix-functions/vwscanf.texi: Likewise.
11165         * doc/posix-functions/wcscasecmp.texi: Likewise.
11166         * doc/posix-functions/wcsdup.texi: Likewise.
11167         * doc/posix-functions/wcsftime.texi: Likewise.
11168         * doc/posix-functions/wcsncasecmp.texi: Likewise.
11169         * doc/posix-functions/wprintf.texi: Likewise.
11170         * doc/posix-functions/wscanf.texi: Likewise.
11171         * doc/glibc-functions/gethostbyname2.texi: Likewise.
11172
11173 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11174
11175         maint.mk: really add $(AM_MAKEFLAGS)
11176         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
11177         was inadvertently omitted in the last commit.
11178         Spotted by Bruno Haible.
11179
11180         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
11181         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
11182         $(AM_MAKEFLAGS)' rather than plain `make'.
11183
11184         gnulib-tool: execute $MAKE not make
11185         * gnulib-tool: Default $MAKE to 'make'.
11186         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
11187         than make.  Initialize $MAKE in the do-autobuild script.
11188
11189         gnulib-tool: use $MAKE not make in generated files
11190         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
11191         make, in generated files.  Initialize $MAKE in the do-autobuild
11192         script.
11193
11194         * top/GNUmakefile (_have-git-version-gen): Fix typo.
11195
11196         GNUmakefile: disable parallelism only for multiple, recursive targets
11197         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
11198         additions in the Makefile.
11199         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
11200         by Automake.
11201         (.NOTPARALLEL): Only disable parallel builds if multiple targets
11202         are listed on the command line and at least one of them is
11203         listed in $(ALL_RECURSIVE_TARGETS).
11204
11205 2009-03-14  Bruno Haible  <bruno@clisp.org>
11206
11207         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
11208         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
11209         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
11210         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
11211         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
11212         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
11213         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
11214         unistr/u8-uctomb.
11215         * modules/unistr/u8-strchr (Depends-on): Likewise.
11216         * modules/unistr/u8-strrchr (Depends-on): Likewise.
11217         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
11218         unistr/u16-uctomb.
11219         * modules/unistr/u16-strchr (Depends-on): Likewise.
11220         * modules/unistr/u16-strrchr (Depends-on): Likewise.
11221
11222 2009-03-12  Bruno Haible  <bruno@clisp.org>
11223
11224         Work around select() bug on Interix 3.5.
11225         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
11226         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
11227         * m4/select.m4: New file.
11228         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
11229         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
11230         * modules/select (Files): Add m4/select.m4.
11231         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
11232         * modules/nanosleep (Depends-on): Add select.
11233         * modules/poll (Depends-on): Likewise.
11234         * doc/posix-functions/select.texi: Mention the Interix bug.
11235         Reported by Markus Duft <mduft@gentoo.org>.
11236
11237         * lib/select.c: Renamed from lib/winsock-select.c.
11238         * modules/select (Files): Add lib/select.c, remove
11239         lib/winsock-select.c.
11240         (configure.ac): Update.
11241
11242 2009-03-12  Jim Meyering  <meyering@redhat.com>
11243
11244         avoid gcc warnings about unused macro definitions
11245         * lib/readtokens.c (STREQ): Remove unused definition.
11246         * lib/xmalloc.c (SIZE_MAX): Likewise.
11247         * lib/openat-die.c (N_): Likewise.
11248         * lib/mountlist.c (SIZE_MAX): Remove definition.
11249         Instead, include <stdint.h>.
11250         * lib/readutmp.c: Likewise.
11251         * modules/readutmp (Depends-on): Add stdint.
11252         * modules/mountlist (Depends-on): Add stdint.
11253         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
11254
11255 2009-03-10  Bruno Haible  <bruno@clisp.org>
11256
11257         Tests for module 'mbmemcasecoll'.
11258         * modules/mbmemcasecoll-tests: New file.
11259         * tests/test-mbmemcasecoll1.sh: New file.
11260         * tests/test-mbmemcasecoll2.sh: New file.
11261         * tests/test-mbmemcasecoll3.sh: New file.
11262         * tests/test-mbmemcasecoll.c: New file.
11263
11264         New module 'mbmemcasecoll'.
11265         * lib/mbmemcasecoll.h: New file.
11266         * lib/mbmemcasecoll.c: New file.
11267         * modules/mbmemcasecoll: New file.
11268
11269         * tests/test-mbmemcasecmp.h: New file, extracted from
11270         tests/test-mbmemcasecmp.c.
11271         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
11272         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
11273         (main): Update.
11274         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
11275
11276 2009-03-09  Bruno Haible  <bruno@clisp.org>
11277
11278         Tests for module 'mbmemcasecmp'.
11279         * modules/mbmemcasecmp-tests: New file.
11280         * tests/test-mbmemcasecmp1.sh: New file.
11281         * tests/test-mbmemcasecmp2.sh: New file.
11282         * tests/test-mbmemcasecmp3.sh: New file.
11283         * tests/test-mbmemcasecmp.c: New file.
11284
11285         New module 'mbmemcasecmp'.
11286         * lib/mbmemcasecmp.h: New file.
11287         * lib/mbmemcasecmp.c: New file.
11288         * modules/mbmemcasecmp: New file.
11289
11290 2009-03-09  Bruno Haible  <bruno@clisp.org>
11291
11292         Tests for module 'unicase/ulc-casecoll'.
11293         * modules/unicase/ulc-casecoll-tests: New file.
11294         * tests/unicase/test-ulc-casecoll1.sh: New file.
11295         * tests/unicase/test-ulc-casecoll2.sh: New file.
11296         * tests/unicase/test-ulc-casecoll.c: New file.
11297
11298         New module 'unicase/ulc-casecoll'.
11299         * lib/unicase.h (ulc_casecoll): New declaration.
11300         * lib/unicase/ulc-casecoll.c: New file.
11301         * modules/unicase/ulc-casecoll: New file.
11302
11303         New module 'unicase/ulc-casexfrm'.
11304         * lib/unicase.h (ulc_casexfrm): New declaration.
11305         * lib/unicase/ulc-casexfrm.c: New file.
11306         * modules/unicase/ulc-casexfrm: New file.
11307
11308 2009-03-09  Bruno Haible  <bruno@clisp.org>
11309
11310         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
11311         invocations.
11312
11313         * m4/mbscasecmp.m4: Remove file.
11314         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
11315         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
11316
11317         * m4/mbscasestr.m4: Remove file.
11318         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
11319         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
11320
11321         * m4/mbschr.m4: Remove file.
11322         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
11323         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
11324
11325         * m4/mbscspn.m4: Remove file.
11326         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
11327         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
11328
11329         * m4/mbslen.m4: Remove file.
11330         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
11331         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
11332
11333         * m4/mbsncasecmp.m4: Remove file.
11334         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
11335         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
11336
11337         * m4/mbsnlen.m4: Remove file.
11338         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
11339         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
11340
11341         * m4/mbspbrk.m4: Remove file.
11342         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
11343         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
11344
11345         * m4/mbspcasecmp.m4: Remove file.
11346         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
11347         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
11348
11349         * m4/mbsrchr.m4: Remove file.
11350         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
11351         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
11352
11353         * m4/mbssep.m4: Remove file.
11354         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
11355         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
11356
11357         * m4/mbsspn.m4: Remove file.
11358         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
11359         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
11360
11361         * m4/mbsstr.m4: Remove file.
11362         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
11363         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
11364
11365         * m4/mbstok_r.m4: Remove file.
11366         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
11367         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
11368
11369         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
11370
11371         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
11372         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
11373
11374         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
11375
11376 2009-03-08  Bruno Haible  <bruno@clisp.org>
11377
11378         Tests for module 'unicase/ulc-casecmp'.
11379         * modules/unicase/ulc-casecmp-tests: New file.
11380         * tests/unicase/test-ulc-casecmp1.sh: New file.
11381         * tests/unicase/test-ulc-casecmp2.sh: New file.
11382         * tests/unicase/test-ulc-casecmp.c: New file.
11383
11384         New module 'unicase/ulc-casecmp'.
11385         * lib/unicase.h (ulc_casecmp): New declaration.
11386         * lib/unicase/ulc-casecmp.c: New file.
11387         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
11388         'const SRC_UNIT *'.
11389         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
11390         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
11391         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
11392         * modules/unicase/ulc-casecmp: New file.
11393
11394         Tests for module 'unicase/u32-is-cased'.
11395         * modules/unicase/u32-is-cased-tests: New file.
11396         * tests/unicase/test-u32-is-cased.c: New file.
11397
11398         Tests for module 'unicase/u16-is-cased'.
11399         * modules/unicase/u16-is-cased-tests: New file.
11400         * tests/unicase/test-u16-is-cased.c: New file.
11401
11402         Tests for module 'unicase/u8-is-cased'.
11403         * modules/unicase/u8-is-cased-tests: New file.
11404         * tests/unicase/test-u8-is-cased.c: New file.
11405         * tests/unicase/test-is-cased.h: New file.
11406
11407         New module 'unicase/u32-is-cased'.
11408         * lib/unicase/u32-is-cased.c: New file.
11409         * modules/unicase/u32-is-cased: New file.
11410
11411         New module 'unicase/u16-is-cased'.
11412         * lib/unicase/u16-is-cased.c: New file.
11413         * modules/unicase/u16-is-cased: New file.
11414
11415         New module 'unicase/u8-is-cased'.
11416         * lib/unicase/u8-is-cased.c: New file.
11417         * lib/unicase/u-is-cased.h: New file.
11418         * modules/unicase/u8-is-cased: New file.
11419
11420         Tests for module 'unicase/u32-is-casefolded'.
11421         * modules/unicase/u32-is-casefolded-tests: New file.
11422         * tests/unicase/test-u32-is-casefolded.c: New file.
11423
11424         Tests for module 'unicase/u16-is-casefolded'.
11425         * modules/unicase/u16-is-casefolded-tests: New file.
11426         * tests/unicase/test-u16-is-casefolded.c: New file.
11427
11428         Tests for module 'unicase/u8-is-casefolded'.
11429         * modules/unicase/u8-is-casefolded-tests: New file.
11430         * tests/unicase/test-u8-is-casefolded.c: New file.
11431         * tests/unicase/test-is-casefolded.h: New file.
11432
11433         New module 'unicase/u32-is-casefolded'.
11434         * lib/unicase/u32-is-casefolded.c: New file.
11435         * modules/unicase/u32-is-casefolded: New file.
11436
11437         New module 'unicase/u16-is-casefolded'.
11438         * lib/unicase/u16-is-casefolded.c: New file.
11439         * modules/unicase/u16-is-casefolded: New file.
11440
11441         New module 'unicase/u8-is-casefolded'.
11442         * lib/unicase/u8-is-casefolded.c: New file.
11443         * modules/unicase/u8-is-casefolded: New file.
11444
11445         Tests for module 'unicase/u32-is-titlecase'.
11446         * modules/unicase/u32-is-titlecase-tests: New file.
11447         * tests/unicase/test-u32-is-titlecase.c: New file.
11448
11449         Tests for module 'unicase/u16-is-titlecase'.
11450         * modules/unicase/u16-is-titlecase-tests: New file.
11451         * tests/unicase/test-u16-is-titlecase.c: New file.
11452
11453         Tests for module 'unicase/u8-is-titlecase'.
11454         * modules/unicase/u8-is-titlecase-tests: New file.
11455         * tests/unicase/test-u8-is-titlecase.c: New file.
11456         * tests/unicase/test-is-titlecase.h: New file.
11457
11458         New module 'unicase/u32-is-titlecase'.
11459         * lib/unicase/u32-is-titlecase.c: New file.
11460         * modules/unicase/u32-is-titlecase: New file.
11461
11462         New module 'unicase/u16-is-titlecase'.
11463         * lib/unicase/u16-is-titlecase.c: New file.
11464         * modules/unicase/u16-is-titlecase: New file.
11465
11466         New module 'unicase/u8-is-titlecase'.
11467         * lib/unicase/u8-is-titlecase.c: New file.
11468         * modules/unicase/u8-is-titlecase: New file.
11469
11470         Tests for module 'unicase/u32-is-lowercase'.
11471         * modules/unicase/u32-is-lowercase-tests: New file.
11472         * tests/unicase/test-u32-is-lowercase.c: New file.
11473
11474         Tests for module 'unicase/u16-is-lowercase'.
11475         * modules/unicase/u16-is-lowercase-tests: New file.
11476         * tests/unicase/test-u16-is-lowercase.c: New file.
11477
11478         Tests for module 'unicase/u8-is-lowercase'.
11479         * modules/unicase/u8-is-lowercase-tests: New file.
11480         * tests/unicase/test-u8-is-lowercase.c: New file.
11481         * tests/unicase/test-is-lowercase.h: New file.
11482
11483         New module 'unicase/u32-is-lowercase'.
11484         * lib/unicase/u32-is-lowercase.c: New file.
11485         * modules/unicase/u32-is-lowercase: New file.
11486
11487         New module 'unicase/u16-is-lowercase'.
11488         * lib/unicase/u16-is-lowercase.c: New file.
11489         * modules/unicase/u16-is-lowercase: New file.
11490
11491         New module 'unicase/u8-is-lowercase'.
11492         * lib/unicase/u8-is-lowercase.c: New file.
11493         * modules/unicase/u8-is-lowercase: New file.
11494
11495         Tests for module 'unicase/u32-is-uppercase'.
11496         * modules/unicase/u32-is-uppercase-tests: New file.
11497         * tests/unicase/test-u32-is-uppercase.c: New file.
11498
11499         Tests for module 'unicase/u16-is-uppercase'.
11500         * modules/unicase/u16-is-uppercase-tests: New file.
11501         * tests/unicase/test-u16-is-uppercase.c: New file.
11502
11503         Tests for module 'unicase/u8-is-uppercase'.
11504         * modules/unicase/u8-is-uppercase-tests: New file.
11505         * tests/unicase/test-u8-is-uppercase.c: New file.
11506         * tests/unicase/test-is-uppercase.h: New file.
11507
11508         New module 'unicase/u32-is-uppercase'.
11509         * lib/unicase/u32-is-uppercase.c: New file.
11510         * modules/unicase/u32-is-uppercase: New file.
11511
11512         New module 'unicase/u16-is-uppercase'.
11513         * lib/unicase/u16-is-uppercase.c: New file.
11514         * modules/unicase/u16-is-uppercase: New file.
11515
11516         New module 'unicase/u8-is-uppercase'.
11517         * lib/unicase/u8-is-uppercase.c: New file.
11518         * modules/unicase/u8-is-uppercase: New file.
11519
11520         New module 'unicase/u32-is-invariant'.
11521         * lib/unicase/u32-is-invariant.c: New file.
11522         * modules/unicase/u32-is-invariant: New file.
11523
11524         New module 'unicase/u16-is-invariant'.
11525         * lib/unicase/u16-is-invariant.c: New file.
11526         * modules/unicase/u16-is-invariant: New file.
11527
11528         New module 'unicase/u8-is-invariant'.
11529         * lib/unicase/u8-is-invariant.c: New file.
11530         * lib/unicase/invariant.h: New file.
11531         * lib/unicase/u-is-invariant.h: New file.
11532         * modules/unicase/u8-is-invariant: New file.
11533
11534         Tests for module 'unicase/u32-casecoll'.
11535         * modules/unicase/u32-casecoll-tests: New file.
11536         * tests/unicase/test-u32-casecoll.c: New file.
11537
11538         Tests for module 'unicase/u16-casecoll'.
11539         * modules/unicase/u16-casecoll-tests: New file.
11540         * tests/unicase/test-u16-casecoll.c: New file.
11541
11542         Tests for module 'unicase/u8-casecoll'.
11543         * modules/unicase/u8-casecoll-tests: New file.
11544         * tests/unicase/test-u8-casecoll.c: New file.
11545
11546         New module 'unicase/u32-casecoll'.
11547         * lib/unicase/u32-casecoll.c: New file.
11548         * modules/unicase/u32-casecoll: New file.
11549
11550         New module 'unicase/u16-casecoll'.
11551         * lib/unicase/u16-casecoll.c: New file.
11552         * modules/unicase/u16-casecoll: New file.
11553
11554         New module 'unicase/u8-casecoll'.
11555         * lib/unicase/u8-casecoll.c: New file.
11556         * lib/unicase/u-casecoll.h: New file.
11557         * modules/unicase/u8-casecoll: New file.
11558
11559         New module 'unicase/u32-casexfrm'.
11560         * lib/unicase/u32-casexfrm.c: New file.
11561         * modules/unicase/u32-casexfrm: New file.
11562
11563         New module 'unicase/u16-casexfrm'.
11564         * lib/unicase/u16-casexfrm.c: New file.
11565         * modules/unicase/u16-casexfrm: New file.
11566
11567         New module 'unicase/u8-casexfrm'.
11568         * lib/unicase/u8-casexfrm.c: New file.
11569         * lib/unicase/u-casexfrm.h: New file.
11570         * modules/unicase/u8-casexfrm: New file.
11571
11572         Tests for module 'unicase/u32-casecmp'.
11573         * modules/unicase/u32-casecmp-tests: New file.
11574         * tests/unicase/test-u32-casecmp.c: New file.
11575
11576         Tests for module 'unicase/u16-casecmp'.
11577         * modules/unicase/u16-casecmp-tests: New file.
11578         * tests/unicase/test-u16-casecmp.c: New file.
11579
11580         Tests for module 'unicase/u8-casecmp'.
11581         * modules/unicase/u8-casecmp-tests: New file.
11582         * tests/unicase/test-u8-casecmp.c: New file.
11583         * tests/unicase/test-casecmp.h: New file.
11584
11585         New module 'unicase/u32-casecmp'.
11586         * lib/unicase/u32-casecmp.c: New file.
11587         * modules/unicase/u32-casecmp: New file.
11588
11589         New module 'unicase/u16-casecmp'.
11590         * lib/unicase/u16-casecmp.c: New file.
11591         * modules/unicase/u16-casecmp: New file.
11592
11593         New module 'unicase/u8-casecmp'.
11594         * lib/unicase/u8-casecmp.c: New file.
11595         * lib/unicase/u-casecmp.h: New file.
11596         * modules/unicase/u8-casecmp: New file.
11597
11598         Tests for module 'unicase/u32-casefold'.
11599         * modules/unicase/u32-casefold-tests: New file.
11600         * tests/unicase/test-u32-casefold.c: New file.
11601
11602         Tests for module 'unicase/u16-casefold'.
11603         * modules/unicase/u16-casefold-tests: New file.
11604         * tests/unicase/test-u16-casefold.c: New file.
11605
11606         Tests for module 'unicase/u8-casefold'.
11607         * modules/unicase/u8-casefold-tests: New file.
11608         * tests/unicase/test-u8-casefold.c: New file.
11609
11610         New module 'unicase/u32-casefold'.
11611         * lib/unicase/u32-casefold.c: New file.
11612         * modules/unicase/u32-casefold: New file.
11613
11614         New module 'unicase/u16-casefold'.
11615         * lib/unicase/u16-casefold.c: New file.
11616         * modules/unicase/u16-casefold: New file.
11617
11618         New module 'unicase/u8-casefold'.
11619         * lib/unicase/u8-casefold.c: New file.
11620         * lib/unicase/u-casefold.h: New file.
11621         * modules/unicase/u8-casefold: New file.
11622
11623         New module 'unicase/tocasefold'.
11624         * lib/unicase/casefold.h: New file.
11625         * lib/unicase/tocasefold.c: New file.
11626         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
11627         * modules/unicase/tocasefold: New file.
11628
11629         Tests for module 'unicase/u32-totitle'.
11630         * modules/unicase/u32-totitle-tests: New file.
11631         * tests/unicase/test-u32-totitle.c: New file.
11632
11633         Tests for module 'unicase/u16-totitle'.
11634         * modules/unicase/u16-totitle-tests: New file.
11635         * tests/unicase/test-u16-totitle.c: New file.
11636
11637         Tests for module 'unicase/u8-totitle'.
11638         * modules/unicase/u8-totitle-tests: New file.
11639         * tests/unicase/test-u8-totitle.c: New file.
11640
11641         New module 'unicase/u32-totitle'.
11642         * lib/unicase/u32-totitle.c: New file.
11643         * modules/unicase/u32-totitle: New file.
11644
11645         New module 'unicase/u16-totitle'.
11646         * lib/unicase/u16-totitle.c: New file.
11647         * modules/unicase/u16-totitle: New file.
11648
11649         New module 'unicase/u8-totitle'.
11650         * lib/unicase/u8-totitle.c: New file.
11651         * lib/unicase/u-totitle.h: New file.
11652         * modules/unicase/u8-totitle: New file.
11653
11654         Tests for module 'unicase/u32-tolower'.
11655         * modules/unicase/u32-tolower-tests: New file.
11656         * tests/unicase/test-u32-tolower.c: New file.
11657
11658         Tests for module 'unicase/u16-tolower'.
11659         * modules/unicase/u16-tolower-tests: New file.
11660         * tests/unicase/test-u16-tolower.c: New file.
11661
11662         Tests for module 'unicase/u8-tolower'.
11663         * modules/unicase/u8-tolower-tests: New file.
11664         * tests/unicase/test-u8-tolower.c: New file.
11665
11666         New module 'unicase/u32-tolower'.
11667         * lib/unicase/u32-tolower.c: New file.
11668         * modules/unicase/u32-tolower: New file.
11669
11670         New module 'unicase/u16-tolower'.
11671         * lib/unicase/u16-tolower.c: New file.
11672         * modules/unicase/u16-tolower: New file.
11673
11674         New module 'unicase/u8-tolower'.
11675         * lib/unicase/u8-tolower.c: New file.
11676         * modules/unicase/u8-tolower: New file.
11677
11678         Tests for module 'unicase/u32-toupper'.
11679         * modules/unicase/u32-toupper-tests: New file.
11680         * tests/unicase/test-u32-toupper.c: New file.
11681
11682         Tests for module 'unicase/u16-toupper'.
11683         * modules/unicase/u16-toupper-tests: New file.
11684         * tests/unicase/test-u16-toupper.c: New file.
11685
11686         Tests for module 'unicase/u8-toupper'.
11687         * modules/unicase/u8-toupper-tests: New file.
11688         * tests/unicase/test-u8-toupper.c: New file.
11689
11690         New module 'unicase/u32-toupper'.
11691         * lib/unicase/u32-toupper.c: New file.
11692         * modules/unicase/u32-toupper: New file.
11693
11694         New module 'unicase/u16-toupper'.
11695         * lib/unicase/u16-toupper.c: New file.
11696         * modules/unicase/u16-toupper: New file.
11697
11698         New module 'unicase/u8-toupper'.
11699         * lib/unicase/u8-toupper.c: New file.
11700         * modules/unicase/u8-toupper: New file.
11701
11702         New module 'unicase/u32-casemap'.
11703         * lib/unicase/u32-casemap.c: New file.
11704         * modules/unicase/u32-casemap: New file.
11705
11706         New module 'unicase/u16-casemap'.
11707         * lib/unicase/u16-casemap.c: New file.
11708         * modules/unicase/u16-casemap: New file.
11709
11710         New module 'unicase/u8-casemap'.
11711         * lib/unicase/unicasemap.h: New file.
11712         * lib/unicase/u8-casemap.c: New file.
11713         * lib/unicase/u-casemap.h: New file.
11714         * modules/unicase/u8-casemap: New file.
11715
11716         New module 'unicase/special-casing'.
11717         * lib/unicase/special-casing.h: New file.
11718         * lib/unicase/special-casing.c: New file.
11719         * lib/unicase/special-casing-table.gperf: New file, generated by
11720         gen-uni-tables.c.
11721         * modules/unicase/special-casing: New file.
11722
11723         Tests for module 'unicase/locale-language'.
11724         * modules/unicase/locale-language-tests: New file.
11725         * tests/unicase/test-locale-language.sh: New file.
11726         * tests/unicase/test-locale-language.c: New file.
11727
11728         New module 'unicase/locale-language'.
11729         * lib/unicase/locale-language.c: New file.
11730         * lib/unicase/locale-languages.gperf: New file.
11731         * modules/unicase/locale-language: New file.
11732
11733         Generate more tables for case conversion and case folding.
11734         * lib/gen-uni-tables.c (SCC_*): New enum items.
11735         (struct special_casing_rule): New type.
11736         (casing_rules, num_casing_rules, allocated_casing_rules): New
11737         variables.
11738         (add_casing_rule, fill_casing_rules): New functions.
11739         (struct casefold_rule): New type.
11740         (casefolding_rules, num_casefolding_rules,
11741         allocated_casefolding_rules): New variables.
11742         (fill_casefolding_rules): New function.
11743         (unicode_casefold): New variable.
11744         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
11745         sort_casing_rules, output_casing_rules): New functions.
11746         (main): Accept to more arguments: SpecialCasing.txt and
11747         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
11748         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
11749         Output mapping for casefolding.
11750
11751         * lib/unicase.h: Include stdbool.h, uninorm.h.
11752         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
11753         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
11754         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
11755         arguments.
11756         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
11757         resultp arguments.
11758         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
11759         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
11760         resultp arguments.
11761         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
11762         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
11763         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
11764         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
11765         declarations.
11766         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
11767
11768 2009-03-08  Bruno Haible  <bruno@clisp.org>
11769
11770         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11771         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
11772         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
11773         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11774
11775 2009-03-07  Bruno Haible  <bruno@clisp.org>
11776
11777         Adjust u*_normcmp, u*_normcoll API.
11778         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11779         u16_normcoll, u32_normcoll): Change failure conventions.
11780         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
11781         errno and return -1.
11782         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11783
11784 2009-03-07  Bruno Haible  <bruno@clisp.org>
11785
11786         Tests for module 'uninorm/u32-normcoll'.
11787         * modules/uninorm/u32-normcoll-tests: New file.
11788         * tests/uninorm/test-u32-normcoll.c: New file.
11789
11790         Tests for module 'uninorm/u16-normcoll'.
11791         * modules/uninorm/u16-normcoll-tests: New file.
11792         * tests/uninorm/test-u16-normcoll.c: New file.
11793
11794         Tests for module 'uninorm/u8-normcoll'.
11795         * modules/uninorm/u8-normcoll-tests: New file.
11796         * tests/uninorm/test-u8-normcoll.c: New file.
11797
11798 2009-03-07  Bruno Haible  <bruno@clisp.org>
11799
11800         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
11801         tests/uninorm/test-u32-normcmp.c.
11802         * tests/uninorm/test-u32-normcmp.c: Include it.
11803         (test_nonascii): New function, extracted from main. Add some more
11804         tests.
11805         (main): Invoke test_ascii and test_nonascii.
11806         * modules/uninorm/u32-normcmp-tests (Files): Add
11807         tests/uninorm/test-u32-normcmp.h.
11808         (Depends-on): Remove uninorm/u32-normcmp.
11809
11810         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
11811         tests/uninorm/test-u16-normcmp.c.
11812         * tests/uninorm/test-u16-normcmp.c: Include it.
11813         (test_nonascii): New function, extracted from main. Add some more
11814         tests.
11815         (main): Invoke test_ascii and test_nonascii.
11816         * modules/uninorm/u16-normcmp-tests (Files): Add
11817         tests/uninorm/test-u16-normcmp.h.
11818         (Depends-on): Remove uninorm/u16-normcmp.
11819
11820         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
11821         tests/uninorm/test-u8-normcmp.c.
11822         * tests/uninorm/test-u8-normcmp.c: Include it.
11823         (test_nonascii): New function, extracted from main. Add some more
11824         tests.
11825         (main): Invoke test_ascii and test_nonascii.
11826         * modules/uninorm/u8-normcmp-tests (Files): Add
11827         tests/uninorm/test-u8-normcmp.h.
11828         (Depends-on): Remove uninorm/u8-normcmp.
11829
11830 2009-03-07  Bruno Haible  <bruno@clisp.org>
11831
11832         New module 'uninorm/u32-normcoll'.
11833         * lib/uninorm/u32-normcoll.c: New file.
11834         * modules/uninorm/u32-normcoll: New file.
11835
11836         New module 'uninorm/u16-normcoll'.
11837         * lib/uninorm/u16-normcoll.c: New file.
11838         * modules/uninorm/u16-normcoll: New file.
11839
11840         New module 'uninorm/u8-normcoll'.
11841         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
11842         declarations.
11843         * lib/uninorm/u8-normcoll.c: New file.
11844         * lib/uninorm/u-normcoll.h: New file.
11845         * modules/uninorm/u8-normcoll: New file.
11846
11847         New module 'uninorm/u32-normxfrm'.
11848         * lib/uninorm/u32-normxfrm.c: New file.
11849         * modules/uninorm/u32-normxfrm: New file.
11850
11851         New module 'uninorm/u16-normxfrm'.
11852         * lib/uninorm/u16-normxfrm.c: New file.
11853         * modules/uninorm/u16-normxfrm: New file.
11854
11855         New module 'uninorm/u8-normxfrm'.
11856         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
11857         declarations.
11858         * lib/uninorm/u8-normxfrm.c: New file.
11859         * lib/uninorm/u-normxfrm.h: New file.
11860         * modules/uninorm/u8-normxfrm: New file.
11861
11862 2009-03-07  Bruno Haible  <bruno@clisp.org>
11863
11864         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
11865         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
11866         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
11867
11868 2009-03-07  Bruno Haible  <bruno@clisp.org>
11869
11870         New module 'memxfrm'.
11871         * lib/memxfrm.h: New file.
11872         * lib/memxfrm.c: New file.
11873         * modules/memxfrm: New file.
11874
11875 2009-03-07  Bruno Haible  <bruno@clisp.org>
11876
11877         New module 'memcmp2'.
11878         * lib/memcmp2.h: New file.
11879         * lib/memcmp2.c: New file.
11880         * modules/memcmp2: New file.
11881
11882 2009-03-07  Bruno Haible  <bruno@clisp.org>
11883
11884         Tests for module 'uninorm/decomposing-form'.
11885         * modules/uninorm/decomposing-form-tests: New file.
11886         * tests/uninorm/test-decomposing-form.c: New file.
11887
11888         New module 'uninorm/decomposing-form'.
11889         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
11890         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
11891         Add 'decomposing_variant' field.
11892         * lib/uninorm/decomposing-form.c: New file.
11893         * lib/uninorm/nfc.c (uninorm_nfc): Update.
11894         * lib/uninorm/nfd.c (uninorm_nfd): Update.
11895         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
11896         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
11897         * modules/uninorm/decomposing-form: New file.
11898         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
11899         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
11900
11901 2009-03-07  Bruno Haible  <bruno@clisp.org>
11902
11903         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
11904         strings.
11905
11906 2009-03-06  Bruno Haible  <bruno@clisp.org>
11907
11908         Tests for module 'uninorm/u32-normcmp'.
11909         * tests/uninorm/test-u32-normcmp.c: New file.
11910         * modules/uninorm/u32-normcmp-tests: New file.
11911
11912         Tests for module 'uninorm/u16-normcmp'.
11913         * tests/uninorm/test-u16-normcmp.c: New file.
11914         * modules/uninorm/u16-normcmp-tests: New file.
11915
11916         Tests for module 'uninorm/u8-normcmp'.
11917         * tests/uninorm/test-u8-normcmp.c: New file.
11918         * modules/uninorm/u8-normcmp-tests: New file.
11919
11920         New module 'uninorm/u32-normcmp'.
11921         * lib/uninorm/u32-normcmp.c: New file.
11922         * modules/uninorm/u32-normcmp: New file.
11923
11924         New module 'uninorm/u16-normcmp'.
11925         * lib/uninorm/u16-normcmp.c: New file.
11926         * modules/uninorm/u16-normcmp: New file.
11927
11928         New module 'uninorm/u8-normcmp'.
11929         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
11930         declarations.
11931         * lib/uninorm/u8-normcmp.c: New file.
11932         * lib/uninorm/u-normcmp.h: New file.
11933         * modules/uninorm/u8-normcmp: New file.
11934
11935 2009-03-06  Bruno Haible  <bruno@clisp.org>
11936
11937         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
11938         Reported by Eric Blake.
11939
11940 2009-03-06  Eric Blake  <ebb9@byu.net>
11941             Bruno Haible  <bruno@clisp.org>
11942
11943         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
11944         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
11945         condition.
11946         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
11947         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
11948         condition.
11949         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
11950
11951 2009-03-06  Eric Blake  <ebb9@byu.net>
11952
11953         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
11954         to avoid compiler warnings.
11955         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
11956
11957 2009-03-05  Bruno Haible  <bruno@clisp.org>
11958
11959         * tests/test-ftell.c (main): Disable test beyond end of file on
11960         FreeMiNT.
11961         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
11962
11963 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
11964
11965         * lib/filevercmp.c: Move hidden files up in ordering.
11966         * tests/test-filevercmp.c: Add tests for hidden files.
11967
11968 2009-03-04  Bruno Haible  <bruno@clisp.org>
11969
11970         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
11971         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
11972         AM_CFLAGS.
11973         Reported by Simon Josefsson.
11974
11975 2009-03-03  Bruno Haible  <bruno@clisp.org>
11976
11977         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
11978         Reported by Simon Josefsson.
11979
11980         * doc/ld-version-script.texi: Update node reference.
11981
11982 2009-03-03  Bruno Haible  <bruno@clisp.org>
11983
11984         * modules/visibility (License): Change to 'unlimited'.
11985         Suggested by Simon Josefsson.
11986
11987 2009-03-03  Jim Meyering  <meyering@redhat.com>
11988
11989         unlinkdir: cannot_unlink_dir may modify process state
11990         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
11991         it's neither thread-safe nor appropriate for use in a library.
11992
11993 2009-03-03  Eric Blake  <ebb9@byu.net>
11994
11995         test-closein: silence test under Darwin
11996         * tests/test-closein.sh: Ignore stderr from cat, since we don't
11997         care if it dies from EPIPE or EBADF.
11998
11999 2009-03-03  Bruno Haible  <bruno@clisp.org>
12000
12001         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
12002         earlier.
12003         * doc/visibility.texi: Fix @node and @section.
12004
12005 2009-03-03  Simon Josefsson  <simon@josefsson.org>
12006
12007         * doc/gnulib.texi: Link to sections for ld version script and
12008         visibility.
12009         * doc/visibility.texi: Add @node and @section.
12010         * modules/ld-version-script: New module.
12011         * m4/ld-version-script.m4: New file.
12012         * doc/ld-version-script.texi: New file.
12013
12014 2009-03-02  David Lutterkort  <lutter@redhat.com>
12015
12016         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
12017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12018
12019 2009-03-02  Bruno Haible  <bruno@clisp.org>
12020
12021         * doc/visibility.texi: Mention libtool's -export-symbols option.
12022
12023 2009-03-02  Jim Meyering  <meyering@redhat.com>
12024
12025         announce-gen: new option: --no-print-checksums
12026         * build-aux/announce-gen (usage): Describe it.
12027         (print_checksums): Print a newline here, not in the [*] footnote.
12028         (main): Honor it.
12029
12030 2009-03-01  Bruno Haible  <bruno@clisp.org>
12031
12032         Use socklen_t in the native Windows replacements prototypes.
12033         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
12034         instead of 'int'.
12035         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12036         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12037         * modules/getsockopt (Depends-on): Add socklen.
12038         * modules/setsockopt (Depends-on): Add socklen.
12039
12040 2009-03-01  Bruno Haible  <bruno@clisp.org>
12041
12042         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
12043         least 4.2.
12044
12045 2009-03-01  Eric Blake  <ebb9@byu.net>
12046             Bruno Haible  <bruno@clisp.org>
12047
12048         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
12049         error messages.
12050         * lib/wait-process.c (wait_subprocess): Omit error message about
12051         deadly signal sent to the child of termsigp != NULL.
12052
12053 2009-03-01  Eric Blake  <ebb9@byu.net>
12054
12055         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
12056
12057 2009-03-01  Bruno Haible  <bruno@clisp.org>
12058
12059         Avoid a gcc warning.
12060         * tests/test-sched.c (b): Make global.
12061         Reported by Eric Blake.
12062
12063 2009-01-19  Martin Lambers  <marlam@marlam.de>
12064
12065         Provide POSIX semantics for socket timeout options on W32.
12066         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
12067         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
12068         * modules/setsockopt: Depend on sys_time module for struct timeval.
12069         * modules/getsockopt: Depend on sys_time module for struct timeval.
12070
12071 2009-03-01  Simon Josefsson  <simon@josefsson.org>
12072
12073         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
12074         __USE_GNU, for consistency with netdb.in.h.
12075         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12076
12077 2009-03-01  Bruno Haible  <bruno@clisp.org>
12078
12079         More support for FreeMiNT.
12080         * lib/fseeko.c (rpl_fseeko): Complete last commit.
12081         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12082
12083 2009-03-01  Bruno Haible  <bruno@clisp.org>
12084
12085         More support for FreeMiNT.
12086         * lib/fpurge.c (fpurge): Correct last commit.
12087         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12088
12089 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12090
12091         Fix unportable awk script in vc-list-files.
12092         * build-aux/vc-list-files: In the replacement awk script, use
12093         substr with a second argument of 1, not zero.
12094         Report by Simon Josefsson.
12095
12096 2009-02-28  Bruno Haible  <bruno@clisp.org>
12097
12098         More support for FreeMiNT.
12099         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
12100         to FreeMiNT today.
12101         * lib/fwriting.c (fwriting): Likewise.
12102         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
12103
12104 2009-02-28  Bruno Haible  <bruno@clisp.org>
12105
12106         * tests/test-freadseek.c (main): Disable test beyond end of file on
12107         FreeMiNT.
12108         * tests/test-ftello.c (main): Likewise.
12109         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12110
12111 2009-02-28  Bruno Haible  <bruno@clisp.org>
12112
12113         Add tentative support for FreeMiNT.
12114         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
12115         * lib/fpurge.c (fpurge): Likewise.
12116         * lib/freadable.c (freadable): Likewise.
12117         * lib/freading.c (freading): Likewise.
12118         * lib/freadptr.c (freadptr): Likewise.
12119         * lib/freadseek.c (freadptrinc): Likewise.
12120         * lib/fseeko.c (rpl_fseeko): Likewise.
12121         * lib/fseterr.c (fseterr): Likewise.
12122         * lib/fwritable.c (fwritable): Likewise.
12123         * lib/fwriting.c (fwriting): Likewise.
12124         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
12125         Hourihane.
12126         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12127
12128 2009-02-28  Bruno Haible  <bruno@clisp.org>
12129
12130         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
12131         SIGCHLD.
12132         Reported by Jim Meyering.
12133
12134 2009-02-28  Bruno Haible  <bruno@clisp.org>
12135
12136         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
12137         Mention the results of these tests on various platforms.
12138         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
12139         order.
12140         * doc/posix-functions/printf.texi: Likewise.
12141         * doc/posix-functions/snprintf.texi: Likewise.
12142         * doc/posix-functions/sprintf.texi: Likewise.
12143         * doc/posix-functions/vfprintf.texi: Likewise.
12144         * doc/posix-functions/vprintf.texi: Likewise.
12145         * doc/posix-functions/vsnprintf.texi: Likewise.
12146         * doc/posix-functions/vsprintf.texi: Likewise.
12147         * doc/glibc-functions/obstack_printf.texi: Likewise.
12148         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12149
12150 2009-02-28  Bruno Haible  <bruno@clisp.org>
12151
12152         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
12153         Reported by Loïc Minier <lool@dooz.org>.
12154
12155 2009-02-27  Bruno Haible  <bruno@clisp.org>
12156
12157         * gnulib-tool (func_import): Make the sed expression used to create the
12158         sed script for updating the .gitignore file POSIX compliant.
12159         Reported by Eric Blake.
12160
12161 2009-02-27  Bruno Haible  <bruno@clisp.org>
12162
12163         * gnulib-tool (sed): Don't alias as "sed --posix".
12164         Reported by Eric Blake.
12165
12166 2009-02-27  Bruno Haible  <bruno@clisp.org>
12167
12168         Avoid test link errors.
12169         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
12170         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
12171         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
12172         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
12173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12174
12175 2009-02-27  Bruno Haible  <bruno@clisp.org>
12176
12177         Avoid spurious "(cached)" in configure output.
12178         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
12179         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
12180         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12181         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12182         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12183         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12184         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12185         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12186         Reported by Eric Blake.
12187
12188 2009-02-27  Eric Blake  <ebb9@byu.net>
12189
12190         printf: fix regression in previous patch
12191         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
12192
12193 2009-02-27  Bruno Haible  <bruno@clisp.org>
12194
12195         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
12196         value.
12197         * lib/stdint.in.h: Likewise.
12198         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
12199
12200 2009-02-27  Eric Blake  <ebb9@byu.net>
12201
12202         doc: mention more functions added in cygwin 1.7.0
12203         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
12204         addition.
12205         * doc/posix-functions/open_wmemstream.texi: Likewise.
12206         * doc/posix-functions/wcsnlen.texi: Likewise.
12207         * doc/posix-functions/wcsnrtombs.texi: Likewise.
12208         * doc/posix-functions/wcstod.texi: Likewise.
12209         * doc/posix-functions/wcstof.texi: Likewise.
12210         * doc/posix-functions/wcstoimax.texi: Likewise.
12211         * doc/posix-functions/wcstok.texi: Likewise.
12212         * doc/posix-functions/wcstoumax.texi: Likewise.
12213
12214         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
12215         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
12216         * doc/posix-functions/fprintf.texi: Update.
12217         * doc/posix-functions/printf.texi: Update.
12218         * doc/posix-functions/snprintf.texi: Update.
12219         * doc/posix-functions/sprintf.texi: Update.
12220         * doc/posix-functions/vfprintf.texi: Update.
12221         * doc/posix-functions/vprintf.texi: Update.
12222         * doc/posix-functions/vsnprintf.texi: Update.
12223         * doc/posix-functions/vsprintf.texi: Update.
12224         * doc/glibc-functions/obstack_printf.texi: Update.
12225         * doc/glibc-functions/obstack_vprintf.texi: Update.
12226
12227 2009-02-26  Eric Blake  <ebb9@byu.net>
12228
12229         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
12230         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
12231         compilation bug by using runtime conversion.
12232         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12233         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
12234         * modules/ceill-tests (Files): Use nan.h.
12235         * modules/floorl-tests (Files): Likewise.
12236         * modules/frexpl-tests (Files): Likewise.
12237         * modules/isnanl-tests (Files): Likewise.
12238         * modules/ldexpl-tests (Files): Likewise.
12239         * modules/roundl-tests (Files): Likewise.
12240         * modules/truncl-tests (Files): Likewise.
12241         * tests/test-ceill.c (main): Use a working NaN.
12242         * tests/test-floorl.c (main): Likewise.
12243         * tests/test-frexpl.c (main): Likewise.
12244         * tests/test-isnan.c (test_long_double): Likewise.
12245         * tests/test-isnanl.h (main): Likewise.
12246         * tests/test-ldexpl.h (main): Likewise.
12247         * tests/test-roundl.h (main): Likewise.
12248         * tests/test-truncl.h (main): Likewise.
12249         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
12250
12251 2009-02-26  Eric Blake  <ebb9@byu.net>
12252             Bruno Haible  <bruno@clisp.org>
12253
12254         Work around a *printf bug with %ls on Solaris.
12255         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
12256         precision is specified, sprintf stops converting the wide string
12257         argument when the number of bytes that have been produced by this
12258         conversion equals or exceeds the precision.
12259         * doc/posix-functions/fprintf.texi: Update.
12260         * doc/posix-functions/printf.texi: Update.
12261         * doc/posix-functions/snprintf.texi: Update.
12262         * doc/posix-functions/sprintf.texi: Update.
12263         * doc/posix-functions/vfprintf.texi: Update.
12264         * doc/posix-functions/vprintf.texi: Update.
12265         * doc/posix-functions/vsnprintf.texi: Update.
12266         * doc/posix-functions/vsprintf.texi: Update.
12267         * doc/glibc-functions/obstack_printf.texi: Update.
12268         * doc/glibc-functions/obstack_vprintf.texi: Update.
12269
12270 2009-02-26  Eric Blake  <ebb9@byu.net>
12271
12272         stdlib: favor compiler check of random.h
12273         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
12274         to avoid an ObjC random.h installed by Swarm.
12275
12276 2009-02-26  Bruno Haible  <bruno@clisp.org>
12277
12278         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
12279         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
12280         Reported by Gary V. Vaughan <gary@gnu.org>.
12281
12282 2009-02-26  Bruno Haible  <bruno@clisp.org>
12283
12284         Fix *printf behaviour regarding the %ls directive.
12285         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
12286         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
12287         NEED_PRINTF_DIRECTIVE_LS.
12288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
12289         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12290         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12291         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
12292         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
12293         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
12294         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
12295         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12296         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12297         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12298         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12299         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
12300         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12301         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12302         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12303         * doc/posix-functions/fprintf.texi: Update.
12304         * doc/posix-functions/printf.texi: Update.
12305         * doc/posix-functions/snprintf.texi: Update.
12306         * doc/posix-functions/sprintf.texi: Update.
12307         * doc/posix-functions/vfprintf.texi: Update.
12308         * doc/posix-functions/vprintf.texi: Update.
12309         * doc/posix-functions/vsnprintf.texi: Update.
12310         * doc/posix-functions/vsprintf.texi: Update.
12311         * doc/glibc-functions/obstack_printf.texi: Update.
12312         * doc/glibc-functions/obstack_vprintf.texi: Update.
12313         Reported by Eric Blake.
12314
12315 2009-02-25  Bruno Haible  <bruno@clisp.org>
12316
12317         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
12318         with known value.
12319         Reported by Gary V. Vaughan <gary@gnu.org>.
12320
12321 2009-02-25  Bruno Haible  <bruno@clisp.org>
12322
12323         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
12324         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
12325         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
12326         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
12327         Reported by Gary V. Vaughan <gary@gnu.org>.
12328
12329 2009-02-25  Bruno Haible  <bruno@clisp.org>
12330
12331         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
12332         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
12333         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
12334         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
12335         Reported by Gary V. Vaughan <gary@gnu.org>.
12336
12337 2009-02-25  Eric Blake  <ebb9@byu.net>
12338
12339         tests: skip fseek/ftell tests if ungetc is broken
12340         * m4/ungetc.m4: New file.
12341         * modules/fseek-tests: Split test, so ungetc dependency is
12342         separate from rest of test.
12343         * modules/fseeko-tests: Likewise.
12344         * modules/ftell-tests: Likewise.
12345         * modules/ftello-tests: Likewise.
12346         * tests/test-fseek.c (main): Isolate ungetc dependency.
12347         * tests/test-fseeko.c (main): Likewise.
12348         * tests/test-ftell.c (main): Likewise.
12349         * tests/test-ftello.c (main): Likewise.
12350         * tests/test-fseek2.sh: New file.
12351         * tests/test-fseeko2.sh: Likewise.
12352         * tests/test-ftell2.sh: Likewise.
12353         * tests/test-ftello2.sh: Likewise.
12354
12355 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
12356
12357         test-getaddrinfo: fix usage of skip return code 77
12358         * tests/test-gettaddrinfo.c: Return skip code 77 only
12359         for first occurance of skip (4x77 is not 77)
12360
12361 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
12362
12363         strtod: avoid C99 decl-after-statement
12364         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
12365
12366 2009-02-24  Eric Blake  <ebb9@byu.net>
12367
12368         strtod: detect HP-UX 11.31 bug
12369         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
12370         Reported by Gary V. Vaughan.
12371
12372 2009-02-23  Bruno Haible  <bruno@clisp.org>
12373
12374         Fix invalid read past end of memory block.
12375         * lib/vasnprintf.c (DCHAR_SET): Define.
12376         (local_wcslen): Define only when needed.
12377         (local_strnlen, local_wcsnlen): New functions.
12378         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
12379         directives that involve a conversion ourselves.
12380         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
12381         wcsnlen, mbrtowc, wcrtomb.
12382         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
12383         * tests/test-vasprintf-posix.c (test_function): Likewise.
12384         * tests/test-snprintf-posix.h (test_function): Likewise.
12385         * tests/test-sprintf-posix.h (test_function): Likewise.
12386         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12387
12388 2009-02-22  Bruno Haible  <bruno@clisp.org>
12389
12390         Implement new clarified decomposition of Hangul syllables.
12391         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
12392         of type LTV, return only a pairwise decomposition.
12393         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
12394         Likewise.
12395         * tests/uninorm/test-decomposition.c (main): Updated expected result.
12396         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
12397         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
12398
12399 2009-02-22  Bruno Haible  <bruno@clisp.org>
12400
12401         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
12402         zero-length results and shrink excess allocated memory.
12403         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
12404         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
12405         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
12406         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
12407         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
12408         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
12409         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
12410         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
12411         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
12412         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
12413         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
12414         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
12415
12416 2009-02-21  Bruno Haible  <bruno@clisp.org>
12417
12418         * doc/gnulib.texi: Include safe-alloc.texi earlier.
12419         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
12420         spaces after a period. Put a space between a macro name and its
12421         argument list. Trivial rewordings.
12422         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
12423         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
12424         (main): Return 0 explicitly.
12425
12426 2009-02-21  Bruno Haible  <bruno@clisp.org>
12427
12428         Tests for module 'uninorm/filter'.
12429         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
12430         * modules/uninorm/filter-tests: New file.
12431
12432         New module 'uninorm/filter'.
12433         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
12434         uninorm_filter_flush, uninorm_filter_free): New declarations.
12435         * lib/uninorm/uninorm-filter.c: New file.
12436         * modules/uninorm/filter: New file.
12437
12438 2009-02-21  Bruno Haible  <bruno@clisp.org>
12439
12440         Tests for module 'uninorm/nfkc'.
12441         * tests/uninorm/test-nfkc.c: New file.
12442         * tests/uninorm/test-u8-nfkc.c: New file.
12443         * tests/uninorm/test-u16-nfkc.c: New file.
12444         * tests/uninorm/test-u32-nfkc.c: New file.
12445         * tests/uninorm/test-u32-nfkc-big.sh: New file.
12446         * tests/uninorm/test-u32-nfkc-big.c: New file.
12447         * modules/uninorm/nfkc-tests: New file.
12448
12449         New module 'uninorm/nfkc'.
12450         * lib/uninorm/nfkc.c: New file.
12451         * modules/uninorm/nfkc: New file.
12452
12453         Tests for module 'uninorm/nfkd'.
12454         * tests/uninorm/test-nfkd.c: New file.
12455         * tests/uninorm/test-u8-nfkd.c: New file.
12456         * tests/uninorm/test-u16-nfkd.c: New file.
12457         * tests/uninorm/test-u32-nfkd.c: New file.
12458         * tests/uninorm/test-u32-nfkd-big.sh: New file.
12459         * tests/uninorm/test-u32-nfkd-big.c: New file.
12460         * modules/uninorm/nfkd-tests: New file.
12461
12462         New module 'uninorm/nfkd'.
12463         * lib/uninorm/nfkd.c: New file.
12464         * modules/uninorm/nfkd: New file.
12465
12466         Tests for module 'uninorm/nfc'.
12467         * tests/uninorm/test-nfc.c: New file.
12468         * tests/uninorm/test-u8-nfc.c: New file.
12469         * tests/uninorm/test-u16-nfc.c: New file.
12470         * tests/uninorm/test-u32-nfc.c: New file.
12471         * tests/uninorm/test-u32-nfc-big.sh: New file.
12472         * tests/uninorm/test-u32-nfc-big.c: New file.
12473         * modules/uninorm/nfc-tests: New file.
12474
12475         New module 'uninorm/nfc'.
12476         * lib/uninorm/nfc.c: New file.
12477         * modules/uninorm/nfc: New file.
12478
12479         Tests for module 'uninorm/nfd'.
12480         * tests/uninorm/test-nfd.c: New file.
12481         * tests/uninorm/test-u8-nfd.c: New file.
12482         * tests/uninorm/test-u16-nfd.c: New file.
12483         * tests/uninorm/test-u32-nfd.c: New file.
12484         * tests/uninorm/test-u32-nfd-big.sh: New file.
12485         * tests/uninorm/test-u32-nfd-big.c: New file.
12486         * tests/uninorm/test-u32-normalize-big.h: New file.
12487         * tests/uninorm/test-u32-normalize-big.c: New file.
12488         * tests/uninorm/NormalizationTest.txt: New file, created from
12489         Unicode 5.1.0 NormalizationTest.txt.
12490         * modules/uninorm/nfd-tests: New file.
12491
12492         New module 'uninorm/nfd'.
12493         * lib/uninorm/nfd.c: New file.
12494         * modules/uninorm/nfd: New file.
12495
12496         New module 'uninorm/u32-normalize'.
12497         * lib/uninorm/u32-normalize.c: New file.
12498         * modules/uninorm/u32-normalize: New file.
12499
12500         New module 'uninorm/u16-normalize'.
12501         * lib/uninorm/u16-normalize.c: New file.
12502         * modules/uninorm/u16-normalize: New file.
12503
12504         New module 'uninorm/u8-normalize'.
12505         * lib/uninorm/u8-normalize.c: New file.
12506         * lib/uninorm/normalize-internal.h: New file.
12507         * lib/uninorm/u-normalize-internal.h: New file.
12508         * modules/uninorm/u8-normalize: New file.
12509
12510         New module 'uninorm/decompose-internal'.
12511         * lib/uninorm/decompose-internal.c: New file.
12512         * modules/uninorm/decompose-internal: New file.
12513
12514         Tests for module 'uninorm/composition'.
12515         * tests/uninorm/test-composition.c: New file.
12516         * modules/uninorm/composition-tests: New file.
12517
12518         New module 'uninorm/composition'.
12519         * lib/uninorm/composition.c: New file.
12520         * lib/uninorm/composition-table.gperf: New file, generated by
12521         gen-uni-tables.
12522         * modules/uninorm/composition: New file.
12523
12524         Tests for module 'uninorm/compat-decomposition'.
12525         * tests/uninorm/test-compat-decomposition.c: New file.
12526         * modules/uninorm/compat-decomposition-tests: New file.
12527
12528         New module 'uninorm/compat-decomposition'.
12529         * lib/uninorm/decompose-internal.h: New file.
12530         * lib/uninorm/compat-decomposition.c: New file.
12531         * modules/uninorm/compat-decomposition: New file.
12532
12533         Tests for module 'uninorm/canonical-decomposition'.
12534         * tests/uninorm/test-canonical-decomposition.c: New file.
12535         * modules/uninorm/canonical-decomposition-tests: New file.
12536
12537         New module 'uninorm/canonical-decomposition'.
12538         * lib/uninorm/canonical-decomposition.c: New file.
12539         * modules/uninorm/canonical-decomposition: New file.
12540
12541         Tests for module 'uninorm/decomposition'.
12542         * tests/uninorm/test-decomposition.c: New file.
12543         * modules/uninorm/decomposition-tests: New file.
12544
12545         New module 'uninorm/decomposition'.
12546         * lib/uninorm/decomposition.c: New file.
12547         * modules/uninorm/decomposition: New file.
12548
12549         New module 'uninorm/decomposition-table'.
12550         * lib/uninorm/decomposition-table.h: New file.
12551         * lib/uninorm/decomposition-table.c: New file.
12552         * lib/uninorm/decomposition-table1.h: New file, generated by
12553         gen-uni-tables.
12554         * lib/uninorm/decomposition-table2.h: New file, generated by
12555         gen-uni-tables.
12556         * modules/uninorm/decomposition-table: New file.
12557
12558         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
12559         (UC_DECOMP_*): New enumeration items.
12560         (get_decomposition): New function.
12561         (struct decomp_table): New type.
12562         (output_decomposition, output_decomposition_tables): New functions.
12563         (unicode_composition_exclusions): New variable.
12564         (fill_composition_exclusions, debug_output_composition_tables): New
12565         functions.
12566         (main): Accept one more argument. Invoke fill_composition_exclusions.
12567         Output decomposition and composition tables.
12568
12569         New module 'uninorm/base'.
12570         * lib/uninorm.h: New file.
12571         * lib/unictype.h: Update comment.
12572         * modules/uninorm/base: New file.
12573
12574 2009-02-21  David Lutterkort  <lutter@redhat.com>
12575
12576         Tests for module 'safe-alloc'.
12577         * tests/test-safe-alloc.c: New file.
12578         * modules/safe-alloc-tests: New file.
12579
12580         New module 'safe-alloc'.
12581         * lib/safe-alloc.h: New file.
12582         * lib/safe-alloc.c: New file.
12583         * m4/safe-alloc.m4: New file.
12584         * modules/safe-alloc: New file.
12585         * doc/safe-alloc.texi: New file.
12586         * doc/gnulib.texi: Include it.
12587         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12588         safe-alloc.
12589
12590 2009-02-18  Bruno Haible  <bruno@clisp.org>
12591
12592         Fix link error on non-glibc systems.
12593         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
12594         variable.
12595         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12596
12597 2009-02-18  Jim Meyering  <meyering@redhat.com>
12598
12599         fts: avoid used-uninitialized error due to recent change
12600         * lib/fts.c (fts_read): Guard uses of the new member,
12601         parent->fts_n_dirs_remaining, since it's not relevant for
12602         the parent of a directory specified on the command-line.
12603
12604 2009-02-17  James Youngman  <jay@gnu.org>
12605             Bruno Haible  <bruno@clisp.org>
12606
12607         * m4/include_next.m4: Reformulate comment.
12608
12609 2009-02-16  Jim Meyering  <meyering@redhat.com>
12610
12611         fts: add #if guards so that the fts_lgpl module still builds
12612         * lib/fts.c: Guard just-added hash-table-using parts with
12613         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
12614         Reported by Simon Josefsson.
12615
12616 2009-02-15  Bruno Haible  <bruno@clisp.org>
12617
12618         * modules/array-mergesort-tests: New file.
12619         * tests/test-array-mergesort.c: New file.
12620
12621         New module 'array-mergesort'.
12622         * modules/array-mergesort: New file.
12623         * lib/array-mergesort.h: New file.
12624
12625 2009-02-15  Bruno Haible  <bruno@clisp.org>
12626
12627         Fix 2009-02-07 commit.
12628         * lib/gen-uni-tables.c (output_predicate, output_category,
12629         output_combclass, output_bidi_category, output_decimal_digit,
12630         output_digit, output_numeric, output_mirror, output_scripts,
12631         output_ident_category, output_simple_mapping): Fix format directives.
12632         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
12633
12634 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
12635
12636         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
12637         fixes are available from IBM.
12638
12639 2009-02-13  Jim Meyering  <meyering@redhat.com>
12640
12641         fts: arrange not to stat non-directories in more cases
12642         This makes GNU find (when it doesn't need to stat each file)
12643         *much* more efficient at traversing reiserfs file systems.
12644         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
12645         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
12646         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
12647         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
12648         (leaf_optimization_applies): New function.
12649         (LCO_hash, LCO_compare): New helper functions.
12650         (link_count_optimize_ok): New function.
12651         (fts_stat): Initialize new member (if dir).
12652         (fts_read): Decrement parent's fts_n_dirs_remaining count if
12653         we've just stat'ed a directory.  Skip the stat call when possible.
12654         ---
12655         Note this AFS-related exchange:
12656         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
12657         and note find's pioctl call in find/fstype.c.
12658         But that is necessary only if you want to enable the
12659         optimization for AFS, and for now, I don't.
12660
12661         fts: move a function definition "up" (no semantic change)
12662         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
12663         "up" to precede upcoming use of a related function.
12664
12665 2009-02-11  Jim Meyering  <meyering@redhat.com>
12666
12667         fts: correct internal computation of nlinks (optimization-related)
12668         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
12669         whether the current entry is a directory, so don't test it.
12670
12671 2009-02-10  Bruno Haible  <bruno@clisp.org>
12672
12673         Tests for module 'uniwbrk/ulc-wordbreaks'.
12674         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
12675         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
12676         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
12677
12678         Tests for module 'uniwbrk/u32-wordbreaks'.
12679         * modules/uniwbrk/u32-wordbreaks-tests: New file.
12680         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
12681
12682         Tests for module 'uniwbrk/u16-wordbreaks'.
12683         * modules/uniwbrk/u16-wordbreaks-tests: New file.
12684         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
12685
12686         Tests for module 'uniwbrk/u8-wordbreaks'.
12687         * modules/uniwbrk/u8-wordbreaks-tests: New file.
12688         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
12689
12690 2009-02-10  Bruno Haible  <bruno@clisp.org>
12691
12692         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
12693         property.
12694         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
12695         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
12696         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
12697
12698 2009-02-10  Simon Josefsson  <simon@josefsson.org>
12699
12700         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
12701         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
12702
12703 2009-02-10  Bruno Haible  <bruno@clisp.org>
12704
12705         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
12706         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
12707         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
12708         * lib/unilbrk/u8-possible-linebreaks.c: Update.
12709         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
12710         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
12711
12712 2009-02-09  Simon Josefsson  <simon@josefsson.org>
12713
12714         * lib/sockets.h (gl_fd_to_handle): New function.
12715
12716         * tests/test-sockets.c: Call gl_fd_to_handle.
12717
12718 2009-02-09  Bruno Haible  <bruno@clisp.org>
12719
12720         * doc/havelib.texi: Document the conventions on bi-arch systems.
12721
12722 2009-02-08  Bruno Haible  <bruno@clisp.org>
12723
12724         Document the AC_LIB_LINKFLAGS macro.
12725         * doc/havelib.texi: New file, mostly written on 2005-05-24.
12726         * doc/gnulib.texi: Include it.
12727
12728 2009-02-08  Bruno Haible  <bruno@clisp.org>
12729
12730         Fix wrong order of sections, compared to TOC.
12731         * doc/gnulib.texi: Include relocatable-maint.texi after the
12732         "Regular expressions" node, not before.
12733
12734 2009-02-08  Bruno Haible  <bruno@clisp.org>
12735
12736         Tests for module 'unicase/totitle'.
12737         * modules/unicase/totitle-tests: New file.
12738
12739         Tests for module 'unicase/tolower'.
12740         * modules/unicase/tolower-tests: New file.
12741
12742         Tests for module 'unicase/toupper'.
12743         * modules/unicase/toupper-tests: New file.
12744         * tests/unicase/test-mapping-part1.h: New file.
12745         * tests/unicase/test-mapping-part2.h: New file.
12746
12747         New module 'unicase/totitle'.
12748         * modules/unicase/totitle: New file.
12749         * lib/unicase/totitle.c: New file.
12750
12751         New module 'unicase/tolower'.
12752         * modules/unicase/tolower: New file.
12753         * lib/unicase/tolower.c: New file.
12754
12755         New module 'unicase/toupper'.
12756         * modules/unicase/toupper: New file.
12757         * lib/unicase/toupper.c: New file.
12758         * lib/unicase/simple-mapping.h: New file.
12759
12760         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
12761         (mapping_table): New structure.
12762         (output_simple_mapping): New function.
12763         (main): Invoke output_simple_mapping_test and output_simple_mapping.
12764         * modules/gen-uni-tables (Description): Update.
12765         * lib/unicase/toupper.h: New file, automatically generated by
12766         gen-uni-tables.
12767         * lib/unicase/tolower.h: New file, automatically generated by
12768         gen-uni-tables.
12769         * lib/unicase/totitle.h: New file, automatically generated by
12770         gen-uni-tables.
12771         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
12772         gen-uni-tables.
12773         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
12774         gen-uni-tables.
12775         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
12776         gen-uni-tables.
12777
12778         New module 'unicase/base'.
12779         * modules/unicase/base: New file.
12780         * lib/unicase.h: New file.
12781
12782 2009-02-08  Bruno Haible  <bruno@clisp.org>
12783
12784         New module 'uniwbrk/ulc-wordbreaks'.
12785         * modules/uniwbrk/ulc-wordbreaks: New file.
12786         * lib/uniwbrk/ulc-wordbreaks.c: New file.
12787
12788         New module 'uniwbrk/u32-wordbreaks'.
12789         * modules/uniwbrk/u32-wordbreaks: New file.
12790         * lib/uniwbrk/u32-wordbreaks.c: New file.
12791
12792         New module 'uniwbrk/u16-wordbreaks'.
12793         * modules/uniwbrk/u16-wordbreaks: New file.
12794         * lib/uniwbrk/u16-wordbreaks.c: New file.
12795
12796         New module 'uniwbrk/u8-wordbreaks'.
12797         * modules/uniwbrk/u8-wordbreaks: New file.
12798         * lib/uniwbrk/u8-wordbreaks.c: New file.
12799         * lib/uniwbrk/u-wordbreaks.h: New file.
12800
12801         New module 'uniwbrk/table'.
12802         * modules/uniwbrk/table: New file.
12803         * lib/uniwbrk/wbrktable.h: New file.
12804         * lib/uniwbrk/wbrktable.c: New file.
12805
12806         New module 'uniwbrk/wordbreak-property'.
12807         * modules/uniwbrk/wordbreak-property: New file.
12808         * lib/uniwbrk/wordbreak-property.c: New file.
12809
12810         * lib/gen-uni-tables.c (WBP_*): New enum items.
12811         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
12812         (unicode_org_wbp): New variable.
12813         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
12814         New functions.
12815         (wbp_table): New structure.
12816         (output_wbp, output_wbrk_tables): New functions.
12817         (main): Accept additional argument. Invoke fill_org_wbp,
12818         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
12819         output_wbrk_tables.
12820         * modules/gen-uni-tables (Description): Update.
12821         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
12822         gen-uni-tables.
12823
12824         New module 'uniwbrk/base'.
12825         * modules/uniwbrk/base: New file.
12826         * lib/uniwbrk.h: New file.
12827
12828 2009-02-08  Bruno Haible  <bruno@clisp.org>
12829
12830         Update to Unicode 5.1.0.
12831         * lib/gen-uni-tables.c (is_property_alphabetic): Include
12832         U+2185..U+2188.
12833         (is_property_default_ignorable_code_point): Don't include characters
12834         of category Cc or Cs and not-a-characters.
12835         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
12836         U+0D79, U+109E, U+109F, U+A60C.
12837         * lib/unictype/bidi_of.h: Regenerated.
12838         * lib/unictype/blocks.h: Regenerated.
12839         * lib/unictype/categ_C.h: Regenerated.
12840         * lib/unictype/categ_Cf.h: Regenerated.
12841         * lib/unictype/categ_Cn.h: Regenerated.
12842         * lib/unictype/categ_L.h: Regenerated.
12843         * lib/unictype/categ_Ll.h: Regenerated.
12844         * lib/unictype/categ_Lm.h: Regenerated.
12845         * lib/unictype/categ_Lo.h: Regenerated.
12846         * lib/unictype/categ_Lu.h: Regenerated.
12847         * lib/unictype/categ_M.h: Regenerated.
12848         * lib/unictype/categ_Mc.h: Regenerated.
12849         * lib/unictype/categ_Me.h: Regenerated.
12850         * lib/unictype/categ_Mn.h: Regenerated.
12851         * lib/unictype/categ_N.h: Regenerated.
12852         * lib/unictype/categ_Nd.h: Regenerated.
12853         * lib/unictype/categ_Nl.h: Regenerated.
12854         * lib/unictype/categ_No.h: Regenerated.
12855         * lib/unictype/categ_P.h: Regenerated.
12856         * lib/unictype/categ_Pd.h: Regenerated.
12857         * lib/unictype/categ_Pe.h: Regenerated.
12858         * lib/unictype/categ_Pf.h: Regenerated.
12859         * lib/unictype/categ_Pi.h: Regenerated.
12860         * lib/unictype/categ_Po.h: Regenerated.
12861         * lib/unictype/categ_Ps.h: Regenerated.
12862         * lib/unictype/categ_S.h: Regenerated.
12863         * lib/unictype/categ_Sk.h: Regenerated.
12864         * lib/unictype/categ_Sm.h: Regenerated.
12865         * lib/unictype/categ_So.h: Regenerated.
12866         * lib/unictype/categ_of.h: Regenerated.
12867         * lib/unictype/combining.h: Regenerated.
12868         * lib/unictype/ctype_alnum.h: Regenerated.
12869         * lib/unictype/ctype_alpha.h: Regenerated.
12870         * lib/unictype/ctype_graph.h: Regenerated.
12871         * lib/unictype/ctype_lower.h: Regenerated.
12872         * lib/unictype/ctype_print.h: Regenerated.
12873         * lib/unictype/ctype_punct.h: Regenerated.
12874         * lib/unictype/ctype_upper.h: Regenerated.
12875         * lib/unictype/decdigit.h: Regenerated.
12876         * lib/unictype/digit.h: Regenerated.
12877         * lib/unictype/mirror.h: Regenerated.
12878         * lib/unictype/numeric.h: Regenerated.
12879         * lib/unictype/pr_alphabetic.h: Regenerated.
12880         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
12881         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
12882         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
12883         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
12884         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
12885         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
12886         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
12887         * lib/unictype/pr_combining.h: Regenerated.
12888         * lib/unictype/pr_dash.h: Regenerated.
12889         * lib/unictype/pr_decimal_digit.h: Regenerated.
12890         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
12891         * lib/unictype/pr_deprecated.h: Regenerated.
12892         * lib/unictype/pr_diacritic.h: Regenerated.
12893         * lib/unictype/pr_extender.h: Regenerated.
12894         * lib/unictype/pr_format_control.h: Regenerated.
12895         * lib/unictype/pr_grapheme_base.h: Regenerated.
12896         * lib/unictype/pr_grapheme_extend.h: Regenerated.
12897         * lib/unictype/pr_grapheme_link.h: Regenerated.
12898         * lib/unictype/pr_id_continue.h: Regenerated.
12899         * lib/unictype/pr_id_start.h: Regenerated.
12900         * lib/unictype/pr_ideographic.h: Regenerated.
12901         * lib/unictype/pr_ignorable_control.h: Regenerated.
12902         * lib/unictype/pr_lowercase.h: Regenerated.
12903         * lib/unictype/pr_math.h: Regenerated.
12904         * lib/unictype/pr_numeric.h: Regenerated.
12905         * lib/unictype/pr_other_alphabetic.h: Regenerated.
12906         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
12907         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
12908         * lib/unictype/pr_other_id_continue.h: Regenerated.
12909         * lib/unictype/pr_other_lowercase.h: Regenerated.
12910         * lib/unictype/pr_other_math.h: Regenerated.
12911         * lib/unictype/pr_punctuation.h: Regenerated.
12912         * lib/unictype/pr_sentence_terminal.h: Regenerated.
12913         * lib/unictype/pr_soft_dotted.h: Regenerated.
12914         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
12915         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
12916         * lib/unictype/pr_unified_ideograph.h: Regenerated.
12917         * lib/unictype/pr_uppercase.h: Regenerated.
12918         * lib/unictype/pr_xid_continue.h: Regenerated.
12919         * lib/unictype/pr_xid_start.h: Regenerated.
12920         * lib/unictype/pr_zero_width.h: Regenerated.
12921         * lib/unictype/scripts.h: Regenerated.
12922         * lib/unictype/scripts_byname.gperf: Regenerated.
12923         * lib/unictype/sy_java_ident.h: Regenerated.
12924         * lib/unilbrk/lbrkprop1.h: Regenerated.
12925         * lib/unilbrk/lbrkprop2.h: Regenerated.
12926         * tests/unictype/test-categ_C.c: Regenerated.
12927         * tests/unictype/test-categ_Cf.c: Regenerated.
12928         * tests/unictype/test-categ_Cn.c: Regenerated.
12929         * tests/unictype/test-categ_L.c: Regenerated.
12930         * tests/unictype/test-categ_Ll.c: Regenerated.
12931         * tests/unictype/test-categ_Lm.c: Regenerated.
12932         * tests/unictype/test-categ_Lo.c: Regenerated.
12933         * tests/unictype/test-categ_Lu.c: Regenerated.
12934         * tests/unictype/test-categ_M.c: Regenerated.
12935         * tests/unictype/test-categ_Mc.c: Regenerated.
12936         * tests/unictype/test-categ_Me.c: Regenerated.
12937         * tests/unictype/test-categ_Mn.c: Regenerated.
12938         * tests/unictype/test-categ_N.c: Regenerated.
12939         * tests/unictype/test-categ_Nd.c: Regenerated.
12940         * tests/unictype/test-categ_Nl.c: Regenerated.
12941         * tests/unictype/test-categ_No.c: Regenerated.
12942         * tests/unictype/test-categ_P.c: Regenerated.
12943         * tests/unictype/test-categ_Pd.c: Regenerated.
12944         * tests/unictype/test-categ_Pe.c: Regenerated.
12945         * tests/unictype/test-categ_Pf.c: Regenerated.
12946         * tests/unictype/test-categ_Pi.c: Regenerated.
12947         * tests/unictype/test-categ_Po.c: Regenerated.
12948         * tests/unictype/test-categ_Ps.c: Regenerated.
12949         * tests/unictype/test-categ_S.c: Regenerated.
12950         * tests/unictype/test-categ_Sk.c: Regenerated.
12951         * tests/unictype/test-categ_Sm.c: Regenerated.
12952         * tests/unictype/test-categ_So.c: Regenerated.
12953         * tests/unictype/test-ctype_alnum.c: Regenerated.
12954         * tests/unictype/test-ctype_alpha.c: Regenerated.
12955         * tests/unictype/test-ctype_graph.c: Regenerated.
12956         * tests/unictype/test-ctype_lower.c: Regenerated.
12957         * tests/unictype/test-ctype_print.c: Regenerated.
12958         * tests/unictype/test-ctype_punct.c: Regenerated.
12959         * tests/unictype/test-ctype_upper.c: Regenerated.
12960         * tests/unictype/test-decdigit.h: Regenerated.
12961         * tests/unictype/test-digit.h: Regenerated.
12962         * tests/unictype/test-numeric.h: Regenerated.
12963         * tests/unictype/test-pr_alphabetic.c: Regenerated.
12964         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
12965         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
12966         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
12967         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
12968         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
12969         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
12970         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
12971         * tests/unictype/test-pr_combining.c: Regenerated.
12972         * tests/unictype/test-pr_dash.c: Regenerated.
12973         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
12974         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
12975         * tests/unictype/test-pr_deprecated.c: Regenerated.
12976         * tests/unictype/test-pr_diacritic.c: Regenerated.
12977         * tests/unictype/test-pr_extender.c: Regenerated.
12978         * tests/unictype/test-pr_format_control.c: Regenerated.
12979         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
12980         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
12981         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
12982         * tests/unictype/test-pr_id_continue.c: Regenerated.
12983         * tests/unictype/test-pr_id_start.c: Regenerated.
12984         * tests/unictype/test-pr_ideographic.c: Regenerated.
12985         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
12986         * tests/unictype/test-pr_lowercase.c: Regenerated.
12987         * tests/unictype/test-pr_math.c: Regenerated.
12988         * tests/unictype/test-pr_numeric.c: Regenerated.
12989         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
12990         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
12991         Regenerated.
12992         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
12993         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
12994         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
12995         * tests/unictype/test-pr_other_math.c: Regenerated.
12996         * tests/unictype/test-pr_punctuation.c: Regenerated.
12997         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
12998         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
12999         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
13000         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
13001         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
13002         * tests/unictype/test-pr_uppercase.c: Regenerated.
13003         * tests/unictype/test-pr_xid_continue.c: Regenerated.
13004         * tests/unictype/test-pr_xid_start.c: Regenerated.
13005         * tests/unictype/test-pr_zero_width.c: Regenerated.
13006
13007         Update to Unicode 5.1.0.
13008         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
13009         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
13010         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
13011         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
13012         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
13013         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
13014         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
13015         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
13016         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
13017         (nonspacing_table_ind): Update.
13018         * tests/uniwidth/test-uc_width2.sh: Update expected result.
13019
13020         Update to Unicode 5.1.0.
13021         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
13022         code transform.
13023         * lib/uniname/uniname.c (unicode_character_name,
13024         unicode_name_character): Add the range 0x1Fxxx to the code transform.
13025         * lib/uniname/uninames.h: Regenerated.
13026         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
13027
13028 2009-02-07  Bruno Haible  <bruno@clisp.org>
13029
13030         Merge gen-ctype and gen-lbrk into a single program.
13031         * lib/gen-uni-tables.c: New file, incorporating
13032         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
13033         Add directory prefixes to the names of the generated files.
13034         * lib/unictype/gen-ctype.c: Remove file.
13035         * lib/unilbrk/gen-lbrk.c: Remove file.
13036         * modules/gen-uni-tables: New file.
13037         * modules/unictype/gen-ctype: Remove file.
13038         * modules/unilbrk/gen-lbrk: Remove file.
13039
13040 2009-02-07  Bruno Haible  <bruno@clisp.org>
13041
13042         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
13043
13044         New module 'unistr/u32-strcoll'.
13045         * modules/unistr/u32-strcoll: New file.
13046         * lib/unistr/u32-strcoll.c: New file.
13047
13048         New module 'unistr/u16-strcoll'.
13049         * modules/unistr/u16-strcoll: New file.
13050         * lib/unistr/u16-strcoll.c: New file.
13051
13052         New module 'unistr/u8-strcoll'.
13053         * modules/unistr/u8-strcoll: New file.
13054         * lib/unistr/u8-strcoll.c: New file.
13055         * lib/unistr/u-strcoll.h: New file.
13056
13057 2009-02-07  Bruno Haible  <bruno@clisp.org>
13058
13059         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
13060         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13061         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13062         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
13063         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
13064         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
13065
13066 2009-02-07  Bruno Haible  <bruno@clisp.org>
13067
13068         Make 64-bit clean.
13069         * lib/unictype/gen-ctype.c (output_predicate, output_category,
13070         output_combclass, output_bidi_category, output_decimal_digit,
13071         output_digit, output_numeric, output_mirror, output_scripts,
13072         output_ident_category): Use proper width specifier in format strings.
13073
13074 2009-02-07  Bruno Haible  <bruno@clisp.org>
13075
13076         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
13077         failure behaviour.
13078
13079 2009-02-07  Jim Meyering  <meyering@redhat.com>
13080
13081         regex: avoid compilation failure with upcoming gcc-4.4
13082         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
13083         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
13084         "... error: integer overflow in preprocessor expression".
13085
13086 2009-02-05  Ben Pfaff  <blp@gnu.org>
13087
13088         Fix link errors on Windows when close module is used.
13089         * modules/close: Add $(LIB_CLOSE) to Link section.
13090         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
13091         $(LIB_CLOSE) on Windows.
13092
13093 2009-02-05  Jim Meyering  <meyering@redhat.com>
13094
13095         still avoid unused-parameter warnings, but do it cleanly
13096         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
13097         (get_fs_usage): Cast to void instead.
13098         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
13099         (dev_from_mount_options, read_file_system_list): Cast to void.
13100         Prompted by Bruno Haible.
13101
13102 2009-02-04  Jim Meyering  <meyering@redhat.com>
13103
13104         fsusage.c: correct copyright year
13105         * lib/fsusage.c: Reflect year in which the change is pushed into
13106
13107         avoid misc. warnings
13108         * lib/fsusage.c (UNUSED_PARAM): Define.
13109         (get_fs_usage): Mark parameter "disk" as unused.
13110         * lib/getugroups.c (getgrent): Use "void" in prototype.
13111         * lib/mountlist.c: Mark unused parameters.
13112         (read_file_system_list): Declare a local with "const".
13113         * lib/nanosleep.c (getnow): Declare static.
13114         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
13115
13116         dirfd: set errno upon failure
13117         * lib/dirfd.c: Include <errno.h>.
13118         Set errno to ENOTSUP when returning -1.
13119         * modules/dirfd (Depends-on): Add errno.
13120         Suggested by John Kodis <kodis@comcast.net>.
13121
13122 2009-02-01  Bruno Haible  <bruno@clisp.org>
13123
13124         Don't assume sizeof (long) >= sizeof (void *).
13125         * lib/memcmp.c: Include stdint.h.
13126         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
13127         srcp2 to 'const byte *'.
13128         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
13129         types to uintptr_t.
13130         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
13131         * modules/memcmp (Depends-on): Add stdint.
13132         Reported by Ozkan Sezer <sezeroz@gmail.com>.
13133
13134 2009-01-30  Eric Blake  <ebb9@byu.net>
13135
13136         fix more require-before-expand issues
13137         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
13138         expand, AC_PROG_AWK.
13139         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
13140
13141 2009-01-28  Eric Blake  <ebb9@byu.net>
13142
13143         version-etc: use consistent URL formatting
13144         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
13145         Improve formatting.  Use fputs for string without %.
13146
13147 2009-01-28  Jim Meyering  <meyering@redhat.com>
13148
13149         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
13150         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
13151         "underquoted definition of NAME" from autoconf-2.59.
13152
13153 2009-01-28  Bruno Haible  <bruno@clisp.org>
13154
13155         * doc/gnulib.texi: Add "Obsolete modules" to index.
13156
13157 2009-01-28  Jim Meyering  <meyering@redhat.com>
13158
13159         useless-if-before-free: recognize more variants
13160         * build-aux/useless-if-before-free: Also recognize e.g.,
13161         if (NULL != p) free (p);
13162
13163 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
13164
13165         test-getaddrinfo: skip (don't fail) this test when there's no network
13166         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
13167         on the presumption that it means you lack network access.
13168
13169 2009-01-26  Jim Meyering  <meyering@redhat.com>
13170
13171         fflush: avoid warnings on modern systems
13172         * lib/fflush.c (rpl_fflush): Move declarations of locals,
13173         pos and result, into scopes where they're used.
13174
13175 2009-01-26  Eric Blake  <ebb9@byu.net>
13176
13177         Silence warning reintroduced by recent extensions patch.
13178         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
13179         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
13180         autoconf.
13181
13182         Backport improved autoconf semantics of AC_DEFUN_ONCE.
13183         * m4/00gnulib.m4: New file.
13184         * gnulib-tool (func_get_filelist): Always use it.
13185         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
13186         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
13187
13188 2009-01-25  Bruno Haible  <bruno@clisp.org>
13189
13190         Make test-quotearg work on MacOS X and AIX.
13191         * tests/test-quotearg.sh: New file.
13192         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
13193         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
13194         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
13195         include <libintl.h>.
13196         (fake_locale): Remove variable.
13197         (gettext, dgettext, dcgettext): Remove functions.
13198         (main): Instead of setting a fake locale, set a real locale. Call
13199         textdomain and bindtextdomain.
13200         * modules/quotearg-tests (Files): Add the new files.
13201         (Depends-on): Add gettext, setenv, unsetenv.
13202         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
13203         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
13204         Augment TESTS_ENVIRONMENT.
13205
13206 2009-01-25  Bruno Haible  <bruno@clisp.org>
13207
13208         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
13209         fr_FR.ISO8859-1 locale on MacOS X.
13210         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
13211         ja_JP.eucJP locale on MacOS X.
13212         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
13213         zh_CN.GB18030 locale on MacOS X.
13214
13215 2009-01-25  Bruno Haible  <bruno@clisp.org>
13216
13217         Avoid link errors on MacOS X 10.3.
13218         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
13219         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13220
13221 2009-01-25  Bruno Haible  <bruno@clisp.org>
13222
13223         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13224         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
13225         * modules/pipe (Files): Remove m4/posix_spawn.m4.
13226         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13227         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
13228         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13229         posix_spawnattr_init, posix_spawnattr_setsigmask,
13230         posix_spawnattr_setflags, posix_spawnattr_destroy.
13231
13232         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13233         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
13234         * modules/execute (Files): Remove m4/posix_spawn.m4.
13235         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13236         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13237         posix_spawnattr_init, posix_spawnattr_setsigmask,
13238         posix_spawnattr_setflags, posix_spawnattr_destroy.
13239
13240 2009-01-25  Bruno Haible  <bruno@clisp.org>
13241
13242         * lib/glthread/threadlib.c: Include <stdlib.h>.
13243
13244 2009-01-25  Bruno Haible  <bruno@clisp.org>
13245
13246         * lib/glthread/threadlib.c (dummy): New declaration.
13247
13248 2009-01-25  Bruno Haible  <bruno@clisp.org>
13249
13250         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
13251         multibyte characters also for the GB18030 encoding. Don't crash when
13252         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
13253
13254 2009-01-25  Bruno Haible  <bruno@clisp.org>
13255
13256         Avoid redefining 'struct random_data' on OSF/1 5.1.
13257         * lib/stdlib.in.h: Include <random.h> if it exists.
13258         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
13259         HAVE_RANDOM_H. Include <random.h> when testing whether
13260         'struct random_data' exists.
13261         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
13262
13263 2009-01-25  Bruno Haible  <bruno@clisp.org>
13264
13265         Don't install charset.alias on MacOS X >= 10.3.
13266         * lib/localcharset.c (DARWIN7): New macro.
13267         (get_charset_aliases): Hardcode the result for Darwin7.
13268         * modules/localcharset (install-exec-local): Don't install
13269         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
13270
13271 2009-01-25  Bruno Haible  <bruno@clisp.org>
13272
13273         Don't install charset.alias on mingw and Cygwin.
13274         * modules/localcharset (install-exec-local): Don't install
13275         charset.alias on mingw and Cygwin, if the file does not yet exist.
13276         The result for these platforms is hardcoded in localcharset.c.
13277
13278 2009-01-25  Bruno Haible  <bruno@clisp.org>
13279
13280         Make it possible again to use AC_GNU_SOURCE together with gnulib.
13281         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
13282         before requiring AC_USE_SYSTEM_EXTENSIONS.
13283
13284 2009-01-25  Jim Meyering  <meyering@redhat.com>
13285
13286         c-strtod: avoid warnings
13287         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
13288         "assignment discards qualifiers from pointer target type" warnings.
13289
13290 2009-01-24  Bruno Haible  <bruno@clisp.org>
13291
13292         Add support for non-UTF-8 locales on MacOS X.
13293         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
13294         canonical encodings. For Darwin 7 and newer, don't map traditional
13295         encodings to UTF-8.
13296         Reported by Vincent Lefevre <vincent@vinc17.org>
13297         at <http://savannah.gnu.org/bugs/?25235>.
13298
13299 2009-01-24  Bruno Haible  <bruno@clisp.org>
13300
13301         * doc/gnulib.texi (Obsolete modules): New section.
13302         Reported by Mike Frysinger <vapier@gentoo.org>.
13303
13304 2009-01-24  Bruno Haible  <bruno@clisp.org>
13305
13306         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
13307         (%.dvi): New rule.
13308
13309 2009-01-24  Bruno Haible  <bruno@clisp.org>
13310
13311         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
13312         Reported by Eric Blake.
13313
13314 2009-01-24  Bruno Haible  <bruno@clisp.org>
13315
13316         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
13317         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
13318         Reported by Gary V. Vaughan <gary@gnu.org>.
13319
13320 2009-01-24  Bruno Haible  <bruno@clisp.org>
13321
13322         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
13323
13324 2009-01-23  Bruno Haible  <bruno@clisp.org>
13325
13326         Make c-strtod, c-strtold usable in libraries.
13327         * lib/c-strtod.c: Include string.h instead of xalloc.h.
13328         (C_STRTOD): Call strdup instead of xstrdup.
13329         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
13330         * modules/c-strtold (Depends-on): Likewise.
13331         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
13332         * NEWS: Mention the change.
13333         Reported by Michael Gold <mgold@ncf.ca>.
13334
13335 2009-01-23  Jim Meyering  <meyering@redhat.com>
13336
13337         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
13338         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
13339         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
13340
13341 2009-01-23  Simon Josefsson  <simon@josefsson.org>
13342
13343         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
13344         GNU CoreUtils.
13345         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
13346         * modules/version-etc (Description): Update.
13347
13348 2009-01-22  Bruno Haible  <bruno@clisp.org>
13349
13350         Cache the C locale object.
13351         * lib/c-strtod.c (c_locale_cache): New variable.
13352         (c_locale): New function.
13353         (C_STRTOD): Use it, and don't call freelocale.
13354         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
13355         Suggested by Paolo Bonzini.
13356
13357 2009-01-21  Bruno Haible  <bruno@clisp.org>
13358
13359         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
13360         conditions other than overflow.
13361
13362 2009-01-21  Bruno Haible  <bruno@clisp.org>
13363
13364         * lib/c-strtod.c: Include errno.h.
13365         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
13366         value from STRTOD_L and STRTOD.
13367
13368 2009-01-21  Bruno Haible  <bruno@clisp.org>
13369         and Jim Meyering  <meyering@redhat.com>
13370
13371         nanosleep: skip configure test (fail it) for apple universal builds
13372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
13373         universal builds, assume that nanosleep does not work.
13374         * modules/nanosleep (Depends-on): Add multiarch.
13375
13376         mktime: skip configure test (fail it) for apple universal builds
13377         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
13378         universal builds, assume that mktime does not work.
13379         * modules/mktime (Depends-on): Add multiarch.
13380
13381 2009-01-21  Eric Blake  <ebb9@byu.net>
13382
13383         multiarch: avoid expand-before-require warning
13384         * modules/multiarch (configure.ac): Require, rather than expand,
13385         gl_MULTIARCH.
13386         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
13387         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
13388         enforce that all clients require it.  Partial reversion of
13389         2008-12-29 patch.
13390
13391         error: avoid expand-before-require warning
13392         * modules/errno (configure.ac): Require, rather than expand,
13393         gl_HEADER_ERRNO_H.
13394         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
13395         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
13396         enforce that all clients require it.
13397
13398         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
13399         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
13400         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
13401         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
13402
13403 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
13404
13405         Revert:
13406         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
13407
13408         regex: do not depend on obsolete modules.
13409         * modules/regex: Remove memcmp and memmove.
13410
13411 2009-01-20  Bruno Haible  <bruno@clisp.org>
13412
13413         Make the 'link' module link on Windows NT 4.
13414         * lib/link.c (_WIN32_WINNT): Don't define.
13415         (CreateHardLinkFuncType): New type.
13416         (CreateHardLinkFunc, initialized): New variables.
13417         (initialize): New function.
13418         (link): Invoke CreateHardLink indirectly through the function pointer.
13419
13420 2009-01-20  Bruno Haible  <bruno@clisp.org>
13421
13422         Fix compilation failure on mingw.
13423         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
13424
13425 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
13426
13427         * doc/c-strtod.texi: Mention a couple of restrictions.
13428
13429 2009-01-20  Jim Meyering  <meyering@redhat.com>
13430
13431         gettimeofday: move more declarations out of functions
13432         * lib/gettimeofday.c: Move extern declarations of tzset and
13433         gmtime out of containing functions.  Prompted by Bruno Haible.
13434
13435 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
13436
13437         regex: do not depend on obsolete modules.
13438         * modules/regex: Remove memcmp and memmove.
13439
13440 2009-01-19  Bruno Haible  <bruno@clisp.org>
13441
13442         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13443         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
13444         gl_BIGENDIAN, not AC_C_BIGENDIAN.
13445         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
13446         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
13447
13448 2009-01-19  Bruno Haible  <bruno@clisp.org>
13449
13450         * tests/test-link.c: Include <errno.h>.
13451         (main): Exit with code 77 when a hard link cannot be created due to
13452         the file system.
13453         * tests/test-link.sh: Skip test when a hard link cannot be created due
13454         to the file system.
13455         Suggested by Eric Blake.
13456
13457 2009-01-19  Martin Lambers  <marlam@marlam.de>
13458
13459         * modules/link-tests: New file.
13460         * tests/test-link.sh: New file.
13461         * tests/test-link.c: New file.
13462
13463 2009-01-19  Eric Blake  <ebb9@byu.net>
13464
13465         doc: mention another function added in cygwin 1.7.0
13466         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
13467         Another new function in cygwin 1.7.
13468
13469 2009-01-19  Bruno Haible  <bruno@clisp.org>
13470
13471         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13472         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
13473         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
13474         gl_BIGENDIAN, not AC_C_BIGENDIAN.
13475         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13476         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13477         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13478         * m4/md4.m4 (gl_MD4): Likewise.
13479         * m4/md5.m4 (gl_MD5): Likewise.
13480         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
13481         * m4/sha1.m4 (gl_SHA1): Likewise.
13482         * m4/sha256.m4 (gl_SHA256): Likewise.
13483         * m4/sha512.m4 (gl_SHA512): Likewise.
13484
13485 2009-01-19  Bruno Haible  <bruno@clisp.org>
13486
13487         * modules/uniname/uniname-tests (Depends-on): Add progname.
13488         * tests/uniname/test-uninames.c: Include progname.h.
13489         (main): Call set_program_name.
13490
13491         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
13492         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
13493         (main): Call set_program_name.
13494
13495         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
13496         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
13497         (main): Call set_program_name.
13498
13499         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
13500         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
13501         (main): Call set_program_name.
13502
13503         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
13504         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
13505         (main): Call set_program_name.
13506
13507         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
13508         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
13509         (main): Call set_program_name.
13510
13511         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
13512         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
13513         (main): Call set_program_name.
13514
13515         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
13516         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
13517         (main): Call set_program_name.
13518
13519         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
13520         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
13521         (main): Call set_program_name.
13522
13523 2009-01-19  Eric Blake  <ebb9@byu.net>
13524
13525         test-unistd: test previous patch
13526         * tests/test-unistd.c: Test *_FILENO macros.
13527
13528         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
13529         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13530         Guarantee a definition.
13531         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
13532         * modules/unistd-safer (Depends-on): Add dependency on unistd.
13533         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
13534         * lib/dup-safer.c (STDERR_FILENO): Likewise.
13535         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13536         Likewise.
13537         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
13538         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
13539         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13540         Likewise.
13541         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
13542         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
13543         (STDERR_FILENO): Likewise.
13544         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
13545         (STDERR_FILENO): Likewise.
13546         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
13547         (STDERR_FILENO): Likewise.
13548         Reported by Elbert Pol.
13549
13550 2009-01-19  Eric Blake  <ebb9@byu.net>
13551
13552         doc: mention more functions added in cygwin 1.7.0
13553         * doc/posix-functions/abort.texi (abort): Update wording related
13554         to cygwin.
13555         * doc/posix-functions/daylight.texi (daylight): Likewise.
13556         * doc/posix-functions/optarg.texi (optarg): Likewise.
13557         * doc/posix-functions/optarg.texi (opterr): Likewise.
13558         * doc/posix-functions/optarg.texi (optind): Likewise.
13559         * doc/posix-functions/optarg.texi (optopt): Likewise.
13560         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
13561         worked in 1.5.x, and was withdrawn in 1.7.
13562         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13563         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
13564         cygwin versions.
13565         * doc/posix-functions/perror.texi (perror): Likewise.
13566         * doc/posix-functions/printf.texi (printf): Likewise.
13567         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13568         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13569         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13570         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13571         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13572         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13573         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
13574         Likewise.
13575         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
13576         Likewise.
13577         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
13578         this function.
13579         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
13580         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
13581         Likewise.
13582         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
13583         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
13584         * doc/posix-functions/confstr.texi (confstr): Likewise.
13585         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13586         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
13587         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
13588         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
13589         * doc/posix-functions/fputws.texi (fputws): Likewise.
13590         * doc/posix-functions/fwide.texi (fwide): Likewise.
13591         * doc/posix-functions/getwc.texi (getwc): Likewise.
13592         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
13593         * doc/posix-functions/putwc.texi (putwc): Likewise.
13594         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13595         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
13596         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
13597         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13598         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
13599         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
13600         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
13601         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
13602         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
13603         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
13604         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
13605
13606 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
13607
13608         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
13609         * lib/ioctl.c: Include <sys/ioctl.h>.
13610
13611 2009-01-19  Simon Josefsson  <simon@josefsson.org>
13612
13613         * modules/getdate-tests (Depends-on): Add progname.
13614         * tests/test-getdate.c: Use progname module, to avoid link errors
13615         on non-glibc systems.
13616
13617 2009-01-18  Simon Josefsson  <simon@josefsson.org>
13618
13619         * modules/filenamecat-tests (Depends-on): Add progname.
13620         * modules/fstrcmp-tests (Depends-on): Likewise.
13621
13622         * tests/test-filenamecat.c: Use progname module, to avoid link
13623         errors on non-glibc systems.
13624         * tests/test-fstrcmp.c: Likewise.
13625
13626 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
13627
13628         gettimeofday: avoid warning: nested extern declaration of 'localtime'
13629         * lib/gettimeofday.c: Move extern declaration out of function.
13630
13631 2009-01-18  Bruno Haible  <bruno@clisp.org>
13632
13633         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
13634         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
13635         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
13636
13637 2009-01-18  Bruno Haible  <bruno@clisp.org>
13638
13639         * lib/strftime.c (MEMPCPY): Remove unused macro.
13640         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
13641
13642 2009-01-18  Martin Lambers  <marlam@marlam.de>
13643
13644         New module 'link'.
13645         * lib/unistd.in.h (link): New declaration.
13646         * lib/link.c: New file.
13647         * m4/link.m4: New file.
13648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
13649         HAVE_LINK.
13650         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
13651         * modules/link: New file.
13652         * doc/posix-functions/link.texi: Mention the new module.
13653
13654 2009-01-18  Bruno Haible  <bruno@clisp.org>
13655
13656         * tests/test-avltree_list.c (main): Call set_program_name.
13657         * tests/test-avltree_oset.c (main): Likewise.
13658         * tests/test-obstack-printf.c: Include progname.h.
13659         (main): Call set_program_name.
13660         * tests/test-quotearg.c: Include progname.h.
13661         (main): Call set_program_name.
13662         * tests/test-xmemdup0.c: Include progname.h.
13663         (main): Call set_program_name.
13664
13665 2009-01-18  Bruno Haible  <bruno@clisp.org>
13666
13667         New module 'alphasort'.
13668         * lib/dirent.in.h (alphasort): New declaration.
13669         * lib/alphasort.c: New file, from glibc with modifications.
13670         * m4/alphasort.m4: New file.
13671         * modules/alphasort: New file.
13672         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
13673         HAVE_ALPHASORT.
13674         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
13675         HAVE_ALPHASORT.
13676         * doc/posix-functions/alphasort.texi: Mention the new module and the
13677         portability problems.
13678
13679 2009-01-18  Bruno Haible  <bruno@clisp.org>
13680
13681         New module 'scandir'.
13682         * lib/dirent.in.h (scandir): New declaration.
13683         * lib/scandir.c: New file, from glibc with modifications.
13684         * m4/scandir.m4: New file.
13685         * modules/scandir: New file.
13686         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
13687         HAVE_SCANDIR.
13688         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
13689         HAVE_SCANDIR.
13690         * doc/posix-functions/scandir.texi: Mention the new module and the
13691         portability problems.
13692
13693 2009-01-17  Bruno Haible  <bruno@clisp.org>
13694
13695         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
13696         Update documentation.
13697         (func_remove_suffix): Escape all dots in the suffix. Update
13698         documentation.
13699         (func_filter_filelist): Update documentation.
13700         Reported by Ralf Wildenhues.
13701
13702 2009-01-17  Bruno Haible  <bruno@clisp.org>
13703
13704         * modules/dprintf-posix-tests: New file.
13705         * tests/test-dprintf-posix.sh: New file.
13706         * tests/test-dprintf-posix.c: New file.
13707
13708         New modules 'dprintf', 'dprintf-posix'.
13709         * lib/stdio.in.h (dprintf): New declaration.
13710         * lib/dprintf.c: New file.
13711         * m4/dprintf.m4: New file.
13712         * m4/dprintf-posix.m4: New file.
13713         * modules/dprintf: New file.
13714         * modules/dprintf-posix: New file.
13715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
13716         HAVE_DPRINTF, REPLACE_DPRINTF.
13717         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
13718         HAVE_DPRINTF, REPLACE_DPRINTF.
13719         * doc/posix-functions/dprintf.texi: Mention the new modules.
13720
13721 2009-01-17  Bruno Haible  <bruno@clisp.org>
13722
13723         * modules/vdprintf-posix-tests: New file.
13724         * tests/test-vdprintf-posix.sh: New file.
13725         * tests/test-vdprintf-posix.c: New file.
13726
13727         New modules 'vdprintf', 'vdprintf-posix'.
13728         * lib/stdio.in.h (vdprintf): New declaration.
13729         * lib/vdprintf.c: New file.
13730         * m4/vdprintf.m4: New file.
13731         * m4/vdprintf-posix.m4: New file.
13732         * modules/vdprintf: New file.
13733         * modules/vdprintf-posix: New file.
13734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
13735         HAVE_VDPRINTF, REPLACE_VDPRINTF.
13736         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
13737         HAVE_VDPRINTF, REPLACE_VDPRINTF.
13738         * doc/posix-functions/vdprintf.texi: Mention the new modules.
13739
13740 2009-01-17  Bruno Haible  <bruno@clisp.org>
13741
13742         Fix replacement of fopen on mingw.
13743         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
13744         mingw.
13745
13746 2009-01-17  Bruno Haible  <bruno@clisp.org>
13747
13748         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
13749         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
13750
13751 2009-01-17  Bruno Haible  <bruno@clisp.org>
13752
13753         Avoid test-fflush2.sh failure on mingw.
13754         * tests/test-fflush2.c: Include binary-io.h.
13755         (main): Put standard input into binary mode.
13756         * modules/fflush-tests (Depends-on): Add binary-io.
13757
13758 2009-01-17  Bruno Haible  <bruno@clisp.org>
13759
13760         * lib/wchar.in.h: In another particular situation, include only the
13761         system's <wchar.h> file.
13762         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
13763         Reported by Albert Chin-A-Young <china@thewrittenword.com>
13764         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
13765
13766 2009-01-17  Bruno Haible  <bruno@clisp.org>
13767
13768         Support for stripping executables in --enable-relocatable.
13769         * build-aux/install-reloc: Expect one more argument, or an environment
13770         variable RELOC_STRIP_PROG. If set, strip the destination program and
13771         its wrapper.
13772         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
13773         RELOC_STRIP_PROG.
13774         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
13775         to set RELOCATABLE_STRIP.
13776         * NEWS: Mention the new Makefile requirement.
13777
13778 2009-01-17  Bruno Haible  <bruno@clisp.org>
13779
13780         * build-aux/install-reloc: Remove debugging information left over by
13781         C compiler on MacOS X.
13782
13783 2009-01-17  Bruno Haible  <bruno@clisp.org>
13784
13785         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
13786         * lib/progreloc.c (find_executable): Fix type of pointer passed to
13787         _NSGetExecutablePath.
13788
13789 2009-01-16  Jim Meyering  <meyering@redhat.com>
13790
13791         strerror: avoid warnings about discarding "const"
13792         * lib/strerror.c (rpl_strerror): Instead of returning a const
13793         string from each and every "case", use a variable, and add a single
13794         cast after the switch.
13795
13796 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
13797
13798         * lib/arpa_inet.in.h: Add extern "C" block for C++.
13799
13800 2009-01-16  Bruno Haible  <bruno@clisp.org>
13801
13802         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
13803         array initializer syntax that also works in C++ mode.
13804         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13805
13806 2009-01-16  Jim Meyering  <meyering@redhat.com>
13807
13808         poll: suppress a warning
13809         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
13810         to ignore "...unsigned expression < 0 is always false" warnings.
13811
13812 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
13813
13814         poll: remove declarations of unused variables
13815         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
13816         sockbuf and optlen.
13817
13818 2009-01-15  Bruno Haible  <bruno@clisp.org>
13819
13820         Make fflush-after-ungetc POSIX compliant on BSD systems.
13821         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
13822         (clear_ungetc_buffer): Implement also for other systems.
13823         (rpl_fflush): On glibc systems, invoke
13824         clear_ungetc_buffer_preserving_position. Otherwise, invoke
13825         clear_ungetc_buffer after fetching the stream's position, not before.
13826
13827 2009-01-15  Bruno Haible  <bruno@clisp.org>
13828
13829         Make fflush-after-ungetc POSIX compliant on glibc systems.
13830         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
13831         after ungetc.
13832         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
13833         (rpl_fflush): On glibc systems, simply call the system's fflush
13834         function after clearing the ungetc buffer.
13835         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
13836         Instead, lseek only to the end of file, then use the system's fseeko
13837         for the rest. On glibc systems, reset the EOF indicator bit.
13838
13839 2009-01-15  Jim Meyering  <meyering@redhat.com>
13840
13841         openmp.m4: revert quote-adding change, for portability to older autoconf
13842         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
13843         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
13844         Simon Josefsson noticed the problem when using autoconf-2.61.
13845
13846 2009-01-15  Bruno Haible  <bruno@clisp.org>
13847
13848         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
13849         * tests/test-fflush2.c (ASSERT): Always fail.
13850         (main): Add two tests for fflush() after ungetc(), taking into account
13851         the Austin Group's clarification.
13852         Suggested by Eric Blake.
13853
13854 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
13855
13856         mktime.m4: remove K&R-style function prototypes
13857         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
13858         for the Sun C++ compiler.
13859
13860 2009-01-14  Bruno Haible  <bruno@clisp.org>
13861
13862         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
13863         while including <wchar.h>.
13864         * lib/wchar.in.h: In two particular situations on HP-UX, include only
13865         the system's <wchar.h> file.
13866         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13867
13868 2009-01-14  Bruno Haible  <bruno@clisp.org>
13869
13870         * m4/csharp.m4: Don't mention gettext on the serial number line.
13871         * m4/csharpexec.m4: Likewise.
13872         * m4/eaccess.m4: Likewise.
13873         * m4/javaexec.m4: Likewise.
13874         * m4/sig_atomic_t.m4: Likewise.
13875         * m4/tmpdir.m4: Likewise.
13876         * m4/intldir.m4: Bump gettext version.
13877         * m4/lib-ld.m4: Likewise.
13878
13879 2009-01-14  Bruno Haible  <bruno@clisp.org>
13880
13881         * lib/progname.c (set_program_name): Add more comments.
13882         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13883
13884 2009-01-14  Simon Josefsson  <simon@josefsson.org>
13885
13886         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
13887         were sys/stat.h does not define it.
13888
13889 2009-01-14  Jim Meyering  <meyering@redhat.com>
13890
13891         many *.m4 files: improve m4 quoting
13892         99% of this change was performed by running the following commands:
13893         git ls-files | grep '\.m4$' | xargs perl -pi \
13894           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
13895           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13896           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13897           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
13898         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
13899         The remainder were to add Copyright dates, increment serial numbers,
13900         undo some changes in comments, exclude m4/intl.m4, and add quotes
13901         around the "1" in ",1" where the unusual spacing prohibited the
13902         above regexps from doing the job.  For more details, see
13903         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
13904         * m4/acl.m4: Modified.
13905         * m4/afs.m4: Likewise.
13906         * m4/alloca.m4: Likewise.
13907         * m4/argp.m4: Likewise.
13908         * m4/argz.m4: Likewise.
13909         * m4/atexit.m4: Likewise.
13910         * m4/bison-i18n.m4: Likewise.
13911         * m4/bison.m4: Likewise.
13912         * m4/byteswap.m4: Likewise.
13913         * m4/c-stack.m4: Likewise.
13914         * m4/c-strtod.m4: Likewise.
13915         * m4/calloc.m4: Likewise.
13916         * m4/canonicalize-lgpl.m4: Likewise.
13917         * m4/chown.m4: Likewise.
13918         * m4/clock_time.m4: Likewise.
13919         * m4/codeset.m4: Likewise.
13920         * m4/copy-file.m4: Likewise.
13921         * m4/csharp.m4: Likewise.
13922         * m4/csharpcomp.m4: Likewise.
13923         * m4/csharpexec.m4: Likewise.
13924         * m4/d-ino.m4: Likewise.
13925         * m4/d-type.m4: Likewise.
13926         * m4/dirfd.m4: Likewise.
13927         * m4/double-slash-root.m4: Likewise.
13928         * m4/eaccess.m4: Likewise.
13929         * m4/eealloc.m4: Likewise.
13930         * m4/environ.m4: Likewise.
13931         * m4/errno_h.m4: Likewise.
13932         * m4/euidaccess.m4: Likewise.
13933         * m4/execute.m4: Likewise.
13934         * m4/fatal-signal.m4: Likewise.
13935         * m4/fchdir.m4: Likewise.
13936         * m4/fcntl_h.m4: Likewise.
13937         * m4/fileblocks.m4: Likewise.
13938         * m4/filenamecat.m4: Likewise.
13939         * m4/findprog.m4: Likewise.
13940         * m4/flexmember.m4: Likewise.
13941         * m4/fnmatch.m4: Likewise.
13942         * m4/fopen.m4: Likewise.
13943         * m4/fpending.m4: Likewise.
13944         * m4/fprintf-posix.m4: Likewise.
13945         * m4/free.m4: Likewise.
13946         * m4/frexp.m4: Likewise.
13947         * m4/frexpl.m4: Likewise.
13948         * m4/fsusage.m4: Likewise.
13949         * m4/ftruncate.m4: Likewise.
13950         * m4/gc-camellia.m4: Likewise.
13951         * m4/gc-random.m4: Likewise.
13952         * m4/gc.m4: Likewise.
13953         * m4/getaddrinfo.m4: Likewise.
13954         * m4/getcwd-abort-bug.m4: Likewise.
13955         * m4/getcwd-path-max.m4: Likewise.
13956         * m4/getdate.m4: Likewise.
13957         * m4/getdomainname.m4: Likewise.
13958         * m4/getgroups.m4: Likewise.
13959         * m4/gethostname.m4: Likewise.
13960         * m4/gethrxtime.m4: Likewise.
13961         * m4/getline.m4: Likewise.
13962         * m4/getloadavg.m4: Likewise.
13963         * m4/getndelim2.m4: Likewise.
13964         * m4/getpass.m4: Likewise.
13965         * m4/gettext.m4: Likewise.
13966         * m4/gettime.m4: Likewise.
13967         * m4/gettimeofday.m4: Likewise.
13968         * m4/gnulib-common.m4: Likewise.
13969         * m4/group-member.m4: Likewise.
13970         * m4/host-os.m4: Likewise.
13971         * m4/iconv.m4: Likewise.
13972         * m4/iconv_open.m4: Likewise.
13973         * m4/inet_ntop.m4: Likewise.
13974         * m4/inet_pton.m4: Likewise.
13975         * m4/inline.m4: Likewise.
13976         * m4/intldir.m4: Likewise.
13977         * m4/intlmacosx.m4: Likewise.
13978         * m4/intmax.m4: Likewise.
13979         * m4/intmax_t.m4: Likewise.
13980         * m4/inttypes.m4: Likewise.
13981         * m4/inttypes_h.m4: Likewise.
13982         * m4/inttypes-pri.m4: Likewise.
13983         * m4/isapipe.m4: Likewise.
13984         * m4/isnand.m4: Likewise.
13985         * m4/isnanf.m4: Likewise.
13986         * m4/isnanl.m4: Likewise.
13987         * m4/javacomp.m4: Likewise.
13988         * m4/javaexec.m4: Likewise.
13989         * m4/jm-winsz1.m4: Likewise.
13990         * m4/jm-winsz2.m4: Likewise.
13991         * m4/lchown.m4: Likewise.
13992         * m4/lcmessage.m4: Likewise.
13993         * m4/ldexpl.m4: Likewise.
13994         * m4/lib-ld.m4: Likewise.
13995         * m4/lib-link.m4: Likewise.
13996         * m4/libsigsegv.m4: Likewise.
13997         * m4/link-follow.m4: Likewise.
13998         * m4/localcharset.m4: Likewise.
13999         * m4/locale-fr.m4: Likewise.
14000         * m4/locale-ja.m4: Likewise.
14001         * m4/locale-tr.m4: Likewise.
14002         * m4/locale-zh.m4: Likewise.
14003         * m4/lock.m4: Likewise.
14004         * m4/longlong.m4: Likewise.
14005         * m4/ls-mntd-fs.m4: Likewise.
14006         * m4/lstat.m4: Likewise.
14007         * m4/malloc.m4: Likewise.
14008         * m4/mathl.m4: Likewise.
14009         * m4/mbrtowc.m4: Likewise.
14010         * m4/mbstate_t.m4: Likewise.
14011         * m4/mbswidth.m4: Likewise.
14012         * m4/memchr.m4: Likewise.
14013         * m4/memcmp.m4: Likewise.
14014         * m4/memcpy.m4: Likewise.
14015         * m4/memmem.m4: Likewise.
14016         * m4/memmove.m4: Likewise.
14017         * m4/mempcpy.m4: Likewise.
14018         * m4/memrchr.m4: Likewise.
14019         * m4/memset.m4: Likewise.
14020         * m4/minmax.m4: Likewise.
14021         * m4/mkdir-slash.m4: Likewise.
14022         * m4/mkdtemp.m4: Likewise.
14023         * m4/mktime.m4: Likewise.
14024         * m4/mmap-anon.m4: Likewise.
14025         * m4/mountlist.m4: Likewise.
14026         * m4/nanosleep.m4: Likewise.
14027         * m4/nls.m4: Likewise.
14028         * m4/nocrash.m4: Likewise.
14029         * m4/open.m4: Likewise.
14030         * m4/openat.m4: Likewise.
14031         * m4/openmp.m4: Likewise.
14032         * m4/pathmax.m4: Likewise.
14033         * m4/perl.m4: Likewise.
14034         * m4/physmem.m4: Likewise.
14035         * m4/pipe.m4: Likewise.
14036         * m4/po.m4: Likewise.
14037         * m4/poll.m4: Likewise.
14038         * m4/posixtm.m4: Likewise.
14039         * m4/posixver.m4: Likewise.
14040         * m4/printf-frexp.m4: Likewise.
14041         * m4/printf-frexpl.m4: Likewise.
14042         * m4/printf-posix.m4: Likewise.
14043         * m4/printf-posix-rpl.m4: Likewise.
14044         * m4/printf.m4: Likewise.
14045         * m4/progtest.m4: Likewise.
14046         * m4/putenv.m4: Likewise.
14047         * m4/readline.m4: Likewise.
14048         * m4/readlink.m4: Likewise.
14049         * m4/readutmp.m4: Likewise.
14050         * m4/realloc.m4: Likewise.
14051         * m4/regex.m4: Likewise.
14052         * m4/relocatable.m4: Likewise.
14053         * m4/relocatable-lib.m4: Likewise.
14054         * m4/rename-dest-slash.m4: Likewise.
14055         * m4/rename.m4: Likewise.
14056         * m4/rmdir-errno.m4: Likewise.
14057         * m4/rmdir.m4: Likewise.
14058         * m4/roundf.m4: Likewise.
14059         * m4/roundl.m4: Likewise.
14060         * m4/rpmatch.m4: Likewise.
14061         * m4/save-cwd.m4: Likewise.
14062         * m4/selinux-selinux-h.m4: Likewise.
14063         * m4/setenv.m4: Likewise.
14064         * m4/settime.m4: Likewise.
14065         * m4/sig2str.m4: Likewise.
14066         * m4/sig_atomic_t.m4: Likewise.
14067         * m4/signalblocking.m4: Likewise.
14068         * m4/signbit.m4: Likewise.
14069         * m4/sigpipe.m4: Likewise.
14070         * m4/sockets.m4: Likewise.
14071         * m4/sockpfaf.m4: Likewise.
14072         * m4/st_dm_mode.m4: Likewise.
14073         * m4/stat-time.m4: Likewise.
14074         * m4/stdbool.m4: Likewise.
14075         * m4/stdint.m4: Likewise.
14076         * m4/stdint_h.m4: Likewise.
14077         * m4/stpcpy.m4: Likewise.
14078         * m4/stpncpy.m4: Likewise.
14079         * m4/strcase.m4: Likewise.
14080         * m4/strchrnul.m4: Likewise.
14081         * m4/strcspn.m4: Likewise.
14082         * m4/strdup.m4: Likewise.
14083         * m4/strftime.m4: Likewise.
14084         * m4/strndup.m4: Likewise.
14085         * m4/strnlen.m4: Likewise.
14086         * m4/strpbrk.m4: Likewise.
14087         * m4/strptime.m4: Likewise.
14088         * m4/strsep.m4: Likewise.
14089         * m4/strtod.m4: Likewise.
14090         * m4/strtoimax.m4: Likewise.
14091         * m4/strtok_r.m4: Likewise.
14092         * m4/strtol.m4: Likewise.
14093         * m4/strtoll.m4: Likewise.
14094         * m4/strtoul.m4: Likewise.
14095         * m4/strtoull.m4: Likewise.
14096         * m4/strtoumax.m4: Likewise.
14097         * m4/strverscmp.m4: Likewise.
14098         * m4/threadlib.m4: Likewise.
14099         * m4/timegm.m4: Likewise.
14100         * m4/tm_gmtoff.m4: Likewise.
14101         * m4/tmpdir.m4: Likewise.
14102         * m4/tmpfile.m4: Likewise.
14103         * m4/tzset.m4: Likewise.
14104         * m4/uintmax_t.m4: Likewise.
14105         * m4/unlinkdir.m4: Likewise.
14106         * m4/unlocked-io.m4: Likewise.
14107         * m4/uptime.m4: Likewise.
14108         * m4/userspec.m4: Likewise.
14109         * m4/utimbuf.m4: Likewise.
14110         * m4/utime.m4: Likewise.
14111         * m4/utimes-null.m4: Likewise.
14112         * m4/utimes.m4: Likewise.
14113         * m4/vararrays.m4: Likewise.
14114         * m4/vasnprintf.m4: Likewise.
14115         * m4/vfprintf-posix.m4: Likewise.
14116         * m4/vprintf-posix.m4: Likewise.
14117         * m4/wait-process.m4: Likewise.
14118         * m4/wchar_t.m4: Likewise.
14119         * m4/wint_t.m4: Likewise.
14120         * m4/write-any-file.m4: Likewise.
14121         * m4/yield.m4: Likewise.
14122
14123 2009-01-13  Bruno Haible  <bruno@clisp.org>
14124
14125         Avoid test-copy-file.sh failures when ACL support insufficient.
14126         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
14127         TESTS_ENVIRONMENT.
14128         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
14129         Reported by Jim Meyering.
14130
14131 2009-01-13  Bruno Haible  <bruno@clisp.org>
14132
14133         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
14134         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
14135         * modules/unistdio/u8-printf-parse (Files): Likewise.
14136         * modules/unistdio/u32-printf-parse (Files): Likewise.
14137         * modules/unistdio/ulc-printf-parse (Files): Likewise.
14138
14139 2009-01-13  Simon Josefsson  <simon@josefsson.org>
14140
14141         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
14142         and m4/inttypes_h.m4 too.
14143
14144 2009-01-12  Eric Blake  <ebb9@byu.net>
14145
14146         tests: IRIX 6.2 cc can't compile -0.0 into .data
14147         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
14148         rather than at compile-time.
14149         * tests/test-floorl.c (minus_zero): Likewise.
14150         * tests/test-frexpl.c (minus_zero): Likewise.
14151         * tests/test-isnan.c (minus_zerol): Likewise.
14152         * tests/test-isnanl.h (minus_zero): Likewise.
14153         * tests/test-ldexpl.c (minus_zero): Likewise.
14154         * tests/test-roundl.c (minus_zero): Likewise.
14155         * tests/test-signbit.c (minus_zerol): Likewise.
14156         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
14157         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
14158         * tests/test-truncl.c (minus_zero): Likewise.
14159         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
14160         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
14161         Reported by Tom G. Christensen and Nelson H. F. Beebe.
14162
14163 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14164
14165         regex: fix glibc bug 9697
14166         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
14167         handling.
14168
14169 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14170
14171         regex: fix glibc bug 697
14172         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
14173         being NULL also if there are no backreferences.
14174
14175 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14176
14177         regex: merge glibc changes
14178         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
14179         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
14180         re_string_skip_chars, re_string_reconstruct): Likewise.
14181         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
14182
14183 2009-01-07  Jim Meyering  <meyering@redhat.com>
14184
14185         poll: filter through cppi
14186         * lib/poll.c: Indent cpp directives to reflect nesting.
14187
14188 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
14189
14190         poll: don't return uninitialized
14191         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
14192
14193 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
14194
14195         avoid compile failure on AIX 6.1
14196         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
14197         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
14198
14199 2009-01-04  Jim Meyering  <meyering@redhat.com>
14200
14201         remove duplicate inclusion of <stdio.h>
14202         * tests/test-fprintf-posix.c: Likewise.
14203         * tests/test-printf-posix.c: Likewise.
14204         * tests/test-snprintf-posix.c: Likewise.
14205         * tests/test-sprintf-posix.c: Likewise.
14206         * tests/test-vasprintf-posix.c: Likewise.
14207         * tests/test-vfprintf-posix.c: Likewise.
14208         * tests/test-vprintf-posix.c: Likewise.
14209         * tests/test-vsnprintf-posix.c: Likewise.
14210         * tests/test-vsprintf-posix.c: Likewise.
14211
14212 2009-01-03  Jim Meyering  <meyering@redhat.com>
14213
14214         gnulib-tool: fix sed-based filtering
14215         * gnulib-tool (func_filter_filelist): Remove extra backslash
14216         in sed_fff_filter definition.
14217
14218 2009-01-02  Jim Meyering  <meyering@redhat.com>
14219
14220         strftime: avoid compilation failure on Solaris 2.6
14221         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
14222         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
14223         Don't #define mbrlen or mbsinit, since now they're guaranteed to
14224         be available.  Reported by Tom G. Christensen.  Details in
14225         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
14226
14227 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14228             Bruno Haible  <bruno@clisp.org>
14229
14230         Speed up gnulib-tool by doing more string processing through shell
14231         built-ins.
14232         * gnulib-tool (fast_func_append): New variable.
14233         (func_remove_prefix, func_remove_suffix): New functions.
14234         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
14235         (func_filter_filelist): New function.
14236         (func_get_dependencies): Use func_remove_suffix instead of sed.
14237         (func_get_automake_snippet): Use func_filter_filelist instead of a
14238         subshell and sed invocation.
14239
14240 2009-01-01  Bruno Haible  <bruno@clisp.org>
14241
14242         Fix a security bug.
14243         * gnulib-tool (func_import, import, update): Don't allow the characters
14244         '"', '$', '`', '\' in macro arguments that become part of commands that
14245         are evaluated.
14246
14247 2009-01-01  Bruno Haible  <bruno@clisp.org>
14248
14249         * gnulib-tool (func_reset_sigpipe): Add more comments.
14250
14251 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14252
14253         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
14254         func_emit_tests_Makefile_am, func_import): Abort loops early if we
14255         already know the answer.
14256
14257 2009-01-01  Jim Meyering  <meyering@redhat.com>
14258
14259         * lib/version-etc.c (version_etc_va): Update copyright year.
14260
14261 2008-12-30  Bruno Haible  <bruno@clisp.org>
14262
14263         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
14264         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
14265         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
14266
14267 2008-12-29  Eric Blake  <ebb9@byu.net>
14268
14269         multiarch: avoid autoconf AC_REQUIRE bug
14270         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
14271         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
14272         2.63 and older.
14273         Reported by Bruno Haible, and analyzed in
14274         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
14275
14276 2008-12-29  Bruno Haible  <bruno@clisp.org>
14277
14278         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
14279         files in subdirectories correctly.
14280         Reported by Ralf Wildenhues.
14281
14282 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14283
14284         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
14285         rather than 'join FILE -', for Solaris join.
14286
14287 2008-12-29  Bruno Haible  <bruno@clisp.org>
14288
14289         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
14290         quoting.
14291         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14292         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14293         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14294         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
14295         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14296         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14297         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14298         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14299         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14300         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14301         * m4/nls.m4 (AM_NLS): Likewise.
14302         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
14303         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14304         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14305         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14306         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14307         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14308         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
14309         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14310         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14311         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14312         * m4/xsize.m4 (gl_XSIZE): Likewise.
14313         Suggested by Jim Meyering.
14314
14315 2008-11-17  Bruce Korb  <bkorb@gnu.org>
14316
14317         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
14318         * lib/parse-duration.c: use a switch instead of cascading if's.
14319
14320 2008-12-29  Eric Blake  <ebb9@byu.net>
14321
14322         wchar.h: supply WEOF on Irix 5.3
14323         * lib/wchar.in.h (wint_t): Also supply WEOF.
14324         * lib/wctype.in.h (wint_t): Likewise.
14325         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
14326         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
14327         Reported by Tom G. Christensen.
14328
14329 2008-12-26  Bruno Haible  <bruno@clisp.org>
14330
14331         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
14332         i486, i586, i686.
14333
14334 2008-12-26  Bruno Haible  <bruno@clisp.org>
14335
14336         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
14337
14338 2008-12-26  Bruno Haible  <bruno@clisp.org>
14339
14340         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
14341         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
14342         not __STDC_CONSTANT_MACROS.
14343         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
14344
14345 2008-12-25  Bruno Haible  <bruno@clisp.org>
14346
14347         Add support for universal builds to vasnprintf.
14348         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
14349         universal builds, guess no.
14350         * modules/vasnprintf-posix (Depends-on): Add multiarch.
14351         * modules/vasprintf-posix (Depends-on): Likewise.
14352         * modules/fprintf-posix (Depends-on): Likewise.
14353         * modules/vfprintf-posix (Depends-on): Likewise.
14354         * modules/snprintf-posix (Depends-on): Likewise.
14355         * modules/vsnprintf-posix (Depends-on): Likewise.
14356         * modules/sprintf-posix (Depends-on): Likewise.
14357         * modules/vsprintf-posix (Depends-on): Likewise.
14358         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14359         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14360         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14361         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14362         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14363         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14364         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14365
14366         Add support for universal builds to <inttypes.h>.
14367         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
14368         _SCNu64_PREFIX): In Apple
14369         universal builds, define directly, using _LP64.
14370         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
14371         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
14372         * modules/inttypes (Depends-on): Add multiarch.
14373         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14374
14375         Add support for universal builds to <stdint.h>.
14376         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
14377         universal builds, define directly, using _LP64.
14378         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
14379         Apple universal builds, don't test for the size and suffix of ptrdiff_t
14380         and size_t.
14381         * modules/stdint (Depends-on): Add multiarch.
14382         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14383
14384         New module 'multiarch'.
14385         * modules/multiarch: New file.
14386         * m4/multiarch.m4: New file.
14387
14388 2008-12-25  Bruno Haible  <bruno@clisp.org>
14389
14390         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
14391
14392 2008-12-25  Bruno Haible  <bruno@clisp.org>
14393
14394         * modules/btowc (License): Relicense under LGPLv2+.
14395         * modules/mbsinit (License): Likewise.
14396         * modules/mbrtowc (License): Likewise.
14397         * modules/wcrtomb (License): Likewise.
14398         * modules/streq (License): Likewise.
14399         Reported by David Lutterkort <lutter@redhat.com>.
14400
14401 2008-12-23  Bruno Haible  <bruno@clisp.org>
14402
14403         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
14404
14405 2008-12-23  Bruno Haible  <bruno@clisp.org>
14406
14407         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
14408         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
14409         GETADDRINFO_LIB, not in LIBS.
14410         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
14411         * modules/canon-host (Link): Likewise.
14412         * NEWS: Mention the change.
14413         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
14414         GETADDRINFO_LIB.
14415
14416 2008-12-22  Bruno Haible  <bruno@clisp.org>
14417
14418         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
14419         * doc/posix-functions/iswalpha_l.texi: Likewise.
14420         * doc/posix-functions/iswblank_l.texi: Likewise.
14421         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14422         * doc/posix-functions/iswctype_l.texi: Likewise.
14423         * doc/posix-functions/iswdigit_l.texi: Likewise.
14424         * doc/posix-functions/iswgraph_l.texi: Likewise.
14425         * doc/posix-functions/iswlower_l.texi: Likewise.
14426         * doc/posix-functions/iswprint_l.texi: Likewise.
14427         * doc/posix-functions/iswpunct_l.texi: Likewise.
14428         * doc/posix-functions/iswspace_l.texi: Likewise.
14429         * doc/posix-functions/iswupper_l.texi: Likewise.
14430         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14431         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
14432         * doc/posix-functions/open_wmemstream.texi: Likewise.
14433         * doc/posix-functions/swscanf.texi: Likewise.
14434         * doc/posix-functions/towctrans_l.texi: Likewise.
14435         * doc/posix-functions/towlower.texi: Likewise.
14436         * doc/posix-functions/towlower_l.texi: Likewise.
14437         * doc/posix-functions/towupper.texi: Likewise.
14438         * doc/posix-functions/towupper_l.texi: Likewise.
14439         * doc/posix-functions/vfwprintf.texi: Likewise.
14440         * doc/posix-functions/vfwscanf.texi: Likewise.
14441         * doc/posix-functions/vswscanf.texi: Likewise.
14442         * doc/posix-functions/vwprintf.texi: Likewise.
14443         * doc/posix-functions/vwscanf.texi: Likewise.
14444         * doc/posix-functions/wcpcpy.texi: Likewise.
14445         * doc/posix-functions/wcpncpy.texi: Likewise.
14446         * doc/posix-functions/wcscasecmp.texi: Likewise.
14447         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
14448         * doc/posix-functions/wcscoll_l.texi: Likewise.
14449         * doc/posix-functions/wcsdup.texi: Likewise.
14450         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14451         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
14452         * doc/posix-functions/wcsnlen.texi: Likewise.
14453         * doc/posix-functions/wcsnrtombs.texi: Likewise.
14454         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14455         * doc/posix-functions/wctrans_l.texi: Likewise.
14456         * doc/posix-functions/wctype_l.texi: Likewise.
14457         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
14458         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
14459         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
14460         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
14461         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
14462         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
14463         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
14464         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
14465         * doc/glibc-functions/wcschrnul.texi: Likewise.
14466         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14467         * doc/glibc-functions/wcstod_l.texi: Likewise.
14468         * doc/glibc-functions/wcstof_l.texi: Likewise.
14469         * doc/glibc-functions/wcstol_l.texi: Likewise.
14470         * doc/glibc-functions/wcstold_l.texi: Likewise.
14471         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14472         * doc/glibc-functions/wcstoq.texi: Likewise.
14473         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14474         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14475         * doc/glibc-functions/wcstouq.texi: Likewise.
14476         * doc/glibc-functions/wmempcpy.texi: Likewise.
14477
14478 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
14479             Eric Blake  <ebb9@byu.net>
14480             Paolo Bonzini  <bonzini@gnu.org>
14481             Bruno Haible  <bruno@clisp.org>
14482
14483         Make c-stack work on Haiku.
14484         * lib/c-stack.c (SA_ONSTACK): Define fallback.
14485         (c_stack_action): Use SA_ONSTACK flag.
14486
14487 2008-12-22  Bruno Haible  <bruno@clisp.org>
14488
14489         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
14490
14491 2008-12-22  Bruno Haible  <bruno@clisp.org>
14492
14493         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
14494         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
14495         being overridden.
14496         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
14497         New macros.
14498         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
14499         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
14500         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
14501         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
14502
14503 2008-12-22  Bruno Haible  <bruno@clisp.org>
14504
14505         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
14506         from test code.
14507
14508 2008-12-22  Eric Blake  <ebb9@byu.net>
14509
14510         Avoid gcc warnings on cygwin.
14511         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
14512         Avoid unused variable.
14513         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
14514         Likewise.
14515
14516 2008-12-22  Bruno Haible  <bruno@clisp.org>
14517
14518         Remove HAVE_MBRTOWC conditionals.
14519         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
14520         (mbscasecmp): Assume mbrtowc function.
14521         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
14522         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
14523         * lib/mbschr.c: Include mbuiter.h unconditionally.
14524         (mbschr): Assume mbrtowc function.
14525         * lib/mbscspn.c: Include mbuiter.h unconditionally.
14526         (mbscspn): Assume mbrtowc function.
14527         * lib/mbslen.c: Include mbuiter.h unconditionally.
14528         (mbslen): Assume mbrtowc function.
14529         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
14530         (mbsncasecmp): Assume mbrtowc function.
14531         * lib/mbsnlen.c: Include mbiter.h unconditionally.
14532         (mbsnlen): Assume mbrtowc function.
14533         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
14534         (mbspbrk): Assume mbrtowc function.
14535         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
14536         (mbspcasecmp): Assume mbrtowc function.
14537         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
14538         (mbsrchr): Assume mbrtowc function.
14539         * lib/mbssep.c: Include mbuiter.h unconditionally.
14540         (mbssep): Assume mbrtowc function.
14541         * lib/mbsspn.c: Include mbuiter.h unconditionally.
14542         (mbsspn): Assume mbrtowc function.
14543         * lib/mbsstr.c: Include mbuiter.h unconditionally.
14544         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
14545         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
14546         (mbstok_r): Assume mbrtowc function.
14547         * lib/propername.c: Include mbuiter.h unconditionally.
14548         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
14549         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
14550         (trim2): Assume mbrtowc function.
14551         * lib/mbswidth.c (mbsinit): Remove fallback definition.
14552         (mbsnwidth): Assume mbrtowc function.
14553         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
14554         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
14555         fallback definitions.
14556         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
14557
14558 2008-12-22  Bruno Haible  <bruno@clisp.org>
14559
14560         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
14561
14562 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
14563
14564         * modules/regex: Request emulations for the mb*/wc* functions we need.
14565         * m4/regex.m4: Don't look for those functions here.
14566         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
14567
14568 2008-12-22  Bruno Haible  <bruno@clisp.org>
14569
14570         * modules/fnmatch (Depends-on): Remove duplicated dependency.
14571
14572 2008-12-21  Bruno Haible  <bruno@clisp.org>
14573
14574         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
14575         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
14576         (Include): Remove conditionalization.
14577         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
14578         (Include): Remove conditionalization.
14579         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
14580         (Include): Remove conditionalization.
14581         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
14582         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14583         * NEWS: Mention the change.
14584         Reported by Alan Hourihane <alanh@fairlite.co.uk>
14585         via Sergey Poznyakoff <gray@gnu.org.ua>.
14586
14587 2008-12-21  Bruno Haible  <bruno@clisp.org>
14588
14589         * MODULES.html.sh (Extended multibyte and wide character utilities
14590         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
14591         wcrtomb, wcsrtombs.
14592         (Support for systems lacking POSIX:2008): Add accept, bind, close,
14593         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
14594         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
14595         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
14596
14597 2008-12-21  Bruno Haible  <bruno@clisp.org>
14598
14599         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
14600
14601 2008-12-21  Bruno Haible  <bruno@clisp.org>
14602
14603         * modules/wcsnrtombs-tests: New file.
14604         * tests/test-wcsnrtombs1.sh: New file.
14605         * tests/test-wcsnrtombs2.sh: New file.
14606         * tests/test-wcsnrtombs3.sh: New file.
14607         * tests/test-wcsnrtombs4.sh: New file.
14608         * tests/test-wcsnrtombs.c: New file.
14609
14610         New module 'wcsnrtombs'.
14611         * lib/wchar.in.h (wcsnrtombs): New declaration.
14612         * lib/wcsnrtombs.c: New file.
14613         * lib/wcsrtombs-state.c: New file.
14614         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
14615         (internal_state): Remove variable.
14616         * m4/wcsnrtombs.m4: New file.
14617         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
14618         compilation units.
14619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
14620         HAVE_WCSNRTOMBS.
14621         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
14622         HAVE_WCSNRTOMBS.
14623         * modules/wcsnrtombs: New file.
14624         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
14625         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
14626
14627 2008-12-21  Bruno Haible  <bruno@clisp.org>
14628
14629         * modules/wcsrtombs-tests: New file.
14630         * tests/test-wcsrtombs1.sh: New file.
14631         * tests/test-wcsrtombs2.sh: New file.
14632         * tests/test-wcsrtombs3.sh: New file.
14633         * tests/test-wcsrtombs4.sh: New file.
14634         * tests/test-wcsrtombs.c: New file.
14635
14636         New module 'wcsrtombs'.
14637         * lib/wchar.in.h (wcsrtombs): New declaration.
14638         * lib/wcsrtombs.c: New file.
14639         * m4/wcsrtombs.m4: New file.
14640         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
14641         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14642         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
14643         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14644         * modules/wcsrtombs: New file.
14645         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
14646         bugs.
14647
14648 2008-12-21  Bruno Haible  <bruno@clisp.org>
14649
14650         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
14651         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
14652         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
14653         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
14654         if not correct.
14655         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
14656         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
14657         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14658         m4/locale-zh.m4, m4/codeset.m4.
14659         * doc/posix-functions/wcrtomb.texi: Document the bug.
14660
14661 2008-12-21  Bruno Haible  <bruno@clisp.org>
14662
14663         Work around a btowc() bug on IRIX 6.5.
14664         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
14665         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
14666         REPLACE_WTOBC if not.
14667         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
14668         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
14669         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
14670
14671 2008-12-21  Bruno Haible  <bruno@clisp.org>
14672
14673         * modules/wcrtomb-tests: New file.
14674         * tests/test-wcrtomb.sh: New file.
14675         * tests/test-wcrtomb.c: New file.
14676
14677         New module 'wcrtomb'.
14678         * lib/wchar.in.h (wcrtomb): New declaration.
14679         * lib/wcrtomb.c: New file.
14680         * m4/wcrtomb.m4: New file.
14681         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
14682         HAVE_WCRTOMB.
14683         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
14684         HAVE_WCRTOMB.
14685         * modules/wcrtomb: New file.
14686         * doc/posix-functions/wcrtomb.texi: Mention the new module.
14687
14688 2008-12-21  Bruno Haible  <bruno@clisp.org>
14689
14690         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
14691         * modules/mbsrtowcs (Files): Likewise.
14692         * modules/wctob (Files): Likewise.
14693         * modules/c-strcase-tests (Files): Likewise.
14694         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
14695         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
14696         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
14697         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
14698         * modules/vasnprintf-posix-tests (Files): Likewise.
14699
14700 2008-12-21  William Pursell  <bill.pursell@gmail.com>
14701
14702         gitlog-to-changelog: pass all command-line arguments to git-log
14703         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
14704         it is sometimes convenient to filter the commits in various ways.
14705         gitlog-to-changelog only allows --since to specify a start date,
14706         but git-log itself supports many other filtering mechanisms.
14707         At the moment, I want to filter by branch name.  Rather than
14708         adding a --branch option to gitlog-to-changelog, it seems more
14709         flexible to simply pass all options directly to git-log and let
14710         git do the work.  Notice that this effectively makes --since a
14711         redundant option for gitlog-to-changelog, but removing it would
14712         require current usage to change since calls would then require
14713         an additional '--'.
14714
14715 2008-12-21  Bruno Haible  <bruno@clisp.org>
14716
14717         * modules/mbsnrtowcs-tests: New file.
14718         * tests/test-mbsnrtowcs1.sh: New file.
14719         * tests/test-mbsnrtowcs2.sh: New file.
14720         * tests/test-mbsnrtowcs3.sh: New file.
14721         * tests/test-mbsnrtowcs4.sh: New file.
14722         * tests/test-mbsnrtowcs.c: New file.
14723
14724         New module 'mbsnrtowcs'.
14725         * lib/wchar.in.h (mbsnrtowcs): New declaration.
14726         * lib/mbsnrtowcs.c: New file.
14727         * lib/mbsrtowcs-state.c: New file.
14728         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
14729         (internal_state): Remove variable.
14730         * m4/mbsnrtowcs.m4: New file.
14731         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
14732         compilation units.
14733         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
14734         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14735         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
14736         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14737         * modules/mbsnrtowcs: New file.
14738         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
14739         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
14740         portability problem.
14741
14742 2008-12-21  Bruno Haible  <bruno@clisp.org>
14743
14744         Work around mbsrtowcs bug.
14745         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
14746         (gl_FUNC_MBSRTOWCS): Invoke it.
14747         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14748         m4/locale-zh.m4.
14749         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
14750
14751 2008-12-21  Bruno Haible  <bruno@clisp.org>
14752
14753         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
14754
14755 2008-12-21  Bruno Haible  <bruno@clisp.org>
14756
14757         Update doc for AIX.
14758         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
14759         16-bit wchar_t type.
14760         * doc/posix-functions/btowc.texi: Likewise.
14761         * doc/posix-functions/fgetwc.texi: Likewise.
14762         * doc/posix-functions/fgetws.texi: Likewise.
14763         * doc/posix-functions/fputwc.texi: Likewise.
14764         * doc/posix-functions/fputws.texi: Likewise.
14765         * doc/posix-functions/fwide.texi: Likewise.
14766         * doc/posix-functions/fwprintf.texi: Likewise.
14767         * doc/posix-functions/fwscanf.texi: Likewise.
14768         * doc/posix-functions/getwchar.texi: Likewise.
14769         * doc/posix-functions/getwc.texi: Likewise.
14770         * doc/posix-functions/iswalnum.texi: Likewise.
14771         * doc/posix-functions/iswalpha.texi: Likewise.
14772         * doc/posix-functions/iswblank.texi: Likewise.
14773         * doc/posix-functions/iswcntrl.texi: Likewise.
14774         * doc/posix-functions/iswctype.texi: Likewise.
14775         * doc/posix-functions/iswdigit.texi: Likewise.
14776         * doc/posix-functions/iswgraph.texi: Likewise.
14777         * doc/posix-functions/iswlower.texi: Likewise.
14778         * doc/posix-functions/iswprint.texi: Likewise.
14779         * doc/posix-functions/iswpunct.texi: Likewise.
14780         * doc/posix-functions/iswspace.texi: Likewise.
14781         * doc/posix-functions/iswupper.texi: Likewise.
14782         * doc/posix-functions/iswxdigit.texi: Likewise.
14783         * doc/posix-functions/mbrtowc.texi: Likewise.
14784         * doc/posix-functions/mbsrtowcs.texi: Likewise.
14785         * doc/posix-functions/mbstowcs.texi: Likewise.
14786         * doc/posix-functions/mbtowc.texi: Likewise.
14787         * doc/posix-functions/putwchar.texi: Likewise.
14788         * doc/posix-functions/putwc.texi: Likewise.
14789         * doc/posix-functions/swprintf.texi: Likewise.
14790         * doc/posix-functions/tolower.texi: Likewise.
14791         * doc/posix-functions/toupper.texi: Likewise.
14792         * doc/posix-functions/towctrans.texi: Likewise.
14793         * doc/posix-functions/ungetwc.texi: Likewise.
14794         * doc/posix-functions/vswprintf.texi: Likewise.
14795         * doc/posix-functions/wcrtomb.texi: Likewise.
14796         * doc/posix-functions/wcscat.texi: Likewise.
14797         * doc/posix-functions/wcschr.texi: Likewise.
14798         * doc/posix-functions/wcscmp.texi: Likewise.
14799         * doc/posix-functions/wcscoll.texi: Likewise.
14800         * doc/posix-functions/wcscpy.texi: Likewise.
14801         * doc/posix-functions/wcscspn.texi: Likewise.
14802         * doc/posix-functions/wcsftime.texi: Likewise.
14803         * doc/posix-functions/wcslen.texi: Likewise.
14804         * doc/posix-functions/wcsncat.texi: Likewise.
14805         * doc/posix-functions/wcsncmp.texi: Likewise.
14806         * doc/posix-functions/wcsncpy.texi: Likewise.
14807         * doc/posix-functions/wcspbrk.texi: Likewise.
14808         * doc/posix-functions/wcsrchr.texi: Likewise.
14809         * doc/posix-functions/wcsrtombs.texi: Likewise.
14810         * doc/posix-functions/wcsspn.texi: Likewise.
14811         * doc/posix-functions/wcsstr.texi: Likewise.
14812         * doc/posix-functions/wcstod.texi: Likewise.
14813         * doc/posix-functions/wcstof.texi: Likewise.
14814         * doc/posix-functions/wcstoimax.texi: Likewise.
14815         * doc/posix-functions/wcstok.texi: Likewise.
14816         * doc/posix-functions/wcstold.texi: Likewise.
14817         * doc/posix-functions/wcstoll.texi: Likewise.
14818         * doc/posix-functions/wcstol.texi: Likewise.
14819         * doc/posix-functions/wcstombs.texi: Likewise.
14820         * doc/posix-functions/wcstoull.texi: Likewise.
14821         * doc/posix-functions/wcstoul.texi: Likewise.
14822         * doc/posix-functions/wcstoumax.texi: Likewise.
14823         * doc/posix-functions/wcswidth.texi: Likewise.
14824         * doc/posix-functions/wcsxfrm.texi: Likewise.
14825         * doc/posix-functions/wctob.texi: Likewise.
14826         * doc/posix-functions/wctomb.texi: Likewise.
14827         * doc/posix-functions/wctrans.texi: Likewise.
14828         * doc/posix-functions/wctype.texi: Likewise.
14829         * doc/posix-functions/wcwidth.texi: Likewise.
14830         * doc/posix-functions/wmemchr.texi: Likewise.
14831         * doc/posix-functions/wmemcmp.texi: Likewise.
14832         * doc/posix-functions/wmemcpy.texi: Likewise.
14833         * doc/posix-functions/wmemmove.texi: Likewise.
14834         * doc/posix-functions/wmemset.texi: Likewise.
14835         * doc/posix-functions/wprintf.texi: Likewise.
14836         * doc/posix-functions/wscanf.texi: Likewise.
14837
14838 2008-12-21  Bruno Haible  <bruno@clisp.org>
14839
14840         Update doc for HP-UX 11.11.
14841         * doc/posix-functions/btowc.texi: Clarify that the function is missing
14842         in HP-UX version 11.00, not in all versions of HP-UX 11.
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/inet_ntop.texi: Likewise.
14847         * doc/posix-functions/inet_pton.texi: Likewise.
14848         * doc/posix-functions/mbrlen.texi: Likewise.
14849         * doc/posix-functions/mbrtowc.texi: Likewise.
14850         * doc/posix-functions/mbsinit.texi: Likewise.
14851         * doc/posix-functions/mbsrtowcs.texi: Likewise.
14852         * doc/posix-functions/swprintf.texi: Likewise.
14853         * doc/posix-functions/swscanf.texi: Likewise.
14854         * doc/posix-functions/towctrans.texi: Likewise.
14855         * doc/posix-functions/vfwprintf.texi: Likewise.
14856         * doc/posix-functions/vswprintf.texi: Likewise.
14857         * doc/posix-functions/vwprintf.texi: Likewise.
14858         * doc/posix-functions/wcrtomb.texi: Likewise.
14859         * doc/posix-functions/wcsrtombs.texi: Likewise.
14860         * doc/posix-functions/wcsstr.texi: Likewise.
14861         * doc/posix-functions/wctob.texi: Likewise.
14862         * doc/posix-functions/wctrans.texi: Likewise.
14863         * doc/posix-functions/wmemchr.texi: Likewise.
14864         * doc/posix-functions/wmemcmp.texi: Likewise.
14865         * doc/posix-functions/wmemcpy.texi: Likewise.
14866         * doc/posix-functions/wmemmove.texi: Likewise.
14867         * doc/posix-functions/wmemset.texi: Likewise.
14868         * doc/posix-functions/wprintf.texi: Likewise.
14869         * doc/posix-functions/wscanf.texi: Likewise.
14870
14871 2008-12-21  Bruno Haible  <bruno@clisp.org>
14872
14873         Work around a portability problem.
14874         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
14875         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
14876
14877 2008-12-20  Bruno Haible  <bruno@clisp.org>
14878
14879         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
14880         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
14881         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
14882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
14883         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
14884
14885         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
14886         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
14887         set.
14888         (GNULIB_defined_mbstate_t): New macro.
14889         (mbsinit): Redefine if REPLACE_MBSINIT is set.
14890         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
14891         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
14892         reuses the system's mbrtowc function but works around the bugs.
14893         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
14894         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
14895         macros.
14896         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
14897         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
14898         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
14899         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
14900         REPLACE_MBSINIT if mbsinit needs to be overridden.
14901         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
14902         REPLACE_MBSINIT, REPLACE_MBRTOWC.
14903         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
14904         REPLACE_MBSINIT, REPLACE_MBRTOWC.
14905         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14906         m4/locale-zh.m4.
14907         (Depends): Add mbsinit.
14908         * modules/mbsinit (Depends): Add mbrtowc.
14909         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
14910
14911 2008-12-20  Bruno Haible  <bruno@clisp.org>
14912
14913         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
14914         so that there are no conversion errors on AIX.
14915         * tests/test-mbsrtowcs.c (main): LIkewise.
14916
14917 2008-12-20  Bruno Haible  <bruno@clisp.org>
14918
14919         Work around wctob bug on Solaris <= 9.
14920         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
14921         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
14922         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
14923         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
14924         * modules/wctob (Files): Add m4/locale-fr.m4.
14925         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
14926
14927 2008-12-20  Bruno Haible  <bruno@clisp.org>
14928
14929         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
14930         /dev/null.
14931         * tests/test-select-in.sh: Likewise.
14932         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14933
14934 2008-12-20  Bruno Haible  <bruno@clisp.org>
14935
14936         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
14937         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
14938         Cygwin 1.5.x.
14939
14940 2008-12-20  Bruno Haible  <bruno@clisp.org>
14941
14942         Ensure mbstate_t is defined on HP-UX 11.11.
14943         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
14944         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
14945         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
14946         AC_USE_SYSTEM_EXTENSIONS.
14947         * modules/fnmatch (Depends-on): Add extensions.
14948         * modules/mbrlen (Depends-on): Likewise.
14949         * modules/mbrtowc (Depends-on): Likewise.
14950         * modules/mbsinit (Depends-on): Likewise.
14951         * modules/mbsrtowcs (Depends-on): Likewise.
14952         * modules/mbswidth (Depends-on): Likewise.
14953         * modules/quotearg (Depends-on): Likewise.
14954         * modules/strftime (Depends-on): Likewise.
14955
14956 2008-12-20  Bruno Haible  <bruno@clisp.org>
14957
14958         Ensure wctob is declared on IRIX 6.5.
14959         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
14960         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
14961         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
14962         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
14963         of HAVE_WCTOB.
14964         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
14965         HAVE_WCTOB.
14966         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
14967
14968 2008-12-19  Bruno Haible  <bruno@clisp.org>
14969
14970         * modules/mbsrtowcs-tests: New file.
14971         * tests/test-mbsrtowcs1.sh: New file.
14972         * tests/test-mbsrtowcs2.sh: New file.
14973         * tests/test-mbsrtowcs3.sh: New file.
14974         * tests/test-mbsrtowcs4.sh: New file.
14975         * tests/test-mbsrtowcs.c: New file.
14976
14977         New module 'mbsrtowcs'.
14978         * lib/wchar.in.h (mbsrtowcs): New declaration.
14979         * lib/mbsrtowcs.c: New file.
14980         * m4/mbsrtowcs.m4: New file.
14981         * modules/mbsrtowcs: New file.
14982         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
14983         HAVE_MBSRTOWCS.
14984         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
14985         HAVE_MBSRTOWCS.
14986         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
14987
14988 2008-12-19  Bruno Haible  <bruno@clisp.org>
14989
14990         New module 'mbrlen'.
14991         * lib/wchar.in.h (mbrlen): New declaration.
14992         * lib/mbrlen.c: New file.
14993         * m4/mbrlen.m4: New file.
14994         * modules/mbrlen: New file.
14995         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
14996         HAVE_MBRLEN.
14997         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
14998         HAVE_MBRLEN.
14999         * doc/posix-functions/mbrlen.texi: Document the new module.
15000
15001 2008-12-19  Bruno Haible  <bruno@clisp.org>
15002
15003         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
15004         * modules/mbrtowc (Depends-on): Add verify.
15005         Suggested by Paul Eggert.
15006
15007 2008-12-18  Bruno Haible  <bruno@clisp.org>
15008
15009         * modules/mbsinit-tests: New file.
15010         * tests/test-mbsinit.sh: New file.
15011         * tests/test-mbsinit.c: New file.
15012
15013 2008-12-18  Bruno Haible  <bruno@clisp.org>
15014
15015         * modules/mbrtowc-tests: New file.
15016         * tests/test-mbrtowc1.sh: New file.
15017         * tests/test-mbrtowc2.sh: New file.
15018         * tests/test-mbrtowc3.sh: New file.
15019         * tests/test-mbrtowc4.sh: New file.
15020         * tests/test-mbrtowc.c: New file.
15021
15022         New module 'mbrtowc'.
15023         * lib/wchar.in.h (mbstate_t): Override when the system does not have
15024         mbsinit and mbrtowc.
15025         (mbrtowc): New declaration.
15026         * lib/mbrtowc.c: New file.
15027         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
15028         * modules/mbrtowc: New file.
15029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
15030         HAVE_MBRTOWC.
15031         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
15032         HAVE_MBRTOWC.
15033         * doc/posix-functions/mbrtowc.texi: Document the new module.
15034
15035 2008-12-18  Bruno Haible  <bruno@clisp.org>
15036
15037         New module 'wctob'.
15038         * lib/wchar.in.h (wctob): New declaration.
15039         * lib/wctob.c: New file.
15040         * m4/wctob.m4: New file.
15041         * modules/wctob: New file.
15042         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
15043         HAVE_WCTOB.
15044         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
15045         * doc/posix-functions/wctob.texi: Document the new module.
15046
15047 2008-12-18  Bruno Haible  <bruno@clisp.org>
15048
15049         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
15050         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
15051
15052 2008-12-18  Simon Josefsson  <simon@josefsson.org>
15053
15054         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
15055         G. Christensen" <tgc@jupiterrise.com>.
15056
15057         * lib/flock.c: Need to include errno.h.  Reported by "Tom
15058         G. Christensen" <tgc@jupiterrise.com>.
15059
15060         * lib/flock.c: Need to include string.h.  Reported by "Tom
15061         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
15062         <ebb9@byu.net>.
15063
15064 2008-12-18  Bruno Haible  <bruno@clisp.org>
15065
15066         * m4/locale-ja.m4: New file, from GNU gettext.
15067
15068 2008-12-17  Bruno Haible  <bruno@clisp.org>
15069
15070         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
15071         Suggested by Eric Blake.
15072
15073 2008-12-17  Bruno Haible  <bruno@clisp.org>
15074
15075         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
15076
15077 2008-12-17  Bruno Haible  <bruno@clisp.org>
15078
15079         * lib/mbsinit.c: Include verify.h. Verify an assumption.
15080         * modules/mbsinit (Depends-on): Add verify.
15081         Suggested by Paul Eggert.
15082
15083 2008-12-17  Bruno Haible  <bruno@clisp.org>
15084
15085         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
15086         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
15087         gl_FUNC_MBRTOWC.
15088         * m4/mbiter.m4 (gl_MBITER): LIkewise.
15089         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
15090         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
15091         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
15092         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
15093         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
15094         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
15095         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
15096         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
15097         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
15098         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
15099         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
15100         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
15101         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
15102         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
15103         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15104         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
15105         * modules/trim (configure.ac): Likewise.
15106
15107 2008-12-17  Bruno Haible  <bruno@clisp.org>
15108
15109         * modules/btowc-tests: New file.
15110         * tests/test-btowc1.sh: New file.
15111         * tests/test-btowc2.sh: New file.
15112         * tests/test-btowc.c: New file.
15113
15114         New module 'btowc'.
15115         * lib/wchar.in.h (btowc): New declaration.
15116         * lib/btowc.c: New file.
15117         * m4/btowc.m4: New file.
15118         * modules/btowc: New file.
15119         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
15120         HAVE_BTOWC.
15121         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
15122         * doc/posix-functions/btowc.texi: Document the new module.
15123
15124 2008-12-17  Bruno Haible  <bruno@clisp.org>
15125
15126         New module 'mbsinit'.
15127         * lib/wchar.in.h (mbsinit): New declaration.
15128         * lib/mbsinit.c: New file.
15129         * m4/mbsinit.m4: New file.
15130         * modules/mbsinit: New file.
15131         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
15132         HAVE_MBSINIT.
15133         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
15134         HAVE_MBSINIT.
15135         * doc/posix-functions/mbsinit.texi: Document the new module.
15136
15137 2008-12-16  Bruno Haible  <bruno@clisp.org>
15138
15139         * lib/unistd.in.h: Add comment.
15140         * tests/test-environ.c: Don't include <stdlib.h>.
15141
15142 2008-12-16  Bruno Haible  <bruno@clisp.org>
15143
15144         * lib/parse-duration.h (parse_duration): Document return value
15145         convention.
15146         * lib/parse-duration.c: Include specification header first. Add
15147         comments.
15148         (_): Remove macro.
15149         (parse_year_month_day, parse_hour_minute_second): Move side effects
15150         outside of strchr call.
15151         (parse_non_iso8601): Move side effects outside of isspace call.
15152         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
15153         call.
15154
15155 2008-12-16  Bruno Haible  <bruno@clisp.org>
15156
15157         * tests/test-parse-duration.sh: Produce no output when the test
15158         succeeds.
15159
15160 2008-12-16  Bruno Haible  <bruno@clisp.org>
15161
15162         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
15163         expressions.
15164
15165 2008-12-15  Bruno Haible  <bruno@clisp.org>
15166
15167         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
15168         * doc/glibc-functions/flistxattr.texi: Likewise.
15169         * doc/glibc-functions/fopencookie.texi: Likewise.
15170         * doc/glibc-functions/fremovexattr.texi: Likewise.
15171         * doc/glibc-functions/fsetxattr.texi: Likewise.
15172         * doc/glibc-functions/getxattr.texi: Likewise.
15173         * doc/glibc-functions/lgetxattr.texi: Likewise.
15174         * doc/glibc-functions/listxattr.texi: Likewise.
15175         * doc/glibc-functions/llistxattr.texi: Likewise.
15176         * doc/glibc-functions/lremovexattr.texi: Likewise.
15177         * doc/glibc-functions/lsetxattr.texi: Likewise.
15178         * doc/glibc-functions/removexattr.texi: Likewise.
15179         * doc/glibc-functions/setxattr.texi: Likewise.
15180         * doc/posix-functions/open_memstream.texi: Likewise.
15181
15182 2008-12-15  Eric Blake  <ebb9@byu.net>
15183
15184         Update doc for cygwin 1.7.
15185         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
15186         functions.
15187         * doc/posix-functions/fchmodat.texi: Likewise.
15188         * doc/posix-functions/fchownat.texi: Likewise.
15189         * doc/posix-functions/fdopendir.texi: Likewise.
15190         * doc/posix-functions/fmemopen.texi: Likewise.
15191         * doc/posix-functions/freeaddrinfo.texi: Likewise.
15192         * doc/posix-functions/fstatat.texi: Likewise.
15193         * doc/posix-functions/futimens.texi: Likewise.
15194         * doc/posix-functions/gai_strerror.texi: Likewise.
15195         * doc/posix-functions/getaddrinfo.texi: Likewise.
15196         * doc/posix-functions/getnameinfo.texi: Likewise.
15197         * doc/posix-functions/if_freenameindex.texi: Likewise.
15198         * doc/posix-functions/if_indextoname.texi: Likewise.
15199         * doc/posix-functions/if_nameindex.texi: Likewise.
15200         * doc/posix-functions/if_nametoindex.texi: Likewise.
15201         * doc/posix-functions/insque.texi: Likewise.
15202         * doc/posix-functions/linkat.texi: Likewise.
15203         * doc/posix-functions/llrint.texi: Likewise.
15204         * doc/posix-functions/llrintf.texi: Likewise.
15205         * doc/posix-functions/llrintl.texi: Likewise.
15206         * doc/posix-functions/lockf.texi: Likewise.
15207         * doc/posix-functions/lrintl.texi: Likewise.
15208         * doc/posix-functions/mkdirat.texi: Likewise.
15209         * doc/posix-functions/mkfifoat.texi: Likewise.
15210         * doc/posix-functions/mknodat.texi: Likewise.
15211         * doc/posix-functions/mq_close.texi: Likewise.
15212         * doc/posix-functions/mq_getattr.texi: Likewise.
15213         * doc/posix-functions/mq_notify.texi: Likewise.
15214         * doc/posix-functions/mq_open.texi: Likewise.
15215         * doc/posix-functions/mq_receive.texi: Likewise.
15216         * doc/posix-functions/mq_send.texi: Likewise.
15217         * doc/posix-functions/mq_setattr.texi: Likewise.
15218         * doc/posix-functions/mq_timedreceive.texi: Likewise.
15219         * doc/posix-functions/mq_timedsend.texi: Likewise.
15220         * doc/posix-functions/mq_unlink.texi: Likewise.
15221         * doc/posix-functions/open_memstream.texi: Likewise.
15222         * doc/posix-functions/openat.texi: Likewise.
15223         * doc/posix-functions/posix_fadvise.texi: Likewise.
15224         * doc/posix-functions/posix_fallocate.texi: Likewise.
15225         * doc/posix-functions/posix_madvise.texi: Likewise.
15226         * doc/posix-functions/posix_memalign.texi: Likewise.
15227         * doc/posix-functions/posix_openpt.texi: Likewise.
15228         * doc/posix-functions/readlinkat.texi: Likewise.
15229         * doc/posix-functions/remque.texi: Likewise.
15230         * doc/posix-functions/renameat.texi: Likewise.
15231         * doc/posix-functions/rintl.texi: Likewise.
15232         * doc/posix-functions/sem_unlink.texi: Likewise.
15233         * doc/posix-functions/shm_open.texi: Likewise.
15234         * doc/posix-functions/shm_unlink.texi: Likewise.
15235         * doc/posix-functions/signgam.texi: Likewise.
15236         * doc/posix-functions/sigset.texi: Likewise.
15237         * doc/posix-functions/stpcpy.texi: Likewise.
15238         * doc/posix-functions/stpncpy.texi: Likewise.
15239         * doc/posix-functions/strerror.texi: Likewise.
15240         * doc/posix-functions/strtod.texi: Likewise.
15241         * doc/posix-functions/symlinkat.texi: Likewise.
15242         * doc/posix-functions/unlinkat.texi: Likewise.
15243         * doc/posix-functions/utimensat.texi: Likewise.
15244         * doc/glibc-functions/bindresvport.texi: Likewise.
15245         * doc/glibc-functions/dn_expand.texi: Likewise.
15246         * doc/glibc-functions/exp10.texi: Likewise.
15247         * doc/glibc-functions/exp10f.texi: Likewise.
15248         * doc/glibc-functions/fgetxattr.texi: Likewise.
15249         * doc/glibc-functions/flistxattr.texi: Likewise.
15250         * doc/glibc-functions/fopencookie.texi: Likewise.
15251         * doc/glibc-functions/freeifaddrs.texi: Likewise.
15252         * doc/glibc-functions/fremovexattr.texi: Likewise.
15253         * doc/glibc-functions/fsetxattr.texi: Likewise.
15254         * doc/glibc-functions/getifaddrs.texi: Likewise.
15255         * doc/glibc-functions/getxattr.texi: Likewise.
15256         * doc/glibc-functions/lgetxattr.texi: Likewise.
15257         * doc/glibc-functions/listxattr.texi: Likewise.
15258         * doc/glibc-functions/llistxattr.texi: Likewise.
15259         * doc/glibc-functions/lremovexattr.texi: Likewise.
15260         * doc/glibc-functions/lsetxattr.texi: Likewise.
15261         * doc/glibc-functions/pow10.texi: Likewise.
15262         * doc/glibc-functions/pow10f.texi: Likewise.
15263         * doc/glibc-functions/rcmd_af.texi: Likewise.
15264         * doc/glibc-functions/removexattr.texi: Likewise.
15265         * doc/glibc-functions/res_init.texi: Likewise.
15266         * doc/glibc-functions/res_mkquery.texi: Likewise.
15267         * doc/glibc-functions/res_query.texi: Likewise.
15268         * doc/glibc-functions/res_querydomain.texi: Likewise.
15269         * doc/glibc-functions/res_send.texi: Likewise.
15270         * doc/glibc-functions/rresvport_af.texi: Likewise.
15271         * doc/glibc-functions/setxattr.texi: Likewise.
15272         * doc/glibc-functions/strcasestr.texi: Likewise.
15273
15274 2008-12-15  Bruno Haible  <bruno@clisp.org>
15275
15276         Fix compilation error on OSF/1 4.0.
15277         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
15278         <sys/time.h>, simply delegate to the system header.
15279         Reported by Daniel Richard G. <oss@teragram.com>.
15280
15281 2008-12-15  Bruno Haible  <bruno@clisp.org>
15282
15283         * doc/posix-functions/openat.texi: Mention the 'openat' module.
15284         * doc/posix-functions/fchmodat.texi: Likewise.
15285         * doc/posix-functions/fchownat.texi: Likewise.
15286         * doc/posix-functions/fdopendir.texi: Likewise.
15287         * doc/posix-functions/fstatat.texi: Likewise.
15288         * doc/posix-functions/mkdirat.texi: Likewise.
15289         * doc/posix-functions/unlinkat.texi: Likewise.
15290
15291 2008-12-14  Bruno Haible  <bruno@clisp.org>
15292
15293         Update doc for POSIX:2008.
15294         * doc/posix-functions/faccessat.texi: New file.
15295         * doc/posix-functions/fchmodat.texi: New file.
15296         * doc/posix-functions/fchownat.texi: New file.
15297         * doc/posix-functions/fdopendir.texi: New file.
15298         * doc/posix-functions/fstatat.texi: New file.
15299         * doc/posix-functions/futimens.texi: New file.
15300         * doc/posix-functions/linkat.texi: New file.
15301         * doc/posix-functions/mkdirat.texi: New file.
15302         * doc/posix-functions/mkfifoat.texi: New file.
15303         * doc/posix-functions/mknodat.texi: New file.
15304         * doc/posix-functions/open_wmemstream.texi: New file.
15305         * doc/posix-functions/openat.texi: New file.
15306         * doc/posix-functions/psiginfo.texi: New file.
15307         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
15308         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
15309         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
15310         * doc/posix-functions/readlinkat.texi: New file.
15311         * doc/posix-functions/renameat.texi: New file.
15312         * doc/posix-functions/strerror_l.texi: New file.
15313         * doc/posix-functions/symlinkat.texi: New file.
15314         * doc/posix-functions/unlinkat.texi: New file.
15315         * doc/posix-functions/utimensat.texi: New file.
15316         * doc/gnulib.texi (Function Substitutes): Add these subsections.
15317
15318 2008-12-14  Bruno Haible  <bruno@clisp.org>
15319
15320         Update doc for POSIX:2008.
15321         * doc/posix-functions/alphasort.texi: Renamed from
15322         doc/glibc-functions/alphasort.texi.
15323         * doc/posix-functions/dirfd.texi: Renamed from
15324         doc/glibc-functions/dirfd.texi.
15325         * doc/posix-functions/dprintf.texi: Renamed from
15326         doc/glibc-functions/dprintf.texi.
15327         * doc/posix-functions/duplocale.texi: Renamed from
15328         doc/glibc-functions/duplocale.texi.
15329         * doc/posix-functions/fexecve.texi: Renamed from
15330         doc/glibc-functions/fexecve.texi.
15331         * doc/posix-functions/fmemopen.texi: Renamed from
15332         doc/glibc-functions/fmemopen.texi.
15333         * doc/posix-functions/freelocale.texi: Renamed from
15334         doc/glibc-functions/freelocale.texi.
15335         * doc/posix-functions/getdate_err.texi: Renamed from
15336         doc/glibc-functions/getdate_err.texi.
15337         * doc/posix-functions/isalnum_l.texi: Renamed from
15338         doc/glibc-functions/isalnum_l.texi.
15339         * doc/posix-functions/isalpha_l.texi: Renamed from
15340         doc/glibc-functions/isalpha_l.texi.
15341         * doc/posix-functions/isblank_l.texi: Renamed from
15342         doc/glibc-functions/isblank_l.texi.
15343         * doc/posix-functions/iscntrl_l.texi: Renamed from
15344         doc/glibc-functions/iscntrl_l.texi.
15345         * doc/posix-functions/isdigit_l.texi: Renamed from
15346         doc/glibc-functions/isdigit_l.texi.
15347         * doc/posix-functions/isgraph_l.texi: Renamed from
15348         doc/glibc-functions/isgraph_l.texi.
15349         * doc/posix-functions/islower_l.texi: Renamed from
15350         doc/glibc-functions/islower_l.texi.
15351         * doc/posix-functions/isprint_l.texi: Renamed from
15352         doc/glibc-functions/isprint_l.texi.
15353         * doc/posix-functions/ispunct_l.texi: Renamed from
15354         doc/glibc-functions/ispunct_l.texi.
15355         * doc/posix-functions/isspace_l.texi: Renamed from
15356         doc/glibc-functions/isspace_l.texi.
15357         * doc/posix-functions/isupper_l.texi: Renamed from
15358         doc/glibc-functions/isupper_l.texi.
15359         * doc/posix-functions/iswalnum_l.texi: Renamed from
15360         doc/glibc-functions/iswalnum_l.texi.
15361         * doc/posix-functions/iswalpha_l.texi: Renamed from
15362         doc/glibc-functions/iswalpha_l.texi.
15363         * doc/posix-functions/iswblank_l.texi: Renamed from
15364         doc/glibc-functions/iswblank_l.texi.
15365         * doc/posix-functions/iswcntrl_l.texi: Renamed from
15366         doc/glibc-functions/iswcntrl_l.texi.
15367         * doc/posix-functions/iswctype_l.texi: Renamed from
15368         doc/glibc-functions/iswctype_l.texi.
15369         * doc/posix-functions/iswdigit_l.texi: Renamed from
15370         doc/glibc-functions/iswdigit_l.texi.
15371         * doc/posix-functions/iswgraph_l.texi: Renamed from
15372         doc/glibc-functions/iswgraph_l.texi.
15373         * doc/posix-functions/iswlower_l.texi: Renamed from
15374         doc/glibc-functions/iswlower_l.texi.
15375         * doc/posix-functions/iswprint_l.texi: Renamed from
15376         doc/glibc-functions/iswprint_l.texi.
15377         * doc/posix-functions/iswpunct_l.texi: Renamed from
15378         doc/glibc-functions/iswpunct_l.texi.
15379         * doc/posix-functions/iswspace_l.texi: Renamed from
15380         doc/glibc-functions/iswspace_l.texi.
15381         * doc/posix-functions/iswupper_l.texi: Renamed from
15382         doc/glibc-functions/iswupper_l.texi.
15383         * doc/posix-functions/iswxdigit_l.texi: Renamed from
15384         doc/glibc-functions/iswxdigit_l.texi.
15385         * doc/posix-functions/isxdigit_l.texi: Renamed from
15386         doc/glibc-functions/isxdigit_l.texi.
15387         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
15388         doc/glibc-functions/mbsnrtowcs.texi.
15389         * doc/posix-functions/mkdtemp.texi: Renamed from
15390         doc/glibc-functions/mkdtemp.texi.
15391         * doc/posix-functions/newlocale.texi: Renamed from
15392         doc/glibc-functions/newlocale.texi.
15393         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
15394         doc/glibc-functions/nl_langinfo_l.texi.
15395         * doc/posix-functions/open_memstream.texi: Renamed from
15396         doc/glibc-functions/open_memstream.texi.
15397         * doc/posix-functions/opterr.texi: Renamed from
15398         doc/glibc-functions/opterr.texi.
15399         * doc/posix-functions/optind.texi: Renamed from
15400         doc/glibc-functions/optind.texi.
15401         * doc/posix-functions/optopt.texi: Renamed from
15402         doc/glibc-functions/optopt.texi.
15403         * doc/posix-functions/psignal.texi: Renamed from
15404         doc/glibc-functions/psignal.texi.
15405         * doc/posix-functions/scandir.texi: Renamed from
15406         doc/glibc-functions/scandir.texi.
15407         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
15408         doc/glibc-functions/sched_get_priority_min.texi.
15409         * doc/posix-functions/signgam.texi: Renamed from
15410         doc/glibc-functions/signgam.texi.
15411         * doc/posix-functions/stpcpy.texi: Renamed from
15412         doc/glibc-functions/stpcpy.texi.
15413         * doc/posix-functions/stpncpy.texi: Renamed from
15414         doc/glibc-functions/stpncpy.texi.
15415         * doc/posix-functions/strcasecmp_l.texi: Renamed from
15416         doc/glibc-functions/strcasecmp_l.texi.
15417         * doc/posix-functions/strcoll_l.texi: Renamed from
15418         doc/glibc-functions/strcoll_l.texi.
15419         * doc/posix-functions/strfmon_l.texi: Renamed from
15420         doc/glibc-functions/strfmon_l.texi.
15421         * doc/posix-functions/strftime_l.texi: Renamed from
15422         doc/glibc-functions/strftime_l.texi.
15423         * doc/posix-functions/strncasecmp_l.texi: Renamed from
15424         doc/glibc-functions/strncasecmp_l.texi.
15425         * doc/posix-functions/strndup.texi: Renamed from
15426         doc/glibc-functions/strndup.texi.
15427         * doc/posix-functions/strnlen.texi: Renamed from
15428         doc/glibc-functions/strnlen.texi.
15429         * doc/posix-functions/strsignal.texi: Renamed from
15430         doc/glibc-functions/strsignal.texi.
15431         * doc/posix-functions/strxfrm_l.texi: Renamed from
15432         doc/glibc-functions/strxfrm_l.texi.
15433         * doc/posix-functions/timer_gettime.texi: Renamed from
15434         doc/glibc-functions/timer_gettime.texi.
15435         * doc/posix-functions/tolower_l.texi: Renamed from
15436         doc/glibc-functions/tolower_l.texi.
15437         * doc/posix-functions/toupper_l.texi: Renamed from
15438         doc/glibc-functions/toupper_l.texi.
15439         * doc/posix-functions/towctrans_l.texi: Renamed from
15440         doc/glibc-functions/towctrans_l.texi.
15441         * doc/posix-functions/towlower_l.texi: Renamed from
15442         doc/glibc-functions/towlower_l.texi.
15443         * doc/posix-functions/towupper_l.texi: Renamed from
15444         doc/glibc-functions/towupper_l.texi.
15445         * doc/posix-functions/uselocale.texi: Renamed from
15446         doc/glibc-functions/uselocale.texi.
15447         * doc/posix-functions/vdprintf.texi: Renamed from
15448         doc/glibc-functions/vdprintf.texi.
15449         * doc/posix-functions/wcpcpy.texi:
15450         Renamed from doc/glibc-functions/wcpcpy.texi.
15451         * doc/posix-functions/wcpncpy.texi: Renamed from
15452         doc/glibc-functions/wcpncpy.texi.
15453         * doc/posix-functions/wcscasecmp.texi: Renamed from
15454         doc/glibc-functions/wcscasecmp.texi.
15455         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
15456         doc/glibc-functions/wcscasecmp_l.texi.
15457         * doc/posix-functions/wcscoll_l.texi: Renamed from
15458         doc/glibc-functions/wcscoll_l.texi.
15459         * doc/posix-functions/wcsdup.texi: Renamed from
15460         doc/glibc-functions/wcsdup.texi.
15461         * doc/posix-functions/wcsncasecmp.texi: Renamed from
15462         doc/glibc-functions/wcsncasecmp.texi.
15463         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
15464         doc/glibc-functions/wcsncasecmp_l.texi.
15465         * doc/posix-functions/wcsnlen.texi: Renamed from
15466         doc/glibc-functions/wcsnlen.texi.
15467         * doc/posix-functions/wcsnrtombs.texi: Renamed from
15468         doc/glibc-functions/wcsnrtombs.texi.
15469         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
15470         doc/glibc-functions/wcsxfrm_l.texi.
15471         * doc/posix-functions/wctrans_l.texi: Renamed from
15472         doc/glibc-functions/wctrans_l.texi.
15473         * doc/posix-functions/wctype_l.texi: Renamed from
15474         doc/glibc-functions/wctype_l.texi.
15475         * doc/gnulib.texi (Function Substitutes): Add these subsections.
15476         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
15477         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
15478         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
15479         these subsections.
15480         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
15481         Remove sections.
15482
15483 2008-12-14  Bruno Haible  <bruno@clisp.org>
15484
15485         Update doc for POSIX:2008.
15486         * doc/posix-functions/*.texi: Update URL of POSIX specification.
15487
15488 2008-12-14  Bruno Haible  <bruno@clisp.org>
15489
15490         Update doc for POSIX:2008.
15491         * doc/pastposix-functions/bcmp.texi: Renamed from
15492         doc/posix-functions/bcmp.texi.
15493         * doc/pastposix-functions/bcopy.texi: Renamed from
15494         doc/posix-functions/bcopy.texi.
15495         * doc/pastposix-functions/bsd_signal.texi: Renamed from
15496         doc/posix-functions/bsd_signal.texi.
15497         * doc/pastposix-functions/bzero.texi: Renamed from
15498         doc/posix-functions/bzero.texi.
15499         * doc/pastposix-functions/ecvt.texi: Renamed from
15500         doc/posix-functions/ecvt.texi.
15501         * doc/pastposix-functions/fcvt.texi: Renamed from
15502         doc/posix-functions/fcvt.texi.
15503         * doc/pastposix-functions/ftime.texi: Renamed from
15504         doc/posix-functions/ftime.texi.
15505         * doc/pastposix-functions/gcvt.texi: Renamed from
15506         doc/posix-functions/gcvt.texi.
15507         * doc/pastposix-functions/getcontext.texi: Renamed from
15508         doc/posix-functions/getcontext.texi.
15509         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
15510         doc/posix-functions/gethostbyaddr.texi.
15511         * doc/pastposix-functions/gethostbyname.texi: Renamed from
15512         doc/posix-functions/gethostbyname.texi.
15513         * doc/pastposix-functions/getwd.texi: Renamed from
15514         doc/posix-functions/getwd.texi.
15515         * doc/pastposix-functions/h_errno.texi: Renamed from
15516         doc/posix-functions/h_errno.texi.
15517         * doc/pastposix-functions/index.texi: Renamed from
15518         doc/posix-functions/index.texi.
15519         * doc/pastposix-functions/makecontext.texi: Renamed from
15520         doc/posix-functions/makecontext.texi.
15521         * doc/pastposix-functions/mktemp.texi: Renamed from
15522         doc/posix-functions/mktemp.texi.
15523         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
15524         doc/posix-functions/pthread_attr_getstackaddr.texi.
15525         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
15526         doc/posix-functions/pthread_attr_setstackaddr.texi.
15527         * doc/pastposix-functions/rindex.texi: Renamed from
15528         doc/posix-functions/rindex.texi.
15529         * doc/pastposix-functions/scalb.texi: Renamed from
15530         doc/posix-functions/scalb.texi.
15531         * doc/pastposix-functions/setcontext.texi: Renamed from
15532         doc/posix-functions/setcontext.texi.
15533         * doc/pastposix-functions/swapcontext.texi: Renamed from
15534         doc/posix-functions/swapcontext.texi.
15535         * doc/pastposix-functions/ualarm.texi: Renamed from
15536         doc/posix-functions/ualarm.texi.
15537         * doc/pastposix-functions/usleep.texi: Renamed from
15538         doc/posix-functions/usleep.texi.
15539         * doc/pastposix-functions/vfork.texi: Renamed from
15540         doc/posix-functions/vfork.texi.
15541         * doc/pastposix-functions/wcswcs.texi: Renamed from
15542         doc/posix-functions/wcswcs.texi.
15543         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
15544         (Function Substitutes): Update.
15545
15546 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15547
15548         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
15549         m4/strerror.m4.
15550
15551 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15552             Bruno Haible  <bruno@clisp.org>
15553
15554         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
15555
15556 2008-12-13  Bruno Haible  <bruno@clisp.org>
15557
15558         * modules/strtoull (Depends-on): Remove unistd.
15559
15560 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15561
15562         * modules/strtoull (Depends-on): Add stdlib.
15563
15564 2008-12-11  Simon Josefsson  <simon@josefsson.org>
15565
15566         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
15567
15568 2008-12-10  Jim Meyering  <meyering@redhat.com>
15569
15570         gl_ASSERT: don't say assertions are disabled when they're not
15571         * m4/assert.m4 (gl_ASSERT): Do not make configure report
15572         "checking whether to enable assertions... no", when they are in
15573         fact enabled.  This is solely a bug in the output of configure.
15574         In spite of saying "no", NDEBUG was not defined in that case.
15575         Also, as noted by Eric Blake, leave assertions enabled upon
15576         --enable-assert=INVALID.
15577
15578 2008-12-10  Bruno Haible  <bruno@clisp.org>
15579
15580         Change MODULES.html to refer to POSIX:2008 where possible.
15581         * MODULES.html.sh (POSIX2008_URL): New variable.
15582         (posix_headers): Remove sys/timeb, ucontext.
15583         (posix2001_headers): New variable.
15584         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
15585         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
15586         index, makecontext, mktemp, pthread_attr_getstackaddr,
15587         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
15588         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
15589         (posix2001_functions): New variable.
15590         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
15591         otherwise.
15592
15593 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15594
15595         add missing include to parse-duration.c
15596         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
15597         * modules/parse-duration (Depends-on): Add xalloc.
15598
15599         fix sed script reading maint.mk
15600         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
15601         (syntax-check-rules): Use it.
15602
15603 2008-12-09  Bruno Haible  <bruno@clisp.org>
15604
15605         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
15606         MacOS X 10.4/PowerPC.
15607         Reported by Simon Josefsson.
15608
15609 2008-12-08  Jim Meyering  <meyering@redhat.com>
15610
15611         work around mingw's lack of some S_IF definitions
15612         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
15613         Reported by Simon Josefsson.
15614
15615 2008-12-08  Bruno Haible  <bruno@clisp.org>
15616
15617         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
15618         applied to variables. Needed on MacOS X 10.4/PowerPC.
15619         Reported by Simon Josefsson.
15620
15621 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
15622         and Eric Blake  <ebb9@byu.net>
15623
15624         assert: honor --enable-assert
15625         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
15626         order to honor --enable-assert, rather than treating it as a
15627         synonym for --disable-assert.
15628
15629 2008-12-08  Jim Meyering  <meyering@redhat.com>
15630
15631         * lib/posixtm.c: Remove now-useless declaration of mktime.
15632
15633         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
15634
15635 2008-12-07  Bruno Haible  <bruno@clisp.org>
15636
15637         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
15638         test_once): Mark functions as static.
15639         * tests/test-tls.c (test_tls): Likewise.
15640
15641 2008-12-07  Bruno Haible  <bruno@clisp.org>
15642
15643         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
15644         iconv_register_autodetect.
15645
15646 2008-12-07  Jim Meyering  <meyering@redhat.com>
15647
15648         posixtm.c: avoid a warning
15649         * lib/posixtm.c (posixtime): Don't initialize tm0.
15650         It's no longer needed to placate gcc4's -Wuninitialized,
15651         and the attempt to placate would elicit a new warning.
15652
15653         unicodeio.c: mark unused parameters
15654         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15655         (fallback_failure_callback): Likewise.
15656
15657 2008-12-07  Bruno Haible  <bruno@clisp.org>
15658
15659         * gnulib-tool (func_create_testdir): When building the tests
15660         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
15661         Reported by Simon Josefsson.
15662
15663 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15664
15665         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
15666
15667 2008-12-06  Bruno Haible  <bruno@clisp.org>
15668
15669         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
15670         Suggested by Eric Blake.
15671
15672 2008-12-06  Bruno Haible  <bruno@clisp.org>
15673
15674         Fix a c-stack test failure on MacOS X.
15675         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
15676         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
15677         handler for SIGBUS as well.
15678         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
15679         install a signal handler for SIGBUS as well.
15680         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
15681
15682 2008-12-06  Bruno Haible  <bruno@clisp.org>
15683
15684         Advocacy documentation.
15685         * doc/gnulib-intro.texi (Benefits): New section.
15686         * doc/gnulib.texi: Update.
15687
15688 2008-12-06  Bruno Haible  <bruno@clisp.org>
15689
15690         Document the 'manywarnings' module.
15691         * doc/manywarnings.texi: New file.
15692         * doc/gnulib.texi: Include it.
15693
15694 2008-12-05  Eric Blake  <ebb9@byu.net>
15695
15696         tests: silence some gcc warnings
15697         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
15698         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
15699         type mismatches.
15700
15701 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15702             Bruno Haible  <bruno@clisp.org>
15703
15704         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
15705
15706 2008-11-29  Jim Meyering  <meyering@redhat.com>
15707
15708         unicodeio.c: mark unused parameters
15709         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15710         (fallback_failure_callback): Likewise.
15711
15712         fts: fix a thinko
15713         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
15714         (set_stat_type): Return S_IF*-valued "type" directly.
15715         Prompted by James Youngman's spotting a related bug.
15716         Confirmed by further testing through find.
15717
15718         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
15719         * lib/fts.c (D_TYPE): Define.
15720         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
15721         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
15722         (s_ifmt_shift_bits): New function.
15723         (set_stat_type): New function.
15724         (fts_build): When not calling fts_stat, call set_stat_type
15725         to propagate dirent.d_type info to fts_read caller.
15726         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
15727         fts_statp->st_mode type information may be valid.
15728
15729 2008-11-28  Simon Josefsson  <simon@josefsson.org>
15730
15731         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
15732         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
15733         <sds@gnu.org>.
15734
15735 2008-11-20  Bruno Haible  <bruno@clisp.org>
15736
15737         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
15738         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
15739         INCLUDE_NEXT.
15740         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
15741         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
15742         * modules/math (Makefile.am): Substitute
15743         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
15744         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15745
15746 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
15747             Bruno Haible  <bruno@clisp.org>
15748
15749         * lib/stdint.in.h: Define all type macros so that their expansion is
15750         a single typedef'ed token. Fixes a compilation failure in Boost which
15751         does "using ::int8_t;".
15752
15753 2008-11-18  Simon Josefsson  <simon@josefsson.org>
15754
15755         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
15756         gl_MANYWARN_ALL_GCC.
15757         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
15758         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
15759         * modules/manywarnings: New file.
15760         * MODULES.html.sh: Mention manywarnings module.
15761
15762 2008-11-18  Bruno Haible  <bruno@clisp.org>
15763
15764         * doc/gnulib-tool.texi (Unit tests): New section.
15765
15766 2008-11-18  Simon Josefsson  <simon@josefsson.org>
15767
15768         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
15769         paths like 'lib/po/foo.po'.
15770
15771 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15772
15773         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
15774         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
15775
15776 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15777
15778         * m4/warnings.m4: Use CPPFLAGS to really check whether the
15779         parameter works.
15780
15781 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15782
15783         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
15784
15785 2008-11-17  Bruce Korb  <bkorb@gnu.org>
15786
15787         * modules/parse-duration-tests: New file.
15788         * tests/test-parse-duration.sh: New file.
15789         * tests/test-parse-duration.c: New file.
15790
15791         New module 'parse-duration'.
15792         * lib/parse-duration.h: New file.
15793         * lib/parse-duration.c: New file.
15794         * modules/parse-duration: New file.
15795
15796 2008-11-17  Bruno Haible  <bruno@clisp.org>
15797
15798         * tests/test-select-out.sh: Comment out the first pipe test.
15799         Reported by Simon Josefsson.
15800
15801 2008-11-17  Bruno Haible  <bruno@clisp.org>
15802
15803         * modules/getaddrinfo (Depends-on): Add servent, hostent.
15804         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
15805         gl_HOSTENT.
15806
15807 2008-11-17  Bruno Haible  <bruno@clisp.org>
15808
15809         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
15810         -lnetwork and -lnet. Needed for Haiku and BeOS.
15811
15812 2008-11-16  Bruno Haible  <bruno@clisp.org>
15813
15814         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
15815
15816 2008-11-16  Bruno Haible  <bruno@clisp.org>
15817
15818         Avoid test failure on Haiku.
15819         * tests/test-fsync.c: Include <errno.h>.
15820         (main): Don't require that fsync (0) fails.
15821
15822 2008-11-15  Bruno Haible  <bruno@clisp.org>
15823
15824         New module 'hostent'.
15825         * modules/hostent: New file.
15826         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
15827
15828 2008-11-15  Bruno Haible  <bruno@clisp.org>
15829
15830         New module 'servent'.
15831         * modules/servent: New file.
15832         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
15833
15834 2008-11-15  Bruno Haible  <bruno@clisp.org>
15835
15836         Avoid generating same test program with two different rules.
15837         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
15838         test-frexp to test-frexp-nolibm.
15839         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
15840         test-frexpl to test-frexpl-nolibm.
15841
15842 2008-11-15  Bruno Haible  <bruno@clisp.org>
15843
15844         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
15845         $(FREXPL_LIBM).
15846
15847 2008-11-15  Bruno Haible  <bruno@clisp.org>
15848
15849         * lib/netdb.in.h: Activate the definitions also when the system's
15850         <netdb.h> has 'struct addrinfo'.
15851         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
15852         EAI_OVERFLOW or AI_NUMERICSERV.
15853         * doc/posix-headers/netdb.texi: Document the problem.
15854
15855 2008-11-15  Bruno Haible  <bruno@clisp.org>
15856
15857         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
15858
15859         Make the 'sched' module work on platforms where <sched.h> exists but
15860         is incomplete (such as Haiku).
15861         * lib/sched.in.h; Include the system's <sched.h> if it exists.
15862         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
15863         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
15864         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
15865         HAVE_STRUCT_SCHED_PARAM.
15866         * modules/sched (Depends-on): Add include_next.
15867         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
15868         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
15869         * doc/posix-headers/sched.texi: Document the issue.
15870
15871 2008-11-13  Jim Meyering  <meyering@redhat.com>
15872
15873         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
15874         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
15875         test would fail due to the difference in the Report bugs to ...
15876         line.  The expected address is empty, "<>", while the actual
15877         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
15878
15879 2008-11-12  Bruno Haible  <bruno@clisp.org>
15880
15881         lstat: don't compile lstat.c on systems lacking lstat
15882         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
15883         which don't have lstat; this is handled by lib/sys_stat.in.h already.
15884         Reported by Daniel P. Berrange via Jim Meyering.
15885
15886 2008-11-12  Jim Meyering  <meyering@redhat.com>
15887
15888         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
15889
15890 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15891
15892         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
15893         instead.
15894
15895 2008-11-12  Bruno Haible  <bruno@clisp.org>
15896
15897         * lib/unicodeio.c: Include unistr.h.
15898         (utf8_wctomb): Remove function.
15899         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
15900
15901 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15902
15903         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
15904         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
15905         <bruno@clisp.org>.
15906         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
15907
15908 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15909
15910         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
15911         * doc/gnulib.texi: Add section for warnings.
15912
15913 2008-11-11  Bruno Haible  <bruno@clisp.org>
15914
15915         * lib/sockets.h: Add a comment.
15916
15917 2008-11-11  Karl Berry  <karl@gnu.org>
15918
15919         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
15920
15921 2008-11-11  Eric Blake  <ebb9@byu.net>
15922
15923         fdl.texi: avoid git symlinks
15924         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
15925
15926 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15927
15928         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
15929
15930 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15931
15932         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
15933         (gl_WARN_ADD): Substitute $2 if literal.
15934
15935 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15936
15937         * m4/warning.m4: Remove.
15938
15939 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15940
15941         * m4/warnings.m4: Almost complete rewrite. :-)
15942
15943 2008-11-10  Simon Josefsson  <simon@josefsson.org>
15944
15945         * modules/warnings: New module.
15946         * m4/warnings.m4: New file.
15947         * MODULES.html.sh: Mention warnings module.
15948         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
15949         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15950
15951 2008-11-10  Eric Blake  <ebb9@byu.net>
15952
15953         fdl.texi: make a symlink to the latest version
15954         * doc/standards.texi: Revert today's earlier change.
15955         * doc/fdl-1.2.texi: Rename from old fdl.texi...
15956         * doc/fdl.texi: ...and replace this with a symlink to the newer
15957         fdl-1.3.texi.
15958
15959 2008-11-10  Bruno Haible  <bruno@clisp.org>
15960
15961         * tests/test-select-fd.c (main): Accept the result file name as fourth
15962         argument.
15963         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
15964         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
15965
15966 2008-11-10  Bruno Haible  <bruno@clisp.org>
15967
15968         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
15969         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
15970         as autoconf-substituted macros.
15971         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
15972         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
15973         gl_NETDB_H_DEFAULTS. Set these variables.
15974         * modules/netdb (Makefile.am): Substitute these variables.
15975
15976 2008-11-10  Eric Blake  <ebb9@byu.net>
15977
15978         standards.texi: include correct file for FDL 1.3
15979         * doc/standards.texi (GNU Free Documentation License): Change
15980         include file to pull in FDL 1.3, not 1.2.
15981
15982         fdl.texi: revert accidental change to license
15983         * doc/fdl.texi: This is FDL 1.2, not 1.3.
15984
15985 2008-11-10  Bruno Haible  <bruno@clisp.org>
15986
15987         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
15988         cross-compiling guesses also when the native compile gives no result.
15989
15990 2008-11-10  Bruno Haible  <bruno@clisp.org>
15991
15992         * lib/spawni.c (__spawni): Force variable into the stack.
15993
15994 2008-11-10  Bruno Haible  <bruno@clisp.org>
15995
15996         Add support for Haiku.
15997         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
15998         glibc and BeOS, but also on Haiku.
15999         * lib/fpurge.c (fpurge): Likewise.
16000         * lib/freadable.c (freadable): Likewise.
16001         * lib/freadahead.c (freadahead): Likewise.
16002         * lib/freading.c (freading): Likewise.
16003         * lib/freadptr.c (freadptr): Likewise.
16004         * lib/freadseek.c (freadptrinc): Likewise.
16005         * lib/fseeko.c (rpl_fseeko): Likewise.
16006         * lib/fseterr.c (fseterr): Likewise.
16007         * lib/fwritable.c (fwritable): Likewise.
16008         * lib/fwriting.c (fwriting): Likewise.
16009         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
16010
16011 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
16012
16013         * lib/config.charset: Treat Haiku like BeOS.
16014
16015 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
16016
16017         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
16018         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
16019
16020 2008-11-08  Bruno Haible  <bruno@clisp.org>
16021
16022         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
16023         AC_CACHE_CHECK.
16024
16025 2008-11-08  Bruno Haible  <bruno@clisp.org>
16026
16027         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
16028
16029 2008-11-08  Bruno Haible  <bruno@clisp.org>
16030
16031         * tests/test-select-fd.c: New file.
16032         * tests/test-select-in.sh: New file.
16033         * tests/test-select-out.sh: New file.
16034         * tests/test-select-stdin.c: New file.
16035         * modules/select-tests (Files): Add the new files.
16036         (Depends-on): Add gettimeofday.
16037         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
16038         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
16039         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
16040
16041 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
16042             Bruno Haible  <bruno@clisp.org>
16043
16044         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
16045
16046 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
16047
16048         * build-aux/pmccabe2html: Added support for C++ source files.
16049
16050 2008-11-05  Ben Pfaff  <blp@gnu.org>
16051
16052         Fix lib/close.c build on Windows.
16053         * modules/close (Files): Add lib/w32sock.h.
16054
16055 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
16056
16057         Accept Bison's NEWS format.
16058         * build-aux/announce-gen (print_news_deltas): Tweak
16059         $re_prefix.
16060
16061 2008-11-04  Bruno Haible  <bruno@clisp.org>
16062
16063         * modules/random_r (Maintainer): Add glibc.
16064
16065 2008-11-04  Simon Josefsson  <simon@josefsson.org>
16066
16067         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
16068         by karl@freefriends.org (Karl Berry).
16069         * doc/alloca.texi: Likewise.
16070         * doc/c-ctype.texi: Likewise.
16071         * doc/c-strcase.texi: Likewise.
16072         * doc/c-strcaseeq.texi: Likewise.
16073         * doc/c-strcasestr.texi: Likewise.
16074         * doc/c-strstr.texi: Likewise.
16075         * doc/c-strtod.texi: Likewise.
16076         * doc/c-strtold.texi: Likewise.
16077         * doc/ctime.texi: Likewise.
16078         * doc/error.texi: Likewise.
16079         * doc/fdl.texi: Likewise.
16080         * doc/gcd.texi: Likewise.
16081         * doc/getdate.texi: Likewise.
16082         * doc/gnulib-intro.texi: Likewise.
16083         * doc/gnulib-tool.texi: Likewise.
16084         * doc/gnulib.texi: Likewise.
16085         * doc/inet_ntoa.texi: Likewise.
16086         * doc/maintain.texi: Likewise.
16087         * doc/make-stds.texi: Likewise.
16088         * doc/quote.texi: Likewise.
16089         * doc/regexprops-generic.texi: Likewise.
16090         * doc/standards.texi: Likewise.
16091         * doc/verify.texi: Likewise.
16092         * doc/visibility.texi: Likewise.
16093         * doc/gnulib.texi (GNU Free Documentation License): Include
16094         fdl-1.3.texi instead of fdl.texi.
16095
16096 2008-11-04  Simon Josefsson  <simon@josefsson.org>
16097
16098         * doc/fdl-1.3.texi: New file, from
16099         <http://www.gnu.org/licenses/fdl-1.3.texi>.
16100         * modules/fdl-1.3: Add.
16101         * MODULES.html.sh: Add fdl-1.3.
16102
16103 2008-11-03  Bruno Haible  <bruno@clisp.org>
16104
16105         Make determination of absolute name of header file work with AIX xlc.
16106         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
16107         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
16108         preprocessing.
16109         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16110         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
16111
16112 2008-11-03  Simon Josefsson  <simon@josefsson.org>
16113
16114         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
16115         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
16116         <ludo@gnu.org>.
16117
16118 2008-11-02  Bruno Haible  <bruno@clisp.org>
16119
16120         Mark 'strpbrk' obsolete.
16121         * modules/strpbrk (Status, Notice): New sections.
16122         * modules/strtok_r (Depends-on): Add strpbrk.
16123
16124 2008-11-02  Bruno Haible  <bruno@clisp.org>
16125
16126         Mark 'strdup' obsolete.
16127         * modules/strdup (Status, Notice): New sections.
16128         * modules/findprog (Depends-on): Add strdup.
16129         * modules/getaddrinfo (Depends-on): Likewise.
16130         * modules/localename (Depends-on): Likewise.
16131         * modules/relocatable-lib (Depends-on): Likewise.
16132         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
16133         * modules/relocatable-prog (Depends-on): Likewise.
16134         * modules/trim (Depends-on): Likewise.
16135         * modules/unictype/gen-ctype (Depends-on): Likewise.
16136         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16137
16138 2008-11-02  Bruno Haible  <bruno@clisp.org>
16139
16140         Mark 'strcspn' obsolete.
16141         * modules/strcspn (Status, Notice): New sections.
16142
16143 2008-11-02  Bruno Haible  <bruno@clisp.org>
16144
16145         Mark 'rmdir' obsolete.
16146         * modules/rmdir (Status, Notice): New sections.
16147         * modules/clean-temp (Depends-on): Add rmdir.
16148         * modules/openat (Depends-on): Likewise.
16149
16150 2008-11-02  Bruno Haible  <bruno@clisp.org>
16151
16152         Mark 'raise' obsolete.
16153         * modules/raise (Status, Notice): New sections.
16154         (Include): Specify <signal.h>.
16155         * modules/stdio (Depends-on): Add raise.
16156         * modules/write (Depends-on): Likewise.
16157
16158 2008-11-02  Bruno Haible  <bruno@clisp.org>
16159
16160         Mark 'memset' obsolete.
16161         * modules/memset (Status, Notice): New sections.
16162
16163 2008-11-02  Bruno Haible  <bruno@clisp.org>
16164
16165         Mark 'memmove' obsolete.
16166         * modules/memmove (Status, Notice): New sections.
16167         * modules/argp (Depends-on): Add memmove.
16168         * modules/argz (Depends-on): Likewise.
16169         * modules/canonicalize (Depends-on): Likewise.
16170         * modules/canonicalize-lgpl (Depends-on): Likewise.
16171         * modules/fts (Depends-on): Likewise.
16172         * modules/getcwd (Depends-on): Likewise.
16173         * modules/human (Depends-on): Likewise.
16174         * modules/regex (Depends-on): Likewise.
16175         * modules/striconveh (Depends-on): Likewise.
16176         * modules/trim (Depends-on): Likewise.
16177         * modules/unistr/u8-move (Depends-on): Likewise.
16178         * modules/unistr/u16-move (Depends-on): Likewise.
16179         * modules/unistr/u32-move (Depends-on): Likewise.
16180
16181 2008-11-02  Bruno Haible  <bruno@clisp.org>
16182
16183         Mark 'memcpy' obsolete.
16184         * modules/memcpy (Status, Notice): New sections.
16185
16186 2008-11-02  Bruno Haible  <bruno@clisp.org>
16187
16188         Mark 'memcmp' obsolete.
16189         * modules/memcmp (Status, Notice): New sections.
16190         * modules/argmatch (Depends-on): Add memchr.
16191         * modules/backupfile (Depends-on): Likewise.
16192         * modules/c-strcasestr (Depends-on): Likewise.
16193         * modules/crypto/des (Depends-on): Likewise.
16194         * modules/csharpcomp (Depends-on): Likewise.
16195         * modules/fnmatch (Depends-on): Likewise.
16196         * modules/git-merge-changelog (Depends-on): Likewise.
16197         * modules/isnand (Depends-on): Likewise.
16198         * modules/isnand-nolibm (Depends-on): Likewise.
16199         * modules/isnanf (Depends-on): Likewise.
16200         * modules/isnanf-nolibm (Depends-on): Likewise.
16201         * modules/isnanl (Depends-on): Likewise.
16202         * modules/isnanl-nolibm (Depends-on): Likewise.
16203         * modules/mbchar (Depends-on): Likewise.
16204         * modules/memcoll (Depends-on): Likewise.
16205         * modules/quotearg (Depends-on): Likewise.
16206         * modules/regex (Depends-on): Likewise.
16207         * modules/relocatable-prog (Depends-on): Likewise.
16208         * modules/same (Depends-on): Likewise.
16209         * modules/signbit (Depends-on): Likewise.
16210         * modules/strcasestr-simple (Depends-on): Likewise.
16211         * modules/unictype/gen-ctype (Depends-on): Likewise.
16212         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16213         * modules/uniname/uniname (Depends-on): Likewise.
16214         * modules/unistr/u8-cmp (Depends-on): Likewise.
16215
16216 2008-11-02  Bruno Haible  <bruno@clisp.org>
16217
16218         Mark 'memchr' obsolete.
16219         * modules/memchr (Status, Notice): New sections.
16220         * modules/argp (Depends-on): Add memchr.
16221         * modules/base64 (Depends-on): Likewise.
16222         * modules/c-strcasestr (Depends-on): Likewise.
16223         * modules/chdir-long (Depends-on): Likewise.
16224         * modules/fnmatch (Depends-on): Likewise.
16225         * modules/getsubopt (Depends-on): Likewise.
16226         * modules/git-merge-changelog (Depends-on): Likewise.
16227         * modules/glob (Depends-on): Likewise.
16228         * modules/strcasestr-simple (Depends-on): Likewise.
16229         * modules/strnlen (Depends-on): Likewise.
16230
16231 2008-11-02  Bruno Haible  <bruno@clisp.org>
16232
16233         Mark 'atexit' obsolete.
16234         * modules/atexit (Status, Notice): New sections.
16235         * modules/chdir-long (Depends-on): Add atexit.
16236         * modules/wait-process (Depends-on): Likewise.
16237
16238 2008-11-02  Bruno Haible  <bruno@clisp.org>
16239
16240         * gnulib-tool: New option --with-obsolete.
16241         (func_usage): Document it.
16242         (func_modules_transitive_closure): Drop obsolete dependencies if
16243         incobsolete is not true.
16244         (func_import): Read and save the incobsolete variable to the cache.
16245
16246 2008-11-02  Bruno Haible  <bruno@clisp.org>
16247
16248         * modules/TEMPLATE-EXTENDED: New field 'Status'.
16249         * gnulib-tool: New option --extract-status.
16250         (func_usage): Document it.
16251         (sed_extract_prog): Recognize it.
16252         (func_get_status): New function.
16253
16254 2008-10-30  Simon Josefsson  <simon@josefsson.org>
16255
16256         * modules/sockets (License): Change from LGPL to LGPLv2+.
16257
16258 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16259
16260         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
16261
16262 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16263
16264         * MODULES.html.sh (Support for systems lacking POSIX:2001):
16265         Mention times and sys_times.
16266         * modules/sys_times, modules/sys_times-tests: New modules.
16267         * modules/times, modules/times-tests: Likewise
16268         * m4/sys_times_h.m4: New file.
16269         * lib/sys_times.in.h: Likewise
16270         * lib/times.c: Likewise.
16271         * tests/test-sys_times.c: Likewise.
16272         * tests/test-times.c: Likewise.
16273         * doc/posix-headers/sys_times.texi: Update.
16274         * doc/posix-functions/times.texi: Update.
16275
16276 2008-10-28  Jim Meyering  <meyering@redhat.com>
16277
16278         * modules/tempname (Depends-on): Add lstat.
16279
16280         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
16281
16282 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16283
16284         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
16285         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
16286         using idiom used elsewhere in gnulib.
16287
16288 2008-10-27  Jim Meyering  <meyering@redhat.com>
16289
16290         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
16291
16292 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16293
16294         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
16295         TESTS_ENVIRONMENT, for shell scripts that needs to call built
16296         programs.
16297         * tests/test-argp-2.sh: Use $EXEEXT when needed.
16298
16299 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16300
16301         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
16302
16303 2008-10-27  Bruno Haible  <bruno@clisp.org>
16304
16305         * tests/test-lstat.c: Include <stdio.h>.
16306
16307 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16308
16309         * modules/lstat-tests: New module.
16310         * tests/test-lstat.c: New file.
16311
16312 2008-10-26  Jim Meyering  <meyering@redhat.com>
16313
16314         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
16315
16316 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16317             Bruno Haible  <bruno@clisp.org>
16318
16319         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
16320         * modules/configmake (Include): Add a note that the include must come
16321         after all system headers.
16322         * lib/javaversion.c: Include configmake.h after all other includes.
16323
16324 2008-10-26  Bruno Haible  <bruno@clisp.org>
16325
16326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
16327         HAVE_STRUCT_RANDOM_DATA to 1.
16328         (gl_STDLIB_H): Simplify.
16329
16330 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16331
16332         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
16333         substitute HAVE_STRUCT_RANDOM_DATA.
16334         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
16335         random_data.
16336         * modules/stdlib (Makefile.am): Substitute
16337         HAVE_STRUCT_RANDOM_DATA.
16338
16339 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16340
16341         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
16342         * doc/gnulib-intro.texi (Copyright): Likewise.
16343
16344 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16345
16346         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
16347         findings.
16348
16349 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
16350             Bruno Haible  <bruno@clisp.org>
16351
16352         * lib/unistd.in.h: Include <winsock2.h>.
16353         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
16354         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
16355         Provide dummy declarations.
16356         (gethostname): Override.
16357         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
16358         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
16359         gl_PREREQ_SYS_H_WINSOCK2.
16360         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
16361         * doc/posix-functions/gethostname.texi: More details.
16362
16363 2008-10-25  Bruno Haible  <bruno@clisp.org>
16364
16365         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
16366         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
16367         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
16368
16369         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
16370         here ...
16371         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
16372         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
16373         gl_UNISTD_H_DEFAULTS.
16374
16375 2008-10-25  Eric Blake  <ebb9@byu.net>
16376
16377         signbit: avoid spurious compiler failure
16378         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
16379         declarations inside function.
16380
16381 2008-10-24  Simon Josefsson  <simon@josefsson.org>
16382             Bruno Haible  <bruno@clisp.org>
16383
16384         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
16385         * modules/random_r (Depends-on): Add stdint.
16386
16387 2008-10-24  Bruno Haible  <bruno@clisp.org>
16388
16389         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
16390         Eggert.
16391         * modules/strerror (License): Likewise.
16392
16393 2008-10-24  Jim Meyering  <meyering@redhat.com>
16394
16395         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
16396         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
16397
16398 2008-10-24  Eric Blake  <ebb9@byu.net>
16399
16400         getgroups: fix compilation when getgroups is available
16401         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
16402         but with <config.h> override of getgroups disabled.
16403
16404 2008-10-24  Simon Josefsson  <simon@josefsson.org>
16405
16406         * doc/gnulib.texi (Header files): Add note about C++ problems.
16407         Explained by Bruno Haible <bruno@clisp.org>.
16408
16409 2008-10-23  Bruno Haible  <bruno@clisp.org>
16410
16411         Define a dummy SA_NODEFER macro on Interix.
16412         * lib/signal.in.h (SA_NODEFER): Define fallback.
16413         Reported by Aleksey Cheusov <cheusov@tut.by> via
16414         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
16415
16416 2008-10-23  Bruno Haible  <bruno@clisp.org>
16417
16418         * modules/freadahead (License): Change to LGPLv2+.
16419         Suggested by Simon Josefsson.
16420
16421 2008-10-23  Jim Meyering  <meyering@redhat.com>
16422
16423         random_r: new module
16424         * modules/random_r: New file.
16425         * m4/random_r.m4: New file.
16426         * lib/random_r.c: New file, from glibc.
16427         * modules/random_r-tests: New file.
16428         * tests/test-random_r.c: New file.
16429         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
16430          Declare.
16431         (RAND_MAX): Define.
16432         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
16433         * modules/stdlib: Substitute them, too.
16434         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
16435         * doc/glibc-functions/initstate_r.texi: Mention the new module.
16436         * doc/glibc-functions/random_r.texi: Likewise.
16437         * doc/glibc-functions/setstate_r.texi: Likewise.
16438         * doc/glibc-functions/srandom_r.texi: Likewise.
16439         * config/srclist.txt: Mention it.
16440
16441 2008-10-23  David Lutterkort  <lutter@redhat.com>
16442
16443         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
16444         link requirement
16445
16446 2008-10-23  Jim Meyering  <meyering@redhat.com>
16447
16448         selinux-h: mark parameters of stub functions as intentionally unused
16449         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
16450         * lib/se-context.in.h: Likewise.
16451
16452 2008-10-22  Simon Josefsson  <simon@josefsson.org>
16453
16454         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
16455
16456 2008-10-22  Simon Josefsson  <simon@josefsson.org>
16457
16458         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
16459
16460 2008-10-22  Eric Blake  <ebb9@byu.net>
16461
16462         glthread/thread: avoid compiler warning
16463         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
16464         Add unreachable abort to silence compiler.
16465
16466 2008-10-22  Eric Blake  <ebb9@byu.net>
16467
16468         netdb: also supply struct addrinfo for cygwin 1.5.x
16469         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
16470         older cygwin.
16471         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
16472         cygwin.
16473         * doc/posix-headers/netdb.texi (netdb.h): Document this.
16474
16475 2008-10-22  Bruno Haible  <bruno@clisp.org>
16476
16477         * users.txt: Update entry about pspp.
16478
16479 2008-10-21  Bruno Haible  <bruno@clisp.org>
16480
16481         Simplification.
16482         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
16483         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
16484
16485         Simplification.
16486         * lib/ioctl.c (ioctl): Don't undefine.
16487         * lib/socket.c (socket): Don't undefine.
16488
16489         Remove unused module indicator macros.
16490         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
16491         GNULIB_$1 as a C macro.
16492
16493         * doc/posix-functions/close.texi: Undo last change.
16494         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
16495         Windows platforms.
16496
16497 2008-10-21  Bruno Haible  <bruno@clisp.org>
16498
16499         Add gethostname() declaration to <unistd.h>.
16500         * lib/unistd.in.h (gethostname): New declaration.
16501         * lib/gethostname.c: Include <unistd.h>.
16502         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
16503         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
16504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
16505         and HAVE_GETHOSTNAME.
16506         * modules/gethostname (Depends-on): Add unistd.
16507         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16508         (Include): Specify <unistd.h>.
16509         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
16510         HAVE_GETHOSTNAME.
16511         * tests/test-gethostname.c: Include <unistd.h> first.
16512
16513 2008-10-21  Bruno Haible  <bruno@clisp.org>
16514
16515         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
16516         * modules/select-tests (Depends-on): Likewise.
16517         Reported by Simon Josefsson.
16518
16519 2008-10-21  Simon Josefsson  <simon@josefsson.org>
16520
16521         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
16522         * lib/accept.c: New file, based on winsock.c.
16523         * lib/bind.c: New file, based on winsock.c.
16524         * lib/connect.c: New file, based on winsock.c.
16525         * lib/getpeername.c: New file, based on winsock.c.
16526         * lib/getsockname.c: New file, based on winsock.c.
16527         * lib/getsockopt.c: New file, based on winsock.c.
16528         * lib/ioctl.c: New file, based on winsock.c.
16529         * lib/listen.c: New file, based on winsock.c.
16530         * lib/recv.c: New file, based on winsock.c.
16531         * lib/recvfrom.c: New file, based on winsock.c.
16532         * lib/send.c: New file, based on winsock.c.
16533         * lib/sendto.c: New file, based on winsock.c.
16534         * lib/setsockopt.c: New file, based on winsock.c.
16535         * lib/shutdown.c: New file, based on winsock.c.
16536         * lib/socket.c: New file, based on winsock.c.
16537         * lib/w32sock.h: New file, based on winsock.c.
16538         * lib/winsock.c: Remove file.
16539         * modules/accept: Likewise.
16540         * modules/bind: Likewise.
16541         * modules/connect: Likewise.
16542         * modules/getpeername: Likewise.
16543         * modules/getsockname: Likewise.
16544         * modules/getsockopt: Likewise.
16545         * modules/ioctl: Likewise.
16546         * modules/listen: Likewise.
16547         * modules/recv: Likewise.
16548         * modules/recvfrom: Likewise.
16549         * modules/send: Likewise.
16550         * modules/sendto: Likewise.
16551         * modules/setsockopt: Likewise.
16552         * modules/shutdown: Likewise.
16553         * modules/socket: Use socket.c instead of winsock.c.
16554         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
16555         * doc/posix-functions/accept.texi: Doc fix.
16556         * doc/posix-functions/bind.texi: Doc fix.
16557         * doc/posix-functions/close.texi: Doc fix.
16558         * doc/posix-functions/connect.texi: Doc fix.
16559         * doc/posix-functions/getpeername.texi: Doc fix.
16560         * doc/posix-functions/getsockname.texi: Doc fix.
16561         * doc/posix-functions/getsockopt.texi: Doc fix.
16562         * doc/posix-functions/ioctl.texi: Doc fix.
16563         * doc/posix-functions/listen.texi: Doc fix.
16564         * doc/posix-functions/recv.texi: Doc fix.
16565         * doc/posix-functions/recvfrom.texi: Doc fix.
16566         * doc/posix-functions/send.texi: Doc fix.
16567         * doc/posix-functions/sendto.texi: Doc fix.
16568         * doc/posix-functions/setsockopt.texi: Doc fix.
16569         * doc/posix-functions/shutdown.texi: Doc fix.
16570         * doc/posix-functions/socket.texi: Doc fix.
16571
16572 2008-10-20  Bruno Haible  <bruno@clisp.org>
16573
16574         Take into account the role of SIGABRT_COMPAT on Windows 2008.
16575         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
16576         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
16577         as an alias for SIGABRT.
16578         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
16579         (sigaction): Map it to SIGABRT.
16580         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
16581
16582 2008-10-20  Bruno Haible  <bruno@clisp.org>
16583
16584         * lib/fts.c: Don't include lstat.h.
16585         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
16586
16587         Move the lstat() declaration to <sys/stat.h>.
16588         * lib/lstat.h: Remove file.
16589         * lib/sys_stat.in.h: Add special invocation convention.
16590         (lstat): New declaration.
16591         * lib/lstat.c (orig_lstat): New function.
16592         (rpl_lstat): Use orig_lstat instead of lstat.
16593         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
16594         AC_C_INLINE. Set REPLACE_LSTAT.
16595         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
16596         and REPLACE_LSTAT.
16597         * modules/lstat (Files): Remove lib/lstat.h.
16598         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16599         (Include): Specify <sys/stat.h> instead of lstat.h.
16600         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
16601         REPLACE_LSTAT.
16602         * NEWS: Mention the change.
16603
16604 2008-10-20  Bruno Haible  <bruno@clisp.org>
16605
16606         * modules/posix_spawn-tests: New file.
16607         * tests/test-posix_spawn3.c: New file.
16608
16609 2008-10-20  Bruno Haible  <bruno@clisp.org>
16610
16611         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
16612         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16613         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
16614         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16615         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
16616
16617 2008-10-20  Bruno Haible  <bruno@clisp.org>
16618
16619         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
16620         of posix_spawn on AIX 5.3.
16621
16622 2008-10-20  Bruno Haible  <bruno@clisp.org>
16623
16624         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
16625
16626 2008-10-20  Bruno Haible  <bruno@clisp.org>
16627
16628         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
16629         of AC_LANG_PROGRAM.
16630
16631 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16632
16633         * lib/netdb.in.h: Don't define GNU specific constants until they
16634         are supported or needed.  Reported by Bruno Haible
16635         <bruno@clisp.org>.
16636
16637 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16638
16639         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
16640
16641 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16642
16643         * lib/getaddrinfo.h: Remove file.
16644         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
16645         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
16646         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
16647         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
16648         * modules/netdb: Substitute GNULIB_GETADDRINFO.
16649         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
16650         * tests/test-getaddrinfo.c: Likewise.
16651         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
16652         * NEWS: Mention change.
16653
16654 2008-10-19  Bruno Haible  <bruno@clisp.org>
16655
16656         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
16657
16658 2008-10-19  Bruno Haible  <bruno@clisp.org>
16659
16660         * lib/wait-process.c: Include simply <sys/wait.h>.
16661         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
16662         WIFSTOPPED): Remove fallback definitions.
16663         * modules/wait-process (Depends-on): Add sys_wait.
16664
16665         New module 'sys_wait'.
16666         * modules/sys_wait: New file.
16667         * lib/sys_wait.in.h: New file, partially copied from
16668         lib/wait-process.c.
16669         * m4/sys_wait_h.m4: New file.
16670         * doc/posix-headers/sys_wait.texi: Mention the new module.
16671
16672 2008-10-19  Bruno Haible  <bruno@clisp.org>
16673
16674         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
16675
16676 2008-10-19  Bruno Haible  <bruno@clisp.org>
16677
16678         Assume that waitpid() fills an 'int' status, not a 'union wait'.
16679         * lib/wait-process.c (WAIT_T): Remove type.
16680         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
16681         (wait_subprocess): Update.
16682
16683 2008-10-19  Bruno Haible  <bruno@clisp.org>
16684
16685         New module 'atoll'.
16686         * modules/atoll: New file.
16687         * lib/stdlib.in.h (atoll): New declaration.
16688         * lib/atoll.c: New file, from glibc with modifications.
16689         * m4/atoll.m4: New file.
16690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
16691         HAVE_ATOLL.
16692         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
16693         * doc/posix-functions/atoll.texi: Mention the new module.
16694
16695 2008-10-19  Bruno Haible  <bruno@clisp.org>
16696
16697         Add strtoull() declaration to <stdlib.h>.
16698         * lib/stdlib.in.h (strtoull): New declaration.
16699         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16700         Set HAVE_STRTOULL.
16701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
16702         HAVE_STRTOULL.
16703         * modules/strtoull (Depends-on): Add stdlib.
16704         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16705         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
16706         HAVE_STRTOULL.
16707
16708 2008-10-19  Bruno Haible  <bruno@clisp.org>
16709
16710         Add strtoll() declaration to <stdlib.h>.
16711         * lib/stdlib.in.h (strtoll): New declaration.
16712         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16713         Set HAVE_STRTOLL.
16714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
16715         HAVE_STRTOLL.
16716         * modules/strtoll (Depends-on): Add stdlib.
16717         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16718         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
16719
16720 2008-10-19  Bruno Haible  <bruno@clisp.org>
16721
16722         * modules/bcopy (Depends-on): Add strings.
16723         (Include): Specify <strings.h>.
16724
16725 2008-10-19  Bruno Haible  <bruno@clisp.org>
16726
16727         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
16728
16729 2008-10-19  Bruno Haible  <bruno@clisp.org>
16730
16731         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
16732         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
16733         mingw.
16734
16735 2008-10-19  Bruno Haible  <bruno@clisp.org>
16736
16737         * lib/atanl.c: Don't include isnanl.h.
16738         * lib/cosl.c: Likewise.
16739         * lib/ldexpl.c: Likewise.
16740         * lib/logl.c: Likewise.
16741         * lib/sinl.c: Likewise.
16742         * lib/sqrtl.c: Likewise.
16743         * lib/tanl.c: Likewise.
16744
16745         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
16746         * lib/isnanf.h: Remove file.
16747         * lib/isnand.h: Remove file.
16748         * lib/isnanl.h: Remove file.
16749         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
16750         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
16751         macros.
16752         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
16753         HAVE_ISNANF, don't define it as a C macro.
16754         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
16755         HAVE_ISNAND, don't define it as a C macro.
16756         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
16757         HAVE_ISNANL, don't define it as a C macro.
16758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
16759         HAVE_ISNAN[FDL].
16760         * modules/isnanf (Files): Remove lib/isnanf.h.
16761         (Depends-on): Add math.
16762         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16763         (Include): Specify <math.h> instead of isnanf.h.
16764         * modules/isnand (Files): Remove lib/isnand.h.
16765         (Depends-on): Add math.
16766         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16767         (Include): Specify <math.h> instead of isnand.h.
16768         * modules/isnanl (Files): Remove lib/isnanl.h.
16769         (Depends-on): Add math.
16770         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16771         (Include): Specify <math.h> instead of isnanl.h.
16772         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
16773         HAVE_ISNAN[FDL].
16774         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
16775         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
16776         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
16777         * NEWS: Mention the change.
16778
16779 2008-10-18  Bruno Haible  <bruno@clisp.org>
16780
16781         Add getusershell(), setusershell(), endusershell() declarations to
16782         <unistd.h>.
16783         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
16784         declarations.
16785         * lib/getusershell.c: Include unistd.h.
16786         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
16787         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16788         HAVE_GETUSERSHELL.
16789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
16790         and HAVE_GETUSERSHELL.
16791         * modules/getusershell (Depends-on): Add unistd, extensions.
16792         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16793         (Include): Specify <unistd.h>.
16794         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
16795         HAVE_GETUSERSHELL.
16796
16797 2008-10-18  Bruno Haible  <bruno@clisp.org>
16798
16799         Add a getloadavg() declaration to <stdlib.h>.
16800         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
16801         getloadavg declaration.
16802         (getloadavg): New declaration.
16803         * lib/getloadavg.c: Include <stdlib.h> first.
16804         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
16805         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
16806         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
16807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
16808         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16809         * modules/getloadavg (Depends-on): Add stdlib, extensions.
16810         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16811         (Include): Specify <stdlib.h>.
16812         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
16813         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16814
16815 2008-10-18  Bruno Haible  <bruno@clisp.org>
16816
16817         * lib/dirchownmod.c: Don't include lchmod.h.
16818
16819         Move the lchmod() declaration to <sys/stat.h>.
16820         * lib/lchmod.h: Remove file.
16821         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
16822         (lchmod): New declaration, moved here from lib/lchown.h.
16823         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
16824         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
16825         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
16826         and HAVE_LCHMOD.
16827         * modules/lchmod (Files): Remove lib/lchmod.h.
16828         (Depends-on): Add sys_stat, extensions.
16829         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16830         (Include): Specify <sys/stat.h> instead of lchmod.h.
16831         * modules/sys_stat (Depends-on): Add link-warning.
16832         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
16833         definition of GL_LINK_WARNING.
16834         * NEWS: Mention the change.
16835
16836 2008-10-18  Bruno Haible  <bruno@clisp.org>
16837
16838         * lib/fchdir.c: Don't include dirfd.h.
16839         * lib/fts.c: Likewise.
16840         * lib/getcwd.c: Likewise.
16841         * lib/glob.c: Likewise.
16842
16843         Move the dirfd() declaration to <dirent.h>.
16844         * lib/dirfd.h: Remove file.
16845         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
16846         (dirfd): New declaration.
16847         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
16848         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
16849         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
16850         HAVE_DECL_DIRFD.
16851         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
16852         HAVE_DECL_DIRFD.
16853         * modules/dirfd (Files): Remove lib/dirfd.h.
16854         (Depends-on): Add dirent, extensions.
16855         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
16856         (Include): Specify <dirent.h> instead of dirfd.h.
16857         * modules/dirent (Depends-on): Add link-warning.
16858         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
16859         definition of GL_LINK_WARNING.
16860         * NEWS: Mention the change.
16861
16862 2008-10-18  Bruno Haible  <bruno@clisp.org>
16863
16864         Move the euidaccess() declaration to <unistd.h>.
16865         * lib/euidaccess.h: Remove file.
16866         * lib/unistd.in.h (euidaccess): New declaration.
16867         * lib/euidaccess.c: Don't include euidaccess.h.
16868         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
16869         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
16870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
16871         and HAVE_EUIDACCESS.
16872         * modules/euidaccess (Files): Remove lib/euidaccess.h.
16873         (Depends-on): Add unistd.
16874         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16875         (Include): Specify <unistd.h> instead of euidaccess.h.
16876         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
16877         HAVE_EUIDACCESS.
16878         * NEWS: Mention the change.
16879
16880 2008-10-18  Bruno Haible  <bruno@clisp.org>
16881
16882         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
16883
16884         Move the getdomainname() declaration to <unistd.h>.
16885         * lib/getdomainname.h: Remove file.
16886         * lib/unistd.in.h (getdomainname): New declaration.
16887         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
16888         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16889         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16890         HAVE_GETDOMAINNAME.
16891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16892         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
16893         * modules/getdomainname (Files): Remove lib/getdomainname.h.
16894         (Depends-on): Add unistd, extensions.
16895         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16896         (Includes): Specify <unistd.h> instead of getdomainname.h.
16897         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
16898         HAVE_GETDOMAINNAME.
16899         * NEWS: Mention the change.
16900
16901 2008-10-18  Bruno Haible  <bruno@clisp.org>
16902
16903         * modules/dirent: New file.
16904         * m4/dirent_h.m4: New file.
16905         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
16906         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
16907         * modules/fchdir (Files): Remove lib/dirent.in.h.
16908         (Depends-on): Add dirent.
16909         (Makefile.am): Move rules to modules/dirent.
16910         * doc/posix-headers/dirent.texi: Mention the new module.
16911
16912 2008-10-18  Bruno Haible  <bruno@clisp.org>
16913
16914         Avoid -Wunused-parameter warnings in public gnulib header files.
16915         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
16916         macro.
16917         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
16918
16919 2008-10-18  Bruno Haible  <bruno@clisp.org>
16920
16921         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
16922         * doc/glibc-functions/error.texi: Mention the module 'error'.
16923         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
16924         * doc/glibc-functions/getdomainname.texi: Mention the module
16925         'getdomainname'.
16926         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
16927         * doc/glibc-functions/getpagesize.texi: Mention the module
16928         'getpagesize'.
16929         * doc/glibc-functions/getusershell.texi: Mention the module
16930         'getusershell'.
16931         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
16932         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
16933         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
16934         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
16935         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
16936         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
16937         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
16938         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
16939         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
16940         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
16941         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
16942         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
16943         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
16944         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
16945
16946 2008-10-17  Bruno Haible  <bruno@clisp.org>
16947
16948         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
16949         HP-UX and IRIX, use -0.0L.
16950         * tests/test-ceill.c (minus_zero): Likewise.
16951         * tests/test-floorl.c (minus_zero): Likewise.
16952         * tests/test-frexpl.c (minus_zero): Likewise.
16953         * tests/test-isnan.c (minus_zerol): Likewise.
16954         * tests/test-isnanl.h (minus_zero): Likewise.
16955         * tests/test-ldexpl.c (minus_zero): Likewise.
16956         * tests/test-roundl.c (minus_zero): Likewise.
16957         * tests/test-signbit.c (minus_zerol): Likewise.
16958         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16959         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16960         * tests/test-truncl.c (minus_zero): Likewise.
16961         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16962         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16963         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
16964         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16965
16966 2008-10-17  Bruno Haible  <bruno@clisp.org>
16967
16968         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
16969         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
16970         that it gets activated only for gcc >= 3.0.
16971         * lib/dirent.in.h: Likewise.
16972         * lib/errno.in.h: Likewise.
16973         * lib/fcntl.in.h: Likewise.
16974         * lib/float.in.h: Likewise.
16975         * lib/iconv.in.h: Likewise.
16976         * lib/inttypes.in.h: Likewise.
16977         * lib/locale.in.h: Likewise.
16978         * lib/math.in.h: Likewise.
16979         * lib/netdb.in.h: Likewise.
16980         * lib/netinet_in.in.h: Likewise.
16981         * lib/search.in.h: Likewise.
16982         * lib/signal.in.h: Likewise.
16983         * lib/spawn.in.h: Likewise.
16984         * lib/stdarg.in.h: Likewise.
16985         * lib/stdint.in.h: Likewise.
16986         * lib/stdio.in.h: Likewise.
16987         * lib/stdlib.in.h: Likewise.
16988         * lib/string.in.h: Likewise.
16989         * lib/strings.in.h: Likewise.
16990         * lib/sys_file.in.h: Likewise.
16991         * lib/sys_ioctl.in.h: Likewise.
16992         * lib/sys_select.in.h: Likewise.
16993         * lib/sys_socket.in.h: Likewise.
16994         * lib/sys_stat.in.h: Likewise.
16995         * lib/sys_time.in.h: Likewise.
16996         * lib/sysexits.in.h: Likewise.
16997         * lib/time.in.h: Likewise.
16998         * lib/unistd.in.h: Likewise.
16999         * lib/wchar.in.h: Likewise.
17000         * lib/wctype.in.h: Likewise.
17001         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17002
17003 2008-10-17  Jim Meyering  <meyering@redhat.com>
17004
17005         ignore-value: don't depend on inline module
17006         * modules/ignore-value (Depends-on): Remove 'inline'.
17007         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
17008         Suggestion from Bruno Haible.
17009
17010 2008-10-17  Bruno Haible  <bruno@clisp.org>
17011
17012         New implementation of condition variables for Win32.
17013         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
17014         (gl_linked_waitqueue_t): New type.
17015         (gl_cond_t): Use it.
17016         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
17017         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
17018         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
17019         (glthread_cond_init_func, glthread_cond_wait_func,
17020         glthread_cond_timedwait_func, glthread_cond_signal_func,
17021         glthread_cond_broadcast_func, glthread_cond_destroy_func):
17022         Reimplemented on the basis of gl_linked_waitqueue_t.
17023         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
17024         gl_waitqueue_t.
17025         (gl_rwlock_t): Update.
17026         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
17027
17028 2008-10-17  Simon Josefsson  <simon@josefsson.org>
17029
17030         * modules/recvfrom (Depends-on): Add dependency on getpeername.
17031         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17032
17033 2008-10-17  Jim Meyering  <meyering@redhat.com>
17034
17035         ignore-value: new module
17036         * modules/ignore-value: New file.
17037         * lib/ignore-value.h: New file.
17038         * MODULES.html.sh (Compiler warning management): New section,
17039         just for this module.  More to come.
17040
17041 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17042
17043         open-safer.c: avoid 'signed and unsigned in conditional...' warning
17044         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
17045         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
17046
17047 2008-10-16  Jim Meyering  <meyering@redhat.com>
17048
17049         openat-die.c: avoid 'no previous prototype' warning
17050         * lib/openat-die.c: Include "openat.h".
17051         Reported by Reuben Thomas <rrt@sc3d.org>.
17052
17053 2008-10-16  Simon Josefsson  <simon@josefsson.org>
17054
17055         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
17056         * lib/netdb.in.h: Fix typo.
17057         Reported by Bruno Haible  <bruno@clisp.org>
17058
17059         * lib/netdb.in.h: Include sys/socket.h for platforms without
17060         netdb.h, to get structures like hostent on MinGW.
17061         * modules/netdb (Depends-on): Add sys_socket.
17062
17063 2008-10-15  Simon Josefsson  <simon@josefsson.org>
17064
17065         * modules/netdb, modules/netdb-tests: New file.
17066         * m4/netdb_h.m4: New file.
17067         * lib/netdb.in.h: Add, currently just an empty file pending
17068         definitions.
17069         * tests/test-netdb.c: New file.
17070         * doc/posix-headers/netdb.texi: Mention that we replace it if
17071         needed.
17072         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17073         netdb.
17074
17075 2008-10-15  Simon Josefsson  <simon@josefsson.org>
17076
17077         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
17078         with code.
17079
17080 2008-10-13  Bruno Haible  <bruno@clisp.org>
17081
17082         * lib/glthread/cond.c (glthread_cond_wait_func,
17083         glthread_cond_timedwait_func): Add a comment.
17084
17085 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17086
17087         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
17088         * tests/test-select.c: Likewise,
17089
17090 2008-10-13  Bruno Haible  <bruno@clisp.org>
17091
17092         * lib/glthread/cond.c (glthread_cond_wait_func,
17093         glthread_cond_timedwait_func): Fix variable name.
17094         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17095
17096 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
17097
17098         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
17099         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
17100         struct sockaddr.sa_len.
17101         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
17102
17103 2008-10-13  Simon Josefsson  <simon@josefsson.org>
17104
17105         * build-aux/pmccabe2html: Add css and css_url parameters.
17106
17107 2008-10-12  Bruno Haible  <bruno@clisp.org>
17108
17109         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
17110         calling aclx_get.
17111         Reported by Rainer Tammer <tammer@tammer.net>.
17112
17113 2008-10-12  Bruno Haible  <bruno@clisp.org>
17114
17115         Use msvcrt aware primitives for creation/termination of Win32 threads.
17116         * lib/glthread/thread.c: Include <process.h>.
17117         (glthread_create_func): Use _beginthreadex instead of CreateThread.
17118         (wrapper_func): Update signature.
17119         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
17120
17121 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17122             Bruno Haible  <bruno@clisp.org>
17123
17124         Provide a Win32 implementation of the 'cond' module.
17125         * lib/glthread/cond.h [USE_WIN32]: New implementation.
17126         * lib/glthread/cond.c (glthread_cond_init_func,
17127         glthread_cond_wait_func, glthread_cond_timedwait_func,
17128         glthread_cond_signal_func, glthread_cond_broadcast_func,
17129         glthread_cond_destroy_func) [USE_WIN32]: New functions.
17130         * modules/cond (Dependencies): Add gettimeofday.
17131
17132 2008-10-11  Bruno Haible  <bruno@clisp.org>
17133
17134         Make sleep work on older versions of mingw.
17135         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
17136         only whether it exists.
17137         * doc/posix-functions/sleep.texi: Mention the problem with older
17138         versions of mingw.
17139
17140 2008-10-11  Bruno Haible  <bruno@clisp.org>
17141
17142         New module 'shutdown'.
17143         * modules/shutdown: New file.
17144         * lib/sys_socket.in.h (shutdown): New declaration.
17145         * lib/winsock.c (shutdown): New function.
17146         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17147         GNULIB_SHUTDOWN.
17148         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
17149         * doc/posix-functions/shutdown.texi: Document the new module.
17150
17151 2008-10-11  Jim Meyering  <meyering@redhat.com>
17152
17153         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
17154
17155 2008-10-11  Bruno Haible  <bruno@clisp.org>
17156
17157         New module 'fclose'.
17158         * modules/fclose: New file.
17159         * lib/stdio.in.h (fclose): New declaration.
17160         * lib/fclose.c: New file.
17161         * m4/fclose.m4: New file.
17162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
17163         REPLACE_FCLOSE.
17164         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
17165         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
17166         REPLACE_FCLOSE.
17167         * modules/close (Depends-on): fclose.
17168         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
17169
17170 2008-10-11  Bruno Haible  <bruno@clisp.org>
17171
17172         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
17173         set errno and don't call _close.
17174
17175 2008-10-10  Bruno Haible  <bruno@clisp.org>
17176
17177         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
17178         ACL, not afterwards. Fixes test failure on Cygwin.
17179
17180 2008-10-09  Ben Pfaff  <blp@gnu.org>
17181
17182         * build-aux/announce-gen: Fix gnulib version related part of usage
17183         message.  Die with a useful error message if no tarballs are
17184         found.
17185
17186 2008-10-10  Jim Meyering  <meyering@redhat.com>
17187
17188         bootstrap: use git's --depth=N option only if it's supported
17189         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
17190         recognize the --depth option.  Reported by Pádraig Brady.
17191
17192 2008-10-09  Bruno Haible  <bruno@clisp.org>
17193
17194         New module 'ioctl'.
17195         * modules/ioctl: New file.
17196         * lib/sys_socket.in.h (ioctl): Remove declaration.
17197         * lib/winsock.c: Include <sys/ioctl.h>.
17198         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
17199         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17200         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
17201         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
17202         * doc/posix-functions/ioctl.texi: Mention the new module.
17203
17204 2008-10-09  Bruno Haible  <bruno@clisp.org>
17205
17206         New module 'sys_ioctl'.
17207         * lib/sys_ioctl.in.h: New file.
17208         * m4/sys_ioctl_h.m4: New file.
17209         * modules/sys_ioctl: New file.
17210         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
17211
17212 2008-10-09  Bruno Haible  <bruno@clisp.org>
17213
17214         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
17215         * lib/winsock.c: Include <stdarg.h>.
17216         (rpl_ioctl): Change to second argument 'int' and then varargs.
17217
17218 2008-10-09  Bruno Haible  <bruno@clisp.org>
17219
17220         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
17221         when the sys_socket module is present and the system has <winsock2.h>.
17222
17223 2008-10-09  Bruno Haible  <bruno@clisp.org>
17224
17225         * doc/posix-functions/close.texi: Mention module 'close' instead of
17226         module 'sys_socket'.
17227
17228 2008-10-09  Bruno Haible  <bruno@clisp.org>
17229
17230         * doc/glibc-headers/sys_ioctl.texi: New file.
17231         * doc/gnulib.texi: Include it.
17232
17233 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17234             Bruno Haible  <bruno@clisp.org>
17235
17236         Combine the two replacements of 'close'.
17237         * lib/sys_socket.in.h (close): Define to a reminder to include
17238         <unistd.h>.
17239         (_gl_close_fd_maybe_socket): New declaration.
17240         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
17241         * lib/winsock.c (close): Remove undefinition.
17242         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
17243         needed for the gnulib module 'close'.
17244         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
17245         define to an error symbol or to a warning, if suitable.
17246         * lib/close.c: Include <sys/socket.h>.
17247         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
17248         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
17249         UNISTD_H_HAVE_WINSOCK2_H.
17250         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
17251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17252         UNISTD_H_HAVE_WINSOCK2_H.
17253         * modules/sys_socket (Files): Add m4/unistd_h.m4.
17254         (configure.ac): Set a module indicator.
17255         (Makefile.am): Substitute GNULIB_CLOSE.
17256         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
17257         * modules/poll-tests (Depends-on): Add close.
17258         * modules/select-tests (Depends-on): Likewise.
17259
17260 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17261             Bruno Haible  <bruno@clisp.org>
17262
17263         New module 'close'.
17264         * modules/close: New file.
17265         * lib/unistd.in.h (close): Move declaration out of the
17266         FCHDIR_REPLACEMENT scope.
17267         (_gl_unregister_fd): New declaration.
17268         * lib/close.c: New file.
17269         * lib/fchdir.c (rpl_close): Remove function.
17270         * m4/close.m4: New file.
17271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17272         close.
17273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
17274         REPLACE_CLOSE.
17275         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
17276         REPLACE_CLOSE.
17277         * modules/fchdir (Depends-on): Add close.
17278
17279 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17280             Bruno Haible  <bruno@clisp.org>
17281
17282         * lib/fcntl.in.h (open): Simplify conditionals.
17283         (_gl_register_fd): New declaration.
17284         * lib/fchdir.c (rpl_open): Remove function.
17285         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
17286         also.
17287         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
17288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17289         open.
17290
17291 2008-10-09  Jim Meyering  <meyering@redhat.com>
17292
17293         GNUmakefile: use the more name-space-friendly "_version"
17294         * top/GNUmakefile (_dummy): Update.
17295         (_version): Rename from "version".
17296
17297 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17298             Bruno Haible  <bruno@clisp.org>
17299
17300         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
17301         rpl_close.
17302         (_gl_register_fd): New function, extracted from rpl_open.
17303         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
17304         (rpl_open, rpl_opendir): Use _gl_register_fd.
17305
17306 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17307
17308         Fix organization of 'open' replacement.
17309         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
17310         (gl_FUNC_OPEN): Use it.
17311         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
17312
17313 2008-10-08  Bruno Haible  <bruno@clisp.org>
17314
17315         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
17316
17317 2008-10-08  Simon Josefsson  <simon@josefsson.org>
17318
17319         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
17320         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
17321         listen).
17322
17323 2008-10-08  Eric Blake  <ebb9@byu.net>
17324
17325         GNUmakefile: add 'make version' target
17326         * top/GNUmakefile (_curr-ver): Split version update rules...
17327         (version): ...into a target.
17328
17329 2008-10-07  Bruno Haible  <bruno@clisp.org>
17330
17331         Use a more portable replacement expression for -0.0L.
17332         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
17333         instead of -0.0L. Fix m4 quotation.
17334
17335         * tests/test-signbit.c: Include <float.h>.
17336         (minus_zero): New variable.
17337         (test_signbitl): Use minus_zero instead of -zero.
17338         * modules/signbit-tests (Depends-on): Add float.
17339
17340         * tests/test-ceill.c: Include <float.h>.
17341         (zero): Remove variable.
17342         (minus_zero): New variable.
17343         (main): Use minus_zero instead of -zero.
17344         * modules/ceill-tests (Depends-on): Add float.
17345
17346         * tests/test-floorl.c: Include <float.h>.
17347         (zero): Remove variable.
17348         (minus_zero): New variable.
17349         (main): Use minus_zero instead of -zero.
17350         * modules/floorl-tests (Depends-on): Add float.
17351
17352         * tests/test-roundl.c: Include <float.h>.
17353         (zero): Remove variable.
17354         (minus_zero): New variable.
17355         (main): Use minus_zero instead of -zero.
17356         * modules/roundl-tests (Depends-on): Add float.
17357
17358         * tests/test-truncl.c: Include <float.h>.
17359         (zero): Remove variable.
17360         (minus_zero): New variable.
17361         (main): Use minus_zero instead of -zero.
17362         * modules/truncl-tests (Depends-on): Add float.
17363
17364         * tests/test-frexpl.c (zero): Remove variable.
17365         (minus_zero): New variable.
17366         (main): Use minus_zero instead of -zero.
17367         * modules/frexpl-tests (Depends-on): Add float.
17368
17369         * tests/test-isnan.c (zerol): Remove variable.
17370         (minus_zerol): New variable.
17371         (test_long_double): Use minus_zerol instead of -zerol.
17372         * modules/isnan-tests (Depends-on): Add float.
17373
17374         * tests/test-isnanl.h (zero): Remove variable.
17375         (minus_zero): New variable.
17376         (main): Use minus_zero instead of -zero.
17377         * modules/isnanl-nolibm-tests (Depends-on): Add float.
17378         * modules/isnanl-tests (Depends-on): Add float.
17379
17380         * tests/test-ldexpl.c (zero): Remove variable.
17381         (minus_zero): New variable.
17382         (main): Use minus_zero instead of -zero.
17383         * modules/ldexpl-tests (Depends-on): Add float.
17384
17385         * tests/test-snprintf-posix.h (zerol): Remove variable.
17386         (minus_zerol): New variable.
17387         (test_function): Use minus_zerol instead of -zerol.
17388         * modules/snprintf-posix-tests (Depends-on): Add float.
17389         * modules/vsnprintf-posix-tests (Depends-on): Add float.
17390
17391         * tests/test-sprintf-posix.h (zerol): Remove variable.
17392         (minus_zerol): New variable.
17393         (test_function): Use minus_zerol instead of -zerol.
17394         * modules/sprintf-posix-tests (Depends-on): Add float.
17395         * modules/vsprintf-posix-tests (Depends-on): Add float.
17396
17397         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
17398         (minus_zerol): New variable.
17399         (test_function): Use minus_zerol instead of -zerol.
17400         * modules/vasnprintf-posix-tests (Depends-on): Add float.
17401
17402         * tests/test-vasprintf-posix.c (zerol): Remove variable.
17403         (minus_zerol): New variable.
17404         (test_function): Use minus_zerol instead of -zerol.
17405         * modules/vasprintf-posix-tests (Depends-on): Add float.
17406
17407 2008-10-07  Simon Josefsson  <simon@josefsson.org>
17408
17409         * MODULES.html.sh (Support for building documentation): Mention
17410         pmccabe2html.  Sort entries.
17411
17412         Add pmccabe2html module, from gnupdf.
17413         * build-aux/pmccabe.css: New file.
17414         * build-aux/pmccabe2html: New file.
17415         * m4/pmccabe2html.m4: New file.
17416         * modules/pmccabe2html: New file.
17417
17418 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
17419
17420         flock: new module
17421         * MODULES.html.sh: Add to list of modules.
17422         * lib/flock.c: flock implementation for Windows and Unix systems
17423         which have fcntl.
17424         * doc/glibc-functions/flock.texi: Update documentation.
17425         * lib/sys_file.in.h: <sys/file.h> header file.
17426         * m4/flock.m4: M4 macros.
17427         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
17428         * modules/flock: flock module.
17429         * modules/flock-tests: flock tests module.
17430         * modules/sys_file: sys/file.h module.
17431         * tests/test-flock.c: test suite for flock.
17432
17433 2008-10-06  Jim Meyering  <meyering@redhat.com>
17434
17435         bootstrap: check for LT_INIT more portably still ;-)
17436         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
17437         Spotted by Bruno Haible.
17438
17439 2008-10-06  Eric Blake  <ebb9@byu.net>
17440
17441         test-signbit: avoid tripping Irix cc bug on -0.0L
17442         * tests/test-signbit.c (minus_zerol): Delete, and replace with
17443         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
17444         entire testsuite consistent and avoids an Irix 6.2 bug.
17445
17446 2008-10-05  Bruno Haible  <bruno@clisp.org>
17447             Jim Meyering  <jim@meyering.net>
17448
17449         Add an option for ignoring EPIPE during close_stdout.
17450         * lib/closeout.h: Include <stdbool.h>.
17451         (close_stdout_set_ignore_EPIPE): New declaration.
17452         * lib/closeout.c: Include <stdbool.h>.
17453         (ignore_EPIPE): New variable.
17454         (close_stdout_set_ignore_EPIPE): New function.
17455         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
17456         * lib/close-stream.c (close_stream): Mention the possible EPIPE
17457         failure.
17458         * modules/closeout (Depends-on): Add stdbool.
17459
17460 2008-10-05  Bruno Haible  <bruno@clisp.org>
17461
17462         * modules/accept: New file.
17463         * modules/bind: New file.
17464         * modules/connect: New file.
17465         * modules/getpeername: New file.
17466         * modules/getsockname: New file.
17467         * modules/getsockopt: New file.
17468         * modules/listen: New file.
17469         * modules/recv: New file.
17470         * modules/recvfrom: New file.
17471         * modules/send: New file.
17472         * modules/sendto: New file.
17473         * modules/setsockopt: New file.
17474         * modules/socket: New file.
17475         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
17476         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17477         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
17478         the particular module is requested. Add a link warning when the
17479         particular module is not requested.
17480         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
17481         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
17482         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
17483         the particular module is requested.
17484         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
17485         gl_SYS_SOCKET_H_DEFAULTS): New macros.
17486         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
17487         * modules/sys_socket (Depends-on): Add link-warning.
17488         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
17489         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
17490         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
17491         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
17492         GL_LINK_WARNING.
17493         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
17494         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
17495         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
17496         * doc/posix-functions/getpeername.texi: Mention the new module
17497         'getpeername'.
17498         * doc/posix-functions/getsockname.texi: Mention the new module
17499         'getsockname'.
17500         * doc/posix-functions/getsockopt.texi: Mention the new module
17501         'getsockopt'.
17502         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
17503         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
17504         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
17505         * doc/posix-functions/send.texi: Mention the new module 'send'.
17506         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
17507         * doc/posix-functions/setsockopt.texi: Mention the new module
17508         'setsockopt'.
17509         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
17510         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
17511         listen, connect, accept.
17512         * modules/select-tests (Depends-on): Likewise.
17513
17514 2008-10-05  Bruno Haible  <bruno@clisp.org>
17515
17516         * lib/winsock.c (strerror): Remove unused #undef.
17517         (rpl_close): Remove unused local variable.
17518
17519         * modules/sys_socket (Depends-on); Add errno.
17520
17521 2008-10-05  Bruno Haible  <bruno@clisp.org>
17522
17523         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
17524         (select): Add a link warning when the 'select' module is not used.
17525         * modules/sys_select (Depends-on): Add link-warning.
17526         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
17527         Suggested by Paolo Bonzini.
17528
17529 2008-10-05  Jim Meyering  <meyering@redhat.com>
17530
17531         bootstrap: check for LT_INIT more portably
17532         * build-aux/bootstrap: Avoid using grep -E, since it's not
17533         portable enough.  Suggestion from Bruno Haible.
17534
17535 2008-10-05  Bruno Haible  <bruno@clisp.org>
17536
17537         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
17538         as being fixed by gnulib.
17539
17540 2008-10-05  Bruno Haible  <bruno@clisp.org>
17541
17542         * modules/select-tests: New file, mostly copied from
17543         modules/sys_select-tests.
17544         * tests/test-select.c: New file, mostly copied from
17545         tests/test-sys_select.c.
17546         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
17547         * modules/sys_select-tests (Depends-on): Remove all dependencies.
17548         (Makefile.am): Remove test_sys_select_LDADD.
17549
17550         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
17551         to an undefined symbol, for an error message.
17552         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
17553         (gl_SYS_SELECT_H_DEFAULTS): New macro.
17554         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
17555         winsock-select.c here.
17556         * modules/sys_select (Files): Remove lib/winsock-select.c.
17557         (Depends-on): Remove alloca.
17558         (Makefile.am): Substitute GNULIB_SELECT.
17559         * modules/select: New file.
17560         * doc/posix-functions/select.texi: Update.
17561
17562 2008-10-05  Bruno Haible  <bruno@clisp.org>
17563
17564         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
17565         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
17566         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
17567         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
17568         getdtablesize.
17569         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17570         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17571
17572 2008-10-05  Bruno Haible  <bruno@clisp.org>
17573
17574         * modules/getdtablesize-tests: New file.
17575         * tests/test-getdtablesize.c: New file.
17576
17577         New module 'getdtablesize'.
17578         * lib/unistd.in.h (getdtablesize): New declaration.
17579         * lib/getdtablesize.c: New file.
17580         * m4/getdtablesize.m4: New file.
17581         * modules/getdtablesize: New file.
17582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17583         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
17584         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
17585         HAVE_GETDTABLESIZE.
17586         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
17587
17588 2008-10-05  Bruno Haible  <bruno@clisp.org>
17589
17590         * modules/sched (Makefile.am): Fix typo.
17591         Reported by Simon Josefsson.
17592
17593 2008-10-05  Jim Meyering  <meyering@redhat.com>
17594
17595         bootstrap: check for LT_INIT, too
17596         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
17597         are deprecated.  Suggestion from Ralf Wildenhues.
17598
17599 2008-10-05  Bruno Haible  <bruno@clisp.org>
17600
17601         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
17602         overriding them by ours.
17603         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
17604
17605 2008-10-05  Jim Meyering  <meyering@redhat.com>
17606
17607         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
17608         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
17609         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
17610
17611 2008-10-04  Bruno Haible  <bruno@clisp.org>
17612
17613         * modules/dup2 (License): Change to LGPLv2+.
17614         * modules/sleep (License): Likewise.
17615         * modules/perror (License): Likewise.
17616         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
17617         Blake.
17618         * modules/signal (License): Likewise.
17619         * modules/sigprocmask (License): Likewise.
17620         * modules/raise (License): Change to LGPLv2+, with approval by Jim
17621         Meyering.
17622
17623 2008-10-04  Bruno Haible  <bruno@clisp.org>
17624
17625         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
17626         Reported by Rainer Tammer <tammer@tammer.net>.
17627
17628 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
17629             Bruno Haible  <bruno@clisp.org>
17630
17631         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
17632         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
17633         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
17634
17635 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
17636
17637         filevercmp: new module
17638         * lib/filevercmp.h: New function filevercmp comparing version strings.
17639         * lib/filevercmp.c: Implementation of filevercmp function.
17640         * modules/filevercmp: Module metadata.
17641         * tests/test-filevercmp.c: Unit test for new module.
17642         * modules/filevercmp-tests: Unit test metadata.
17643         * MODULES.html.sh: Add filevercmp module.
17644
17645 2008-10-03  Bruno Haible  <bruno@clisp.org>
17646
17647         * lib/c-ctype.h: Add comment.
17648         Reported by Jim Meyering.
17649
17650 2008-10-02  Bruno Haible  <bruno@clisp.org>
17651
17652         * modules/posix_spawn-internal (Depends-on): Add 'open'.
17653
17654 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17655
17656         * build-aux/bootstrap: Allow renaming bootstrap, and change the
17657         name of bootstrap.conf accordingly.
17658
17659 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17660
17661         * build-aux/bootstrap: Install git-merge-changelog configuration
17662         items into .gitconfig if needed.
17663
17664 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17665
17666         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
17667         git repository, and initialize/update it accordingly.
17668
17669 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
17670
17671         * modules/fsync-tests: New file.
17672         * tests/test-fsync.c: New file.
17673
17674         New module 'fsync'.
17675         * lib/fsync.c: New file.
17676         * m4/fsync.m4: New file.
17677         * modules/fsync: New file.
17678         * lib/unistd.in.h (fsync): New declaration.
17679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
17680         GNULIB_FSYNC and HAVE_FSYNC.
17681         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
17682         * MODULES.html.sh (posix_functions): Add fsync.
17683         * doc/posix-functions/fsync.texi: Mention the new module.
17684
17685 2008-10-02  Jim Meyering  <meyering@redhat.com>
17686
17687         fts.c: sync with similar code from coreutils' remove.c
17688         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
17689         Guard also with "#if defined __linux__", since for now at least,
17690         this code is Linux-kernel-specific.
17691
17692 2008-10-02  Jim Meyering  <meyering@redhat.com>
17693
17694         fts: bug fixes
17695         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
17696         Include <sys/vfs.h>, not <sys/statfs.h>.
17697
17698         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
17699         Include <sys/vfs.h>, not <sys/statfs.h>.
17700
17701 2008-10-01  Bruno Haible  <bruno@clisp.org>
17702
17703         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
17704         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
17705         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
17706         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
17707         * doc/posix-functions/posix_spawnp.texi: Likewise.
17708         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
17709         whether posix_spawn actually works.
17710         * m4/pipe.m4 (gl_PIPE): Likewise.
17711         * modules/execute (Files): Add m4/posix_spawn.m4.
17712         * modules/pipe (Files): Add m4/posix_spawn.m4.
17713         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
17714
17715 2008-10-01  Jim Meyering  <meyering@redhat.com>
17716
17717         remove trailing spaces
17718         * NEWS: Likewise.
17719         * lib/poll.c (poll): Likewise.
17720         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
17721         * lib/winsock.c (rpl_close): Likewise.
17722         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
17723         * modules/yield: Likewise.
17724         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
17725         * tests/test-sys_select.c (connect_to_socket): Likewise.
17726
17727         fts.c: adjust a new interface to be more generally useful
17728         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
17729         (fts_build): Adjust caller.
17730
17731 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17732
17733         * modules/cond-tests: New file.
17734         * tests/test-cond.c: New file.
17735
17736 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17737             Bruno Haible  <bruno@clisp.org>
17738
17739         * modules/cond (Dependencies): Add errno, time.
17740         * lib/glthread/cond.h: Include <time.h>.
17741         (gl_cond_define, gl_cond_define_initialized): Use the same definition
17742         across platforms.
17743
17744 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17745             Bruno Haible  <bruno@clisp.org>
17746
17747         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
17748
17749 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17750             Bruno Haible  <bruno@clisp.org>
17751
17752         * modules/tls-tests (Depends-on): Add thread, yield.
17753         (configure.ac): Remove all checks.
17754         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
17755         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17756         gl_thread_self): Remove definitions. Include glthread/thread.h and
17757         glthread/yield.h instead.
17758         (test_tls): Pass an additional NULL argument to gl_thread_join.
17759
17760 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17761             Bruno Haible  <bruno@clisp.org>
17762
17763         * modules/lock-tests (Depends-on): Add thread, yield.
17764         (configure.ac): Remove all checks.
17765         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
17766         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17767         gl_thread_self): Remove definitions. Include glthread/thread.h and
17768         glthread/yield.h instead.
17769         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
17770         additional NULL argument to gl_thread_join.
17771
17772 2008-09-30  Bruno Haible  <bruno@clisp.org>
17773
17774         Fix the Win32 implementation of the 'thread' module.
17775         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
17776         pointer type.
17777         (gl_thread_self): Invoke gl_thread_self_func.
17778         (gl_thread_self_func): New declaration.
17779         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
17780         (do_init_self_key, init_self_key): New functions.
17781         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
17782         Remove some fields.
17783         (running_threads, running_lock): Remove variables.
17784         (get_current_thread_handle): New function.
17785         (gl_thread_self_func, wrapper_func, glthread_create_func,
17786         glthread_join_func, gl_thread_exit_func): Largely rewritten and
17787         simplified.
17788
17789 2008-09-30  Bruno Haible  <bruno@clisp.org>
17790
17791         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
17792         files.
17793
17794 2008-09-30  Jim Meyering  <meyering@redhat.com>
17795
17796         fts.m4: correct the test for statfs.f_type
17797         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
17798         when checking for statfs.f_type.
17799
17800 2008-09-15  Simon Josefsson  <simon@josefsson.org>
17801
17802         tests: avoid some compiler warnings
17803         * tests/test-memchr.c (main): Pass NULL indirectly.
17804         * tests/test-getdate.c (main): Remove unused variable 'ret'.
17805
17806 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
17807
17808         getdate.y: disallow countable dayshifts like "4 yesterday ago"
17809         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
17810         exactly specified dayshifts.
17811         (dayshift): New rule.
17812         (rel): Add dayshift.
17813         (relative_time_table) [tomorrow, yesterday, today, now]:
17814         Use tDAY_SHIFT in place of tDAY_UNIT.
17815         * tests/test-getdate.c: Add tests for now-disallowed countable
17816         dayshifts, e.g., "4 yesterday ago".
17817
17818 2008-09-29  Bruno Haible  <bruno@clisp.org>
17819
17820         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
17821         * tests/test-posix_spawn1.in.sh: Renamed from
17822         tests/test-posix_spawn.in.sh.
17823         * tests/test-posix_spawn2.c: New file.
17824         * tests/test-posix_spawn2.in.sh: New file.
17825         * modules/posix_spawnp-tests (Files): Update.
17826         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
17827
17828 2008-09-29  Bruno Haible  <bruno@clisp.org>
17829
17830         Propagate effects of putenv/setenv/unsetenv to child processes.
17831         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
17832         * lib/pipe.c (create_pipe): Likewise.
17833
17834 2008-09-29  Bruno Haible  <bruno@clisp.org>
17835
17836         Enable use of shell scripts as executables in mingw.
17837         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
17838         run the program as a shell script.
17839         * lib/pipe.c (create_pipe): Likewise.
17840         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
17841         resulting array.
17842
17843 2008-09-29  Eric Blake  <ebb9@byu.net>
17844
17845         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
17846
17847 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
17848
17849         * doc/posix-functions/accept.texi: Update mingw problems.
17850         * doc/posix-functions/bind.texi: Update mingw problems.
17851         * doc/posix-functions/close.texi: Update mingw problems.
17852         * doc/posix-functions/connect.texi: Update mingw problems.
17853         * doc/posix-functions/getpeername.texi: Update mingw problems.
17854         * doc/posix-functions/getsockname.texi: Update mingw problems.
17855         * doc/posix-functions/getsockopt.texi: Update mingw problems.
17856         * doc/posix-functions/ioctl.texi: Update mingw problems.
17857         * doc/posix-functions/listen.texi: Update mingw problems.
17858         * doc/posix-functions/recv.texi: Update mingw problems.
17859         * doc/posix-functions/recvfrom.texi: Update mingw problems.
17860         * doc/posix-functions/select.texi: Update mingw problems.
17861         * doc/posix-functions/send.texi: Update mingw problems.
17862         * doc/posix-functions/sendto.texi: Update mingw problems.
17863         * doc/posix-functions/setsockopt.texi: Update mingw problems.
17864         * doc/posix-functions/socket.texi: Update mingw problems.
17865
17866 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
17867             Bruno Haible  <bruno@clisp.org>
17868
17869         * lib/sys_select.in.h: Include sys/time.h.
17870         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
17871         * modules/sys_select: Depend on sys_time.
17872         * tests/test-sys_select.c: Test that sys/select.h defines struct
17873         timeval fully.
17874
17875 2008-09-29  Bruno Haible  <bruno@clisp.org>
17876
17877         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
17878         * lib/sys_select.in.h: Likewise.
17879
17880 2008-09-29  Bruno Haible  <bruno@clisp.org>
17881
17882         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
17883
17884 2008-09-29  Bruno Haible  <bruno@clisp.org>
17885
17886         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
17887         Set LIBSOCKET instead of augmenting LIBS.
17888         * modules/sockets (Link): New section.
17889         * modules/sockets-tests (test_sockets_LDADD): New variable.
17890         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
17891         * modules/poll-tests (test_poll_LDADD): New variable.
17892         * NEWS: Document the change.
17893
17894 2008-09-29  Bruno Haible  <bruno@clisp.org>
17895
17896         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
17897         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
17898         ARPA_INET_H directly.
17899         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17900
17901 2008-09-28  Bruno Haible  <bruno@clisp.org>
17902
17903         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
17904         from gl_HEADER_SYS_SOCKET.
17905         (gl_HEADER_SYS_SOCKET): Invoke it.
17906         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17907
17908 2008-09-28  Bruno Haible  <bruno@clisp.org>
17909
17910         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
17911         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
17912         Needed on OSF/1 4.0.
17913
17914 2008-09-28  Bruno Haible  <bruno@clisp.org>
17915
17916         Override open more carefully.
17917         * lib/open.c (orig_open): New function.
17918         (rpl_open): Use orig_open instead of open.
17919         * lib/fcntl.in.h: Add special invocation convention.
17920         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
17921         (gl_FUNC_OPEN): Invoke it.
17922
17923         Override freopen more carefully.
17924         * lib/freopen.c (orig_freopen): New function.
17925         (rpl_freopen): Use orig_freopen instead of freopen.
17926         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
17927         (gl_FUNC_FREOPEN): Invoke it.
17928
17929         Override fopen more carefully.
17930         * lib/fopen.c (orig_fopen): New function.
17931         (rpl_fopen): Use orig_fopen instead of fopen.
17932         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
17933         (gl_FUNC_FOPEN): Invoke it.
17934         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
17935
17936 2008-09-28  Bruno Haible  <bruno@clisp.org>
17937
17938         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
17939         SIGPIPE.
17940
17941 2008-09-28  Bruno Haible  <bruno@clisp.org>
17942
17943         * tests/test-sigaction.c (handler, main): Disable the check whether
17944         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
17945         glibc systems with LinuxThreads.
17946
17947 2008-09-28  Bruno Haible  <bruno@clisp.org>
17948
17949         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
17950
17951         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
17952         with AIX xlc.
17953         * lib/fcntl.in.h (open): Likewise.
17954         Reported by Rainer Tammer <tammer@tammer.net>.
17955
17956 2008-09-28  Bruno Haible  <bruno@clisp.org>
17957
17958         * modules/posix_spawnp-tests: New file.
17959         * tests/test-posix_spawn.c: New file.
17960         * tests/test-posix_spawn.in.sh: New file.
17961
17962         New module 'posix_spawnp'.
17963         * modules/posix_spawnp: New file.
17964         * lib/spawnp.c: New file, from GNU libc with modifications.
17965         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
17966
17967         New module 'posix_spawn'.
17968         * modules/posix_spawn: New file.
17969         * lib/spawn.c: New file, from GNU libc with modifications.
17970         * doc/posix-functions/posix_spawn.texi: Mention the new module.
17971
17972         New module 'posix_spawnattr_destroy'.
17973         * modules/posix_spawnattr_destroy: New file.
17974         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
17975         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
17976         module.
17977
17978         New module 'posix_spawnattr_setsigmask'.
17979         * modules/posix_spawnattr_setsigmask: New file.
17980         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
17981         modifications.
17982         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
17983         new module.
17984
17985         New module 'posix_spawnattr_getsigmask'.
17986         * modules/posix_spawnattr_getsigmask: New file.
17987         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
17988         modifications.
17989         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
17990         new module.
17991
17992         New module 'posix_spawnattr_setsigdefault'.
17993         * modules/posix_spawnattr_setsigdefault: New file.
17994         * lib/spawnattr_setdefault.c: New file, from GNU libc with
17995         modifications.
17996         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
17997         new module.
17998
17999         New module 'posix_spawnattr_getsigdefault'.
18000         * modules/posix_spawnattr_getsigdefault: New file.
18001         * lib/spawnattr_getdefault.c: New file, from GNU libc with
18002         modifications.
18003         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
18004         new module.
18005
18006         New module 'posix_spawnattr_setschedpolicy'.
18007         * modules/posix_spawnattr_setschedpolicy: New file.
18008         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
18009         modifications.
18010         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
18011         new module.
18012
18013         New module 'posix_spawnattr_getschedpolicy'.
18014         * modules/posix_spawnattr_getschedpolicy: New file.
18015         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
18016         modifications.
18017         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
18018         new module.
18019
18020         New module 'posix_spawnattr_setschedparam'.
18021         * modules/posix_spawnattr_setschedparam: New file.
18022         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
18023         modifications.
18024         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
18025         new module.
18026
18027         New module 'posix_spawnattr_getschedparam'.
18028         * modules/posix_spawnattr_getschedparam: New file.
18029         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
18030         modifications.
18031         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
18032         new module.
18033
18034         New module 'posix_spawnattr_setpgroup'.
18035         * modules/posix_spawnattr_setpgroup: New file.
18036         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
18037         modifications.
18038         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
18039         module.
18040
18041         New module 'posix_spawnattr_getpgroup'.
18042         * modules/posix_spawnattr_getpgroup: New file.
18043         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
18044         modifications.
18045         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
18046         module.
18047
18048         New module 'posix_spawnattr_setflags'.
18049         * modules/posix_spawnattr_setflags: New file.
18050         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
18051         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
18052         module.
18053
18054         New module 'posix_spawnattr_getflags'.
18055         * modules/posix_spawnattr_getflags: New file.
18056         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
18057         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
18058         module.
18059
18060         New module 'posix_spawnattr_init'.
18061         * modules/posix_spawnattr_init: New file.
18062         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
18063         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
18064         module.
18065
18066         New module 'posix_spawn_file_actions_destroy'.
18067         * modules/posix_spawn_file_actions_destroy: New file.
18068         * lib/spawn_faction_destroy.c: New file, from GNU libc with
18069         modifications.
18070         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
18071         the new module.
18072
18073         New module 'posix_spawn_file_actions_addopen'.
18074         * modules/posix_spawn_file_actions_addopen: New file.
18075         * lib/spawn_faction_addopen.c: New file, from GNU libc with
18076         modifications.
18077         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
18078         the new module.
18079
18080         New module 'posix_spawn_file_actions_adddup2'.
18081         * modules/posix_spawn_file_actions_adddup2: New file.
18082         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
18083         modifications.
18084         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
18085         the new module.
18086
18087         New module 'posix_spawn_file_actions_addclose'.
18088         * modules/posix_spawn_file_actions_addclose: New file.
18089         * lib/spawn_faction_addclose.c: New file, from GNU libc with
18090         modifications.
18091         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
18092         the new module.
18093
18094         New module 'posix_spawn_file_actions_init'.
18095         * modules/posix_spawn_file_actions_init: New file.
18096         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
18097         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
18098         new module.
18099
18100         New module 'posix_spawn-internal'.
18101         * modules/posix_spawn-internal: New file.
18102         * lib/spawn_int.h: New file, from GNU libc with modifications.
18103         * lib/spawni.c: New file, from GNU libc with modifications.
18104         * m4/posix_spawn.m4: New file.
18105
18106         New module 'spawn'.
18107         * modules/spawn: New file.
18108         * lib/spawn.in.h: New file, from GNU libc with modifications.
18109         * m4/spawn_h.m4: New file.
18110         * doc/posix-headers/spawn.texi: Mention the new module.
18111
18112 2008-09-28  Bruno Haible  <bruno@clisp.org>
18113
18114         * modules/sched-tests: New file.
18115         * tests/test-sched.c: New file.
18116
18117         New module 'sched'.
18118         * modules/sched: New file.
18119         * lib/sched.in.h: New file.
18120         * m4/sched_h.m4: New file.
18121         * doc/posix-headers/sched.texi: Mention the new module.
18122
18123 2008-09-27  Eric Blake  <ebb9@byu.net>
18124
18125         Fix previous patch, and tweak references to $0.
18126         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
18127         (func_version, func_gnulib_dir): Don't call this program
18128         gnulib-tool.
18129         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
18130         with using $0 in function.
18131         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
18132         (func_fatal_error): Reuse the name the user invoked us with.
18133
18134 2008-09-27  Bruno Haible  <bruno@clisp.org>
18135
18136         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
18137         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
18138         (gl_ICONV_H): Not here.
18139         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18140         instead of assigning ICONV_H directly.
18141
18142         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
18143         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
18144         WCHAR_H directly.
18145
18146 2008-09-27  Bruno Haible  <bruno@clisp.org>
18147
18148         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
18149         * modules/arpa_inet (Depends-on): Add link-warning.
18150         (Makefile.am): Insert the definition of GL_LINK-WARNING.
18151         * modules/unistd (Makefile.am): Likewise.
18152
18153 2008-09-26  Bruno Haible  <bruno@clisp.org>
18154
18155         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
18156         variables.
18157         (func_version): Essentially copied from gnulib-tool.
18158         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
18159         func_readlink): Copied from gnulib-tool.
18160
18161 2008-09-26  Bruno Haible  <bruno@clisp.org>
18162
18163         * gnulib-tool (func_version): Change directory to $gnulib_dir before
18164         invoking git-version-gen.
18165
18166 2008-09-26  Bruno Haible  <bruno@clisp.org>
18167
18168         * posix-modules: Update to directory names changed on 2008-01-19.
18169         Remove commas in output before splitting into words. No more need to
18170         avoid 'ftruncate' since 2007-02-19.
18171
18172 2008-09-26  Bruno Haible  <bruno@clisp.org>
18173
18174         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
18175
18176 2008-09-26  Bruno Haible  <bruno@clisp.org>
18177
18178         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
18179         * modules/fwriteerror (Depends-on): Add errno.
18180
18181 2008-09-26  Bruno Haible  <bruno@clisp.org>
18182
18183         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
18184         * tests/test-vc-list-files-cvs.sh: Likewise.
18185
18186 2008-09-26  Bruno Haible  <bruno@clisp.org>
18187
18188         * doc/posix-headers/sys_resource.texi: Reorder items.
18189
18190 2008-09-26  Jim Meyering  <meyering@redhat.com>
18191
18192         fts: tweak inode comparison function
18193         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
18194         inode numbers, as documented.
18195
18196         fts: sort dirent entries on inode number before traversing
18197         This avoids a quadratic, seek-related performance penalty when
18198         operating on a directory containing many entries (measurable at 10k;
18199         3.5 hours at 2 million entries with a cold cache) on certain types
18200         of file systems, including ext3 and ext4, but not tmpfs.
18201         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
18202         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
18203         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
18204         (fs_handles_readdir_ordered_dirents_efficiently): New function.
18205         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
18206         (fts_build): Set the stat.st_ino member from D_INO.
18207         If it is likely to be useful, sort dirent entries on inode number.
18208
18209         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
18210         and the struct statfs.f_type member.
18211         * modules/fts (Depends-on): Add d-ino.
18212
18213 2008-09-26  Bruno Haible  <bruno@clisp.org>
18214
18215         * modules/sigpipe-die (Depends-on): Add sigpipe.
18216
18217         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
18218         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
18219         and GNULIB_STDIO_H_SIGPIPE are set.
18220         * lib/stdio-write.c: New file.
18221         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
18222         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18223         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18224         REPLACE_STDIO_WRITE_FUNCS.
18225         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
18226         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18227         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18228         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18229         * modules/stdio (Files): Add lib/stdio-write.c.
18230         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
18231         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18232         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18233         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18234         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
18235         REPLACE_FPRINTF_POSIX.
18236         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
18237         REPLACE_PRINTF_POSIX.
18238         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
18239         REPLACE_VFPRINTF_POSIX.
18240         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
18241         REPLACE_VPRINTF_POSIX.
18242         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
18243         SIGPIPE issue.
18244         * doc/posix-functions/fputc.texi: Likewise.
18245         * doc/posix-functions/fputs.texi: Likewise.
18246         * doc/posix-functions/fwrite.texi: Likewise.
18247         * doc/posix-functions/printf.texi: Likewise.
18248         * doc/posix-functions/putc.texi: Likewise.
18249         * doc/posix-functions/putchar.texi: Likewise.
18250         * doc/posix-functions/puts.texi: Likewise.
18251         * doc/posix-functions/vfprintf.texi: Likewise.
18252         * doc/posix-functions/vprintf.texi: Likewise.
18253
18254         * modules/safe-write (Depends-on): Add write.
18255
18256         * modules/sigpipe-tests: New file.
18257         * tests/test-sigpipe.c: New file.
18258         * tests/test-sigpipe.sh: New file.
18259
18260         * modules/write: New file.
18261         * lib/unistd.in.h: Include <sys/types.h>.
18262         (write): New declaration.
18263         * lib/write.c: New file.
18264         * m4/write.m4: New file.
18265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18266         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
18267         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
18268         GNULIB_WRITE, REPLACE_WRITE.
18269         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
18270         and the SIGPIPE issue.
18271
18272         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
18273         (raise): New declaration.
18274         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
18275         (ext_signal): New function.
18276         (rpl_raise): New function.
18277         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
18278         GNULIB_SIGNAL_H_SIGPIPE.
18279         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
18280         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
18281
18282         * modules/sigpipe: New file.
18283         * m4/sigpipe.m4: New file.
18284
18285 2008-09-25  Derek Price  <derek@ximbiot.com>
18286             Bruno Haible  <bruno@clisp.org>
18287
18288         * gnulib-tool (func_import): Report all license incompatibilities, not
18289         just the first one.
18290
18291 2008-09-25  Bruno Haible  <bruno@clisp.org>
18292
18293         * gnulib-tool (func_import): When computing the edits, consider not
18294         only the Makefile.ams that exist but also those that will be generated.
18295
18296 2008-09-25  Simon Josefsson  <simon@josefsson.org>
18297
18298         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
18299         fixes gnulib-tool --test warning about duplicate dependency.
18300
18301 2008-09-25  Bruno Haible  <bruno@clisp.org>
18302
18303         * gnulib-tool: Don't ask the user to perform edits in the generated
18304         Makefile.ams.
18305         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
18306         apply to the Makefile.am being generated.
18307         (func_emit_tests_Makefile_am): Execute edits that apply to the
18308         Makefile.am being generated.
18309         (func_import): Setup list of Makefile.am edits before emitting the
18310         Makefile.ams, not at the end.
18311         (func_create_testdir): Update.
18312         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18313
18314 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18315
18316         * gnulib-tool (func_import): Store the --tests-base option in the
18317         comment in gnulib-cache.m4.
18318
18319 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
18320
18321         * NEWS: Document increased portability that sys_select now provides.
18322
18323         * lib/sys_select.in.h: Install select wrapper.
18324         * lib/sys_socket.in.h: Use more descriptive name when there is no
18325         select wrapper.
18326         * lib/winsock-select.c: New.
18327         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
18328         Require gl_HEADER_SYS_SOCKET.
18329         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
18330         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
18331         * tests/test-sys_select.c: Add functional tests.
18332
18333 2008-09-24  Eric Blake  <ebb9@byu.net>
18334
18335         open, fopen: close fd leak in last patch
18336         * lib/open.c (rpl_open): Close fd before returning error.
18337         * lib/fopen.c (rpl_fopen): Close fd before returning error.
18338         * doc/posix-functions/open.texi (open): Document that Irix also
18339         has the bug.
18340         * doc/posix-functions/fopen.texi (fopen): Likewise.
18341         Reported by Paolo Bonzini.
18342
18343 2008-09-24  Bruno Haible  <bruno@clisp.org>
18344
18345         Ensure that a filename ending in a slash cannot be used to access a
18346         non-directory.
18347         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
18348         to check whether it's really a directory.
18349         * lib/fopen.c: Include fcntl.h, unistd.h.
18350         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
18351         and fdopen().
18352         * modules/fopen (Depends-on): Add unistd.
18353         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
18354         * tests/test-fopen.c (main): Likewise.
18355         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
18356         * doc/posix-functions/fopen.texi: Likewise.
18357         Reported by Eric Blake.
18358
18359 2008-09-23  Eric Blake  <ebb9@byu.net>
18360
18361         c-stack: avoid compiler optimizations when provoking overflow
18362         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
18363         recursion harder to optimize, to ensure a stack overflow occurs.
18364         * tests/test-c-stack.c (recurse): Likewise.
18365         Borrowed from libsigsegv.
18366
18367         c-stack: work around Irix sigaltstack bug
18368         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
18369         whether sigaltstack uses wrong end of stack_t (copied in part from
18370         libsigsegv).
18371         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
18372         Irix bug, without requiring an over-allocation.
18373         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
18374         bug.
18375
18376         fopen: document mingw bug on directories
18377         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
18378         not allowing a stream visiting a directory, even though reading
18379         from such a stream is not portable.
18380
18381 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18382
18383         * lib/poll.c: Rewrite.
18384         * modules/poll: Depend on alloca.
18385
18386 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18387
18388         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
18389         instead define prototypes for a full set of wrappers.  Ensure
18390         that Cygwin does not use the compatibility code, which is only
18391         for MinGW.
18392         * lib/winsock.c: New.
18393         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
18394         * modules/sys_socket: Add lib/winsock.c.
18395
18396         * modules/poll-tests: Add errno and perror.
18397         * tests/test-poll.c: Use ioctl, not ioctlsocket.
18398
18399 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18400
18401         * tests/test-poll.c: Downgrade minimum needed Winsock version.
18402
18403 2008-09-23  Bruno Haible  <bruno@clisp.org>
18404
18405         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
18406         * doc/glibc-functions/*: Likewise.
18407
18408 2008-09-23  Simon Josefsson  <simon@josefsson.org>
18409
18410         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
18411         success.
18412
18413 2008-09-22  Eric Blake  <ebb9@byu.net>
18414             Bruno Haible  <bruno@clisp.org>
18415
18416         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
18417         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
18418         supply %A but mishandle pseudo-NaN.
18419         Reported by Simon Josefsson.
18420
18421 2008-09-21  Bruno Haible  <bruno@clisp.org>
18422
18423         * tests/test-lock.c (main): Tweak skip message.
18424         * tests/test-tls.c (main): Likewise.
18425
18426 2008-09-21  Bruno Haible  <bruno@clisp.org>
18427
18428         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
18429         whether 'struct sigaction' has sa_sigaction here...
18430         (gl_PREREQ_SIG_HANDLER_H): ... not here.
18431         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
18432
18433 2008-09-21  Bruno Haible  <bruno@clisp.org>
18434
18435         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
18436         section.
18437         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
18438         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
18439         the new section.
18440         (Support for obsolete systems lacking POSIX:2001): New section.
18441         (String handling <string.h>): Move strdup to the new section.
18442         Suggested by Simon Josefsson and Paolo Bonzini.
18443
18444 2008-09-21  Bruno Haible  <bruno@clisp.org>
18445
18446         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
18447         exponents in %e and %g results on 'long double'. Needed for mingw's
18448         improved *printf functions.
18449         * tests/test-vasprintf-posix.c (test_function): Likewise.
18450         * tests/test-snprintf-posix.h (test_function): Likewise.
18451         * tests/test-sprintf-posix.h (test_function): Likewise.
18452         Reported by Eric Blake.
18453
18454 2008-09-21  Bruno Haible  <bruno@clisp.org>
18455
18456         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
18457         * tests/test-sprintf-posix.h (test_function): Likewise.
18458
18459 2008-09-21  Bruno Haible  <bruno@clisp.org>
18460
18461         * modules/getpass (Depends-on): Add strdup-posix.
18462
18463         New module 'strdup-posix'.
18464         * modules/strdup-posix: New file.
18465         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
18466         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
18467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18468         REPLACE_STRDUP.
18469         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
18470         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
18471         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18472         strdup-posix.
18473
18474         * modules/strdup (Depends-on): Remove malloc-posix.
18475
18476 2008-09-20  Bruno Haible  <bruno@clisp.org>
18477
18478         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
18479         Wildenhues.
18480
18481 2008-09-20  Bruno Haible  <bruno@clisp.org>
18482
18483         Ensure that wint_t gets defined on IRIX 5.3.
18484         * lib/wchar.in.h (wint_t): Define if not defined by the system.
18485         * lib/wctype.in.h (wint_t): Likewise.
18486         (__wctype_wint_t): Remove type.
18487         (isw*): Use wint_t instead of __wctype_wint_t.
18488         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
18489         * modules/wchar (Files): Add m4/wint_t.m4.
18490         (Makefile.am): Substitute HAVE_WINT_T.
18491         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
18492         * tests/test-wctype.c: Check that wint_t is defined.
18493         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
18494         * doc/posix-headers/wctype.texi: Likewise.
18495         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18496
18497 2008-09-18  Bruno Haible  <bruno@clisp.org>
18498
18499         * gnulib-tool (func_exit): Update comment.
18500
18501 2008-09-18  Simon Josefsson  <simon@josefsson.org>
18502
18503         * modules/getaddrinfo (Depends-on): Remove strdup, this module
18504         assumes strdup exists and does not depend on strdup to return
18505         ENOMEM on out of memory conditions.
18506
18507 2008-09-18  Bruno Haible  <bruno@clisp.org>
18508
18509         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
18510         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
18511         digits for the exponent.
18512
18513 2008-09-18  Jim Meyering  <meyering@redhat.com>
18514             Bruno Haible  <bruno@clisp.org>
18515
18516         * lib/vasnprintf.c (decimal_point_char): Define also if
18517         NEED_PRINTF_INFINITE_LONG_DOUBLE.
18518
18519 2008-09-16  Bruno Haible  <bruno@clisp.org>
18520         and Eric Blake  <ebb9@byu.net>
18521
18522         vasnprintf: support Irix 5.3
18523         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
18524         that mishandle long double infinity.
18525         Reported by Tom G. Christensen.
18526
18527 2008-09-16  Bruno Haible  <bruno@clisp.org>
18528
18529         * doc/glibc-functions/scandir.texi: Mention the function is missing on
18530         Solaris 9.
18531         * doc/glibc-functions/alphasort.texi: Likewise.
18532         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
18533
18534 2008-09-16  Jim Meyering  <meyering@redhat.com>
18535
18536         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
18537         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
18538         a umask modification leak out of a subshell.  Otherwise, the
18539         opensolaris /bin/sh would be accepted and thus cause unwarranted
18540         failures in the coreutils test suite.
18541
18542 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
18543
18544         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
18545         to succeed.
18546
18547 2008-09-16  Jim Meyering  <meyering@redhat.com>
18548
18549         avoid spurious test failure when library is built without ACL support
18550         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
18551         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
18552         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
18553         * tests/test-copy-acl.sh: Likewise.
18554
18555 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18556
18557         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
18558         based on character occurrence counts.
18559
18560 2008-09-15  Eric Blake  <ebb9@byu.net>
18561
18562         tests: avoid some compiler warnings
18563         * tests/test-memchr.c (main): Pass NULL indirectly.
18564         * tests/test-closein.c (main): Avoid unused variable.
18565
18566 2008-09-15  Bruno Haible  <bruno@clisp.org>
18567
18568         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
18569         are missing on OpenBSD 4.0 individually.
18570         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18571
18572 2008-09-15  Bruno Haible  <bruno@clisp.org>
18573
18574         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
18575         * doc/posix-functions/strerror.texi: Mention also Cygwin.
18576         * doc/posix-functions/perror.texi: Likewise.
18577         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
18578         is missing.
18579         Reported by Eric Blake.
18580
18581         * lib/errno.in.h: Use replacement values >= 2000.
18582         Reported by Eric Blake.
18583
18584 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18585
18586         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
18587         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
18588         limit.
18589         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
18590         compareseq was aborted.
18591
18592 2008-09-14  Bruno Haible  <bruno@clisp.org>
18593
18594         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
18595         yvec_edit_count.
18596         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
18597         (fstrcmp_bounded): Simplify result computation accordingly.
18598
18599 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18600
18601         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
18602         (fstrcmp): Define in terms of fstrcmp_bounded.
18603         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
18604         lower_bound argument.
18605         Return quickly if the result is certainly < lower_bound.
18606         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
18607
18608 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18609
18610         * lib/diffseq.h (EARLY_ABORT): New macro.
18611         (compareseq): Change return type to bool. Return true when EARLY_ABORT
18612         evaluates to true.
18613
18614 2008-09-14  Bruno Haible  <bruno@clisp.org>
18615
18616         * modules/perror-tests: New file.
18617         * tests/test-perror.sh: New file.
18618         * tests/test-perror.c: New file.
18619
18620         New module 'perror'.
18621         * lib/stdio.in.h (perror): New declaration.
18622         * lib/perror.c: New file.
18623         * m4/perror.m4: New file.
18624         * modules/perror: New file.
18625         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
18626         * doc/posix-functions/perror.texi: Mention the perror module.
18627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
18628         REPLACE_PERROR.
18629         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
18630         REPLACE_PERROR.
18631
18632 2008-09-14  Bruno Haible  <bruno@clisp.org>
18633
18634         * modules/stdio (Makefile.am): Reorder to match the order in
18635         lib/stdio.in.h.
18636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18637
18638 2008-09-13  Bruno Haible  <bruno@clisp.org>
18639
18640         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
18641
18642 2008-09-13  Bruno Haible  <bruno@clisp.org>
18643
18644         Extend strerror to cover the added errno values.
18645         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
18646         (rpl_strerror): Provide error messages for the added errno values and
18647         for the WSA* values.
18648         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
18649         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
18650         strerror.
18651         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
18652         * modules/strerror (Depends-on): Add errno.
18653         * doc/posix-functions/strerror.texi: Document the change.
18654         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
18655         and EOVERFLOW.
18656
18657 2008-09-13  Bruno Haible  <bruno@clisp.org>
18658
18659         * modules/EOVERFLOW: Remove file.
18660         * m4/eoverflow.m4: Remove file.
18661         * modules/EOVERFLOW-tests: Remove file.
18662         * tests/test-EOVERFLOW.c: Remove file.
18663         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
18664         * modules/ftell (Depends-on): Likewise.
18665         * modules/getdelim (Depends-on): Likewise.
18666         * modules/getugroups (Depends-on): Likewise.
18667         * modules/poll (Depends-on): Likewise.
18668         * modules/snprintf (Depends-on): Likewise.
18669         * modules/sprintf-posix (Depends-on): Likewise.
18670         * modules/vasnprintf (Depends-on): Likewise.
18671         * modules/vasprintf (Depends-on): Likewise.
18672         * modules/vfprintf-posix (Depends-on): Likewise.
18673         * modules/vsnprintf (Depends-on): Likewise.
18674         * modules/vsprintf-posix (Depends-on): Likewise.
18675         * modules/xvasprintf (Depends-on): Likewise.
18676         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18677         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
18678         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
18679         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
18680         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18681         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
18682         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
18683         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
18684         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18685         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
18686         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
18687         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
18688         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18689         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
18690         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
18691         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
18692         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18693         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
18694         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
18695         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
18696         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18697         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
18698         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
18699         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
18700         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
18701         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18702         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
18703         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
18704         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
18705         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
18706         * MODULES.html.sh: Remove EOVERFLOW.
18707         * NEWS: Mention the change.
18708
18709 2008-09-13  Bruno Haible  <bruno@clisp.org>
18710
18711         * modules/errno-tests: New file.
18712         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
18713
18714         * lib/errno.in.h: New file.
18715         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
18716         * modules/errno: New file.
18717         * doc/posix-headers/errno.texi: Update documentation.
18718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
18719
18720 2008-09-13  Bruno Haible  <bruno@clisp.org>
18721
18722         * tests/test-poll.c: Use #if for native Windows, rather than testing
18723         __MSVCRT__.
18724
18725 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18726             Bruno Haible  <bruno@clisp.org>
18727
18728         * lib/glob.c: Don't include <pwd.h> on native Windows.
18729         (WINDOWS32): New macro.
18730         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
18731
18732 2008-09-13  Bruno Haible  <bruno@clisp.org>
18733
18734         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
18735         (ETIMEDOUT): Remove macro.
18736         (glthread_cond_timedwait_multithreaded): New declaration.
18737         (glthread_cond_timedwait): Use it.
18738         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
18739         (glthread_cond_timedwait_multithreaded): New function.
18740
18741 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18742
18743         * modules/poll-tests: Do not check for io.h.
18744         * tests/test-poll.c: Check for __MSVCRT__ instead.
18745
18746 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18747
18748         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
18749         * modules/poll-tests: Add inet_pton, stdbool, sockets.
18750         * tests/test-poll.c: Use them.  Use _pipe on Windows.
18751
18752 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18753
18754         * modules/poll-tests: New.
18755         * tests/test-poll.c: New.
18756
18757 2008-09-12  Eric Blake  <ebb9@byu.net>
18758
18759         frexp: test for NetBSD failure on -0.0
18760         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
18761         not all, bugs from NetBSD 3.0 have been fixed.
18762         * doc/posix-functions/frexp.texi (frexp): Document bug.
18763         Reported by Thomas Klausner.
18764
18765         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
18766         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
18767         literal -0.0.
18768         Reported by Jonathan C. Patschke <jp@centtech.com>.
18769
18770 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18771
18772         * lib/glthread/cond.h: Use dummy implementation also if
18773         USE_WIN32_THREADS.
18774
18775 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18776
18777         * modules/fnmatch-posix (License): Change to LGPLv2+.
18778         * modules/fnmatch-gnu (License): Likewise.
18779
18780 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18781
18782         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
18783
18784 2008-09-11  Jim Meyering  <meyering@redhat.com>
18785
18786         * users.txt: Add gtk-vnc.
18787
18788 2008-09-08  Simon Josefsson  <simon@josefsson.org>
18789
18790         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
18791         rotate amounts.
18792
18793         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
18794         required for 16-bit and 8-bit rotates.
18795         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
18796         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
18797         UINT8_MAX instead of hard-coded constants.
18798         Suggested by Paul Eggert.
18799
18800 2008-09-07  Bruno Haible  <bruno@clisp.org>
18801
18802         * tests/test-striconveh.c (main): Check behaviour when converting from
18803         UTF-7.
18804
18805         Make striconveh work better with stateful encodings.
18806         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
18807         that iconv does not increment the inptr when returning -1/EINVAL.
18808
18809 2008-09-07  Bruno Haible  <bruno@clisp.org>
18810
18811         * build-aux/config.rpath: Update according to libtool-2.2.6.
18812         * build-aux/config.libpath: Likewise.
18813
18814 2008-09-06  Bruno Haible  <bruno@clisp.org>
18815
18816         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
18817         * lib/freadptr.c (freadptr): Likewise.
18818         * lib/freadseek.c (freadptrinc): Likewise.
18819         Reported by Simon Josefsson.
18820
18821 2008-09-06  Bruno Haible  <bruno@clisp.org>
18822
18823         * modules/freadptr (License): Change to LGPLv2+.
18824         * modules/freadseek (License): Likewise.
18825         Suggested by Eric Blake.
18826
18827         * modules/memchr2 (License): Change to LGPLv2+.
18828         Approved by Eric Blake.
18829
18830 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18831             Bruno Haible  <bruno@clisp.org>
18832
18833         Make gnulib-tool work with native 'sed' on AIX.
18834         * gnulib-tool (sed_noop): New variable.
18835         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
18836         func_add_or_update, func_create_testdir): Use it to initialize sed
18837         script variables.
18838         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18839
18840 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
18841             Bruno Haible  <bruno@clisp.org>
18842
18843         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
18844         also works after #include directives.
18845
18846 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
18847
18848         getdate.y: reject an out-of-range timezone value
18849         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
18850         the range [-24...+24].  When specified with only one or two digits,
18851         * tests/test-getdate.c: Tests for the fix.
18852         * doc/getdate.texi: Document this change.
18853
18854 2008-09-03  Bruno Haible  <bruno@clisp.org>
18855
18856         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
18857
18858 2008-09-02  Simon Josefsson  <simon@josefsson.org>
18859
18860         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
18861         <bruce.korb@gmail.com> with ideas from Ben Pfaff
18862         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
18863         Blake <ebb9@byu.net>.
18864
18865         * tests/test-bitrotate.c: Add more test vectors.
18866
18867 2008-09-02  Eric Blake  <ebb9@byu.net>
18868
18869         vasnprintf-posix: handle large precision via %.*d
18870         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
18871         when handling it ourselves.
18872         * tests/test-vasnprintf-posix.c (test_function): Add test.
18873         * tests/test-snprintf-posix.h (test_function): Likewise.
18874         * tests/test-sprintf-posix.h (test_function): Likewise.
18875         * tests/test-vasprintf-posix.c (test_function): Likewise.
18876         Reported by Alain Guibert.
18877
18878 2008-09-01  Eric Blake  <ebb9@byu.net>
18879
18880         c-stack: make configure-time check more robust
18881         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
18882         successful sigaction call.
18883         Reported by Tom G. Christensen.
18884
18885 2008-09-01  Bruno Haible  <bruno@clisp.org>
18886
18887         New module 'findprog-lgpl'.
18888         * modules/findprog-lgpl: New file.
18889         * lib/findprog-lgpl.c: New file.
18890         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
18891         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
18892         to decide whether to use strdup or xstrdup, concatenated_filename or
18893         xconcatenated_filename.
18894
18895 2008-09-01  Bruno Haible  <bruno@clisp.org>
18896
18897         Split module 'concat-filename' into 'concat-filename' (LGPL) and
18898         'xconcat-filename' (GPL).
18899         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
18900         (License): Change to LGPLv2+.
18901         * modules/xconcat-filename: New file.
18902         * lib/concat-filename.h (concatenated_filename): Change specification.
18903         (xconcatenated_filename): New declaration.
18904         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
18905         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
18906         memory situations.
18907         * lib/xconcat-filename.c: New file.
18908         * NEWS: Mention the change.
18909         * lib/findprog.c: Include concat-filename.h, not filename.h.
18910         (find_in_path): Use xconcatenated_filename instead of
18911         concatenated_filename.
18912         * lib/javacomp.c: Include concat-filename.h, not filename.h.
18913         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18914         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18915         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18916         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
18917         instead of concatenated_filename.
18918         * lib/javaexec.c: Include concat-filename.h, not filename.h.
18919         (execute_java_class): Use xconcatenated_filename instead of
18920         concatenated_filename.
18921         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
18922         * modules/javacomp (Depends-on): Likewise.
18923         * modules/javaexec (Depends-on): Likewise.
18924
18925 2008-09-01  Bruno Haible  <bruno@clisp.org>
18926
18927         Split module 'filename' into 'filename' and 'concat-filename'.
18928         * modules/filename: Keep only lib/filename.h.
18929         (License): Change to LGPLv2+.
18930         * modules/concat-filename: New file, extracted from modules/filename.
18931         * lib/filename.h (concatenated_filename): Remove declaration.
18932         * lib/concat-filename.h: New file, extracted from lib/filename.h.
18933         * lib/concat-filename.c: Include concat-filename.h.
18934         * NEWS: Mention the change.
18935
18936 2008-09-01  Simon Josefsson  <simon@josefsson.org>
18937
18938         * lib/bitrotate.h (rotl8, rotr8): Add.
18939
18940         * modules/bitrotate (configure.ac): Need
18941         AC_REQUIRE([AC_C_INLINE]).
18942         (Description): Mention stdint.h.  Reported by Bruno Haible
18943         <bruno@clisp.org>.
18944
18945         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
18946         Paolo Bonzini <bonzini@gnu.org>.
18947
18948 2008-08-31  Bruno Haible  <bruno@clisp.org>
18949
18950         Assume Solaris specific bi-arch conventions on Solaris systems.
18951         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
18952         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
18953         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
18954         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
18955         like acl_libdirstem.
18956         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
18957         acl_libdirstem.
18958         * NEWS: Mention the change.
18959         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
18960
18961 2008-08-31  Jim Meyering  <meyering@redhat.com>
18962
18963         * lib/strftime.h: Add comments describing the two added arguments.
18964
18965         remove duplicate #include directives
18966         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
18967         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
18968
18969 2008-08-31  Bruno Haible  <bruno@clisp.org>
18970
18971         New module 'sigpipe-die'.
18972         * modules/sigpipe-die: New file.
18973         * lib/sigpipe-die.h: New file.
18974         * lib/sigpipe-die.c: New file.
18975         * MODULES.html.sh (Signal handling): Add sigpipe-die.
18976
18977 2008-08-31  Bruno Haible  <bruno@clisp.org>
18978
18979         Don't override previously installed signal handlers.
18980         * lib/fatal-signal.c (saved_sigactions): New variable.
18981         (uninstall_handlers): Reset the signal to the saved handler, not
18982         to SIG_DFL (except when ignored).
18983         (install_handlers): Save the previous handlers.
18984
18985 2008-08-30  Bruno Haible  <bruno@clisp.org>
18986
18987         * gnulib-tool (func_reset_sigpipe): New function.
18988         (func_get_automake_snippet, func_modules_transitive_closure,
18989         func_import): Invoke it before a join command that reads from stdin,
18990         to avoid "echo: write error: Broken pipe" error messages on stderr.
18991         Reported by Sam Steingold <sds@gnu.org>.
18992
18993 2008-08-30  Bruno Haible  <bruno@clisp.org>
18994
18995         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
18996         Code copied from m4/open.m4.
18997         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
18998         access and the filename ends in a slash. Code copied from lib/open.c.
18999         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
19000         * tests/test-fopen.c (main): Check against bug with trailing slash.
19001
19002 2008-08-29  Bruno Haible  <bruno@clisp.org>
19003
19004         Avoid some "gcc -pedantic" warnings.
19005         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
19006         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
19007         * lib/dirent.in.h: Likewise.
19008         * lib/fcntl.in.h: Likewise.
19009         * lib/float.in.h: Likewise.
19010         * lib/iconv.in.h: Likewise.
19011         * lib/inttypes.in.h: Likewise.
19012         * lib/locale.in.h: Likewise.
19013         * lib/math.in.h: Likewise.
19014         * lib/netinet_in.in.h: Likewise.
19015         * lib/search.in.h: Likewise.
19016         * lib/signal.in.h: Likewise.
19017         * lib/stdarg.in.h: Likewise.
19018         * lib/stdint.in.h: Likewise.
19019         * lib/stdio.in.h: Likewise.
19020         * lib/stdlib.in.h: Likewise.
19021         * lib/string.in.h: Likewise.
19022         * lib/strings.in.h: Likewise.
19023         * lib/sys_select.in.h: Likewise.
19024         * lib/sys_socket.in.h: Likewise.
19025         * lib/sys_stat.in.h: Likewise.
19026         * lib/sys_time.in.h: Likewise.
19027         * lib/sysexits.in.h: Likewise.
19028         * lib/time.in.h: Likewise.
19029         * lib/unistd.in.h: Likewise.
19030         * lib/wchar.in.h: Likewise.
19031         * lib/wctype.in.h: Likewise.
19032         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
19033         * modules/fchdir (Makefile.am): Likewise.
19034         * modules/fcntl (Makefile.am): Likewise.
19035         * modules/float (Makefile.am): Likewise.
19036         * modules/iconv_open (Makefile.am): Likewise.
19037         * modules/inttypes (Makefile.am): Likewise.
19038         * modules/locale (Makefile.am): Likewise.
19039         * modules/math (Makefile.am): Likewise.
19040         * modules/netinet_in (Makefile.am): Likewise.
19041         * modules/search (Makefile.am): Likewise.
19042         * modules/signal (Makefile.am): Likewise.
19043         * modules/stdarg (Makefile.am): Likewise.
19044         * modules/stdint (Makefile.am): Likewise.
19045         * modules/stdio (Makefile.am): Likewise.
19046         * modules/stdlib (Makefile.am): Likewise.
19047         * modules/string (Makefile.am): Likewise.
19048         * modules/strings (Makefile.am): Likewise.
19049         * modules/sys_select (Makefile.am): Likewise.
19050         * modules/sys_socket (Makefile.am): Likewise.
19051         * modules/sys_stat (Makefile.am): Likewise.
19052         * modules/sys_time (Makefile.am): Likewise.
19053         * modules/sysexits (Makefile.am): Likewise.
19054         * modules/time (Makefile.am): Likewise.
19055         * modules/unistd (Makefile.am): Likewise.
19056         * modules/wchar (Makefile.am): Likewise.
19057         * modules/wctype (Makefile.am): Likewise.
19058         Reported by Reuben Thomas <rrt@sc3d.org>.
19059
19060 2008-08-29  Bruno Haible  <bruno@clisp.org>
19061
19062         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
19063         any more.
19064
19065 2008-08-29  Simon Josefsson  <simon@josefsson.org>
19066
19067         * MODULES.html.sh (Misc): Add bitrotate.
19068
19069         * modules/bitrotate: New file.
19070
19071         * lib/bitrotate.h: New file.
19072
19073         * modules/bitrotate-tests: New file.
19074
19075         * tests/test-bitrotate.c: New file.
19076
19077         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
19078         on the bitrotate module.
19079
19080         * lib/arctwo.c: Use new bitrotate module.
19081
19082 2008-08-29  Jim Meyering  <meyering@redhat.com>
19083
19084         bootstrap: merge changes from coreutils
19085         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
19086         of copied files.  Remove a kludge, now that this is fixed.
19087         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
19088         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
19089         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
19090
19091 2008-08-29  Bruno Haible  <bruno@clisp.org>
19092
19093         * MODULES.html.sh: Remove --cvs-urls option.
19094
19095 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
19096
19097         maint.mk: adjust to file name change
19098         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
19099
19100 2008-08-28  Jim Meyering  <meyering@redhat.com>
19101
19102         * modules/getndelim2 (License): Relicense to LGPLv2+.
19103         Approved by Richard Stallman for the version of 1995, and by
19104         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
19105
19106 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
19107
19108         * lib/getdelim.c (flockfile, funlockfile): Make all of them
19109         dummy if one is not available.  Do not touch them if
19110         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
19111         (getc_maybe_unlocked): New.
19112         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
19113
19114 2008-08-26  Eric Blake  <ebb9@byu.net>
19115
19116         doc/INSTALL: resync from autoconf
19117         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
19118         (INSTALL_PRELUDE): Delete; this is done more efficiently by
19119         moving...
19120         * install.texi [!autoconf]: ...here.  Resync from autoconf.
19121         * INSTALL: Regenerate.
19122         * INSTALL.ISO: New file.
19123         * INSTALL.UTF-8: Likewise.
19124
19125 2008-08-26  Jim Meyering  <meyering@redhat.com>
19126
19127         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
19128         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
19129         these definitions conditional, so that they may be overridden, too.
19130
19131 2008-08-26  Bruno Haible  <bruno@clisp.org>
19132
19133         Generate INSTALL file variants with prettier quotes.
19134         * doc/Makefile (INSTALL_PRELUDE): New macro.
19135         (INSTALL): Use it.
19136         (INSTALL.ISO, INSTALL.UTF-8): New rules.
19137
19138 2008-08-26  Bruno Haible  <bruno@clisp.org>
19139
19140         Run makeinfo in an English locale.
19141         * doc/Makefile (MAKEINFO): New variable.
19142
19143 2008-08-26  Bruno Haible  <bruno@clisp.org>
19144
19145         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
19146         Suggested by Eric Blake.
19147
19148 2008-08-25  Bruno Haible  <bruno@clisp.org>
19149
19150         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
19151
19152 2008-08-25  Eric Blake  <ebb9@byu.net>
19153
19154         c-stack: test that stack overflow can be caught
19155         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
19156         that platform allows handling stack overflow; at least OS/2 EMX
19157         has sigaltstack, but crashes before transferring control to
19158         handler on stack overflow.
19159         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
19160         check for HAVE_STACK_OVERFLOW_HANDLING.
19161         Reported by Elbert Pol.
19162
19163 2008-08-25  Bruno Haible  <bruno@clisp.org>
19164
19165         * doc/posix-functions/strftime.texi: Fix description of strftime
19166         module.
19167
19168 2008-08-24  Bruno Haible  <bruno@clisp.org>
19169
19170         * tests/uniwidth/test-uc_width2.c: New file.
19171         * tests/uniwidth/test-uc_width2.sh: New file.
19172         * modules/uniwidth/width-tests (Files): Add the new files.
19173         (TESTS): Add uniwidth/test-uc_width2.sh.
19174         (TESTS_ENVIRONMENT): New variable.
19175         (check_PROGRAMS): Add test-uc_width2.
19176         (test_uc_width2_SOURCES): New variable.
19177
19178         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
19179         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
19180         not 0x00AB.
19181         Reported by Alexander V. Lukyanov <lav@netis.ru>.
19182
19183 2008-08-22  Eric Blake  <ebb9@byu.net>
19184
19185         test-lock, test-tls: mention why a test is skipped
19186         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
19187         skipped.
19188         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
19189
19190         count-one-bits: relax license
19191         * modules/count-one-bits (License): Relicense to LGPLv2+.
19192         Suggested by Ludovic Courtès, approved by Ben Pfaff.
19193
19194 2008-08-22  Andreas Schwab  <schwab@suse.de>
19195
19196         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19197         Remove spurious space in assignment.
19198
19199 2008-08-21  Simon Josefsson  <simon@josefsson.org>
19200
19201         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
19202         Paul Eggert <eggert@CS.UCLA.EDU>.
19203
19204 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
19205
19206         * modules/gettext: Add m4/threadlib.m4.
19207
19208 2008-08-19  Eric Blake  <ebb9@byu.net>
19209
19210         test-c-stack: fix compilation failure on FreeBSD 5.0
19211         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
19212         headers before <sys/resource.h>.
19213         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
19214         the bug.
19215         Reported by Nelson H. F. Beebe.
19216
19217         strverscmp: migrate from "strverscmp.h" to <string.h>
19218         * modules/string (Makefile.am): Add new hooks.
19219         * modules/strverscmp (Files): Remove strverscmp.h.
19220         (Depends-on): Add string.
19221         (configure.ac): Add indicator.
19222         (Include): Mention new header.
19223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
19224         defaults.
19225         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
19226         results.
19227         * lib/strverscmp.h: Delete.
19228         * lib/string.in.h (strverscmp): Provide declaration, when needed.
19229         * tests/test-strverscmp.c (includes): Adjust client.
19230         * lib/check-version.c (includes): Likewise.
19231         * NEWS: Document the change.
19232
19233         strverscmp: add unit test
19234         * modules/strverscmp-tests: New file.
19235         * tests/test-strverscmp.c: Likewise.
19236
19237 2008-08-19  Simon Josefsson  <simon@josefsson.org>
19238
19239         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
19240         regarding Windows crypto stuff, from Mono.
19241
19242 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
19243
19244         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
19245         if present, for intel RND.  Return error on failures.
19246
19247 2008-08-18  Ben Pfaff  <blp@gnu.org>
19248
19249         gitlog-to-changelog: give better diagnostic for failed pipe-open
19250         * build-aux/gitlog-to-changelog: Improve error message: suggest
19251         that the version of Git may be too old.
19252
19253 2008-08-18  Simon Josefsson  <simon@josefsson.org>
19254
19255         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
19256         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
19257
19258 2008-08-18  Bruno Haible  <bruno@clisp.org>
19259
19260         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
19261         pthread_in_use().
19262
19263 2008-08-18  Bruno Haible  <bruno@clisp.org>
19264
19265         * lib/glthread/threadlib.c: Include <pthread.h>.
19266
19267 2008-08-18  Bruno Haible  <bruno@clisp.org>
19268
19269         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
19270         glthread_recursive_lock_* macros.
19271         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
19272         Fix syntax error.
19273
19274 2008-08-18  Bruno Haible  <bruno@clisp.org>
19275
19276         * lib/glthread/thread.c: Avoid forcing a context switch right after
19277         thread creation.
19278
19279 2008-08-17  Bruno Haible  <bruno@clisp.org>
19280
19281         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
19282         * lib/glthread/thread.h: Provide Win32 specific implementation.
19283         * modules/thread (Files): Add lib/glthread/thread.c.
19284         (Depends-on): Add lock.
19285         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
19286
19287 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19288
19289         New module 'yield'.
19290         * modules/yield: New file.
19291         * lib/glthread/yield.h: New file.
19292         * m4/yield.m4: New file.
19293         * MODULES.html.sh (Multithreading): Add yield.
19294
19295 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19296
19297         New module 'thread'.
19298         * modules/thread: New file.
19299         * lib/glthread/thread.h: New file.
19300         * m4/thread.m4: New file.
19301         * MODULES.html.sh (Multithreading): Add thread.
19302
19303 2008-08-17  Bruno Haible  <bruno@clisp.org>
19304
19305         * lib/glthread/lock.h: Include <stdlib.h> always.
19306         * lib/glthread/tls.h: Likewise.
19307         * lib/glthread/cond.h: Likewise.
19308
19309 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19310
19311         New module 'cond'.
19312         * modules/cond: New file.
19313         * lib/glthread/cond.h: New file.
19314         * lib/glthread/cond.c: New file.
19315         * m4/cond.m4: New file.
19316         * MODULES.html.sh (Multithreading): Add cond.
19317
19318 2008-08-16  Eric Blake  <ebb9@byu.net>
19319
19320         c-stack: fix regression on Irix 5.3 from 2008-06-21
19321         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
19322         sa_sigaction...
19323         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
19324         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
19325         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
19326         * modules/signal (Makefile.am): Use the value.
19327         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
19328         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
19329         * doc/posix-headers/signal.texi (signal.h): Document this
19330         portability issue.
19331         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
19332         Reported by Tom G. Christensen.
19333
19334 2008-08-17  Bruno Haible  <bruno@clisp.org>
19335
19336         New module 'threadlib'.
19337         * modules/threadlib: New file.
19338         * lib/glthread/threadlib.c: New file, extracted from
19339         lib/glthread/lock.c.
19340         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
19341         functions.
19342         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
19343         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
19344         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
19345         macros.
19346         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
19347         (gl_DISABLE_THREADS): Remove macro.
19348         * modules/lock (Files): Remove build-aux/config.rpath.
19349         (Depends-on): Remove havelib. Add threadlib.
19350         (configure.ac-early): Remove section.
19351         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
19352         * modules/tls (Depends-on): Remove lock. Add threadlib.
19353         (Link): New section, copied from threadlib.
19354         * MODULES.html.sh (Multithreading): Add threadlib.
19355
19356 2008-08-14  Bruno Haible  <bruno@clisp.org>
19357
19358         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
19359         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
19360         glthread_rwlock_unlock, glthread_rwlock_destroy,
19361         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
19362         glthread_recursive_lock_destroy): Define as macros always.
19363         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
19364         glthread_lock_lock.
19365         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
19366         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
19367         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
19368         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
19369         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
19370         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
19371         (glthread_recursive_lock_lock_func): Renamed from
19372         glthread_recursive_lock_lock.
19373         (glthread_recursive_lock_unlock_func): Renamed from
19374         glthread_recursive_lock_unlock.
19375         (glthread_recursive_lock_destroy_func): Renamed from
19376         glthread_recursive_lock_destroy.
19377
19378 2008-08-14  Bruno Haible  <bruno@clisp.org>
19379
19380         * lib/glthread/lock.h: Renamed from lib/lock.h.
19381         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
19382         * lib/glthread/tls.h: Renamed from lib/tls.h.
19383         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
19384         * lib/fstrcmp.c: Update includes.
19385         * lib/strsignal.c: Update includes.
19386         * modules/lock (Files, Makefile.am): Update.
19387         (Include): Change to "glthread/lock.h".
19388         * modules/tls (Files, Makefile.am): Update.
19389         (Include): Change to "glthread/tls.h".
19390         * tests/test-lock.c: Update includes.
19391         * tests/test-tls.c: Update includes.
19392         * NEWS: Mention the renamed header files.
19393
19394 2008-08-11  Jim Meyering  <meyering@redhat.com>
19395
19396         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
19397
19398 2008-08-11  Eric Blake  <ebb9@byu.net>
19399
19400         test-c-stack: avoid C99-ism
19401         * tests/test-c-stack.c (main): Fix whitespace, move declaration
19402         before statement.
19403         Reported by Alain Guibert.
19404
19405 2008-08-10  Jim Meyering  <meyering@redhat.com>
19406
19407         ensure that return value of uinttostr et al are not ignored
19408         * lib/inttostr.h (__GNUC_PREREQ): Define.
19409         (__attribute_warn_unused_result__): Define.
19410         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
19411
19412 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
19413
19414         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
19415         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
19416
19417 2008-08-07  Jim Meyering  <meyering@redhat.com>
19418
19419         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
19420
19421         * modules/mkstemp (License): Relicense under LGPLv2+.
19422         * modules/tempname (License): Likewise.
19423
19424 2008-08-06  Bruno Haible  <bruno@clisp.org>
19425
19426         * lib/poll.c (poll): Further micro-optimization.
19427
19428 2008-08-06  Jim Meyering  <meyering@redhat.com>
19429
19430         inet_pton.c: use locale-independent tolower
19431         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
19432         (inet_pton6): Use c_tolower rather than tolower.
19433         * modules/inet_pton (Depends-on): Add c-ctype.
19434
19435 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
19436
19437         * lib/poll.c (poll): Avoid division when timeout is 0, cache
19438         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
19439
19440 2008-08-06  Jim Meyering  <meyering@redhat.com>
19441
19442         * modules/inet_pton (License): Relicense under LGPLv2+.
19443
19444 2008-08-03  Bruno Haible  <bruno@clisp.org>
19445
19446         Additional non-aborting API for lock and tls.
19447         * lib/lock.h: Include <errno.h>.
19448         (glthread_lock_init): New macro/function.
19449         (gl_lock_init): Define as wrapper around glthread_lock_init.
19450         (glthread_lock_lock): New macro/function.
19451         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
19452         (glthread_lock_unlock): New macro/function.
19453         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
19454         (glthread_lock_destroy): New macro/function.
19455         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
19456         (glthread_rwlock_init): New macro/function.
19457         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
19458         (glthread_rwlock_rdlock): New macro/function.
19459         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
19460         (glthread_rwlock_wrlock): New macro/function.
19461         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
19462         (glthread_rwlock_unlock): New macro/function.
19463         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
19464         (glthread_rwlock_destroy): New macro/function.
19465         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
19466         (glthread_recursive_lock_init): New macro/function.
19467         (gl_recursive_lock_init): Define as wrapper around
19468         glthread_recursive_lock_init.
19469         (glthread_recursive_lock_lock): New macro/function.
19470         (gl_recursive_lock_lock): Define as wrapper around
19471         glthread_recursive_lock_lock.
19472         (glthread_recursive_lock_unlock): New macro/function.
19473         (gl_recursive_lock_unlock): Define as wrapper around
19474         glthread_recursive_lock_unlock.
19475         (glthread_recursive_lock_destroy): New macro/function.
19476         (gl_recursive_lock_destroy): Define as wrapper around
19477         glthread_recursive_lock_destroy.
19478         (glthread_once): New macro/function.
19479         (gl_once): Define as wrapper around glthread_once.
19480         Update function declarations.
19481         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
19482         glthread_rwlock_init. Return error code.
19483         (glthread_rwlock_rdlock_multithreaded): Renamed from
19484         glthread_rwlock_rdlock. Return error code.
19485         (glthread_rwlock_wrlock_multithreaded): Renamed from
19486         glthread_rwlock_wrlock. Return error code.
19487         (glthread_rwlock_unlock_multithreaded): Renamed from
19488         glthread_rwlock_unlock. Return error code.
19489         (glthread_rwlock_destroy_multithreaded): Renamed from
19490         glthread_rwlock_destroy. Return error code.
19491         (glthread_recursive_lock_init_multithreaded): Renamed from
19492         glthread_recursive_lock_init. Return error code.
19493         (glthread_recursive_lock_lock_multithreaded): Renamed from
19494         glthread_recursive_lock_lock. Return error code.
19495         (glthread_recursive_lock_unlock_multithreaded): Renamed from
19496         glthread_recursive_lock_unlock. Return error code.
19497         (glthread_recursive_lock_destroy_multithreaded): Renamed from
19498         glthread_recursive_lock_destroy. Return error code.
19499         (glthread_once_call): Make static.
19500         (glthread_once_multithreaded): Renamed from glthread_once.
19501         * lib/tls.h: Include <errno.h>.
19502         (glthread_tls_key_init): New macro/function.
19503         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
19504         (glthread_tls_set): New macro/function.
19505         (gl_tls_set): Define as wrapper around glthread_tls_set.
19506         (glthread_tls_key_destroy): New macro/function.
19507         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
19508         Update function declarations.
19509         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
19510         glthread_tls_get.
19511         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19512
19513 2008-08-04  Eric Blake  <ebb9@byu.net>
19514
19515         gnumakefile: use space, not TAB, outside of targets
19516         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
19517
19518 2008-08-02  Jim Meyering  <meyering@redhat.com>
19519
19520         getdate.y: avoid locale-dependent date parsing failure
19521         In Turkish locales, getdate would fail to recognize keywords
19522         containing a lowercase "i".  The solution is not to rely on
19523         locale-sensitive case-conversion.
19524         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
19525         (lookup_word): Use c_toupper in place of toupper.
19526         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
19527         Reported by Vefa Bicakci <bicave@superonline.com> in
19528         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
19529         * modules/getdate (Depends-on): Add c-ctype.
19530
19531 2008-08-02  Bruno Haible  <bruno@clisp.org>
19532
19533         * gnulib-tool (func_import): When updating or creating a .gitignore
19534         file, prepend each added line with a slash, and ignore leading slashes
19535         from the existing lines.
19536         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19537
19538 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19539
19540         Portability fix for GNU make 3.79.1.
19541         * top/GNUmakefile: Avoid 'else COND', which older GNU make
19542         versions do not understand.
19543
19544 2008-08-01  Bruno Haible  <bruno@clisp.org>
19545
19546         Work around bug of HP-UX 10.20 cc with -0.0 literal.
19547         * tests/test-isnanf.h (zero): New variable.
19548         (main): Avoid literal -0.0f.
19549         * tests/test-isnand.h (zero): New variable.
19550         (main): Avoid literal -0.0.
19551         * tests/test-isnanl.h (zero): New variable.
19552         (main): Avoid literal -0.0L.
19553         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
19554         (test_float, test_double, test_long_double): Avoid literals -0.0f,
19555         -0.0, -0.0L.
19556         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
19557         (test_signbitd): Avoid literal -0.0.
19558         (test_signbitl): Avoid literal -0.0L.
19559         * tests/test-ceilf1.c (zero): New variable.
19560         (main): Avoid literal -0.0f.
19561         * tests/test-ceill.c (zero): New variable.
19562         (main): Avoid literal -0.0L.
19563         * tests/test-floorf1.c (zero): New variable.
19564         (main): Avoid literal -0.0f.
19565         * tests/test-floorl.c (zero): New variable.
19566         (main): Avoid literal -0.0L.
19567         * tests/test-roundf1.c (zero): New variable.
19568         (main): Avoid literal -0.0f.
19569         * tests/test-round1.c (zero): New variable.
19570         (main): Avoid literal -0.0.
19571         * tests/test-roundl.c (zero): New variable.
19572         (main): Avoid literal -0.0L.
19573         * tests/test-truncf1.c (zero): New variable.
19574         (main): Avoid literal -0.0f.
19575         * tests/test-trunc1.c (zero): New variable.
19576         (main): Avoid literal -0.0.
19577         * tests/test-truncl.c (zero): New variable.
19578         (main): Avoid literal -0.0L.
19579         * tests/test-frexp.c (zero): New variable.
19580         (main): Avoid literal -0.0.
19581         * tests/test-frexpl.c (zero): New variable.
19582         (main): Avoid literal -0.0L.
19583         * tests/test-ldexpl.c (zero): New variable.
19584         (main): Avoid literal -0.0L.
19585         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19586         (zerod, zerol): New variables.
19587         (test_function): Avoid literals -0.0, -0.0L.
19588         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19589         (zerod, zerol): New variables.
19590         (test_function): Avoid literals -0.0, -0.0L.
19591         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19592         (zerod, zerol): New variables.
19593         (test_function): Avoid literals -0.0, -0.0L.
19594         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19595         (zerod, zerol): New variables.
19596         (test_function): Avoid literals -0.0, -0.0L.
19597         * tests/test-strtod.c (zero): New variable.
19598         (main): Avoid literal -0.0.
19599         Reported by Jonathan C. Patschke <jp@centtech.com>.
19600
19601 2008-07-31  Jim Meyering  <meyering@redhat.com>
19602
19603         sha256.h: correct definition of SHA224_DIGEST_SIZE
19604         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
19605         Reported by Paulie Pena IV <paulie4@gmail.com>.
19606         Define as 224 / 8, rather than as a literal.
19607         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
19608         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
19609         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
19610
19611 2008-07-31  Bruno Haible  <bruno@clisp.org>
19612
19613         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
19614         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
19615         Reported by Jonathan Patschke <jp@centtech.com>.
19616
19617 2008-07-31  Bruno Haible  <bruno@clisp.org>
19618
19619         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
19620         Reported by Paolo Bonzini <bonzini@gnu.org>.
19621
19622 2008-07-30  Eric Blake  <ebb9@byu.net>
19623
19624         test-strtod: allow compilation without -lm
19625         * tests/test-strtod.c (main): Avoid link dependence on fabs.
19626         Reported by Dennis Clarke <blastwave@gmail.com>.
19627
19628 2008-07-28  Jim Meyering  <meyering@redhat.com>
19629
19630         bootstrap: work also when there are no .po files in po/
19631         * build-aux/bootstrap (update_po_files): Complete the change
19632         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
19633
19634 2008-07-27  Jim Meyering  <meyering@redhat.com>
19635
19636         * users.txt: Add zile.
19637
19638 2008-07-26  Ben Pfaff  <blp@gnu.org>
19639
19640         Add missing dependencies on new m4/exponent[fdl].m4 files.
19641         * modules/isnanf-nolibm: Add m4/exponentf.m4.
19642         * modules/isnand-nolibm: Add m4/exponentd.m4.
19643         * modules/isnanl-nolibm: Add m4/exponentl.m4.
19644         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
19645         m4/isnan[fdl].m4, because the macros actually used moved.
19646         Reported by Jim Meyering.
19647
19648 2008-07-14  Ben Pfaff  <blp@gnu.org>
19649
19650         Add isinf module.
19651         * lib/isinf.c: New file.
19652         * lib/math.in.h: Define isinf macro if we have decided to replace
19653         it.
19654         * m4/isinf.m4: New file.
19655         * m4/math_h.m4: Initialize and substitute variables for isinf
19656         module.
19657         * modules/isinf: New file.
19658         * modules/isinf-tests: New file.
19659         * modules/math: Add substitutions for new module.
19660         * tests/test-isinf.c: New file.
19661         * doc/posix-functions/isinf.texi: Mention new module.
19662         * MODULES.html.sh: Mention new module.
19663
19664 2008-07-14  Ben Pfaff  <blp@gnu.org>
19665
19666         Factor out some macros for use by additional modules.
19667         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
19668         exponentf.m4.
19669         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
19670         exponentd.m4.
19671         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
19672         file exponentl.m4.
19673         * m4/exponentf.m4: New file.
19674         * m4/exponentd.m4: New file.
19675         * m4/exponentl.m4: New file.
19676         * modules/isnanf: Use new file m4/exponentf.m4.
19677         * modules/isnand: Use new file m4/exponentd.m4.
19678         * modules/isnanl: Use new file m4/exponentl.m4.
19679
19680 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
19681
19682         mktime.c: normalize tp->tm_isdst value to -1/0/1.
19683         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
19684         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
19685         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
19686
19687         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
19688         readlink on platforms without PATH_MAX.
19689
19690 2008-07-21  Eric Blake  <ebb9@byu.net>
19691
19692         Warn, not fail, on stale version.
19693         * top/GNUmakefile (_curr-ver): Tone down previous patch.
19694
19695         Don't allow installation with stale devel version number.
19696         * top/GNUmakefile (_is-install-target): New macro.
19697         (_curr-ver): Forbid installation with stale version number.
19698
19699 2008-07-20  Bruno Haible  <bruno@clisp.org>
19700
19701         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
19702         TESTS_ENVIRONMENT.
19703         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
19704
19705 2008-07-20  Bruno Haible  <bruno@clisp.org>
19706
19707         * lib/c-stack.h (c_stack_action): Add documentation.
19708         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
19709
19710 2008-07-20  Bruno Haible  <bruno@clisp.org>
19711
19712         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
19713         * modules/readlink (License): Likewise.
19714
19715 2008-07-17  Eric Blake  <ebb9@byu.net>
19716
19717         * modules/c-stack (Link): Fix typo.
19718
19719         Make c-stack use libsigsegv, when available.
19720         * modules/c-stack (Depends-on): Add libsigsegv.
19721         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
19722         needed.
19723         * lib/c-stack.c (SIGSTKSZ): Define fallback.
19724         (segv_handler, overflow_handler, c_stack_action)
19725         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
19726         implementation when libsigsegv is available, but only when using
19727         the library is necessary.
19728         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
19729         comment, explaining why XSI check fails on Linux.
19730         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
19731         * tests/test-c-stack2.sh: Tweak skip message.
19732         * NEWS: Document new link-time requirements.
19733
19734 2008-07-16  Eric Blake  <ebb9@byu.net>
19735
19736         c-stack: Expose false positives when not using libsigsegv.
19737         * modules/c-stack-tests (Files): Expand test.
19738         * tests/test-c-stack.c (main): Add means to conditionally trigger
19739         non-overflow SIGSEGV.
19740         * tests/test-c-stack2.sh: New file.
19741
19742 2008-07-14  Bruno Haible  <bruno@clisp.org>
19743
19744         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
19745         Reported by Eric Blake.
19746
19747 2008-07-14  Sam Steingold  <sds@gnu.org>
19748             Bruno Haible  <bruno@clisp.org>
19749
19750         New module libsigsegv.
19751         * modules/libsigsegv: New file.
19752         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
19753         modifications.
19754         * MODULES.html.sh (Signal handling): New section.
19755
19756 2008-07-14  Bruno Haible  <bruno@clisp.org>
19757
19758         * modules/unictype/ctype-* (Description): Add the word "function".
19759         Improves the resulting doc in MODULES.html.
19760
19761 2008-07-12  Ben Pfaff  <blp@gnu.org>
19762
19763         Add longlong module.
19764         * modules/longlong: New file.
19765
19766 2008-07-12  Bruno Haible  <bruno@clisp.org>
19767
19768         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
19769         to empty.
19770
19771 2008-07-10  Ben Pfaff  <blp@gnu.org>
19772
19773         Add isnan module.
19774         * doc/posix-functions/isnan.texi: Mention new module.
19775         * lib/math.in.h: Define isnan macro if we have decided to replace
19776         it.
19777         * m4/isnan.m4: New file.
19778         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
19779         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
19780         also.
19781         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
19782         redundancy.
19783         * m4/math_h.m4: Initialize and substitute variables for isnan
19784         module.
19785         * modules/isnan: New file.
19786         * modules/isnan-tests: New file.
19787         * modules/math: Add substitutions for new module.
19788         * tests/test-isnan.c: New file.
19789         * MODULES.html.sh: Mention new module.
19790
19791 2008-07-10  Ben Pfaff  <blp@gnu.org>
19792
19793         Add isnanf module.
19794         * lib/isnanf.m4: New file.
19795         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
19796         (gl_HAVE_ISNANF_IN_LIBM): New macro.
19797         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
19798         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
19799         * modules/isnanf: New file.
19800         * modules/isnanf-tests: New file.
19801         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
19802         files.
19803         * tests/test-isnanf-nolibm.c: factored most of its contents into
19804         new file tests/test-isnanf.h.
19805         * tests/test-isnanf.h: New file.
19806         * tests/test-isnanf.c: New file.
19807         * MODULES.html.sh: Mention new module.
19808         * doc/glibc-functions/isnanf.texi: Mention new module.
19809
19810 2008-07-10  Ben Pfaff  <blp@gnu.org>
19811
19812         Add isnand module.
19813         * lib/isnand.h: New file.
19814         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
19815         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
19816         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
19817         functionality also.
19818         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
19819         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
19820         (gl_HAVE_ISNAND_IN_LIBM): New macro.
19821         * modules/isnand: New file.
19822         * modules/isnand-tests: New file.
19823         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
19824         files.
19825         * tests/test-isnand-nolibm.c: factored most of its contents into
19826         new file tests/test-isnand.h.
19827         * tests/test-isnand.h: New file.
19828         * tests/test-isnand.c: New file.
19829         * MODULES.html.sh: Mention new module.
19830
19831 2008-07-10  Ben Pfaff  <blp@gnu.org>
19832
19833         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
19834         * lib/isnand.h: Rename lib/isnand-nolibm.h.
19835         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
19836         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
19837         * modules/isnanf-nolibm: Update references to renamed files.
19838         * modules/isnand-nolibm: Likewise.
19839         * modules/isnanf-nolibm-tests: Likewise.
19840         * modules/isnand-nolibm-tests: Likewise.
19841         * lib/frexp.c: Likewise.
19842         * lib/isfinite.c: Likewise.
19843         * lib/signbitd.c: Likewise.
19844         * lib/signbitf.c: Likewise.
19845         * lib/vasnprintf.c: Likewise.
19846         * tests/test-ceilf1.c: Likewise.
19847         * tests/test-ceilf2.c: Likewise.
19848         * tests/test-floorf1.c: Likewise.
19849         * tests/test-floorf2.c: Likewise.
19850         * tests/test-frexp.c: Likewise.
19851         * tests/test-round1.c: Likewise.
19852         * tests/test-round2.c: Likewise.
19853         * tests/test-roundf1.c: Likewise.
19854         * tests/test-strtod.c: Likewise.
19855         * tests/test-trunc1.c: Likewise.
19856         * tests/test-trunc2.c: Likewise.
19857         * tests/test-truncf1.c: Likewise.
19858         * tests/test-truncf2.c: Likewise.
19859         * NEWS: Mention the renamed header files.
19860
19861 2008-07-11  Jim Meyering  <meyering@redhat.com>
19862
19863         vc-list-files: make the last-resort awk code more portable
19864         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
19865         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
19866         does not support it.
19867
19868 2008-07-10  Eric Blake  <ebb9@byu.net>
19869
19870         Work with tar's bootstrap.
19871         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
19872         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
19873         an m4 comment.
19874
19875 2008-07-09  Jim Meyering  <meyering@redhat.com>
19876
19877         posix-shell.m4: fix typo that made this test malfunction
19878         * m4/posix-shell.m4: Remove capitalization in variable name.
19879
19880 2008-07-08  Bruno Haible  <bruno@clisp.org>
19881
19882         * m4/onceonly.m4: Update comments.
19883         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19884
19885 2008-07-04  Jim Meyering  <meyering@redhat.com>
19886
19887         * users.txt: Add vc-dwim.
19888         (bison, coreutils): Use the gitweb URL.
19889
19890 2008-07-03  Jim Meyering  <meyering@redhat.com>
19891
19892         * users.txt: Add libffcall.  From Sam Steingold.
19893
19894 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
19895
19896         getdate.y: do not ignore TZ with relative day, month or year offset
19897         * lib/getdate.y (get_date): Move the tz-handling block to follow the
19898         relative-date-handling, since otherwise, the latter would clobber the
19899         sole output (an updated Start value) of the tz-handling block.
19900         * tests/test-getdate.c: Tests for the fix
19901
19902 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19903
19904         Recognize 'foo_LIBRARIES += libgnu.a'.
19905         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
19906         makefile snippet has already specified an installation location,
19907         also using '+='.
19908
19909 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
19910
19911         getdate.y: factor out common actions
19912         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
19913         Use them in place of open-coded actions.
19914
19915 2008-07-01  Simon Josefsson  <simon@josefsson.org>
19916
19917         Add self-test for getdate module.
19918         * modules/getdate-tests: New file.
19919         * tests/test-getdate.c: New file.
19920
19921 2008-06-29  Bruno Haible  <bruno@clisp.org>
19922
19923         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
19924         .gitignore.
19925         Reported by Sylvain Beucler <beuc@beuc.net>.
19926
19927 2008-06-29  Bruno Haible  <bruno@clisp.org>
19928
19929         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
19930         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
19931
19932 2008-06-29  Bruno Haible  <bruno@clisp.org>
19933
19934         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
19935         EXTRA_DIST.
19936         Reported by Sylvain Beucler <beuc@beuc.net>.
19937
19938 2008-06-26  Jim Meyering  <meyering@redhat.com>
19939
19940         make several modules depend on the "open" module
19941         This provides slightly increased consistency when opening-for-write
19942         the name of a non-directory spelled with a trailing slash.
19943         * modules/chdir-safer: Likewise.
19944         * modules/chown: Likewise.
19945         * modules/clean-temp: Likewise.
19946         * modules/copy-file: Likewise.
19947         * modules/fchdir: Likewise.
19948         * modules/fcntl-safer: Likewise.
19949         * modules/pipe: Likewise.
19950         * modules/utime: Likewise.
19951         Prompted by Eric Blake and Bruno Haible.
19952
19953 2008-06-24  Andreas Schwab  <schwab@suse.de>
19954
19955         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
19956         literals can be used as initializers for global variables.
19957
19958 2008-06-23  Eric Blake  <ebb9@byu.net>
19959
19960         Make gnulib-cache.m4 easier to diff.
19961         * gnulib-tool (func_import): Allow newlines when reading cached
19962         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
19963
19964 2008-06-23  Bruno Haible  <bruno@clisp.org>
19965
19966         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
19967         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
19968         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
19969         m4/signalblocking.m4.
19970         (gl_PREREQ_SIGACTION): Don't invoke it.
19971         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
19972         gl_PREREQ_SIG_HANDLER_H.
19973         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19974         Don't check for sigaction here.
19975
19976 2008-06-23  Bruno Haible  <bruno@clisp.org>
19977
19978         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
19979         (install_handlers): Don't set the SA_RESETHAND flag.
19980
19981 2008-06-23  Bruno Haible  <bruno@clisp.org>
19982
19983         * m4/sigaction.m4: Comment fixes.
19984         * lib/signal.in.h: Likewise.
19985
19986 2008-06-23  Eric Blake  <ebb9@byu.net>
19987
19988         Fix typo.
19989         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
19990
19991         Avoid SA_ namespace.
19992         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
19993         Reported by Ralf Wildenhues.
19994
19995         Avoid test failure due to SA_RESTORER.
19996         * tests/test-sigaction.c (SA_MASK): New macro.
19997         (main): Avoid failing due to extension flags being set.
19998         Reported by Jim Meyering.
19999
20000         Revert use of sig-handler.h in sigprocmask.c.
20001         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
20002         it requires the existence of struct sigaction.
20003         * lib/sigprocmask.c (handler_t): Restore typedef.
20004         (rpl_signal, old_handlers): Use local type.
20005
20006 2008-06-22  Bruno Haible  <bruno@clisp.org>
20007
20008         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
20009         conditionally.
20010         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20011
20012 2008-06-22  Bruno Haible  <bruno@clisp.org>
20013
20014         * doc/posix-functions/siginterrupt.texi: Move note.
20015
20016         * lib/signal.in.h (SA_RESTART): New macro.
20017         * lib/sigaction.c: Update comment.
20018
20019         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
20020
20021         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
20022         (gl_PREREQ_SIGPROCMASK): Invoke it.
20023         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
20024
20025         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
20026
20027         * lib/sigprocmask.c: Update a comment.
20028
20029 2008-06-21  Eric Blake  <ebb9@byu.net>
20030
20031         Use sigaction module rather than signal().
20032         * modules/c-stack (Depends-on): Add sigaction.
20033         * modules/fatal-signal (Depends-on): Likewise.
20034         * modules/nanosleep (Depends-on): Likewise.
20035         * modules/sigprocmask (Files): Add sig-handler.h.
20036         * modules/sigaction (Files): Likewise.
20037         * lib/sig-handler.h (get_handler): New file, suggested by Paul
20038         Eggert.
20039         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
20040         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
20041         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
20042         (init_fatal_signals): Likewise.
20043         * lib/nanosleep.c (rpl_nanosleep): Likewise.
20044         (siginterrupt): Delete fallback.
20045         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
20046         instead.
20047         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
20048         siginterrupt.
20049
20050         New module sigaction, for mingw.
20051         * modules/sigaction: New module...
20052         * modules/sigaction-tests: ...and its test.
20053         * m4/sigaction.m4: New file.
20054         * lib/sigaction.c: Likewise.
20055         * tests/test-sigaction.c: Likewise.
20056         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
20057         * modules/signal (Makefile.am): Likewise.
20058         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
20059         needed.
20060         * doc/posix-headers/signal.texi (signal.h): Mention provided
20061         types.
20062         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
20063         that sigaction is preferable.
20064         * doc/posix-functions/sigaction.texi (sigaction): Mention new
20065         module.
20066         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20067         sigaction.
20068
20069         Improve robustness of sigprocmask by overriding signal.
20070         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
20071         is in use.
20072         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
20073         (SIGKILL, SIGSTOP): Provide fallbacks.
20074         (rpl_signal): Implement.
20075         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
20076         signal can be called inside handlers.
20077
20078         Fix nanosleep module on mingw.
20079         * modules/nanosleep (Depends-on): Add sys_select.
20080         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
20081
20082         Fix licensing of sigprocmask.
20083         * modules/raise (License): Relicense as LGPL.
20084
20085 2008-06-21  Bruno Haible  <bruno@clisp.org>
20086
20087         * lib/propername.c (proper_name_utf8): Don't use the transliterated
20088         result if it contains question marks.
20089         Reported by Michael Geng <linux@michaelgeng.de>.
20090
20091 2008-06-19  Bruno Haible  <bruno@clisp.org>
20092
20093         Fix CVS-ism.
20094         * doc/gnulib.texi: Include updated-stamp.texi.
20095         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
20096         (updated-stamp.texi): New rule.
20097         (gnulib.info): Depend on it.
20098         * doc/.gitignore: Add updated-stamp.texi.
20099         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
20100
20101 2008-06-19  Bruno Haible  <bruno@clisp.org>
20102
20103         * doc/Makefile (gnulib.info): Update and simplify dependencies.
20104         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20105
20106 2008-06-19  Eric Blake  <ebb9@byu.net>
20107
20108         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
20109         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
20110         Reported by Stepan Kasal.
20111
20112 2008-06-18  Bruno Haible  <bruno@clisp.org>
20113
20114         * lib/fatal-signal.c (init_fatal_signals): Add comment.
20115         Reported by Eric Blake.
20116
20117 2008-06-18  Eric Blake  <ebb9@byu.net>
20118
20119         Work around cygwin 1.5.25 strsignal bug.
20120         * tests/test-strsignal.c: Allow for const char *.
20121         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
20122
20123 2008-06-18  Simon Josefsson  <simon@josefsson.org>
20124
20125         * users.txt: Update URL to article and add author/date
20126         information.
20127
20128 2008-06-17  Bruno Haible  <bruno@clisp.org>
20129
20130         New macro gl_DISABLE_THREADS.
20131         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
20132         if the user did not pass --enable-threads or --disable-threads option.
20133         (gl_DISABLE_THREADS): New macro.
20134         Reported by Eric Blake <ebb9@byu.net>.
20135
20136 2008-06-17  Bruno Haible  <bruno@clisp.org>
20137
20138         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
20139         when the macro ignores it.
20140         Based on a patch by Eric Blake <ebb9@byu.net>.
20141
20142 2008-06-17  Bruno Haible  <bruno@clisp.org>
20143
20144         * modules/tls (License): Change to LGPLv2+.
20145         Reported by Eric Blake.
20146
20147 2008-06-17  Eric Blake  <ebb9@byu.net>
20148
20149         Simplify c-stack prerequisites.
20150         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
20151         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
20152         no longer requires <ucontext.h> to exist.  Optimize setrlimit
20153         check.
20154         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
20155         <sys/resource.h>.
20156
20157         Move c-stack test into testsuite.
20158         * modules/c-stack-tests: New file.
20159         * lib/c-stack.c [DEBUG]: Move test program...
20160         * tests/test-c-stack.c: ...into this new file.  Skip rather than
20161         fail test if sigaltstack is lacking.
20162         * tests/test-c-stack.sh: New driver file.
20163
20164 2008-06-16  Eric Blake  <ebb9@byu.net>
20165
20166         Use raise module consistently.
20167         * modules/fatal-signal (Depends-on): Add raise.
20168         * modules/sigprocmask (Depends-on): Likewise.
20169         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
20170         * lib/sigprocmask.c (sigprocmask): Likewise.
20171         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20172         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
20173
20174         Fix compliance bug in sigpending.
20175         * lib/sigprocmask.c (sigpending): Return pending array via
20176         parameter, not return value.
20177
20178 2008-06-14  Eric Blake  <ebb9@byu.net>
20179
20180         Improve obstack-printf test code.
20181         * tests/test-obstack-printf.c (test_function): Fix comment, and
20182         simplify usage of obstack_* in macros.  Add a test for coverage.
20183         Reported by Bruno Haible.
20184
20185 2008-06-14  Bruno Haible  <bruno@clisp.org>
20186
20187         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
20188         array size as a constant, not as a const variable.
20189         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
20190         AC_USE_SYSTEM_EXTENSIONS.
20191         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20192         Test whether the obstack_printf function actually exists.
20193         * modules/obstack-printf (Depends-on): Add extensions.
20194         (Include): Remove obstack.h.
20195         * modules/obstack-printf-posix (Depends-on): Add extensions.
20196         (Include): Remove obstack.h.
20197
20198 2008-06-13  Eric Blake  <ebb9@byu.net>
20199
20200         Add obstack-printf and obstack-printf-posix modules.
20201         * modules/obstack-printf: New file.
20202         * modules/obstack-printf-posix: Likewise.
20203         * MODULES.html.sh (Misc): Mention them.
20204         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20205         Likewise.
20206         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20207         Likewise.
20208         * modules/stdio (Makefile.am): Accomodate new modules.
20209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20210         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
20211         Declare.
20212         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
20213         functions.
20214         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
20215         (gl_REPLACE_OBSTACK_PRINTF): New macros
20216         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
20217         * tests/test-obstack-printf.c: New file.
20218         * modules/obstack-printf-tests: Likewise.
20219         * modules/obstack-printf-posix-tests: Likewise.
20220
20221 2008-06-11  Bruno Haible  <bruno@clisp.org>
20222
20223         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
20224         * lib/open.c: Include errno.h.
20225         (open): Fail when attempting to write to a file that has a trailing
20226         slash.
20227         * tests/test-open.c (main): Test against trailing slash bug.
20228         * doc/posix-functions/open.texi: Mention the trailing slash bug.
20229
20230 2008-06-10  Bruno Haible  <bruno@clisp.org>
20231
20232         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
20233         for $? to work inside the trap command, with various /bin/sh-s.
20234         * tests/test-vc-list-files-cvs.sh: Likewise.
20235
20236 2008-06-10  Bruno Haible  <bruno@clisp.org>
20237
20238         * lib/acl-internal.h: Don't include gettext.h here.
20239         * lib/set-mode-acl.c: Include gettext.h here.
20240         * lib/copy-acl.c: Likewise.
20241
20242 2008-06-10  Bruno Haible  <bruno@clisp.org>
20243
20244         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
20245         * lib/wait-process.c (wait_subprocess): Likewise.
20246         * lib/execute.h (execute): Add termsigp argument.
20247         * lib/execute.c (execute): Likewise.
20248         * lib/csharpcomp.c (compile_csharp_using_pnet,
20249         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
20250         * lib/csharpexec.c (execute_csharp_using_pnet,
20251         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
20252         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
20253         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
20254         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
20255         is_jikes_present): Update.
20256         * lib/javaexec.c (execute_java_class): Update.
20257         * lib/javaversion.c (execute_and_read_line): Update.
20258         * NEWS: Document the changes.
20259         Reported by Eric Blake.
20260
20261 2008-06-10  Eric Blake  <ebb9@byu.net>
20262
20263         Add missing include.
20264         * tests/test-strstr.c (includes): Add <signal.h>.
20265         * tests/test-strcasestr.c (includes): Likewise.
20266         * tests/test-memmem.c (includes): Likewise.
20267
20268 2008-06-10  Bruno Haible  <bruno@clisp.org>
20269
20270         * lib/wait-process.c (wait_subprocess): Add an assertion.
20271
20272 2008-06-10  Bruno Haible  <bruno@clisp.org>
20273
20274         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
20275
20276 2008-06-10  Bruno Haible  <bruno@clisp.org>
20277
20278         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
20279         using alarm().
20280         * tests/test-strcasestr.c (main): Likewise.
20281         * tests/test-strstr.c (main): Likewise.
20282
20283 2008-06-09  Bruno Haible  <bruno@clisp.org>
20284
20285         Work around the Solaris 10 ACE ACLs ABI change.
20286         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
20287         declare if ACL_NO_TRIVIAL is present.
20288         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
20289         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
20290         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
20291         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
20292         define if ACL_NO_TRIVIAL is present.
20293         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
20294         and use the current ABI.
20295         (file_has_acl): Use same #if condition as elsewhere.
20296         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
20297         in use, and use the current ABI.
20298         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
20299         Reported by Jim Meyering.
20300
20301 2008-06-09  Eric Blake  <ebb9@byu.net>
20302
20303         Work around environments that (stupidly) ignore SIGALRM.
20304         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
20305         before using alarm().
20306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20307         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20308         Reported by Ian Beckwith <ianb@erislabs.net>.
20309
20310         Produce autobuild blurb earlier in log.
20311         * modules/autobuild (configure.ac-early): Move AB_INIT here.
20312
20313 2008-06-09  Jim Meyering  <meyering@redhat.com>
20314         and OndÅ™ej Vašík  <ovasik@redhat.com>
20315
20316         utimens.c: correct kernel bug work-around
20317         OndÅ™ej Vašík found that the invalid return value of 280 indicates
20318         failure, not success, and the kernel bug we're trying to work
20319         around affects not just the utimensat call, but also the fallback
20320         futimens call.
20321         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
20322         not success.
20323         [HAVE_FUTIMENS]: Use the same work-around, here.
20324
20325 2008-06-09  Jim Meyering  <meyering@redhat.com>
20326
20327         add more guards around definition of ACE_-related code
20328         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
20329         ALLOW and ACE_OWNER are also defined.
20330
20331 2008-06-08  Bruno Haible  <bruno@clisp.org>
20332
20333         * lib/acl-internal.h: Add me as co-author.
20334         * lib/file-has-acl.c: Likewise.
20335         * lib/set-mode-acl.c: Likewise.
20336         * lib/copy-acl.c: Likewise.
20337
20338 2008-06-08  Bruno Haible  <bruno@clisp.org>
20339
20340         Add support for AIX ACLs.
20341         * lib/acl-internal.h (acl_nontrivial): New declaration.
20342         * lib/file-has-acl.c (acl_nontrivial): New function.
20343         (file_has_acl): Add implementation using AIX 4 ACL API.
20344         * lib/set-mode-acl.c (qset_acl): Likewise.
20345         * lib/copy-acl.c (qcopy_acl): Likewise.
20346
20347 2008-06-08  Bruno Haible  <bruno@clisp.org>
20348
20349         Add support for HP-UX ACLs.
20350         * lib/acl-internal.h (acl_nontrivial): New declaration.
20351         * lib/file-has-acl.c (acl_nontrivial): New function.
20352         (file_has_acl): Add implementation using HP-UX 11 ACL API.
20353         * lib/set-mode-acl.c (qset_acl): Likewise.
20354         * lib/copy-acl.c (qcopy_acl): Likewise.
20355
20356 2008-06-08  Bruno Haible  <bruno@clisp.org>
20357
20358         Add support for Cygwin ACLs.
20359         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
20360         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
20361         the chmod_or_fchmod call.
20362         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
20363
20364 2008-06-08  Bruno Haible  <bruno@clisp.org>
20365
20366         Fix bug with setuid modes in Solaris 10+ code.
20367         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
20368         succeeded, when the mode contains some special bits.
20369
20370 2008-06-08  Bruno Haible  <bruno@clisp.org>
20371
20372         Add support for Solaris 7..10 ACLs.
20373         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
20374         declarations.
20375         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
20376         functions.
20377         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
20378         * lib/set-mode-acl.c (qset_acl): Likewise.
20379         * lib/copy-acl.c (qcopy_acl): Likewise.
20380
20381 2008-06-08  Bruno Haible  <bruno@clisp.org>
20382
20383         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
20384         declaration.
20385         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
20386         (acl_access_nontrivial): Remove MacOS X case.
20387         (file_has_acl): Use acl_extended_nontrivial.
20388         * lib/copy-acl.c (qcopy_acl): Likewise.
20389
20390 2008-06-08  Bruno Haible  <bruno@clisp.org>
20391
20392         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
20393
20394 2008-06-08  Jim Meyering  <meyering@redhat.com>
20395
20396         * modules/acl (Maintainer): Add Bruno Haible.
20397
20398 2008-06-07  Bruno Haible  <bruno@clisp.org>
20399
20400         Improve support for Tru64 ACLs.
20401         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
20402         ACL on OSF/1.
20403
20404 2008-06-07  Bruno Haible  <bruno@clisp.org>
20405
20406         Add support for MacOS X ACLs.
20407         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
20408         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
20409         * lib/set-mode-acl.c (qset_acl): Likewise.
20410         * lib/copy-acl.c (qcopy_acl): Likewise.
20411
20412 2008-06-07  Bruno Haible  <bruno@clisp.org>
20413
20414         Fix memory leak introduced on 2008-05-22.
20415         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
20416         use.
20417
20418 2008-06-07  Bruno Haible  <bruno@clisp.org>
20419
20420         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
20421         to construct an empty ACL.
20422
20423 2008-06-07  Bruno Haible  <bruno@clisp.org>
20424
20425         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
20426         precisely.
20427         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
20428
20429 2008-06-07  Bruno Haible  <bruno@clisp.org>
20430
20431         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
20432         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
20433
20434 2008-06-07  Bruno Haible  <bruno@clisp.org>
20435
20436         * doc/posix-functions/_setjmp.texi: Explain the use of this function
20437         regardless of POSIX.
20438         * doc/posix-functions/_longjmp.texi: Likewise.
20439         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
20440         SystemV platform in this case.
20441
20442 2008-06-06  Eric Blake  <ebb9@byu.net>
20443
20444         Document abort() bugs.
20445         * doc/posix-functions/abort.texi (abort): Mention anomalies.
20446
20447         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
20448         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
20449         sigsetjmp.
20450         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
20451         siglongjmp, but only as a macro.
20452         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
20453         is obsolete.
20454         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
20455
20456         Tweak documentation to cover cygwin argz bugs.
20457         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
20458         argz bug fix; no code change needed since no cygwin releases
20459         occurred between the last fix and the bug being tested.
20460         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
20461         module and recently fixed cygwin bugs.
20462         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
20463         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
20464         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
20465         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
20466         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
20467         Likewise.
20468         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
20469         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
20470         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
20471         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
20472         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
20473         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
20474         Likewise.
20475
20476         Avoid gcc warning on cygwin.
20477         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
20478         !ACL_NO_TRIVIAL]: Avoid unused variable.
20479
20480 2008-06-05  Eric Blake  <ebb9@byu.net>
20481
20482         Be tolerant of UNKNOWN version in gnulib-tool test dir.
20483         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
20484         git-version-gen fails to come up with a version.
20485         Reported by Simon Josefsson.
20486
20487 2008-06-05  Jim Meyering  <meyering@redhat.com>
20488             Paul Eggert  <eggert@cs.ucla.edu>
20489
20490         utimens.c: work around a probable Linux kernel bug
20491         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
20492         appears to be a kernel bug that causes utimensat to return 280
20493         instead of 0, indicating success.
20494
20495 2008-06-04  Bruno Haible  <bruno@clisp.org>
20496
20497         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
20498         2008-06-01 commit.
20499
20500 2008-06-04  Bruno Haible  <bruno@clisp.org>
20501
20502         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
20503         * lib/file-has-acl.c (acl_access_nontrivial): New function.
20504         (file_has_acl): Use it. Save errno afterwards.
20505         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
20506
20507 2008-06-03  Bruno Haible  <bruno@clisp.org>
20508
20509         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
20510         draft code. Simplify #ifs.
20511         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
20512         Put Solaris code after POSIX-draft code. Fix comments regarding
20513         Solaris 10, HP-UX. Mention Cygwin.
20514         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
20515
20516 2008-06-03  Eric Blake  <ebb9@byu.net>
20517
20518         Provide fallback for older kernels.
20519         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
20520         Provide runtime fallback if kernel lacks support.
20521         Reported by Mike Frysinger.
20522
20523 2008-06-02  Bruno Haible  <bruno@clisp.org>
20524
20525         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
20526         it exists.
20527
20528 2008-06-02  Bruno Haible  <bruno@clisp.org>
20529
20530         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
20531         * lib/copy-acl.c (qcopy_acl): Update comment.
20532
20533 2008-06-02  Bruno Haible  <bruno@clisp.org>
20534
20535         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
20536         like ACL APIs.
20537
20538 2008-06-02  Bruno Haible  <bruno@clisp.org>
20539
20540         * tests/test-file-has-acl.sh: Use different code for Cygwin.
20541         * tests/test-set-mode-acl.sh: Likewise.
20542         * tests/test-copy-acl.sh: Likewise.
20543         * tests/test-copy-file.sh: Likewise.
20544
20545 2008-06-02  Bruno Haible  <bruno@clisp.org>
20546
20547         * tests/test-file-has-acl.sh: Remove unused code.
20548
20549 2008-06-01  Bruno Haible  <bruno@clisp.org>
20550
20551         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
20552         (copy_acl): Just a wrapper around qcopy_acl that emits the error
20553         messages.
20554         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
20555
20556 2008-06-01  Bruno Haible  <bruno@clisp.org>
20557
20558         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
20559         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
20560         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
20561         APIs.
20562         * modules/acl-tests (configure.ac): Remove tests now contained in
20563         m4/acl.m4.
20564
20565 2008-06-02  Jim Meyering  <meyering@redhat.com>
20566
20567         announce-gen: use a better key-server host name
20568         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
20569         it may be more consistently reliable.  Suggested by Werner Koch
20570         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
20571
20572 2008-06-01  Bruno Haible  <bruno@clisp.org>
20573
20574         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
20575         Reported by Voroskoi Andras <voroskoi@gmail.com>.
20576
20577 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
20578
20579         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
20580
20581 2008-06-01  Bruno Haible  <bruno@clisp.org>
20582
20583         New ACL tests.
20584         * tests/test-file-has-acl.sh: New file.
20585         * tests/test-file-has-acl.c: New file.
20586         * tests/test-set-mode-acl.sh: New file.
20587         * tests/test-set-mode-acl.c: New file.
20588         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
20589         * tests/test-copy-acl.c: New file.
20590         * modules/acl-tests: New file, based on modules/copy-file-tests.
20591         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
20592         (Depends-on): Add acl-tests.
20593         (configure.ac): Remove checks.
20594         (Makefile.am): Don't create test-sameacls program here any more.
20595
20596 2008-06-01  Bruno Haible  <bruno@clisp.org>
20597
20598         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
20599         * tests/test-sameacls.c: Include progname.h.
20600         (main): Invoke set_program_name. Portability fixes for MacOS X,
20601         Solaris, HP-UX.
20602
20603 2008-06-01  Bruno Haible  <bruno@clisp.org>
20604
20605         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
20606         function.
20607         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
20608
20609 2008-06-01  Bruno Haible  <bruno@clisp.org>
20610
20611         * modules/rpmatch (Depends-on): Add strdup.
20612
20613 2008-06-01  Bruno Haible  <bruno@clisp.org>
20614
20615         * lib/pipe.c: Include unistd-safer.h.
20616         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
20617         * modules/pipe (Depends-on): Add unistd-safer.
20618
20619 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20620
20621         * modules/autobuild (configure.ac): Call AB_INIT.
20622
20623 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20624
20625         * tests/test-getaddrinfo.c: Don't print debug messages by default.
20626         Suggested by Bruno Haible <bruno@clisp.org>.
20627
20628 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20629
20630         * tests/test-base64.c: Cast size_t to unsigned long when invoking
20631         printf.  Use %lu instead of %d.  Reported by Bruno Haible
20632         <bruno@clisp.org>.
20633
20634 2008-05-29  Eric Blake  <ebb9@byu.net>
20635
20636         Prefer new POSIX 200x interfaces over futimesat.
20637         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
20638         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
20639         when available.
20640         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
20641
20642 2008-05-28  Bruno Haible  <bruno@clisp.org>
20643
20644         * modules/stpcpy (License): Change to LGPLv2+.
20645         Requested by David Lutterkort <dlutter@redhat.com>.
20646
20647 2008-05-27  Bruno Haible  <bruno@clisp.org>
20648
20649         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
20650         current mingw.
20651         Reported by Jose E. Marchesi <jemarch@gnu.org>.
20652
20653 2008-05-27  Bruno Haible  <bruno@clisp.org>
20654
20655         * modules/iconv_open (Link): New section, from module 'iconv'.
20656         * modules/striconv (Link): Likewise.
20657         * modules/striconveh (Link): Likewise.
20658         * modules/xstriconv (Link): Likewise.
20659         * modules/unicodeio (Link): Likewise.
20660         * modules/propername (Link): Likewise.
20661         Reported by Jim Meyering.
20662
20663 2008-05-26  Jim Meyering  <meyering@redhat.com>
20664
20665         sha256: do not artificially restrict buffer length to be < 2^32
20666         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
20667         uint32_t to size_t.
20668         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
20669         to match.
20670
20671         avoid unaligned access errors, e.g., on sparc
20672         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
20673         direct access through a possibly-unaligned uint64* pointer.
20674         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
20675         direct access through a possibly-unaligned uint32* pointer.
20676         Prompted by this patch from Tom "spot" Callaway:
20677         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
20678
20679         sha512.c: fix typo in comment
20680         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
20681
20682 2008-05-25  Bruno Haible  <bruno@clisp.org>
20683
20684         * lib/set-mode-acl.c: Renamed from lib/acl.c.
20685         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
20686         (Makefile.am): Update lib_SOURCES.
20687
20688 2008-05-25  Bruno Haible  <bruno@clisp.org>
20689
20690         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
20691
20692 2008-05-25  Jim Meyering  <meyering@redhat.com>
20693
20694         useless-if-before-free: freed expr may have white-space differences
20695         * build-aux/useless-if-before-free: Recognize cases in which the
20696         freed expression differs from the tested one in embedded white
20697         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
20698         $1 was used, so we can't make any regexp shy.  Improved tests now
20699         detect this.
20700
20701         useless-if-before-free: accept white space in the expression.
20702         * build-aux/useless-if-before-free: For now, any white space
20703         in the expression must be identical in the free argument.
20704
20705         useless-if-before-free: efficiency tweak
20706         * build-aux/useless-if-before-free: Make the expression-matching
20707         regexp "shy".
20708         Make the *outer* regexp shy, not the expr-matching one.
20709
20710         update code-in-comment to accept cast of free arg
20711         * build-aux/useless-if-before-free: Update regexp.
20712
20713 2008-05-25  Bruno Haible  <bruno@clisp.org>
20714
20715         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
20716         * modules/copy-file-tests (Files, Makefile.am): Update.
20717         * tests/test-copy-file.c (func_test_copy): Update.
20718
20719 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
20720
20721         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
20722
20723 2008-05-23  Bruno Haible  <bruno@clisp.org>
20724
20725         Improve support for ACLs on OSF/1.
20726         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
20727         Remove fallback for unknown flavors of ACLs.
20728
20729 2008-05-22  Bruno Haible  <bruno@clisp.org>
20730
20731         Add support for ACLs on OSF/1.
20732         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
20733         replacements.
20734         (acl_free_text): New macro fallback.
20735         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
20736         acl_free.
20737         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
20738         acl_free_text function. Require AC_C_INLINE.
20739
20740 2008-05-22  Bruno Haible  <bruno@clisp.org>
20741
20742         Make copy_acl work on MacOS X 10.5.
20743         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
20744         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
20745         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
20746         If MODE_INSIDE_ACL, don't assume that every system has the same text
20747         representation for ACLs as FreeBSD.
20748         * lib/copy-acl.c (copy_acl): Add support for platforms with
20749         !MODE_INSIDE_ACL.
20750         * lib/file-has-acl.c (file_has_acl): Likewise.
20751         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
20752         FreeBSD, MacOS X, or IRIX, respectively.
20753
20754 2008-05-22  Bruno Haible  <bruno@clisp.org>
20755
20756         * lib/acl.h: Don't include <sys/acl.h>.
20757         (GETACLCNT): Move fallback to lib/acl-internal.h.
20758         * lib/acl-internal.h: Include <sys/acl.h> here.
20759         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
20760
20761 2008-05-22  Bruno Haible  <bruno@clisp.org>
20762
20763         Split off copy_acl function to separate file.
20764         * lib/copy-acl.c: New file, extracted from lib/acl.c.
20765         * lib/acl.c (copy_acl): Moved function to separate file.
20766         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
20767         * modules/acl (Files): Add lib/copy-acl.c.
20768         (Makefiles.am): Augment lib_SOURCES.
20769
20770 2008-05-22  Bruno Haible  <bruno@clisp.org>
20771
20772         * modules/copy-file-tests: New file.
20773         * tests/test-copy-file.sh: New file.
20774         * tests/test-copy-file.c: New file.
20775         * tests/test-copy-file-sameacls.c: New file.
20776
20777 2008-05-22  Eric Blake  <ebb9@byu.net>
20778
20779         Avoid gcc warning.
20780         * tests/test-memcmp.c (main): Pass NULL indirectly.
20781
20782 2008-05-21  Bruno Haible  <bruno@clisp.org>
20783
20784         Add reference doc about ACLs.
20785         * doc/acl-resources.txt: New file.
20786         * doc/acl-cygwin.txt: New file.
20787
20788 2008-05-21  Bruno Haible  <bruno@clisp.org>
20789
20790         Avoid one more warning from gcc.
20791         * lib/vasnprintf.c (IF_LINT): Update comments.
20792         (VASNPRINTF): Use it also for the 'prefix' array initializer.
20793
20794 2008-05-21  Jim Meyering  <meyering@redhat.com>
20795
20796         avoid a warning from gcc
20797         * lib/vasnprintf.c (IF_LINT): Define.
20798         (scale10_round_decimal_long_double):
20799         Use it to avoid a "may be used uninitialized" warning.
20800         (scale10_round_decimal_double): Likewise.
20801
20802 2008-05-21  Simon Josefsson  <simon@josefsson.org>
20803
20804         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
20805         declared.
20806
20807 2008-05-20  Bruno Haible  <bruno@clisp.org>
20808
20809         * tests/test-memcmp.c (main): Test also the sign of the result. Test
20810         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
20811
20812 2008-05-20  Simon Josefsson  <simon@josefsson.org>
20813
20814         * modules/memcmp-tests: New file.
20815         * tests/test-memcmp.c: New file.
20816
20817 2008-05-19  Bruno Haible  <bruno@clisp.org>
20818
20819         * modules/propername (Notice, configure.ac): Put quoted "..." into
20820         --keyword option.
20821         * lib/propername.h: Update comments accordingly.
20822         Reported by Eric Blake.
20823
20824 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
20825
20826         * modules/getpass-gnu (Depends-on): Add fseeko.
20827
20828 2008-05-19  Simon Josefsson  <simon@josefsson.org>
20829
20830         * modules/base64-tests: New file.
20831
20832 2008-05-19  Bo Borgerson <gigabo@gmail.com>
20833
20834         * lib/base64.c (base64_decode_ctx): If a decode context structure
20835         was passed in use it to ignore newlines.  If a context structure
20836         was _not_ passed in, continue to treat newlines as garbage (this
20837         is the historical behavior).  Formerly base64_decode.
20838         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
20839         takes a decode context structure.
20840         * lib/base64.h (base64_decode): Macro for four-argument calls.
20841         (base64_decode_alloc): Likewise.
20842         * lib/base64.c (base64_decode_ctx): If a decode context structure
20843         was passed in use it to ignore newlines.  If a context structure
20844         was _not_ passed in, continue to treat newlines as garbage (this
20845         is the historical behavior).  Formerly base64_decode.
20846         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
20847         takes a decode context structure.
20848         * lib/base64.h (base64_decode): Macro for four-argument calls.
20849         (base64_decode_alloc): Likewise.
20850
20851 2008-05-19  Jim Meyering  <meyering@redhat.com>
20852
20853         avoid a warning from gcc
20854         * lib/trim.c (IF_LINT): Define.
20855         (trim2): Use it to avoid a "may be used uninitialized" warning.
20856
20857         Fix doc typo.
20858         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
20859
20860 2008-05-19  Bruno Haible  <bruno@clisp.org>
20861
20862         * doc/glibc-functions/getpass.texi: Document limits of other
20863         implementations.
20864
20865 2008-05-19  Simon Josefsson  <simon@josefsson.org>
20866             Bruno Haible <bruno@clisp.org>
20867
20868         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
20869
20870 2008-05-18  Bruno Haible  <bruno@clisp.org>
20871
20872         * modules/propername: New file, from GNU gettext.
20873         * lib/propername.h: New file, from GNU gettext.
20874         * lib/propername.c: New file, from GNU gettext.
20875         * MODULES.html.sh (Internationalization functions): Add propername.
20876
20877 2008-05-16  Jim Meyering  <meyering@redhat.com>
20878             Bruno Haible  <bruno@clisp.org>
20879
20880         Avoid some warnings from "gcc -Wshadow".
20881         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
20882
20883 2008-05-15  Eric Blake  <ebb9@byu.net>
20884
20885         Extend previous patch to cygwin 1.7.0.
20886         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
20887         fast implementation in cygwin >= 1.7.0.
20888         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20889         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20890
20891 2008-05-15  Bruno Haible  <bruno@clisp.org>
20892
20893         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
20894         implementation in glibc >= 2.9.
20895         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20896         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20897
20898 2008-05-15  Bruno Haible  <bruno@clisp.org>
20899
20900         * MODULES.html.sh (Internationalization functions): Remove linebreak.
20901         (Unicode string functions): Add unilbrk/*.
20902         Reported by Karl Berry.
20903
20904 2008-05-15  Eric Blake  <ebb9@byu.net>
20905
20906         Fix violation of <stdbool.h> replacement in regex.
20907         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
20908         * lib/regexec.c (re_search_internal): Likewise.
20909         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
20910
20911 2008-05-15  Jim Meyering  <meyering@redhat.com>
20912
20913         avoid distracting test output when git or cvs is not found
20914         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
20915         * tests/test-vc-list-files-git.sh: Likewise.
20916
20917 2008-05-15  Eric Blake  <ebb9@byu.net>
20918
20919         Glibc finally accepted the memmem speedup code, bugzilla #5514.
20920         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
20921         glibc version.
20922         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20923         * doc/posix-functions/strstr.texi (strstr): Likewise.
20924         * lib/str-two-way.h (MAX): Sychronize with glibc.
20925
20926 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
20927
20928         * lib/regcomp.c (optimize_utf8): Add a note on why we test
20929         opr.ctx_type.
20930         (calc_first): Initialize constraint field.
20931         (duplicate_node_closure): Use it instead of special casing ANCHORS.
20932         Fix grammar.
20933         (duplicate_node): Merge constraint field for all node types.
20934         (calc_eclosure_iter): Look at constraint field for all node types.
20935         * lib/regex_internal.c (create_cd_newstate): Don't look at
20936         opr.ctx_type.
20937
20938 2008-05-14  Bruno Haible  <bruno@clisp.org>
20939
20940         Help GCC to do better code generation.
20941         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
20942         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20943         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
20944         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
20945         Declare with attribute 'malloc' if supported.
20946
20947 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
20948
20949         use "echo STR|wc -c" rather than unportable "expr length STR"
20950         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
20951         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
20952
20953 2008-05-14  Jim Meyering  <meyering@redhat.com>
20954
20955         use dd ibs=$n count=1 ... rather than less-portable head -c$n
20956         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
20957         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
20958         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
20959         via Collin Lasse.
20960
20961 2008-05-14  Eric Blake  <ebb9@byu.net>
20962
20963         Avoid quadratic growth in gl_LIBSOURCES.
20964         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
20965         Suggested by Bruno Haible.
20966
20967         Test xmemdup0.
20968         * modules/xmemdup0-tests: New file.
20969         * tests/test-xmemdup0.c: Likewise.
20970
20971 2008-05-13  Eric Blake  <ebb9@byu.net>
20972
20973         Split xmemdup0 into its own module.
20974         * modules/xmemdup0: New file.
20975         * lib/xmemdup0.h: Likewise.
20976         * lib/xmemdup0.c: Likewise.
20977         * MODULES.html.sh (Memory management functions): Add xmemdup0.
20978         * lib/xalloc.h (xmemdup0): Remove.
20979         * lib/xmalloc.c (xmemdup0): Likewise.
20980
20981 2008-05-13  Eric Blake  <ebb9@byu.net>
20982             Bruno Haible  <bruno@clisp.org>
20983
20984         Reduce number of forks required during autoconf.
20985         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
20986         and gl_LIBSOURCES_DIR.
20987         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
20988         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
20989         m4_syscmd per file.
20990         <m4_foreach_w>: Move...
20991         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
20992
20993 2008-05-13  Eric Blake  <ebb9@byu.net>
20994
20995         * gnulib-tool: Fix various comment typos.
20996
20997 2008-05-12  Bruno Haible  <bruno@clisp.org>
20998
20999         Tailor the linebreaking algorithm.
21000         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
21001
21002 2008-05-12  Bruno Haible  <bruno@clisp.org>
21003
21004         Update to Unicode 5.0.0.
21005         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21006         LBP_JV, LBP_JT. Redistribute values.
21007         (unilbrk_table): Change size.
21008         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
21009         Unicode TR#14 rev. 22.
21010         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21011         LBP_JV, LBP_JT. Redistribute values.
21012         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
21013         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
21014         Update.
21015         * lib/unilbrk/lbrkprop1.h: Regenerated.
21016         * lib/unilbrk/lbrkprop2.h: Regenerated.
21017         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
21018         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
21019         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
21020         Likewise.
21021         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
21022         Likewise.
21023         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
21024         result.
21025         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21026         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21027         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21028         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
21029         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
21030         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
21031
21032 2008-05-11  Bruno Haible  <bruno@clisp.org>
21033
21034         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
21035
21036 2008-05-11  Bruno Haible  <bruno@clisp.org>
21037
21038         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
21039         * modules/unilbrk/gen-lbrk: New file.
21040
21041 2008-05-11  Bruno Haible  <bruno@clisp.org>
21042
21043         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
21044         * m4/sha512.m4 (gl_SHA512): Likewise.
21045
21046 2008-05-11  Jim Meyering  <meyering@redhat.com>
21047
21048         New modules: crypto/sha256, crypto/sha512 (from coreutils)
21049         * modules/crypto/sha256: New file.
21050         * modules/crypto/sha512: Likewise.
21051         * lib/sha256.c: Likewise.
21052         * lib/sha256.h: Likewise.
21053         * lib/sha512.c: Likewise.
21054         * lib/sha512.h: Likewise.
21055         * lib/u64.h: Likewise.
21056         * m4/sha256.m4: Likewise.
21057         * m4/sha512.m4: Likewise.
21058         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
21059
21060 2008-05-10  Bruno Haible  <bruno@clisp.org>
21061
21062         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
21063         (Input/Output <stdio.h>): Add xprintf.
21064         (Signal handling <signal.h>): Add strsignal.
21065         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
21066         (Core language properties): Add func.
21067         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
21068         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
21069         strings.
21070         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
21071         (Input/output): New section.
21072         (File system functions): Add openat-die, stat-macros.
21073         (Networking functions): Add sockets.
21074         (Unicode string functions): Add unictype/*.
21075         (Support for building libraries and executables): Add gperf.
21076         (Support for building documentation): Add agpl-3.0.
21077         (Misc): Add nocrash.
21078
21079 2008-05-10  Bruno Haible  <bruno@clisp.org>
21080
21081         * modules/unictype/gen-ctype: New file.
21082
21083 2008-05-10  Jim Meyering  <meyering@redhat.com>
21084
21085         Make chdir-safer.c more efficient on a system with no symlinks.
21086         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
21087         also if ELOOP is zero.  Suggested by Bruno Haible.
21088
21089         Make chdir-safer.c slightly safer.
21090         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
21091         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
21092
21093         Avoid compile failure on systems without ELOOP (like mingw).
21094         * lib/chdir-safer.c (ELOOP): Define if not already defined.
21095         Reported by Bruno Haible.
21096
21097 2008-05-10  Bruno Haible  <bruno@clisp.org>
21098
21099         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
21100         (is_utf8_encoding): Use a case-insensitive comparison.
21101         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
21102         streq.
21103
21104 2008-05-10  Bruno Haible  <bruno@clisp.org>
21105
21106         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
21107         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
21108         * lib/unilbrk/ulc-common.h (iconv_string_length,
21109         iconv_string_keeping_offsets): Remove declarations.
21110         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
21111         Don't include <iconv.h>, streq.h, xsize.h.
21112         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
21113         conversion.
21114         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
21115         <iconv.h>, streq.h, xsize.h.
21116         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
21117         conversion.
21118         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
21119         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
21120         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
21121         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
21122
21123 2008-05-10  Bruno Haible  <bruno@clisp.org>
21124
21125         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
21126         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
21127
21128         * modules/unilbrk/u32-width-linebreaks-tests: New file.
21129         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
21130
21131         * modules/unilbrk/u16-width-linebreaks-tests: New file.
21132         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
21133
21134         * modules/unilbrk/u8-width-linebreaks-tests: New file.
21135         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
21136
21137         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
21138         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
21139
21140         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
21141         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
21142
21143         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
21144         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
21145
21146         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
21147         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
21148
21149 2008-05-10  Bruno Haible  <bruno@clisp.org>
21150
21151         Split up 'linebreak' module.
21152         * lib/unilbrk.h: New file, based on lib/linebreak.h.
21153         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
21154         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
21155         modifications.
21156         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
21157         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
21158         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
21159         lib/linebreak.c.
21160         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
21161         lib/linebreak.c.
21162         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
21163         lib/linebreak.c.
21164         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
21165         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
21166         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
21167         lib/linebreak.c.
21168         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
21169         lib/linebreak.c.
21170         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
21171         lib/linebreak.c.
21172         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
21173         lib/linebreak.c.
21174         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
21175         lib/linebreak.c.
21176         * modules/unilbrk/base: New file.
21177         * modules/unilbrk/tables: New file.
21178         * modules/unilbrk/u8-possible-linebreaks: New file.
21179         * modules/unilbrk/u16-possible-linebreaks: New file.
21180         * modules/unilbrk/u32-possible-linebreaks: New file.
21181         * modules/unilbrk/ulc-common: New file.
21182         * modules/unilbrk/ulc-possible-linebreaks: New file.
21183         * modules/unilbrk/u8-width-linebreaks: New file.
21184         * modules/unilbrk/u16-width-linebreaks: New file.
21185         * modules/unilbrk/u32-width-linebreaks: New file.
21186         * modules/unilbrk/ulc-width-linebreaks: New file.
21187         * lib/linebreak.h: Remove file.
21188         * lib/linebreak.c: Remove file.
21189         * m4/linebreak.m4: Remove file.
21190         * modules/linebreak: Remove file.
21191         * NEWS: Mention the changes.
21192
21193 2008-05-09  Eric Blake  <ebb9@byu.net>
21194
21195         Add xmemdup0.
21196         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
21197         implementation.
21198         * lib/xmalloc.c (xmemdup0): New C implementation.
21199
21200 2008-05-08  Bruno Haible  <bruno@clisp.org>
21201
21202         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
21203
21204 2008-05-07  Eric Blake  <ebb9@byu.net>
21205
21206         Support cross-compilation of <wctype.h>.
21207         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
21208         AC_CACHE_CHECK.
21209
21210 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
21211
21212         * build-aux/vc-list-files: Add support for bzr.
21213
21214 2008-05-03  Jim Meyering  <meyering@redhat.com>
21215
21216         avoid failed assertion with tight malloc
21217         * tests/test-getndelim2.c: Correct an off-by-one assertion.
21218
21219 2008-05-03  Simon Josefsson  <simon@josefsson.org>
21220
21221         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
21222         are needed from arpa/inet.h.
21223         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
21224         Reported by Bruno Haible.
21225
21226 2008-05-02  Jim Meyering  <meyering@redhat.com>
21227
21228         avoid compilation error on FreeBSD 6
21229         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
21230
21231 2008-05-01  Jim Meyering  <meyering@redhat.com>
21232
21233         useless-if-before-free: correct --help's exit status description
21234         * build-aux/useless-if-before-free (usage): Like grep, exit 0
21235         for one or more matches, etc.  Reported by Bruno Haible.
21236
21237         vc-list-files: make the stand-alone gnulib test work
21238         * modules/vc-list-files-tests (configure.ac):
21239         Define and AC_SUBST abs_aux_dir.
21240         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
21241         $(abs_top_srcdir) to each script and having each of them
21242         duplicate the work of setting PATH, set PATH here, using
21243         the new variable, abs_aux_dir instead.
21244         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
21245         * tests/test-vc-list-files-git.sh: Likewise.
21246         Reported by Bruno Haible.
21247
21248 2008-05-01  Bruno Haible  <bruno@clisp.org>
21249
21250         * lib/getndelim2.c (getndelim2): Fix newsize computation during
21251         reallocation. Rename 'done' to 'found_delimiter'.
21252
21253 2008-05-01  Jim Meyering  <meyering@redhat.com>
21254
21255         vc-list-files: accommodate /bin/sh like the one from Solaris 10
21256         * build-aux/vc-list-files: Use `...`, not $(...).
21257
21258 2008-04-30  Jim Meyering  <meyering@redhat.com>
21259
21260         add tests for vc-list-files
21261         * modules/vc-list-files-tests: New module.
21262         * tests/test-vc-list-files-cvs.sh: New file.
21263         * tests/test-vc-list-files-git.sh: New file.
21264
21265         avoid a warning from gcc
21266         * lib/getndelim2.c (IF_LINT): Define.
21267         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
21268
21269         vc-list-files: work properly with build-aux/cvsu, too
21270         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
21271         to all cvs-based clauses.
21272
21273         vc-list-files: work properly in the CVS+awk case, too
21274         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
21275
21276         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
21277         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
21278         take more than one file argument, so .  Add quotes, just in case $dir
21279         ever contains a shell meta-character.  Prompted by Soren Hansen in
21280         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
21281
21282 2008-04-29  Eric Blake  <ebb9@byu.net>
21283
21284         Optimize getndelim2 to use block operations when possible.
21285         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
21286         freadseek, and memchr2.
21287         * lib/getndelim2.c (getndelim2): Use them for block reads.
21288
21289 2008-04-29  Bruno Haible  <bruno@clisp.org>
21290
21291         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
21292         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21293         * modules/inet_ntop (Depends-on): Add extensions.
21294         * modules/inet_pton (Depends-on): Likewise.
21295         Reported by Simon Josefsson.
21296
21297 2008-04-29  Jim Meyering  <meyering@redhat.com>
21298
21299         When the is more than one match in a block, match all of them.
21300         * build-aux/useless-if-before-free: Iterate through each block
21301         until there are no more matches.
21302
21303         Fix broken useless-if-before-free script.
21304         * build-aux/useless-if-before-free: Fix typo: missing "?" after
21305         the expression to match cast of argument to free-like function.
21306
21307 2008-04-29  Eric Blake  <ebb9@byu.net>
21308
21309         Use new header.
21310         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
21311
21312 2008-04-29  Jim Meyering  <meyering@redhat.com>
21313
21314         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
21315         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
21316         by gnulib to exist and to declare e.g., inet_ntop.
21317         Don't include "inet_ntop.h", now removed.
21318
21319         * m4/arpa_inet_h.m4: Remove trailing blanks.
21320
21321 2008-04-29  Eric Blake  <ebb9@byu.net>
21322
21323         Silence valgrind on safe reads beyond potential array bounds.
21324         * lib/rawmemchr.valgrind: New file.
21325         * lib/strchrnul.valgrind: Likewise.
21326         * modules/rawmemchr (Files): Distribute new file.
21327         * modules/strchrnul (Files): Likewise.
21328         Suggested by Bruno Haible.
21329
21330 2008-04-29  Bruno Haible  <bruno@clisp.org>
21331
21332         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
21333         (inet_ntop, inet_pton): Change portability warning's wording.
21334         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
21335         Invoke gl_CHECK_NEXT_HEADERS.
21336         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
21337         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
21338         set ARPA_INET_H.
21339         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21340         * modules/arpa_inet (Description): No longer only for systems that
21341         lack it.
21342         (Depends-on): Add include_next.
21343         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
21344         HAVE_ARPA_INET_H.
21345
21346 2008-04-29  Jim Meyering  <meyering@redhat.com>
21347
21348         * modules/mkdir (License): Re-license as LGPLv2+.
21349
21350 2008-04-29  Bruno Haible  <bruno@clisp.org>
21351
21352         * modules/rawmemchr (Maintainer): Set to Eric.
21353         * modules/strchrnul (Maintainer): Likewise.
21354
21355 2008-04-29  Simon Josefsson  <simon@josefsson.org>
21356
21357         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
21358         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
21359
21360         * modules/arpa_inet (arpa/inet.h): Use them.
21361
21362 2008-04-28  Eric Blake  <ebb9@byu.net>
21363
21364         Test getndelim2.
21365         * modules/getndelim2-tests: New file.
21366         * tests/test-getndelim2.c: Likewise.
21367         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
21368         stream.
21369         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
21370
21371         * MODULES.html.sh: Document new module.
21372
21373 2008-04-20  Bruno Haible  <bruno@clisp.org>
21374
21375         * lib/c-stack.c (die): Use raise.
21376         * modules/c-stack (Depends-on): Add raise.
21377
21378 2008-04-28  Bruno Haible  <bruno@clisp.org>
21379
21380         Expect rpmatch to be declared.
21381         * lib/yesno.c (rpmatch): Remove declaration.
21382
21383         Declare rpmatch.
21384         * lib/stdlib.in.h (rpmatch): New declaration.
21385         * lib/rpmatch.c: Include <stdlib.h> first.
21386         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
21387         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
21388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
21389         HAVE_RPMATCH.
21390         * modules/rpmatch (Depends-on): Add stdlib, extensions.
21391         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21392         (Include): Set to <stdlib.h>.
21393         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
21394         HAVE_RPMATCH.
21395         * NEWS: Document the change.
21396
21397 2008-04-28  Bruno Haible  <bruno@clisp.org>
21398
21399         Change rpmatch to use nl_langinfo when appropriate.
21400         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
21401         (N_): New macro.
21402         (localized_pattern): New function/macro.
21403         (try): Remove match, nomatch arguments. Copy the pattern into safe
21404         memory before caching it.
21405         (rpmatch): Use localized_pattern. Add translator comments.
21406         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
21407         Suggested by Eric Blake.
21408         * modules/rpmatch (Depends-on): Add stdbool.
21409
21410 2008-04-28  Eric Blake  <ebb9@byu.net>
21411
21412         Add rawmemchr module, matching glibc.
21413         * modules/string (Makefile.am): New indicator.
21414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
21415         * lib/string.in.h (rawmemchr): Declare when appropriate.
21416         * modules/rawmemchr: New file.
21417         * m4/rawmemchr.m4: Likewise.
21418         * lib/rawmemchr.c: Likewise.
21419         * modules/rawmemchr-tests: Likewise.
21420         * tests/test-rawmemchr.c: Likewise.
21421         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
21422         module.
21423         * modules/strchrnul (Depends-on): Add rawmemchr.
21424         * lib/strchrnul.c (strchrnul): Optimize a corner case.
21425
21426         Whitespace cleanup.
21427         * tests/test-strchrnul.c: Reindent.
21428         * lib/strchrnul.c: Likewise.
21429
21430         Optimize and test strchrnul.
21431         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
21432         * modules/strchrnul-tests: New file.
21433         * tests/test-strchrnul.c: Likewise.
21434
21435         Remove intprops dependency.
21436         * modules/memchr (Depends-on): Remove intprops.
21437         * modules/memrchr (Depends-on): Likewise.
21438         * modules/memchr2 (Depends-on): Likewise.
21439         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
21440         * lib/memrchr.c (__memrchr): Likewise.
21441         * lib/memrchr2.c (memchr2): Likewise.
21442         Reported by Simon Josefsson.
21443
21444 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21445
21446         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
21447         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21448
21449 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21450
21451         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
21452
21453         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
21454
21455         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
21456
21457         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
21458         declarations.
21459         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
21460
21461         * m4/inet_pton.m4: Don't check for header files.
21462
21463         * m4/inet_ntop.m4: Don't check for header files.
21464
21465 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21466
21467         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
21468         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
21469         trigger for cygwin).
21470         Reported by Bruno Haible  <bruno@clisp.org>.
21471
21472 2008-04-28  Bruno Haible  <bruno@clisp.org>
21473
21474         * doc/posix-functions/strdup.texi: Mention mingw problem.
21475
21476 2008-04-27  Bruno Haible  <bruno@clisp.org>
21477
21478         * modules/stat-time-tests (Depends-on): Add sleep.
21479         * tests/test-stat-time.c (force_unlink): New function.
21480         (cleanup): Use it.
21481         (test_mtime): Remove the ctime related tests.
21482         (test_ctime): New function, containing the ctime related tests.
21483         (main): Call test_ctime, except on native Windows platforms.
21484
21485 2008-04-27  Bruno Haible  <bruno@clisp.org>
21486
21487         * lib/rpmatch.c (rpmatch): Add some comments.
21488         Reported by James Youngman <jay@gnu.org>.
21489
21490 2008-04-27  Bruno Haible  <bruno@clisp.org>
21491
21492         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
21493         quiet NaNs.
21494
21495 2008-04-27  Bruno Haible  <bruno@clisp.org>
21496
21497         Make test-yesno.sh work on mingw.
21498         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
21499         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
21500         (main): Set stdin to binary mode.
21501         * modules/yesno-tests (Depends-on): Add binary-io.
21502
21503 2008-04-27  Bruno Haible  <bruno@clisp.org>
21504
21505         Fix 'isfinite' on x86, x86_64, ia64 platforms.
21506         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
21507         argument that lie outside the IEEE 854 domain.
21508         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
21509         (gl_ISFINITE): Use it.
21510         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
21511
21512 2008-04-27  Bruno Haible  <bruno@clisp.org>
21513
21514         Allow local renaming in config.h.
21515         * lib/memrchr.c (memrchr): Don't undefine outside libc.
21516
21517 2008-04-27  Bruno Haible  <bruno@clisp.org>
21518
21519         * lib/memchr.c (__memchr): Change type of 'i'.
21520         * lib/memchr2.c (memchr2): Likewise.
21521
21522 2008-04-26  Eric Blake  <ebb9@byu.net>
21523         and Bruno Haible  <bruno@clisp.org>
21524
21525         Optimize and test memrchr.
21526         * modules/memrchr (Depends-on): Add intprops.
21527         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
21528         * modules/memrchr-tests: New file.
21529         * tests/test-memrchr.c: New file.
21530
21531 2008-04-26  Bruno Haible  <bruno@clisp.org>
21532
21533         Add tentative support for DragonFly BSD.
21534         * lib/stdio-impl.h: Add macros for DragonFly BSD.
21535         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
21536         fp.
21537         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21538         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
21539         * lib/fpurge.c (fpurge): Likewise.
21540         * lib/freadable.c (freaadable): Likewise.
21541         * lib/freadahead.c (freadahead): Likewise.
21542         * lib/freading.c (freading): Likewise.
21543         * lib/freadptr.c (freadptr): Likewise.
21544         * lib/freadseek.c (freadptrinc): Likewise.
21545         * lib/fseeko.c (fseeko): Likewise.
21546         * lib/fseterr.c (fseterr): Likewise.
21547         * lib/fwritable.c (fwritable): Likewise.
21548         * lib/fwriting.c (fwriting): Likewise.
21549
21550 2008-04-26  Bruno Haible  <bruno@clisp.org>
21551
21552         * lib/stdio-impl.h: New file.
21553         * lib/fbufmode.c: Include stdio-impl.h.
21554         (fbufmode): Use fp_, remove redundant #defines.
21555         * lib/fflush.c: Include stdio-impl.h.
21556         (clear_ungetc_buffer): Remove redundant #defines.
21557         * lib/fpurge.c: Include stdio-impl.h.
21558         (fpurge): Remove redundant #defines.
21559         * lib/freadable.c: Include stdio-impl.h.
21560         (freadable): Remove redundant #defines.
21561         * lib/freadahead.c: Include stdio-impl.h.
21562         (freadahead): Remove redundant #defines.
21563         * lib/freading.c: Include stdio-impl.h.
21564         (freading): Remove redundant #defines.
21565         * lib/freadptr.c: Include stdio-impl.h.
21566         (freadptr): Remove redundant #defines.
21567         * lib/freadseek.c: Include stdio-impl.h.
21568         (freadptrinc): Remove redundant #defines.
21569         * lib/fseeko.c: Include stdio-impl.h.
21570         (rpl_fseeko): Remove redundant #defines.
21571         * lib/fseterr.c: Include stdio-impl.h.
21572         (fseterr): Remove redundant #defines.
21573         * lib/fwritable.c: Include stdio-impl.h.
21574         (fwritable: Remove redundant #defines.
21575         * lib/fwriting.c: Include stdio-impl.h.
21576         (fwriting): Remove redundant #defines.
21577         * modules/fbufmode (Files): Add lib/stdio-impl.h.
21578         * modules/fflush (Files): Likewise.
21579         * modules/fpurge (Files): Likewise.
21580         * modules/freadable (Files): Likewise.
21581         * modules/freadahead (Files): Likewise.
21582         * modules/freading (Files): Likewise.
21583         * modules/freadptr (Files): Likewise.
21584         * modules/freadseek (Files): Likewise.
21585         * modules/fseeko (Files): Likewise.
21586         * modules/fseterr (Files): Likewise.
21587         * modules/fwritable (Files): Likewise.
21588         * modules/fwriting (Files): Likewise.
21589
21590 2008-04-26  Bruno Haible  <bruno@clisp.org>
21591
21592         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21593         restore_seek_optimization, update_fpos_cache): New functions, extracted
21594         from rpl_fflush.
21595         (rpl_fflush): Use them.
21596         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
21597         (gl_REPLACE_FFLUSH): Use it.
21598
21599 2008-04-26  Bruno Haible  <bruno@clisp.org>
21600
21601         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
21602         on Solaris.
21603         * tests/test-xstrtoimax.sh: Likewise.
21604         * tests/test-xstrtoumax.sh: Likewise.
21605         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21606
21607 2008-04-26  Bruno Haible  <bruno@clisp.org>
21608
21609         * modules/memchr-tests: New file.
21610         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
21611
21612 2008-04-26  Eric Blake  <ebb9@byu.net>
21613             Bruno Haible  <bruno@clisp.org>
21614
21615         * lib/memchr.c: Include intprops.h.
21616         (__memchr): Optimize parallel detection of matching bytes. Rename local
21617         variables. Add explanatory comments.
21618
21619 2008-04-26  Bruno Haible  <bruno@clisp.org>
21620
21621         Fix module 'memchr', broken since 2000-10-28.
21622         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
21623
21624 2008-04-26  Bruno Haible  <bruno@clisp.org>
21625
21626         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
21627         comments.
21628
21629 2008-04-25  Eric Blake  <ebb9@byu.net>
21630
21631         Use native fstatat on cygwin 1.7.0.
21632         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
21633         first.
21634
21635 2008-04-23  Eric Blake  <ebb9@byu.net>
21636
21637         Improve memchr2 performance.
21638         * lib/memchr2.c (memchr2): Further optimize parallel detection of
21639         NUL bytes.
21640         * modules/memchr2 (Depends-on): Use intprops.h.
21641
21642 2008-04-23  Simon Josefsson  <simon@josefsson.org>
21643
21644         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
21645         an inline function instead of a CPP macro.  Patch by Ben Pfaff
21646         <blp@cs.stanford.edu>.
21647
21648 2008-04-23  Simon Josefsson  <simon@josefsson.org>
21649
21650         * lib/arpa_inet.in.h: New file.
21651
21652         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
21653         (Makefile.am): Sed in substitute header file.
21654
21655         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
21656         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
21657
21658         * modules/inet_ntop (configure.ac): Use
21659         gl_ARPA_INET_MODULE_INDICATOR.
21660
21661         * modules/inet_pton (configure.ac): Use
21662         gl_ARPA_INET_MODULE_INDICATOR.
21663
21664 2008-04-22  Jim Meyering  <meyering@redhat.com>
21665
21666         * modules/verify (License): Re-license as LGPLv2+.
21667
21668 2008-04-22  Simon Josefsson  <simon@josefsson.org>
21669
21670         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
21671         parameter to void* as per POSIX standard (MinGW uses char*).
21672
21673 2008-04-21  Bruno Haible  <bruno@clisp.org>
21674
21675         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21676         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21677         Define to replacements if REPLACE_ISWCNTRL is 1.
21678         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
21679         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
21680         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
21681         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
21682         what it fixes.
21683         * doc/posix-functions/iswalpha.texi: Likewise.
21684         * doc/posix-functions/iswblank.texi: Likewise.
21685         * doc/posix-functions/iswcntrl.texi: Likewise.
21686         * doc/posix-functions/iswdigit.texi: Likewise.
21687         * doc/posix-functions/iswgraph.texi: Likewise.
21688         * doc/posix-functions/iswlower.texi: Likewise.
21689         * doc/posix-functions/iswprint.texi: Likewise.
21690         * doc/posix-functions/iswpunct.texi: Likewise.
21691         * doc/posix-functions/iswspace.texi: Likewise.
21692         * doc/posix-functions/iswupper.texi: Likewise.
21693         * doc/posix-functions/iswxdigit.texi: Likewise.
21694         Reported by Alain Guibert.
21695
21696 2008-04-21  Bruno Haible  <bruno@clisp.org>
21697
21698         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
21699         Patch by Alain Guibert.
21700
21701 2008-04-21  Bruno Haible  <bruno@clisp.org>
21702
21703         Fix test failures on mingw.
21704         * tests/test-xstrtol.c (print_no_progname): New function.
21705         (main): Install it in error_print_progname hook.
21706         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
21707         * tests/test-xstrtoimax.sh: Likewise.
21708         * tests/test-xstrtoumax.sh: Likewise.
21709
21710 2008-04-21  Bruno Haible  <bruno@clisp.org>
21711
21712         Fix test failure on mingw.
21713         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
21714
21715 2008-04-21  Bruno Haible  <bruno@clisp.org>
21716
21717         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
21718         Actually assign a value.
21719
21720 2008-04-20  Bruno Haible  <bruno@clisp.org>
21721
21722         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
21723         take 2.
21724         * lib/canonicalize.c (canonicalize_file_name): Elide if the
21725         'canonicalize-lgpl' module is also used.
21726         * lib/canonicalize-lgpl.c: Undo last change.
21727         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
21728
21729 2008-04-20  Bruno Haible  <bruno@clisp.org>
21730
21731         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
21732         config.h. Provide _mkdir based fallback for mingw.
21733         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
21734         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
21735         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
21736         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
21737         rather than defining mkdir in config.h.
21738         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
21739         (gl_SYS_STAT_H_DEFAULTS): New macro.
21740         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
21741         HAVE_IO_H any more.
21742         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
21743         HAVE_DECL_MKDIR and HAVE_IO_H.
21744
21745 2008-04-20  Bruno Haible  <bruno@clisp.org>
21746
21747         * lib/isapipe.c: Port to native Windows platforms.
21748
21749 2008-04-20  Bruno Haible  <bruno@clisp.org>
21750
21751         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
21752
21753 2008-04-21  Eric Blake  <ebb9@byu.net>
21754
21755         Work around preprocessors that don't handle UINTMAX_MAX.
21756         * lib/memchr2.c (memchr2): Avoid embedded #if.
21757         Reported by Alain Guibert, fix suggested by Bruno Haible.
21758
21759 2008-04-21  Simon Josefsson  <simon@josefsson.org>
21760
21761         * doc/posix-functions/strftime.texi (strftime): Explain better
21762         Windows incompatibility.  Suggested by Micah Cowan
21763         <micah@cowan.name>.
21764
21765 2008-04-20  Bruno Haible  <bruno@clisp.org>
21766
21767         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
21768         unistr/u8-mblen.
21769
21770 2008-04-20  Bruno Haible  <bruno@clisp.org>
21771
21772         Fix test failure on platforms with non-GNU iconv.
21773         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
21774         (U_TO_U8): Use it, rather than u16_to_u8.
21775         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
21776         units at the end of the input string.
21777         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
21778
21779 2008-04-20  Bruno Haible  <bruno@clisp.org>
21780
21781         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
21782         when the resulting length is 0.
21783         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
21784
21785 2008-04-20  Bruno Haible  <bruno@clisp.org>
21786
21787         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
21788         works.
21789         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
21790
21791 2008-04-20  Bruno Haible  <bruno@clisp.org>
21792
21793         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
21794         * modules/tsearch-tests (configure.ac): Test for initstate function.
21795
21796 2008-04-20  Bruno Haible  <bruno@clisp.org>
21797
21798         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
21799         for nlink_t if missing.
21800         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
21801
21802 2008-04-19  Bruno Haible  <bruno@clisp.org>
21803
21804         Work around snprintf bug on Linux libc5.
21805         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
21806         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21807         gl_SNPRINTF_SIZE1.
21808         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21809         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
21810         that test failed.
21811         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
21812         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
21813         * modules/snprintf (Files): Add m4/printf.m4.
21814         * modules/vsnprintf (Files): Likewise.
21815         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
21816         * doc/posix-functions/vsnprintf.texi: Likewise.
21817
21818 2008-04-19  Bruno Haible  <bruno@clisp.org>
21819
21820         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
21821         from 0.0058 to less than 10^-7.
21822
21823 2008-04-19  Bruno Haible  <bruno@clisp.org>
21824
21825         Fix rounding when a precision is given.
21826         * lib/vasnprintf.c (is_borderline): New function.
21827         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
21828         9...9x.
21829         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
21830         %e, %g.
21831         * tests/test-vasprintf-posix.c (test_function): Likewise.
21832         * tests/test-snprintf-posix.h (test_function): Likewise.
21833         * tests/test-sprintf-posix.h (test_function): Likewise.
21834         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
21835         * tests/test-printf-posix.h (test_function): Likewise.
21836         * tests/test-printf-posix.output: Update.
21837         Reported by John Darrington <john@darrington.wattle.id.au> via
21838         Ben Pfaff <blp@cs.stanford.edu>.
21839
21840 2008-04-18  Simon Josefsson  <simon@josefsson.org>
21841
21842         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
21843         Suggested by Bruno Haible <bruno@clisp.org>.
21844
21845 2008-04-17  Bruno Haible  <bruno@clisp.org>
21846
21847         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
21848         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
21849         implementation.
21850         Patch by Bruce Merry <bmerry@gmail.com>.
21851
21852 2008-04-17  Simon Josefsson  <simon@josefsson.org>
21853
21854         * doc/posix-functions/strftime.texi (strftime): Mention that %e
21855         doesn't work under Windows.
21856
21857 2008-04-16  Bruno Haible  <bruno@clisp.org>
21858
21859         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
21860         New macros.
21861         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
21862         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
21863         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
21864         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
21865         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
21866         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
21867         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
21868         macros.
21869         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
21870         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
21871         Northern Sotho, Uighur.
21872
21873 2008-04-16  Bruno Haible  <bruno@clisp.org>
21874
21875         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
21876         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
21877         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
21878         Reported by Daniel Bergström <daniel@octocode.com>.
21879
21880 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
21881             Bruno Haible  <bruno@clisp.org>
21882
21883         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
21884         function.
21885         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
21886         New functions, mostly extracted from gl_locale_name_default.
21887         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
21888
21889 2008-04-16  Eric Blake  <ebb9@byu.net>
21890
21891         Adjust strtod detection to catch glibc 2.7 bug.
21892         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
21893         Reported by John Gatewood Ham.
21894
21895 2008-04-16  Bruno Haible  <bruno@clisp.org>
21896
21897         Add tentative support for Linux libc5.
21898         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
21899         * lib/fpurge.c (fpurge): Likewise.
21900         * lib/freadable.c (freadable): Likewise.
21901         * lib/freadahead.c (freadahead): Likewise.
21902         * lib/freading.c (freading): Likewise.
21903         * lib/freadptr.c (freadptr): Likewise.
21904         * lib/freadseek.c (freadptrinc): Likewise.
21905         * lib/fseeko.c (rpl_fseeko): Likewise.
21906         * lib/fseterr.c (fseterr): Likewise.
21907         * lib/fwritable.c (fwritable): Likewise.
21908         * lib/fwriting.c (fwriting): Likewise.
21909         Reported by Alain Guibert <alguibert+bts@free.fr>.
21910
21911 2008-04-15  Bruno Haible  <bruno@clisp.org>
21912
21913         * modules/mathl (configure.ac): Define module indicator.
21914
21915 2008-04-15  Bruno Haible  <bruno@clisp.org>
21916
21917         * lib/logl.c (logl): Remove unused variables.
21918
21919 2008-04-15  Bruno Haible  <bruno@clisp.org>
21920
21921         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
21922         fails.
21923
21924 2008-04-15  Bruno Haible  <bruno@clisp.org>
21925
21926         * lib/trim.c (trim2): Fix argument of isspace() macro.
21927
21928 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
21929
21930         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
21931         to 0.
21932         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
21933
21934 2008-04-14  Bruno Haible  <bruno@clisp.org>
21935
21936         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
21937         AC_LANG_PROGRAM argument.
21938         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
21939         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
21940         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21941         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21942         * m4/math_h.m4 (gl_MATH_H): Likewise.
21943         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21944         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21945         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
21946         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
21947         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21948         * m4/regex.m4 (gl_REGEX): Likewise.
21949         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
21950         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
21951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21952         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
21953         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
21954         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21955         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21956         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21957
21958 2008-04-14  Jim Meyering  <meyering@redhat.com>
21959
21960         test-strtod: fix typos: s/abs/fabs/
21961         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
21962
21963 2008-04-13  Bruno Haible  <bruno@clisp.org>
21964
21965         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
21966         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
21967         module is also used and while not building the reloc-wrapper.
21968
21969 2008-04-13  Bruno Haible  <bruno@clisp.org>
21970
21971         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
21972
21973 2008-04-13  Bruno Haible  <bruno@clisp.org>
21974
21975         Fix AIX compilation failure introduced on 2008-04-02.
21976         * tests/test-frexp.c (exp): Undefine before redefining.
21977         * tests/test-frexpl.c (exp): Likewise.
21978
21979 2008-04-13  Bruno Haible  <bruno@clisp.org>
21980
21981         Work around a HP-UX stdio bug.
21982         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
21983         * tests/test-ftello.c (main): Likewise.
21984         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
21985         * doc/posix-functions/ftello.texi: Likewise.
21986
21987 2008-04-13  Bruno Haible  <bruno@clisp.org>
21988
21989         Make test-signbit pass on HP-UX/hppa.
21990         * tests/test-signbit.c (minus_zerol): New variable.
21991         (test_signbitl): Use it.
21992
21993 2008-04-13  Bruno Haible  <bruno@clisp.org>
21994
21995         Make truncl work on OSF/1 4.0.
21996         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
21997         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
21998         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
21999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
22000         HAVE_DECL_TRUNCL.
22001         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
22002         HAVE_DECL_TRUNCL.
22003         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
22004
22005 2008-04-13  Bruno Haible  <bruno@clisp.org>
22006
22007         * lib/unictype.h: Remove trailing comma from enumeration definitions.
22008
22009 2008-04-13  Bruno Haible  <bruno@clisp.org>
22010
22011         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
22012         expression, so as to avoid HP-UX 11 cc compiler bug.
22013
22014 2008-04-13  Bruno Haible  <bruno@clisp.org>
22015
22016         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
22017
22018 2008-04-13  Bruno Haible  <bruno@clisp.org>
22019
22020         * lib/git-merge-changelog.c: Remove empty declaration outside of
22021         functions.
22022
22023 2008-04-13  Bruno Haible  <bruno@clisp.org>
22024
22025         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
22026
22027 2008-04-13  Bruno Haible  <bruno@clisp.org>
22028
22029         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
22030         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
22031         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
22032         also if it exists but lacks definitions of the SHUT_* macros.
22033         * modules/sys_socket (Description): Update.
22034         Reported by Elbert Pol <e.pol@chello.nl>.
22035
22036 2008-04-13  Bruno Haible  <bruno@clisp.org>
22037
22038         * lib/localcharset.c (OS2): Don't redefine if already defined.
22039         Reported by Elbert Pol <e.pol@chello.nl>.
22040
22041 2008-04-13  Bruno Haible  <bruno@clisp.org>
22042
22043         * lib/binary-io.h [__EMX__]: Include <io.h>.
22044         Reported by Elbert Pol <e.pol@chello.nl>.
22045
22046 2008-04-12  Bruno Haible  <bruno@clisp.org>
22047
22048         * lib/fpucw.h: Enable the definitions also for x86_64.
22049         Needed for NetBSD/x86_64.
22050         Reported by Thomas Klausner <tk@giga.or.at>.
22051
22052 2008-04-12  Bruno Haible  <bruno@clisp.org>
22053
22054         * tests/test-strtod.c: Include isnand.h.
22055         (main): Use isnand instead of isnan.
22056         Reported by Jim Meyering.
22057
22058 2008-04-12  Bruno Haible  <bruno@clisp.org>
22059
22060         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
22061         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22062
22063 2008-04-12  Jim Meyering  <meyering@redhat.com>
22064
22065         * m4/math_h.m4 (gl_MATH_H): Fix typos.
22066
22067 2008-04-12  Bruno Haible  <bruno@clisp.org>
22068
22069         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
22070         Reported by Elbert Pol <e.pol@chello.nl>.
22071
22072 2008-04-12  Eric Blake  <ebb9@byu.net>
22073
22074         Work around Solaris 10 math.h bug.
22075         * m4/math_h.m4 (gl_MATH_H): Check for bug.
22076         (gl_MATH_H_DEFAULTS): Set up default.
22077         * modules/math (Makefile.am): Replace new indicators.
22078         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
22079         * tests/test-math.c (main): Test this.
22080         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
22081         * doc/posix-headers/math.texi (math.h): Mention bug.
22082         Reported by Nelson H. F. Beebe and Jim Meyering.
22083
22084 2008-04-11  Bruno Haible  <bruno@clisp.org>
22085
22086         Adapt to future versions of Apple GCC.
22087         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
22088         Reported by Peter O'Gorman <peter@pogma.com>.
22089
22090 2008-04-11  Bruno Haible  <bruno@clisp.org>
22091
22092         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
22093
22094 2008-04-11  Bruno Haible  <bruno@clisp.org>
22095
22096         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
22097
22098         * modules/getaddrinfo-tests (Makefile.am): Define
22099         test_getaddrinfo_LDADD.
22100
22101 2008-04-11  Bruno Haible  <bruno@clisp.org>
22102
22103         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
22104         (init): Fix syntax error.
22105         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
22106         is declared.
22107
22108 2008-04-11  Bruno Haible  <bruno@clisp.org>
22109
22110         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
22111         * modules/glob (Depends-on): Add stdbool.
22112
22113 2008-04-11  Bruno Haible  <bruno@clisp.org>
22114
22115         * lib/trim.c: Include <string.h>.
22116
22117 2008-04-11  Eric Blake  <ebb9@byu.net>
22118
22119         Avoid compile failure on OS/2.
22120         * lib/regex_internal.h (internal_function): Disable optimization
22121         on OS/2 (__EMX__), where it caused compiler error.
22122         Reported by Elbert Pol.
22123
22124 2008-04-11  Bruno Haible  <bruno@clisp.org>
22125
22126         Flush the standard error stream before aborting. Needed on mingw.
22127         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
22128         * tests/test-array_list.c (ASSERT): Likewise.
22129         * tests/test-array_oset.c (ASSERT): Likewise.
22130         * tests/test-avltree_list.c (ASSERT): Likewise.
22131         * tests/test-avltree_oset.c (ASSERT): Likewise.
22132         * tests/test-avltreehash_list.c (ASSERT): Likewise.
22133         * tests/test-binary-io.c (ASSERT): Likewise.
22134         * tests/test-byteswap.c (ASSERT): Likewise.
22135         * tests/test-c-ctype.c (ASSERT): Likewise.
22136         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
22137         * tests/test-c-strcasestr.c (ASSERT): Likewise.
22138         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
22139         * tests/test-c-strstr.c (ASSERT): Likewise.
22140         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
22141         * tests/test-canonicalize.c (ASSERT): Likewise.
22142         * tests/test-carray_list.c (ASSERT): Likewise.
22143         * tests/test-ceilf1.c (ASSERT): Likewise.
22144         * tests/test-ceilf2.c (ASSERT): Likewise.
22145         * tests/test-ceill.c (ASSERT): Likewise.
22146         * tests/test-count-one-bits.c (ASSERT): Likewise.
22147         * tests/test-fbufmode.c (ASSERT): Likewise.
22148         * tests/test-fflush2.c (ASSERT): Likewise.
22149         * tests/test-floorf1.c (ASSERT): Likewise.
22150         * tests/test-floorf2.c (ASSERT): Likewise.
22151         * tests/test-floorl.c (ASSERT): Likewise.
22152         * tests/test-fopen.c (ASSERT): Likewise.
22153         * tests/test-fpending.c (ASSERT): Likewise.
22154         * tests/test-fprintf-posix.c (ASSERT): Likewise.
22155         * tests/test-fpurge.c (ASSERT): Likewise.
22156         * tests/test-freadable.c (ASSERT): Likewise.
22157         * tests/test-freadahead.c (ASSERT): Likewise.
22158         * tests/test-freading.c (ASSERT): Likewise.
22159         * tests/test-freadptr.c (ASSERT): Likewise.
22160         * tests/test-freadptr2.c (ASSERT): Likewise.
22161         * tests/test-freadseek.c (ASSERT): Likewise.
22162         * tests/test-freopen.c (ASSERT): Likewise.
22163         * tests/test-frexp.c (ASSERT): Likewise.
22164         * tests/test-frexpl.c (ASSERT): Likewise.
22165         * tests/test-fseek.c (ASSERT): Likewise.
22166         * tests/test-fseeko.c (ASSERT): Likewise.
22167         * tests/test-fstrcmp.c (ASSERT): Likewise.
22168         * tests/test-ftell.c (ASSERT): Likewise.
22169         * tests/test-ftello.c (ASSERT): Likewise.
22170         * tests/test-func.c (ASSERT): Likewise.
22171         * tests/test-fwritable.c (ASSERT): Likewise.
22172         * tests/test-fwriting.c (ASSERT): Likewise.
22173         * tests/test-getdelim.c (ASSERT): Likewise.
22174         * tests/test-getline.c (ASSERT): Likewise.
22175         * tests/test-i-ring.c (ASSERT): Likewise.
22176         * tests/test-iconv-utf.c (ASSERT): Likewise.
22177         * tests/test-iconv.c (ASSERT): Likewise.
22178         * tests/test-isfinite.c (ASSERT): Likewise.
22179         * tests/test-isnand.c (ASSERT): Likewise.
22180         * tests/test-isnanf.c (ASSERT): Likewise.
22181         * tests/test-isnanl.h (ASSERT): Likewise.
22182         * tests/test-ldexpl.c (ASSERT): Likewise.
22183         * tests/test-linked_list.c (ASSERT): Likewise.
22184         * tests/test-linkedhash_list.c (ASSERT): Likewise.
22185         * tests/test-localename.c (ASSERT): Likewise.
22186         * tests/test-lseek.c (ASSERT): Likewise.
22187         * tests/test-mbscasecmp.c (ASSERT): Likewise.
22188         * tests/test-mbscasestr1.c (ASSERT): Likewise.
22189         * tests/test-mbscasestr2.c (ASSERT): Likewise.
22190         * tests/test-mbscasestr3.c (ASSERT): Likewise.
22191         * tests/test-mbscasestr4.c (ASSERT): Likewise.
22192         * tests/test-mbschr.c (ASSERT): Likewise.
22193         * tests/test-mbscspn.c (ASSERT): Likewise.
22194         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
22195         * tests/test-mbspbrk.c (ASSERT): Likewise.
22196         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
22197         * tests/test-mbsrchr.c (ASSERT): Likewise.
22198         * tests/test-mbsspn.c (ASSERT): Likewise.
22199         * tests/test-mbsstr1.c (ASSERT): Likewise.
22200         * tests/test-mbsstr2.c (ASSERT): Likewise.
22201         * tests/test-mbsstr3.c (ASSERT): Likewise.
22202         * tests/test-memchr2.c (ASSERT): Likewise.
22203         * tests/test-memmem.c (ASSERT): Likewise.
22204         * tests/test-open.c (ASSERT): Likewise.
22205         * tests/test-printf-frexp.c (ASSERT): Likewise.
22206         * tests/test-printf-frexpl.c (ASSERT): Likewise.
22207         * tests/test-printf-posix.c (ASSERT): Likewise.
22208         * tests/test-quotearg.c (ASSERT): Likewise.
22209         * tests/test-rbtree_list.c (ASSERT): Likewise.
22210         * tests/test-rbtree_oset.c (ASSERT): Likewise.
22211         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
22212         * tests/test-round1.c (ASSERT): Likewise.
22213         * tests/test-roundf1.c (ASSERT): Likewise.
22214         * tests/test-roundl.c (ASSERT): Likewise.
22215         * tests/test-signbit.c (ASSERT): Likewise.
22216         * tests/test-sleep.c (ASSERT): Likewise.
22217         * tests/test-snprintf-posix.c (ASSERT): Likewise.
22218         * tests/test-snprintf.c (ASSERT): Likewise.
22219         * tests/test-sprintf-posix.c (ASSERT): Likewise.
22220         * tests/test-stat-time.c (ASSERT): Likewise.
22221         * tests/test-strcasestr.c (ASSERT): Likewise.
22222         * tests/test-strerror.c (ASSERT): Likewise.
22223         * tests/test-striconv.c (ASSERT): Likewise.
22224         * tests/test-striconveh.c (ASSERT): Likewise.
22225         * tests/test-striconveha.c (ASSERT): Likewise.
22226         * tests/test-strsignal.c (ASSERT): Likewise.
22227         * tests/test-strstr.c (ASSERT): Likewise.
22228         * tests/test-strtod.c (ASSERT): Likewise.
22229         * tests/test-trunc1.c (ASSERT): Likewise.
22230         * tests/test-trunc2.c (ASSERT): Likewise.
22231         * tests/test-truncf1.c (ASSERT): Likewise.
22232         * tests/test-truncf2.c (ASSERT): Likewise.
22233         * tests/test-truncl.c (ASSERT): Likewise.
22234         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
22235         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
22236         * tests/test-vasnprintf.c (ASSERT): Likewise.
22237         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
22238         * tests/test-vasprintf.c (ASSERT): Likewise.
22239         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
22240         * tests/test-vprintf-posix.c (ASSERT): Likewise.
22241         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
22242         * tests/test-vsnprintf.c (ASSERT): Likewise.
22243         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
22244         * tests/test-wcwidth.c (ASSERT): Likewise.
22245         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
22246         * tests/test-xprintf-posix.c (ASSERT): Likewise.
22247         * tests/test-xvasprintf.c (ASSERT): Likewise.
22248         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
22249         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
22250         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
22251         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
22252         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
22253         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
22254         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
22255         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
22256         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
22257         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
22258         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
22259         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
22260         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
22261         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
22262         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
22263         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
22264         * tests/unictype/test-block_list.c (ASSERT): Likewise.
22265         * tests/unictype/test-block_of.c (ASSERT): Likewise.
22266         * tests/unictype/test-block_test.c (ASSERT): Likewise.
22267         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
22268         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
22269         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
22270         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
22271         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
22272         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
22273         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
22274         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
22275         * tests/unictype/test-combining.c (ASSERT): Likewise.
22276         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
22277         * tests/unictype/test-digit.c (ASSERT): Likewise.
22278         * tests/unictype/test-mirror.c (ASSERT): Likewise.
22279         * tests/unictype/test-numeric.c (ASSERT): Likewise.
22280         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
22281         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
22282         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
22283         * tests/unictype/test-scripts.c (ASSERT): Likewise.
22284         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
22285         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
22286         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
22287         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
22288         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
22289         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
22290         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
22291         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
22292         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
22293         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
22294         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
22295         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
22296         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
22297         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
22298         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
22299         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
22300         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
22301         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
22302         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
22303         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
22304         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
22305         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
22306         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
22307         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
22308         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
22309         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
22310         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
22311         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
22312         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
22313         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
22314         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
22315         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
22316         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
22317         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
22318         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
22319         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
22320         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
22321         Reported by Eric Blake.
22322
22323 2008-04-11  Bruno Haible  <bruno@clisp.org>
22324
22325         * lib/wchar.in.h: Tweak comment.
22326
22327 2008-04-11  Bruno Haible  <bruno@clisp.org>
22328
22329         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
22330         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
22331         gl_COMMON.
22332         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
22333
22334 2008-04-11  Bruno Haible  <bruno@clisp.org>
22335
22336         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
22337
22338 2008-04-11  Simon Josefsson  <simon@josefsson.org>
22339
22340         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
22341         of attempting to use non-existing /dev/*random.  Based on patch
22342         from Adam Strzelecki <ono@java.pl> in
22343         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
22344
22345 2008-04-08  Bruno Haible  <bruno@clisp.org>
22346
22347         Add tentative support for emx+gcc.
22348         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
22349         * lib/fpurge.c (fpurge): Likewise.
22350         * lib/freadable.c (freadable): Likewise.
22351         * lib/freadahead.c (freadahead): Likewise.
22352         * lib/freading.c (freading): Likewise.
22353         * lib/freadptr.c (freadptr): Likewise.
22354         * lib/freadseek.c (freadptrinc): Likewise.
22355         * lib/fseeko.c (rpl_fseeko): Likewise.
22356         * lib/fseterr.c (fseterr): Likewise.
22357         * lib/fwritable.c (fwritable): Likewise.
22358         * lib/fwriting.c (fwriting): Likewise.
22359         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
22360
22361 2008-04-09  Eric Blake  <ebb9@byu.net>
22362
22363         Avoid some autoconf warnings.
22364         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
22365         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
22366         * m4/afs.m4 (gl_AFS): Likewise.
22367         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
22368         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
22369         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22370         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
22371         (gl_INTEGER_TYPE_SUFFIX): Likewise.
22372         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
22373         (AC_CHECK_DECLS_ONCE): Likewise.
22374         Rename file...
22375         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
22376         gnulib-tool requires autoconf 2.59 or better.
22377         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
22378
22379 2008-04-08  Eric Blake  <ebb9@byu.net>
22380
22381         Use 'git describe --match' if present (added in git 1.5.5).
22382         * build-aux/git-version-gen: Limit result to tags that match 'v*'
22383         if possible.
22384
22385 2008-04-08  Bruno Haible  <bruno@clisp.org>
22386
22387         Add tentative support for OpenServer.
22388         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
22389         _ptr, _cnt.
22390         * lib/fpurge.c (fpurge): Likewise.
22391         * lib/freadable.c (freadable): Likewise.
22392         * lib/freadahead.c (freadahead): Likewise.
22393         * lib/freading.c (freading): Likewise.
22394         * lib/freadptr.c (freadptr): Likewise.
22395         * lib/freadseek.c (freadptrinc): Likewise.
22396         * lib/fseeko.c (rpl_fseeko): Likewise.
22397         * lib/fseterr.c (fseterr): Likewise.
22398         * lib/fwritable.c (fwritable): Likewise.
22399         * lib/fwriting.c (fwriting): Likewise.
22400         Reported by Roger Cornelius <rac@tenzing.org> and
22401         Brian K. White <brian@aljex.com>.
22402
22403 2008-04-06  Jim Meyering  <meyering@redhat.com>
22404
22405         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
22406
22407 2008-04-06  Bruno Haible  <bruno@clisp.org>
22408
22409         Avoid possible error with non-ASCII bytes in UTF-8 locales.
22410         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
22411         * tests/test-printf-posix.sh: Likewise.
22412         * tests/test-vfprintf-posix.sh: Likewise.
22413         * tests/test-vprintf-posix.sh: Likewise.
22414         * tests/test-xprintf-posix.sh: Likewise.
22415
22416 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22417
22418         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
22419         hide error from 'ls', needed on OS/2.
22420         Report by Elbert Pol <elbert.pol@gmail.com>.
22421
22422 2008-04-04  Eric Blake  <ebb9@byu.net>
22423
22424         Make test-fseeko.c failures meaningful.
22425         * tests/test-fseeko.c: Print line number on failure.
22426         * tests/test-fseek.c: Likewise.
22427         Reported by Nelson H. F. Beebe.
22428
22429         Improve strtod bug detection check.
22430         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
22431         required for Solaris 10.
22432         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
22433
22434 2008-04-04  Bruno Haible  <bruno@clisp.org>
22435
22436         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
22437         by m4/setenv.m4.
22438
22439 2008-04-03  Eric Blake  <ebb9@byu.net>
22440
22441         Ensure sane .version contents.
22442         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
22443         version string.
22444         * build-aux/git-version-gen: Improve documentation.
22445
22446         Make GNU make output nicer.
22447         * top/GNUmakefile [!_have-Makefile]: Add dependency on
22448         MAKECMDGOALS to enforce message for all command line targets.  Set
22449         srcdir for use in maint.mk.
22450
22451         Another maintainer tweak.
22452         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
22453         a target that regenerates version.
22454
22455 2008-04-03  Jim Meyering  <meyering@redhat.com>
22456
22457         vc-list-files: don't cause coreutils "make po-check" failure
22458         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
22459
22460 2008-04-03  Eric Blake  <ebb9@byu.net>
22461
22462         Allow VPATH usage of vc-list-files.
22463         * build-aux/vc-list-files (scriptversion): Add timestamp.
22464         (options): Add --help, --version, -C.
22465         (CVS): Support installed cvsu.
22466
22467 2008-04-02  Bruno Haible  <bruno@clisp.org>
22468
22469         Avoid some "statement with no effect" warnings from gcc.
22470         * tests/test-wctype.c (main): Explicitly ignore unused values.
22471         Reported by Jim Meyering.
22472
22473 2008-04-02  Jim Meyering  <meyering@redhat.com>
22474
22475         Avoid some warnings from "gcc -Wshadow".
22476         * tests/test-frexp.c (exp): Define to a different identifier.
22477         * tests/test-frexpl.c (exp): Likewise.
22478
22479 2008-04-03  Jim Meyering  <meyering@redhat.com>
22480
22481         bootstrap: remove dangling *.[ch] symlinks from lib
22482         * build-aux/bootstrap [dangling symlink removal]: Move find's
22483         -depth option to precede all others, to avoid a warning.
22484         Remove *.[ch] files too, and from "$source_base" (usually lib/).
22485
22486 2008-04-02  Bruno Haible  <bruno@clisp.org>
22487
22488         Avoid some warnings from "gcc -Wshadow".
22489         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
22490         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
22491         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
22492         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
22493         Reported by Jim Meyering.
22494
22495 2008-04-01  Bruno Haible  <bruno@clisp.org>
22496
22497         Fix test to work on IRIX 6.5 with cc.
22498         * tests/test-math.c (numeric_equal): New function.
22499         (main): Use it.
22500
22501 2008-04-01  Bruno Haible  <bruno@clisp.org>
22502
22503         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
22504
22505 2008-04-01  Bruno Haible  <bruno@clisp.org>
22506
22507         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
22508         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22509         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
22510         (Depends-on): Remove math.
22511
22512         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
22513         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22514         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
22515         (Depends-on): Remove math.
22516
22517         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
22518         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22519         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
22520         (Depends-on): Remove math.
22521         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
22522         (Depends-on): Remove math.
22523
22524         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
22525         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22526         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
22527         (Depends-on): Remove math.
22528         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
22529         (Depends-on): Remove math.
22530
22531         * tests/test-round1.c: Include nan.h.
22532         (main): Use NaNd instead of NAN.
22533         * modules/round-tests (Files): Add tests/nan.h.
22534
22535         * tests/test-trunc1.c: Include nan.h.
22536         (main): Use NaNd instead of NAN.
22537         * modules/trunc-tests (Files): Add tests/nan.h.
22538
22539         * tests/test-roundf1.c: Include nan.h.
22540         (main): Use NaNf instead of NAN.
22541         * modules/roundf-tests (Files): Add tests/nan.h.
22542
22543         * tests/test-truncf1.c: Include nan.h.
22544         (main): Use NaNf instead of NAN.
22545         * modules/truncf-tests (Files): Add tests/nan.h.
22546
22547         * tests/test-ceilf1.c: Include nan.h.
22548         (main): Use NaNf instead of NAN.
22549         * modules/ceilf-tests (Files): Add tests/nan.h.
22550
22551         * tests/test-floorf1.c: Include nan.h.
22552         (main): Use NaNf instead of NAN.
22553         * modules/floorf-tests (Files): Add tests/nan.h.
22554
22555         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
22556         (main): Use NaNf instead of NAN.
22557         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
22558
22559         * tests/test-isnand.c: Include nan.h instead of <math.h>.
22560         (main): Use NaNd instead of NAN.
22561         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
22562
22563         * tests/test-frexp.c: Include nan.h.
22564         (main): Use NaNd instead of NAN.
22565         * modules/frexp-tests (Files): Add tests/nan.h.
22566
22567         * lib/isnan.c: Don't include <math.h>.
22568         (FUNC): Don't use NAN macro.
22569         * modules/isnand-nolibm (Depends-on): Remove math.
22570         * modules/isnanf-nolibm (Depends-on): Remove math.
22571         * modules/isnanl (Depends-on): Remove math.
22572         * modules/isnanl-nolibm (Depends-on): Remove math.
22573
22574         * tests/nan.h: New file.
22575
22576 2008-04-01  Eric Blake  <ebb9@byu.net>
22577
22578         Fix typos.
22579         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
22580         values to be the right type.
22581
22582         For now, cater to gnulib strtod inaccuracies.
22583         * tests/test-strtod.c (main): Allow 1-ulp error on expected
22584         fractional results.  While not as nice from a QoI perspective, it
22585         is a quicker patch than correctly implementing decimal to binary
22586         rounding.
22587
22588 2008-03-31  Eric Blake  <ebb9@byu.net>
22589
22590         Guarantee a definition of NAN.
22591         * lib/math.in.h (NAN): Define if missing.
22592         * tests/test-math.c (main): Test it.
22593         * doc/posix-headers/math.texi (math.h): Document this.
22594         * lib/isnan.c (rpl_isnand): Use it.
22595         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
22596         * tests/test-floorf1.c (NaN): Likewise.
22597         * tests/test-frexp.c (NaN): Likewise.
22598         * tests/test-isnand.c (NaN): Likewise.
22599         * tests/test-isnanf.c (NaN): Likewise.
22600         * tests/test-round1.c (NaN): Likewise.
22601         * tests/test-roundf1.c (NaN): Likewise.
22602         * tests/test-snprintf-posix.h (NaN): Likewise.
22603         * tests/test-sprintf-posix.h (NaN): Likewise.
22604         * tests/test-trunc1.c (NaN): Likewise.
22605         * tests/test-truncf1.c (NaN): Likewise.
22606         * tests/test-vasnprintf-posix.c (NaN): Likewise.
22607         * tests/test-vasprintf-posix.c (NaN): Likewise.
22608         * modules/isnand-nolibm (Depends-on): Add math.
22609         * modules/isnanf-nolibm (Depends-on): Likewise.
22610         * modules/isnanl (Depends-on): Likewise.
22611         * modules/isnanl-nolibm (Depends-on): Likewise.
22612         * modules/snprintf-posix-tests (Depends-on): Likewise.
22613         * modules/sprintf-posix-tests (Depends-on): Likewise.
22614         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
22615         * modules/vsprintf-posix-tests (Depends-on): Likewise.
22616         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
22617         * modules/vasprintf-posix-tests (Depends-on): Likewise.
22618
22619 2008-03-31  Bruno Haible  <bruno@clisp.org>
22620
22621         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
22622         * doc/posix-functions/strtod.texi: Likewise.
22623
22624 2008-03-31  Bruno Haible  <bruno@clisp.org>
22625
22626         * tests/test-strtod.c (main): Don't use C99 syntax.
22627
22628 2008-03-31  Bruno Haible  <bruno@clisp.org>
22629
22630         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
22631         Reported by Eric Blake.
22632
22633 2008-03-31  Jim Meyering  <meyering@redhat.com>
22634
22635         Don't compare actual signbit return values.
22636         * tests/test-strtod.c (main): Rather, compare only their
22637         zero/non-zero nature.
22638
22639 2008-03-31  Eric Blake  <ebb9@byu.net>
22640
22641         More strtod documentation.
22642         * doc/posix-functions/strtod.texi (strtod): Interpret more test
22643         failures as distinct bugs.
22644
22645 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
22646
22647         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
22648         Problem reported by Erik Benada in
22649         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
22650
22651 2008-03-30  Bruno Haible  <bruno@clisp.org>
22652
22653         * tests/test-strtod.c: Add comments about which assertion fails on which
22654         platform.
22655         * doc/posix-functions/strtod.texi: Add info about many more platforms.
22656
22657 2008-03-30  Eric Blake  <ebb9@byu.net>
22658
22659         Test signbit behavior on zeros.
22660         * tests/test-signbit.c (test_signbitf): Add tests for zero.
22661         (test_signbitd, test_signbitl): Likewise.
22662
22663         More strtod touchups.
22664         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
22665         sign of negative underflow, for now.  Use .5, not .1.
22666         * doc/posix-functions/strtod.texi (strtod): Mention these
22667         limitations.
22668         Reported by Jim Meyering.
22669
22670 2008-03-30  Bruno Haible  <bruno@clisp.org>
22671
22672         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
22673         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
22674
22675 2008-03-30  Bruno Haible  <bruno@clisp.org>
22676
22677         Avoid failure when attempting to return empty iconv results on some
22678         platforms.
22679         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
22680         allocation, don't report ENOMEM when the resulting string is empty.
22681
22682 2008-03-30  Bruno Haible  <bruno@clisp.org>
22683
22684         Fix buffer overrun.
22685         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
22686         Don't consider the width for tmp_length. Check count against tmp_length
22687         before doing the padding. Ensure enough allocation during padding.
22688
22689 2008-03-30  Eric Blake  <ebb9@byu.net>
22690
22691         strtod touchups.
22692         * lib/strtod.c (strtod): Avoid compiler warnings.
22693         Reported by Jim Meyering.
22694
22695 2008-03-30  Bruno Haible  <bruno@clisp.org>
22696
22697         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
22698         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
22699         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
22700         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
22701         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
22702         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
22703         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
22704         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
22705
22706         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
22707         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
22708         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
22709         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
22710         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
22711         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
22712         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
22713         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
22714
22715         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
22716         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
22717         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
22718         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
22719         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
22720         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
22721         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
22722         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
22723
22724         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
22725         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
22726
22727         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
22728         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
22729
22730         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
22731         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
22732
22733         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
22734         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
22735         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
22736
22737         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
22738         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
22739         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
22740
22741         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
22742         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
22743         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
22744
22745         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
22746         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
22747         * modules/vasprintf (Depends-on): Add EOVERFLOW.
22748
22749         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
22750         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
22751         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
22752         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
22753         (Depends-on): Add EOVERFLOW.
22754         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
22755         (Depends-on): Add EOVERFLOW.
22756         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22757         (Depends-on): Add EOVERFLOW.
22758         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22759         (Depends-on): Add EOVERFLOW.
22760         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22761         (Depends-on): Add EOVERFLOW.
22762         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22763         (Depends-on): Add EOVERFLOW.
22764         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22765         (Depends-on): Add EOVERFLOW.
22766         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22767         (Depends-on): Add EOVERFLOW.
22768
22769         * lib/sprintf.c (EOVERFLOW): Remove fallback.
22770         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
22771         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
22772
22773         * lib/snprintf.c (EOVERFLOW): Remove fallback.
22774         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
22775         * modules/snprintf (Depends-on): Add EOVERFLOW.
22776
22777         * lib/poll.c (EOVERFLOW): Remove fallback.
22778         * modules/poll (Depends-on): Add EOVERFLOW.
22779
22780         * lib/getugroups.c (EOVERFLOW): Remove fallback.
22781         * modules/getugroups (Depends-on): Add EOVERFLOW.
22782
22783         * lib/getdelim.c (EOVERFLOW): Remove fallback.
22784         * modules/getdelim (Depends-on): Add EOVERFLOW.
22785
22786         * lib/ftell.c (EOVERFLOW): Remove fallback.
22787         * modules/ftell (Depends-on): Add EOVERFLOW.
22788
22789         * lib/fprintf.c (EOVERFLOW): Remove fallback.
22790         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
22791         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
22792
22793         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
22794
22795         * modules/EOVERFLOW-tests: New file.
22796         * tests/test-EOVERFLOW.c: New file.
22797
22798         * modules/EOVERFLOW: New file.
22799         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
22800
22801 2008-03-30  Bruno Haible  <bruno@clisp.org>
22802
22803         Fix bug introduced on 2007-06-10.
22804         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
22805         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
22806
22807 2008-03-30  Bruno Haible  <bruno@clisp.org>
22808
22809         Improve freadseek's efficiency after ungetc.
22810         * lib/freadseek.c: Include freadahead.h.
22811         (freadptrinc): New function, extracted from freadseek.
22812         (freadseek): Use it in a loop. Use freadahead to determine the number
22813         of loop iterations.
22814         * modules/freadseek (Depends-on): Add freadahead.
22815         (configure.ac): Require AC_C_INLINE.
22816
22817 2008-03-30  Bruno Haible  <bruno@clisp.org>
22818
22819         * lib/freadseek.c (freadseek): Don't ignore the return value of
22820         freadptr.
22821
22822 2008-03-29  Eric Blake  <ebb9@byu.net>
22823
22824         Add hex float support.
22825         * modules/strtod (Depends-on): Add c-ctype.
22826         (Link): Mention POW_LIB.
22827         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
22828         whitespace between 'e' and exponent.
22829         * tests/test-strtod.c (main): Enable hex float tests.
22830         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
22831         now provides.
22832
22833         Document various strtod bugs, with some fixes.
22834         * doc/posix-functions/strtod.texi (strtod): Document bugs with
22835         "-0x", "inf", "nan", and hex constants.
22836         * doc/posix-functions/atof.texi (atof): Likewise.
22837         * modules/stdlib (Makefile.am): Support strtod.
22838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22839         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
22840         detect additional strtod bugs.
22841         * lib/stdlib.in.h (rpl_strtod): Add declarations.
22842         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
22843         bool where appropriate.  Parse 'inf' and 'nan'.
22844         * tests/test-strtod.c: New file.
22845         * modules/strtod (Depends-on): Add stdbool, stdlib.
22846         (configure.ac): Turn on module indicator.
22847         * modules/strtod-tests: New module.
22848
22849 2008-03-29  Eric Blake  <ebb9@byu.net>
22850
22851         Fix ftell on mingw.
22852         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
22853         * modules/ftell-tests (Depends-on): Add binary-io.
22854         * modules/ftello-tests (Depends-on): Likewise.
22855         * tests/test-ftell.c (main): Enhance test to cover behavior after
22856         ungetc.  Enforce binary mode.
22857         * tests/test-ftello.c (main): Likewise.
22858
22859         Pass test-freadseek on cygwin.
22860         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
22861         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
22862         ungetc buffer.
22863
22864         * tests/test-fflush2.c (main): Fix typo.
22865
22866 2008-03-29  Bruno Haible  <bruno@clisp.org>
22867
22868         * tests/test-fflush2.c (main): Temporarily disable the contents of
22869         this test.
22870         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
22871         Reported by Eric Blake.
22872
22873 2008-03-28  Simon Josefsson  <simon@josefsson.org>
22874
22875         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
22876         (GC_SHA224_DIGEST_SIZE): Add.
22877
22878         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
22879         (gc_hash_digest_length): Likewise.
22880         (gc_hash_buffer): Likewise.
22881
22882 2008-03-25  Bruno Haible  <bruno@clisp.org>
22883
22884         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
22885         detail which gettext release to use.
22886         Reported by Simon Josefsson.
22887
22888 2008-03-26  Jim Meyering  <meyering@redhat.com>
22889
22890         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
22891         * modules/gnumakefile (clean-GNUmakefile): Also, use
22892         test ... && ... || : syntax rather than if-then ... fi.
22893
22894         gnumakefile: Don't double-quote-expand $(VPATH) value.
22895         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
22896
22897 2008-03-24  Eric Blake  <ebb9@byu.net>
22898
22899         Alter GNUmakefile to install into top directory.
22900         * modules/maintainer-makefile: Split, and add dependency...
22901         * modules/gnumakefile: to this new module.
22902         * build-aux/GNUmakefile: Move...
22903         * top/GNUmakefile: ...here.
22904         * build-aux/maint.mk: Move...
22905         * top/maint.mk: ...here.
22906         * MODULES.html.sh (Support for maintaining...): Document new
22907         module.
22908
22909 2008-03-23  Bruno Haible  <bruno@clisp.org>
22910
22911         * gnulib-tool: New options --vc-files, --no-vc-files.
22912         (func_usage): Document them.
22913         (vc_files): New variable.
22914         (func_import): Consider vc_files.
22915         (func_create_testdir): Set vc_files to empty.
22916         Suggested by Jim Meyering and Karl Berry.
22917
22918 2008-03-23  Bruno Haible  <bruno@clisp.org>
22919
22920         Fix regex compilation error on HP-UX 11.
22921         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
22922         * modules/regex (Files): Add m4/mbstate_t.m4.
22923         Reported by Ton Voon <ton.voon@altinity.com>.
22924
22925 2008-03-23  Bruno Haible  <bruno@clisp.org>
22926
22927         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
22928
22929 2008-03-23  Eric Blake  <ebb9@byu.net>
22930             Bruno Haible  <bruno@clisp.org>
22931
22932         Install files from top/ in the destination directory.
22933         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
22934         augmentation also for the files from top/.
22935         (func_import, func_create_testdir): Rewrite file names:
22936         top/filename -> filename.
22937
22938 2008-03-23  Bruno Haible  <bruno@clisp.org>
22939
22940         Tweak "gnulib --version" output.
22941         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
22942
22943 2008-03-23  Bruno Haible  <bruno@clisp.org>
22944
22945         Tweak "gnulib --version" output.
22946         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
22947         rather than contents of ChangeLog, when possible.
22948
22949 2008-03-21  Eric Blake  <ebb9@byu.net>
22950
22951         More --version tweaks.
22952         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
22953         date of last ChangeLog entry.
22954
22955 2008-03-21  Jim Meyering  <meyering@redhat.com>
22956
22957         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
22958
22959 2008-03-20  Eric Blake  <ebb9@byu.net>
22960
22961         VPATH fix.
22962         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
22963
22964 2008-03-20  Simon Josefsson  <simon@josefsson.org>
22965
22966         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
22967         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
22968
22969 2008-03-20  Eric Blake  <ebb9@byu.net>
22970
22971         Sync GNUmakefile with coreutils.
22972         * build-aux/GNUmakefile (have-Makefile): Rename...
22973         (_have-Makefile): ...to this, for namespace consideration.
22974         (GNUmakefile.cfg): Include, if present.
22975         (_autoreconf): Define a default.
22976         (_is-dist-target): New rule for rebuilds to pick up intra-release
22977         version.
22978         (maint-cfg.mk): Rename...
22979         (cfg.mk): ...to this.
22980
22981 2008-03-18  Jim Meyering  <meyering@redhat.com>
22982
22983         New script and module: mktempd
22984         * MODULES.html.sh (maint+release support): Add mktempd.
22985         * build-aux/mktempd: New file.
22986         * modules/mktempd: New file.
22987
22988 2008-03-15  Jim Meyering  <meyering@redhat.com>
22989
22990         Undo last change.
22991         * lib/sha1.c, lib/md5.c: 63 != ~63.
22992         Reported by Andreas Schwab.
22993
22994         sha1.c, md5.c: Hoist a redundant expression.
22995         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
22996         "ctx->buflen" only once, before calling *_process_block.
22997         * lib/md5.c (md5_process_bytes): Likewise.
22998
22999 2008-03-14  Eric Blake  <ebb9@byu.net>
23000
23001         Bump copyright year in files generated by gnulib-tool.
23002         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
23003         gnulib-tool, rather than hard-coding it.
23004
23005         Fix 'gnulib-tool --version' output to work with git.
23006         * gnulib-tool (func_gnulib_dir): New function, extracted from...
23007         (startup): ...here.
23008         (func_version): Use it to invoke git-version-gen, rather than
23009         relying on CVS keyword expansion.  Modernize wording.
23010         (cvsdatestamp, last_checkin_date, version): Kill unused
23011         variables.
23012
23013 2008-03-12  Jim Meyering  <meyering@redhat.com>
23014
23015         Recognize optional cast of the argument to free.
23016         * build-aux/useless-if-before-free: Update regexps.
23017
23018         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
23019
23020 2008-03-11  Bruno Haible  <bruno@clisp.org>
23021
23022         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
23023         by a single package.
23024         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
23025         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
23026         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
23027         Reported by Sam Steingold <sds@gnu.org>.
23028
23029 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23030
23031         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
23032         repositories.
23033
23034 2008-03-11  Bruno Haible  <bruno@clisp.org>
23035
23036         Avoid conflicts between local macro definitions.
23037         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23038         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
23039
23040 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
23041             Bruno Haible  <bruno@clisp.org>
23042
23043         Make va_copy work with some version of xlc on AIX 5.1.
23044         * lib/stdarg.in.h: New file.
23045         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
23046         On AIX, use a <stdarg.h> file substitute.
23047         * modules/stdarg (Files): Add lib/stdarg.in.h.
23048         (Depends-on): Add include_next.
23049         (Makefile.am): Build a stdarg.h substitute if requested.
23050         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
23051
23052 2008-03-10  Bruno Haible  <bruno@clisp.org>
23053
23054         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
23055         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23056         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23057
23058 2008-03-10  Bruno Haible  <bruno@clisp.org>
23059
23060         * modules/stdlib (Depends-on): Add include_next, remove
23061         absolute-header.
23062
23063 2008-03-09  Bruno Haible  <bruno@clisp.org>
23064
23065         * lib/freadahead.h (freadahead): Document more precisely.
23066         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
23067         the sum of both buffer sizes.
23068         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
23069         * NEWS: Document the change.
23070
23071 2008-03-09  Bruno Haible  <bruno@clisp.org>
23072
23073         Extend freadptr to return also the buffer size.
23074         * lib/freadptr.h (freadptr): Add sizep argument.
23075         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
23076         (freadptr): Add sizep argument. Determine buffer size like freadahead
23077         does.
23078         * tests/test-freadptr.c: Don't include freadahead.h.
23079         (main): Adapt for new calling convention of freadptr.
23080         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
23081         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
23082         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
23083         tests/test-freadptr2.sh.
23084         (Depends): Remove freadahead.
23085         (TESTS): Add test-freadptr2.sh.
23086         (check_PROGRAMS): Add test-freadptr2.
23087
23088 2008-03-09  Bruno Haible  <bruno@clisp.org>
23089
23090         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
23091         Report and solution by Simon Josefsson.
23092
23093 2008-03-06  Bruno Haible  <bruno@clisp.org>
23094
23095         Make fflush after ungetc work on BSD platforms.
23096         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
23097         * tests/test-fflush2.c: New file.
23098         * tests/test-fflush2.sh: New file.
23099         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
23100         tests/test-fflush2.c.
23101         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
23102         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
23103
23104 2008-03-06  Eric Blake  <ebb9@byu.net>
23105
23106         Likewise for ftello.
23107         * modules/ftello (Dependencies): Add extensions.
23108         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
23109
23110 2008-03-06  Bruno Haible  <bruno@clisp.org>
23111
23112         * modules/fseeko (Dependencies): Add extensions.
23113         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
23114         Needed on glibc systems.
23115
23116 2008-03-06  Bruno Haible  <bruno@clisp.org>
23117
23118         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
23119         email address.
23120         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23121
23122 2008-03-06  Bruno Haible  <bruno@clisp.org>
23123
23124         * users.txt: Add libgnupdf.
23125
23126 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23127
23128         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
23129         (Header File Substitutes, Function Substitutes,
23130         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
23131         (Build robot for gnulib): Fix typo.
23132
23133 2008-03-06  Bruno Haible  <bruno@clisp.org>
23134
23135         * doc/gnulib-tool.texi (VCS Issues): Small updates.
23136         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23137
23138 2008-03-06  Bruno Haible  <bruno@clisp.org>
23139
23140         * doc/func.texi: New file, extracted from doc/gnulib.texi.
23141         * doc/gnulib.texi: Include it.
23142
23143 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23144
23145         * modules/func (License): Change license to unlimited; there was
23146         no LGPL parts in the module anyway.
23147
23148 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23149
23150         * modules/__func__: Renamed to modules/func.
23151         * modules/__func__-tests: Renamed to modules/func-tests.
23152         * tests/test-__func__.c: Renamed to tests/test-func.c.
23153         * m4/__func__.m4: Renamed to m4/func.m4.
23154         * doc/gnulib.texi (__func__): Section renamed to func.
23155         Suggested by Eric Blake <ebb9@byu.net>.
23156
23157 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23158
23159         * doc/gnulib.texi (__func__): Use C99 terminology when talking
23160         about __func__.  Make example self-contained.  Suggested by Eric
23161         Blake <ebb9@byu.net>.
23162
23163         * tests/test-__func__.c (main): Avoid extraneous () around __func.
23164         Suggested by Eric Blake <ebb9@byu.net>.
23165
23166 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23167
23168         * modules/__func__: New file.
23169         * modules/__func__-tests: New file.
23170         * tests/test-__func__.c: New file.
23171         * m4/__func__.m4: New file.
23172         * doc/gnulib.texi (__func__): Document __func__ module.
23173
23174 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23175
23176         * modules/byteswap (License): Re-license as LGPLv2+.
23177
23178 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23179
23180         * doc/Makefile: Add pdf target.
23181
23182 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23183
23184         * modules/inline (License): Use 'unlimited', since there are only
23185         *.m4 files in this module.
23186
23187 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
23188             Bruno Haible  <bruno@clisp.org>
23189
23190         Add support for HP C 7.1 on OpenVMS 8.3.
23191         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
23192
23193 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
23194
23195         Update VMS specifics.
23196         * lib/getopt.c [VMS]: Remove include of unixlib.h.
23197
23198 2008-03-02  Jim Meyering  <meyering@redhat.com>
23199
23200         Remove the last dependency on the "free" module.
23201         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
23202         Reported by Bob Proulx.
23203
23204         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
23205
23206         Remove useless "if" tests before free.  Deprecate "free" module.
23207         * doc/posix-functions/free.texi: Mention that this
23208         module is no longer useful.
23209         * modules/free (Notice): Say this module is obsolete.
23210         * modules/readutmp (Depends-on): Remove free.
23211         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
23212         * lib/putenv.c (putenv): Likewise.
23213         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
23214         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
23215         * tests/test-c-strcasestr.c (main): Likewise.
23216         * tests/test-c-strstr.c (main): Likewise.
23217         * tests/test-mbscasestr1.c (main): Likewise.
23218         * tests/test-mbscasestr2.c (main): Likewise.
23219         * tests/test-mbsstr1.c (main): Likewise.
23220         * tests/test-mbsstr2.c (main): Likewise.
23221         * tests/test-memmem.c (main): Likewise.
23222         * tests/test-strcasestr.c (main): Likewise.
23223         * tests/test-striconv.c (main): Likewise.
23224         * tests/test-striconveh.c (main): Likewise.
23225         * tests/test-striconveha.c (main): Likewise.
23226         * tests/test-strstr.c (main): Likewise.
23227
23228         * build-aux/git-version-gen: Adjust a comment and the Usage string.
23229
23230         bootstrap: sync from coreutils again
23231         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
23232
23233 2008-03-01  Jim Meyering  <meyering@redhat.com>
23234
23235         bootstrap: sync from coreutils
23236         * build-aux/bootstrap (update_po_files): Copy a .po file into place
23237         also when the target doesn't exist.
23238
23239 2008-03-01  Eric Blake  <ebb9@byu.net>
23240
23241         Fix bugs in last patch.
23242         * lib/memchr2.c (memchr2): Fix typo.
23243         * tests/test-memchr2.c: Test previous bug, and don't use GNU
23244         extension.
23245         Reported by Bruce Korb.
23246
23247         New module 'memchr2'.
23248         * modules/memchr2: New file.
23249         * modules/memchr2-tests: Likewise.
23250         * lib/memchr2.h: Likewise.
23251         * lib/memchr2.c: Likewise, based on memchr.c.
23252         * tests/test-memchr2.c: New test.
23253         * MODULES.html.sh (String handling): Add memchr2.
23254
23255 2008-02-29  Bruno Haible  <bruno@clisp.org>
23256
23257         * modules/freadseek-tests: New file.
23258         * tests/test-freadseek.sh: New file.
23259         * tests/test-freadseek.c: New file.
23260
23261         New module 'freadseek'.
23262         * modules/freadseek: New file.
23263         * lib/freadseek.h: New file.
23264         * lib/freadseek.c: New file.
23265         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
23266
23267 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
23268
23269         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
23270         wydawca.
23271
23272         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
23273         program_invocation_name and program_invocation_short_name are
23274         present.
23275
23276 2008-02-28  Bruno Haible  <bruno@clisp.org>
23277
23278         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
23279         * tests/test-freadptr.sh: Also test non-seekable stdin.
23280
23281 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
23282
23283         * build-aux/bootstrap (source_base, m4_base)
23284         (doc_base, tests_base): New variables.
23285         (gnulib_tool_options): Do not hardcode base directories, use
23286         the above variables instead.
23287
23288 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
23289
23290         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
23291
23292 2008-02-28  Bruno Haible  <bruno@clisp.org>
23293
23294         * modules/freadptr-tests: New file.
23295         * tests/test-freadptr.sh: New file.
23296         * tests/test-freadptr.c: New file.
23297
23298         New module 'freadptr'.
23299         * modules/freadptr: New file.
23300         * lib/freadptr.h: New file.
23301         * lib/freadptr.c: New file.
23302         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
23303
23304 2008-02-26  Karl Berry  <karl@freefriends.org>
23305
23306         Sync from Libtool:
23307         * libltdl/argz.c (argz_add, argz_count): New functions.
23308         * libltdl/argz.in.h: Declare them.
23309         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
23310
23311 2008-02-22  Bruno Haible  <bruno@clisp.org>
23312
23313         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
23314         is a pointer type.  Needed for HP-UX 10.
23315         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
23316         * doc/posix-functions/gmtime_r.texi: Likewise.
23317         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23318
23319 2008-02-24  Bruno Haible  <bruno@clisp.org>
23320
23321         * modules/environ-tests: New file.
23322         * tests/test-environ.c: New file.
23323
23324         New module 'environ'.
23325         * modules/environ: New file.
23326         * lib/unistd.in.h (environ): New declaration.
23327         * m4/environ.m4: New file.
23328         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
23329         after use.
23330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
23331         HAVE_DECL_ENVIRON.
23332         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
23333         HAVE_DECL_ENVIRON.
23334         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
23335         wrong claim that 'environ' is missing on some systems.
23336         * modules/execute (Depends-on): Add environ.
23337         * lib/execute.c (environ): Remove fallback declaration.
23338         * modules/pipe (Depends-on): Add environ.
23339         * lib/pipe.c (environ): Remove fallback declaration.
23340         * modules/setenv (Depends-on): Add environ.
23341         * lib/setenv.c (environ): Remove fallback declaration.
23342         * modules/unsetenv (Depends-on): Add environ.
23343         * lib/unsetenv.c (environ): Remove fallback declaration.
23344         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
23345         m4/environ.m4.
23346         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
23347         (gl_PREREQ_UNSETENV): Likewise.
23348
23349 2008-02-24  Bruno Haible  <bruno@clisp.org>
23350
23351         * doc/posix-functions/environ.texi: Document the MacOS X problem.
23352
23353 2008-02-20  Bob Proulx  <bob@proulx.com>
23354
23355         Enable use of older two part flavor 'git describe'.
23356         * build-aux/git-version-gen: If using the older two part flavor of
23357         git version then recreate the third part now present in the
23358         newer three part flavor of git describe.
23359
23360 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
23361
23362         * lib/fts.c (fts_build): Typo correction to comment.
23363
23364 2008-02-17  Bruno Haible  <bruno@clisp.org>
23365
23366         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
23367         generating no-op conflicts.
23368
23369 2008-02-17  Bruno Haible  <bruno@clisp.org>
23370
23371         Speed up by 10%.
23372         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
23373         result_entries, rather than an index-based loop.
23374
23375 2008-02-17  Bruno Haible  <bruno@clisp.org>
23376
23377         Speed up by 25%.
23378         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
23379         'hashcode_cached'.
23380         (entry_create): New function.
23381         (entry_hashcode): Use the cached hashcode if possible.
23382         (read_changelog_file, try_split_merged_entry): Use entry_create.
23383
23384 2008-02-17  Bruno Haible  <bruno@clisp.org>
23385
23386         Speed up from O(n^2) to O(n) for long ChangeLog files.
23387         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
23388         (read_changelog_file): Change implementation of entries_reversed list
23389         to rbtreehash.
23390         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
23391
23392 2008-02-17  Bruno Haible  <bruno@clisp.org>
23393
23394         New option --split-merged-entry.
23395         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
23396         (find_paragraph_end, try_split_merged_entry): New functions.
23397         (long_options): Add option --split-merged-entry.
23398         (usage): Document option --split-merged-entry.
23399         (main): Implement option --split-merged-entry.
23400         Reported by Eric Blake.
23401
23402 2008-02-17  Bruno Haible  <bruno@clisp.org>
23403
23404         * lib/git-merge-changelog.c: Include c-strstr.h.
23405         (main): Support the "git pull --rebase" situation.
23406         * modules/git-merge-changelog (Depends-on): Add c-strstr.
23407         Reported by Eric Blake.
23408
23409 2008-02-16  Eric Blake  <ebb9@byu.net>
23410
23411         Avoid doubling \ in common case of "c-maybe" quoting style.
23412         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
23413         eliding outer quotes.
23414         * lib/quotearg.h: Document this.
23415         * tests/test-quotearg.c (result_strings, inputs, results_g)
23416         (flag_results, locale_results): Test it by adding a new string to
23417         each test group.
23418         (compare_strings): Test new string.
23419
23420 2008-02-13  Eric Blake  <ebb9@byu.net>
23421
23422         Avoid trigraph quoting in default output.
23423         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
23424         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
23425         unless explicitly requested.
23426         * tests/test-quotearg.c (flag_results, main): Add additional tests.
23427
23428 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
23429
23430         Don't rely on signed integer overflowing to negative value.
23431         * lib/getugroups.c (getugroups): Include <limits.h>.
23432         Instead, compare against INT_MAX, and increment only if the test passes.
23433
23434 2008-02-13  Jim Meyering  <meyering@redhat.com>
23435         and Eric Blake  <ebb9@byu.net>
23436
23437         Avoid shadowing warning and compile errors on Linux.
23438         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
23439         forwarding macros on Linux.
23440         (dcgettext): Define a stub, for Linux.
23441         (results_g, main): Avoid warnings.
23442
23443 2008-02-12  Eric Blake  <ebb9@byu.net>
23444
23445         Silence warning in last patch.
23446         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
23447
23448         Quotearg part 4: add tests, fix c-maybe colon quoting.
23449         * lib/quotearg.h: Improve documentation.
23450         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
23451         escapes when adding outer quotes.  When quoting trigraphs, use
23452         valid C notation.  When quoting NUL, omit extra characters if next
23453         character is not digit.  Alter prototype.
23454         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
23455         callers.
23456         * modules/quotearg-tests: New module.
23457         * tests/test-quotearg.c: New test.
23458
23459 2008-02-07  Eric Blake  <ebb9@byu.net>
23460
23461         Quotearg part 3: add flag to control outer quote elision.
23462         * lib/quotearg.h (c_maybe_quoting_style): New style.
23463         (enum quoting_flags): Better documentation of flags.
23464         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
23465         c-maybe style.
23466         (quotearg_buffer_restyled): Handle new flag to elide outer
23467         quotes.
23468
23469         Quotearg part 2: add flag that can control NUL elision.
23470         * lib/quotearg.h (set_quoting_flags): New prototype.
23471         * lib/quotearg.c (struct quoting_options): Add flag field.
23472         (set_quoting_flags): New function.
23473         (quotearg_buffer_restyled): Add flags parameter.
23474         (quotearg_alloc_mem): Set the flag if length cannot be returned.
23475         (quotearg_n_options): Set the flag, since length cannot be
23476         returned.
23477         (quoting_options_from_style): Default flags correctly.
23478
23479         Quotearg part 1: more wrappers, restore quotearg_char state.
23480         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
23481         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
23482         (quotearg_colon_mem): New wrappers.
23483         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
23484         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
23485         functions.
23486         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
23487         (quotearg_colon_mem): New functions.
23488
23489 2008-02-11  Bruno Haible  <bruno@clisp.org>
23490
23491         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
23492         library in the current directory: it does not work with parallel make.
23493         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23494
23495 2008-02-11  Bruno Haible  <bruno@clisp.org>
23496
23497         * .gitattributes: New file.
23498
23499 2008-02-11  Jim Meyering  <meyering@redhat.com>
23500
23501         useless-if-before-free: Fix reversed exit values.
23502         * build-aux/useless-if-before-free: Use correct values
23503         for EXIT_MATCH and EXIT_NO_MATCH.
23504
23505         * build-aux/useless-if-before-free: Close stdout carefully.
23506
23507 2008-02-10  Bruno Haible  <bruno@clisp.org>
23508
23509         New module 'git-merge-changelog'.
23510         * modules/git-merge-changelog: New file.
23511         * lib/git-merge-changelog.c: New file.
23512
23513 2008-02-10  Jim Meyering  <meyering@redhat.com>
23514
23515         useless-if-before-free: New option: --list (-l).
23516
23517         useless-if-before-free: Don't exit immediately upon open failure.
23518         * build-aux/useless-if-before-free: Exit 2 for errors.
23519         Upon failure to open a file, don't exit immediately.
23520         Rather, just warn and continue with any remaining files.
23521
23522 2008-02-10  Bruno Haible  <bruno@clisp.org>
23523
23524         New abstract list operation 'node_set_value'.
23525         * lib/gl_list.h (gl_list_node_set_value): New function.
23526         (struct gl_list_implementation): New field node_set_value.
23527         * lib/gl_list.c (gl_list_node_set_value): New function.
23528         * lib/gl_array_list.c (gl_array_node_set_value): New function.
23529         (gl_array_list_implementation): Update.
23530         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
23531         (gl_carray_list_implementation): Update.
23532         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
23533         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23534         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23535         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
23536         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23537         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23538         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23539         Update.
23540         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23541         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
23542         (gl_sublist_list_implementation): Update.
23543
23544 2008-02-10  Bruno Haible  <bruno@clisp.org>
23545
23546         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
23547         Needed when ELEMENT is #defined to 'some_type *'.
23548
23549 2008-02-10  Jim Meyering  <meyering@redhat.com>
23550
23551         New script and module: useless-if-before-free
23552         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
23553         * build-aux/useless-if-before-free: New file.
23554         * modules/useless-if-before-free: New file.
23555
23556         * build-aux/gitlog-to-changelog: Use committer date, not author date.
23557
23558         xstrtol_error: Fix typo.
23559         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
23560         s/exit_failure/exit_status/.
23561
23562 2008-02-09  Jim Meyering  <meyering@redhat.com>
23563
23564         New script and module: gitlog-to-changelog
23565         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
23566         * modules/gitlog-to-changelog: New file.
23567         * build-aux/gitlog-to-changelog: New file.
23568
23569 2008-02-08  Jim Meyering  <meyering@redhat.com>
23570
23571         Avoid two "parameter unused" warnings.
23572         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
23573         Mark "st" as used.
23574
23575         Use "git COMMAND", not "git-COMMAND".
23576         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
23577         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
23578         * build-aux/git-version-gen: Use "git status", not "git-status".
23579
23580 2008-02-07  Bruno Haible  <bruno@clisp.org>
23581
23582         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
23583         Avoids a crash on Windows Vista.
23584         Reported by Adam Strzelecki <ono@java.pl> via
23585         Simon Josefsson <simon@josefsson.org>.
23586
23587 2008-02-06  Bruno Haible  <bruno@clisp.org>
23588
23589         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
23590         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
23591         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
23592         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
23593         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23594         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23595         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
23596         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
23597         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23598         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23599         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23600         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23601         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23602         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23603         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23604         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
23605         left-adjust flag.
23606         * tests/test-snprintf-posix.h (test_function): Likewise.
23607         * tests/test-sprintf-posix.h (test_function): Likewise.
23608         * tests/test-vasprintf-posix.c (test_function): Likewise.
23609         * doc/posix-functions/fprintf.texi: Update.
23610         * doc/posix-functions/printf.texi: Update.
23611         * doc/posix-functions/snprintf.texi: Update.
23612         * doc/posix-functions/sprintf.texi: Update.
23613         * doc/posix-functions/vfprintf.texi: Update.
23614         * doc/posix-functions/vprintf.texi: Update.
23615         * doc/posix-functions/vsnprintf.texi: Update.
23616         * doc/posix-functions/vsprintf.texi: Update.
23617         Reported by Peter Fales <psfales@alcatel-lucent.com>.
23618
23619 2008-02-06  Bruno Haible  <bruno@clisp.org>
23620
23621         Fix bug introduced on 2008-01-26.
23622         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
23623
23624 2008-02-06  Bruno Haible  <bruno@clisp.org>
23625
23626         Fix bug introduced on 2007-06-10.
23627         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
23628         !NEED_PRINTF_FLAG_ZERO.
23629
23630 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
23631
23632         getloadavg: use libperfstat on AIX5
23633         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
23634
23635 2008-02-03  Bruno Haible  <bruno@clisp.org>
23636
23637         * lib/diffseq.h: Add comments about required #includes.
23638         Reported by Michael Biggs <gnulib@doubleplum.net>.
23639
23640 2008-02-01  Bruno Haible  <bruno@clisp.org>
23641
23642         * users.txt: Add gnuit.
23643
23644 2008-01-31  Bruno Haible  <bruno@clisp.org>
23645
23646         * lib/md4.c (set_uint32): Mark as inline.
23647         * lib/md5.c (set_uint32): Likewise.
23648         * lib/sha1.c (set_uint32): Likewise.
23649         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
23650         * m4/md5.m4 (gl_MD5): Likewise.
23651         * m4/sha1.m4 (gl_SHA1): Likewise.
23652
23653 2008-01-31  Jim Meyering  <meyering@redhat.com>
23654
23655         Use "sizeof VAR", rather than a literal "4".
23656         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
23657         * lib/md4.c (md4_read_ctx): Likewise.
23658         * lib/sha1.c (sha1_read_ctx): Likewise.
23659
23660 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23661
23662         * tests/test-sha1.c: New file, based on test-md5.c.
23663
23664         * modules/crypto/sha1-tests: New file.
23665
23666 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23667
23668         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
23669
23670 2008-01-31  Jim Meyering  <meyering@redhat.com>
23671
23672         Prefer "sizeof v" over the equivalent "4".
23673         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
23674         * lib/md5.c (set_uint32): Likewise.
23675         * lib/sha1.c (set_uint32): Likewise.
23676
23677 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23678
23679         * lib/sha1.c (set_uint32): Mark function as static.
23680
23681 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23682
23683         md2: clarify comments to say that alignment is not required.
23684         * lib/md2.h: Remove warning about alignment in comment.
23685         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
23686         never been required.
23687
23688 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23689
23690         md4: adapt alignment constraint fix from sha1.
23691         * lib/md4.c (set_uint32): New function, from sha1.c
23692         (md4_read_ctx): Use it.
23693         (md4_finish_ctx): Doc fix.
23694         * lib/md4.h: Doc fix.
23695
23696 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23697
23698         md5: adapt alignment constraint fix from sha1.
23699         * lib/md5.c (set_uint32): New function, from sha1.c
23700         (md5_read_ctx): Use it.
23701         (md5_finish_ctx): Doc fix.
23702         * lib/md5.h: Doc fix.
23703
23704 2008-01-30  Peter Palfrader  <weasel@debian.org>
23705
23706         sha1: remove the result buffer alignment constraint
23707         * lib/sha1.c (set_uint32): New function.
23708         (sha1_read_ctx): Rewrite to remove the result buffer alignment
23709         constraint.
23710         (sha1_finish_ctx): Remove comment warning about alignment constraint.
23711         * lib/sha1.h: Likewise.
23712
23713 2008-01-30  Andreas Schwab  <schwab@suse.de>
23714             Bruno Haible  <bruno@clisp.org>
23715
23716         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
23717         correct definition of LDBL_MIN_EXP.
23718
23719 2008-01-30  Karl Berry  <karl@gnu.org>
23720
23721         * config/srclist-update: try to preserve x bit on updates.
23722         * config/srclistvars.sh: update for karl.
23723
23724 2008-01-29  Jim Meyering  <meyering@redhat.com>
23725
23726         vasnprintf.c: Avoid warning about unused label
23727         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
23728         "overflow" label definition and associated code with the
23729         same cpp condition that guards the sole use of that label.
23730
23731 2008-01-26  Bruno Haible  <bruno@clisp.org>
23732
23733         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
23734         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
23735         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
23736         * lib/isnanl-nolibm.h (isnanl): Likewise.
23737         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23738
23739 2008-01-26  Bruno Haible  <bruno@clisp.org>
23740
23741         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
23742         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
23743
23744 2008-01-26  Bruno Haible  <bruno@clisp.org>
23745
23746         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
23747         GCC >= 4.0 built-in.
23748         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
23749
23750 2008-01-26  Bruno Haible  <bruno@clisp.org>
23751
23752         Rename isnan, applicable to 'double' only, to isnand.
23753         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
23754         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
23755         (configure.ac): Update.
23756         (Include): Replace "isnan.h" with "isnand.h".
23757         * m4/isnand.m4: Renamed from m4/isnan.m4.
23758         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
23759         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
23760         instead of isnan.c.
23761         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
23762         instead of HAVE_ISNAN_IN_LIBC.
23763         (isnand): Renamed from isnan.
23764         * lib/isnand.c: New file.
23765         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
23766         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
23767         (Makefile.am): Update.
23768         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
23769         Include isnand.h instead of isnan.h.
23770         (main): Test isnand instead of isnan.
23771         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
23772         isnan-nolibm.
23773         * modules/frexp (Depends-on): Likewise.
23774         * modules/frexp-tests (Depends-on): Likewise.
23775         * modules/frexp-nolibm (Depends-on): Likewise.
23776         * modules/frexp-nolibm-tests (Depends-on): Likewise.
23777         * modules/isfinite (Depends-on): Likewise.
23778         * modules/round-tests (Depends-on): Likewise.
23779         * modules/signbit (Depends-on): Likewise.
23780         * modules/signbit-tests (Depends-on): Likewise.
23781         * modules/snprintf-posix (Depends-on): Likewise.
23782         * modules/sprintf-posix (Depends-on): Likewise.
23783         * modules/trunc-tests (Depends-on): Likewise.
23784         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23785         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23786         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23787         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23788         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23789         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23790         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23791         * modules/vasnprintf-posix (Depends-on): Likewise.
23792         * modules/vasprintf-posix (Depends-on): Likewise.
23793         * modules/vfprintf-posix (Depends-on): Likewise.
23794         * modules/vsnprintf-posix (Depends-on): Likewise.
23795         * modules/vsprintf-posix (Depends-on): Likewise.
23796         * lib/frexp.c: Include isnand.h instead of isnan.h.
23797         (ISNAN): Set to isnand instead of isnan.
23798         * lib/isfinite.c: Include isnand.h instead of isnan.h.
23799         (gl_isfinited): Use isnand instead of isnan.
23800         * lib/signbitd.c: Include isnand.h instead of isnan.h.
23801         (gl_signbitd): Use isnand instead of isnan.
23802         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
23803         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
23804         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
23805         (main): Use isnand instead of isnan.
23806         * tests/test-round1.c: Include isnand.h.
23807         (main): Use isnand instead of isnan.
23808         * tests/test-round2.c: Include isnand.h instead of isnan.h.
23809         (ISNAN): Set to isnand instead of isnan.
23810         * tests/test-trunc1.c: Include isnand.h.
23811         (main): Use isnand instead of isnan.
23812         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
23813         (equal): Use isnand instead of isnan.
23814         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
23815         isnand-nolibm.
23816         * NEWS: Mention the change.
23817
23818 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
23819             Bruno Haible  <bruno@clisp.org>
23820
23821         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
23822         the GCC builtins for signbits are present and set
23823         REPLACE_SIGNBIT_USING_GCC if so.
23824         * lib/math.in.h (signbit): Define using GCC builtins if
23825         REPLACE_SIGNBIT_USING_GCC is set.
23826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
23827         REPLACE_SIGNBIT_USING_GCC.
23828         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
23829
23830 2008-01-25  Jim Meyering  <meyering@redhat.com>
23831
23832         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
23833         * lib/poll.c: Include <config.h>, not "config.h".
23834         * tests/test-getaddrinfo.c: Likewise.
23835
23836 2008-01-25  Simon Josefsson  <simon@josefsson.org>
23837
23838         * modules/sockets-tests: New file.
23839
23840 2008-01-24  Simon Josefsson  <simon@josefsson.org>
23841
23842         * modules/sockets: New module, can be used to call WSA_Startup and
23843         WSA_Cleanup when needed.
23844
23845         * lib/sockets.h, lib/sockets.c: New files.
23846
23847         * m4/sockets.m4: New file.
23848
23849         * tests/test-sockets.c: New file.
23850
23851 2008-01-19  Bruno Haible  <bruno@clisp.org>
23852
23853         * doc/posix-headers: Renamed from doc/headers.
23854         * doc/posix-functions: Renamed from doc/functions.
23855         * doc/gnulib.texi: Update.
23856
23857 2008-01-19  Bruno Haible  <bruno@clisp.org>
23858
23859         * doc/glibc-functions/strcasestr.texi: Include contents of
23860         doc/functions/strcasestr.texi, fixing the list of platforms.
23861         * doc/functions/strcasestr.texi: Remove file.
23862
23863 2008-01-19  Bruno Haible  <bruno@clisp.org>
23864
23865         * doc/glibc-functions/memmem.texi: Include contents of
23866         doc/functions/memmem.texi.
23867         * doc/functions/memmem.texi: Remove file.
23868
23869 2008-01-18  Bruno Haible  <bruno@clisp.org>
23870
23871         * doc/glibc-functions/*.texi: New files.
23872         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
23873         to use the new files.
23874
23875 2008-01-17  Bruno Haible  <bruno@clisp.org>
23876
23877         * tests/test-gethostname.c (main): Fix printf statement.
23878
23879 2008-01-17  Simon Josefsson  <simon@josefsson.org>
23880
23881         * modules/gethostname-tests: New file.
23882
23883         * tests/test-gethostname.c: New file.
23884
23885 2008-01-17  Simon Josefsson  <simon@josefsson.org>
23886
23887         * lib/gethostname.c: Include string.h unconditionally, strncpy is
23888         used by the UNAME case.  Reported by Bruno Haible
23889         <bruno@clisp.org>.
23890
23891 2008-01-17  Eric Blake  <ebb9@byu.net>
23892
23893         Convert c-strcasestr to be more efficient.
23894         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
23895         (Depends-on): Add c-strcase, remove malloca, strnlen.
23896         * tests/test-c-strcasestr.c (main): Enhance test.
23897         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
23898
23899 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
23900
23901         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
23902         Use it in creating po/Makevars.
23903
23904 2008-01-15  Simon Josefsson  <simon@josefsson.org>
23905
23906         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
23907         Applications that requires it should initialize libgcrypt
23908         manually.
23909
23910 2008-01-16  Simon Josefsson  <simon@josefsson.org>
23911
23912         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
23913
23914 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
23915
23916         Fix problem with getdate on mingw32 reported by Simon Josefsson
23917         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
23918         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
23919         tzname", when deciding whether to declare tzname.
23920         * lib/strftime.c (tzname): Likewise.
23921
23922 2008-01-15  Bruno Haible  <bruno@clisp.org>
23923
23924         Work around a MacOS X 10.5 bug in frexpl().
23925         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
23926         * doc/functions/frexpl.texi: Document the bug.
23927         Reported by Elias Pipping <pipping@gentoo.org>.
23928
23929 2008-01-14  Eric Blake  <ebb9@byu.net>
23930
23931         Touch up previous patch.
23932         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
23933         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
23934
23935         Convert strcasestr module to use Two-Way algorithm.
23936         * modules/strcasestr-simple: New module, based on the old
23937         strcasestr, but with Two-Way rather than KMP.
23938         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
23939         * lib/string.in.h (rpl_strcasestr): Declare.
23940         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
23941         performance.
23942         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
23943         * modules/string (Makefile.am): Support strcasestr.
23944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23945         * modules/strcasestr-tests (Depends-on): Check for alarm.
23946         * tests/test-strcasestr.c: Augment test.
23947         * lib/str-two-way.h: Clean up stray macro.
23948         * NEWS: Document new module.
23949         * MODULES.html.sh (string handling): Likewise.
23950         * doc/functions/strcasestr.texi: New file.
23951         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
23952         here, since it is not a POSIX function.
23953
23954 2008-01-14  Colin Watson  <cjwatson@debian.org>
23955             Bruno Haible  <bruno@clisp.org>
23956
23957         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
23958         works fine; if not, set REPLACE_STRSIGNAL.
23959         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
23960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23961         REPLACE_STRSIGNAL.
23962         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
23963         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
23964         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
23965
23966 2008-01-14  Bruno Haible  <bruno@clisp.org>
23967
23968         * modules/strsignal (Include): Change to <string.h>.
23969
23970 2008-01-14  Colin Watson  <cjwatson@debian.org>
23971
23972         * modules/argp (Notice): Add a notice recommending to change
23973         XGETTEXT_OPTIONS.
23974         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
23975
23976 2008-01-13  Colin Watson  <cjwatson@debian.org>
23977
23978         * modules/strsignal-tests: New file.
23979         * tests/test-strsignal.c: New file.
23980
23981         * lib/strsignal.c: New file, from glibc with modifications.
23982         * lib/siglist.h: New file, from glibc with modifications.
23983         * lib/string.in.h (strsignal): New declaration.
23984         * m4/strsignal.m4: New file.
23985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23986         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
23987         * modules/strsignal: New file.
23988         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
23989         HAVE_DECL_STRSIGNAL.
23990
23991 2008-01-13  Bruno Haible  <bruno@clisp.org>
23992
23993         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
23994         locale encoding is not ASCII. Needed for OpenBSD 4.0.
23995         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23996         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23997
23998 2008-01-13  Bruno Haible  <bruno@clisp.org>
23999
24000         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
24001         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
24002         * lib/argp.h (__attribute__): Likewise.
24003         * lib/c-stack.c (__attribute__): Likewise.
24004         * lib/error.h (__attribute__): Likewise.
24005         * lib/fts.c (__attribute__): Likewise.
24006         * lib/openat.h (__attribute__): Likewise.
24007         * lib/stdio.in.h (__attribute__): Likewise.
24008         * lib/string.in.h (__attribute__): Likewise.
24009         * lib/utimens.c (__attribute__): Likewise.
24010         * lib/vasnprintf.h (__attribute__): Likewise.
24011         * lib/xalloc.h (__attribute__): Likewise.
24012         * lib/xprintf.h (__attribute__): Likewise.
24013         * lib/xstrtol.h (__attribute__): Likewise.
24014         * lib/xvasprintf.h (__attribute__): Likewise.
24015
24016 2008-01-12  Bruno Haible  <bruno@clisp.org>
24017
24018         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
24019         * doc/glibc-headers/a.out.texi: New file.
24020         * doc/glibc-headers/aliases.texi: New file.
24021         * doc/glibc-headers/alloca.texi: New file.
24022         * doc/glibc-headers/ar.texi: New file.
24023         * doc/glibc-headers/argp.texi: New file.
24024         * doc/glibc-headers/argz.texi: New file.
24025         * doc/glibc-headers/byteswap.texi: New file.
24026         * doc/glibc-headers/crypt.texi: New file.
24027         * doc/glibc-headers/endian.texi: New file.
24028         * doc/glibc-headers/envz.texi: New file.
24029         * doc/glibc-headers/err.texi: New file.
24030         * doc/glibc-headers/error.texi: New file.
24031         * doc/glibc-headers/execinfo.texi: New file.
24032         * doc/glibc-headers/fpu_control.texi: New file.
24033         * doc/glibc-headers/fstab.texi: New file.
24034         * doc/glibc-headers/fts.texi: New file.
24035         * doc/glibc-headers/getopt.texi: New file.
24036         * doc/glibc-headers/ieee754.texi: New file.
24037         * doc/glibc-headers/ifaddrs.texi: New file.
24038         * doc/glibc-headers/libintl.texi: New file.
24039         * doc/glibc-headers/mcheck.texi: New file.
24040         * doc/glibc-headers/mntent.texi: New file.
24041         * doc/glibc-headers/obstack.texi: New file.
24042         * doc/glibc-headers/paths.texi: New file.
24043         * doc/glibc-headers/printf.texi: New file.
24044         * doc/glibc-headers/pty.texi: New file.
24045         * doc/glibc-headers/resolv.texi: New file.
24046         * doc/glibc-headers/shadow.texi: New file.
24047         * doc/glibc-headers/sysexits.texi: New file.
24048         * doc/glibc-headers/ttyent.texi: New file.
24049
24050 2008-01-12  Jim Meyering  <meyering@redhat.com>
24051
24052         announce-gen: emit Gnulib's git-based version string.
24053         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
24054         New option --gnulib-version=V, where V is expected to be
24055         the output of running git describe in the gnulib directory.
24056         (get_tool_versions): Request feedback on xdelta.  I suspect it's
24057         not useful, and plan to stop publishing an xdelta file with each
24058         coreutils release.
24059
24060         * build-aux/announce-gen: Also check for lzma-compressed files.
24061
24062 2008-01-11  Bruno Haible  <bruno@clisp.org>
24063
24064         * tests/test-memmem.c (main): Increase maximum allowed time.
24065         * tests/test-strstr.c (main): Likewise.
24066
24067 2008-01-11  Bruno Haible  <bruno@clisp.org>
24068
24069         * doc/functions/memmem.texi: Add more precisions about platforms.
24070         * doc/functions/strstr.texi: Likewise.
24071
24072 2008-01-10  Eric Blake  <ebb9@byu.net>
24073
24074         * m4/strstr.m4: Delete cruft from copy-n-paste.
24075         Reported by Bruno Haible.
24076
24077 2008-01-10  Bruno Haible  <bruno@clisp.org>
24078
24079         Make c-strstr rely on strstr.
24080         * lib/c-strstr.c: Don't include str-kmp.h.
24081         (c_strstr): Define in terms of strstr.
24082         * modules/c-strstr (Files): Remove lib/str-kmp.h.
24083         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
24084
24085 2008-01-10  Bruno Haible  <bruno@clisp.org>
24086
24087         * doc/gnulib.texi (String Functions in C Locale): New section.
24088         * doc/c-ctype.texi: New file.
24089         * doc/c-strcase.texi: New file.
24090         * doc/c-strcaseeq.texi: New file.
24091         * doc/c-strcasestr.texi: New file.
24092         * doc/c-strstr.texi: New file.
24093         * doc/c-strtod.texi: New file.
24094         * doc/c-strtold.texi: New file.
24095
24096 2008-01-10  Eric Blake  <ebb9@byu.net>
24097
24098         * lib/relocatable.h: Fix a comment.
24099
24100 2008-01-10  Eric Blake  <ebb9@byu.net>
24101
24102         Share two-way algorithm.
24103         * lib/str-two-way.h: New file, merged from...
24104         * lib/memmem.c: ...here...
24105         * lib/strstr.c: ...and here.
24106         * modules/memmem (Files): Use it.
24107         * modules/strstr (Files): Likewise.
24108
24109         Avoid quadratic strstr implementations.
24110         * lib/strstr.c: New file.
24111         * m4/strstr.m4: Likewise.
24112         * modules/strstr: Likewise.
24113         * modules/strstr-tests: Likewise.
24114         * tests/test-strstr.c: Likewise.
24115         * lib/string.in.h (rpl_strstr): Declare.
24116         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
24117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
24118         * modules/string (Makefile.am): Likewise.
24119         * MODULES.html.sh (string handling): Mention new module.
24120         * doc/functions/strstr.texi (strstr): Document the bug.
24121
24122 2008-01-10  Bruno Haible  <bruno@clisp.org>
24123
24124         * lib/relocatable.h (relocate): State whether result is freshly
24125         allocated or not.
24126         * lib/relocatable.c (relocate): Return a freshly allocated string
24127         instead of a pointer to a privately held string.
24128         Reported by Sylvain Beucler <beuc@gnu.org>.
24129
24130 2008-01-10  Colin Watson  <cjwatson@debian.org>
24131
24132         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
24133         s/S_ISNLK/S_ISLNK/.
24134
24135 2008-01-09  Bruno Haible  <bruno@clisp.org>
24136
24137         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
24138         and other files.
24139         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
24140         if it's only a guess.
24141         * modules/memmem: Simplify by depending on memmem-simple.
24142
24143 2008-01-09  Bruno Haible  <bruno@clisp.org>
24144
24145         Work around OpenBSD 4.0 tdelete() bug.
24146         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
24147         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
24148         macros and don't redefine the enum values.
24149         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
24150         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
24151         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
24152
24153 2008-01-09  Bruno Haible  <bruno@clisp.org>
24154
24155         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
24156         (main): Don't perform the tests if setlocale did not install a UTF-8
24157         locale. Needed on OpenBSD 4.0.
24158         * modules/wcwidth-tests (Depends-on): Add localcharset.
24159
24160 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24161
24162         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
24163         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
24164         * NEWS: announce this.
24165         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
24166
24167 2008-01-09  Simon Josefsson  <simon@josefsson.org>
24168         and Eric Blake  <ebb9@byu.net>
24169
24170         Add memmem-simple module.
24171         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
24172         (gl_FUNC_MEMMEM): Separate performance from presence checks.
24173         * modules/memmem-simple: New file.
24174         * modules/memmem (Description): Tweak.
24175         * MODULES.html.sh (string handling): Mention new module.
24176         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
24177         addressed by memmem-simple.
24178         * NEWS: Document the difference.
24179
24180 2008-01-09  Eric Blake  <ebb9@byu.net>
24181
24182         Give gcc some memmem optimization hints.
24183         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
24184         (strcasestr): Declare as pure.
24185         * modules/memmem (Maintainer): Claim my implementation.
24186
24187 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24188
24189         Support AIX 6.1 and higher.
24190         * build-aux/config.libpath: Likewise.
24191         * build-aux/config.rpath: Likewise.
24192
24193 2008-01-08  Jim Meyering  <meyering@redhat.com>
24194             Bruno Haible  <bruno@clisp.org>
24195
24196         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
24197         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
24198         Reported by Peter Fales in
24199         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
24200
24201 2008-01-08  Bruno Haible  <bruno@clisp.org>
24202
24203         * modules/unictype/category-of (Depends-on): Add
24204         unictype/category-none.
24205         * modules/unictype/category-and-tests (Depends-on): Add
24206         unictype/category-{L,N,Lu,Nd}.
24207         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
24208         * modules/unictype/category-or-tests (Depends-on): Add
24209         unictype/category-{L,N}.
24210         * modules/unictype/category-name-tests (Depends-on): Add
24211         unictype/category-{Z,Nl}.
24212         Reported by Simon Josefsson.
24213
24214 2008-01-08  Bruno Haible  <bruno@clisp.org>
24215
24216         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
24217         convention better.
24218         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
24219         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
24220         Reported by Peter Miller <millerp@canb.auug.org.au>.
24221
24222 2008-01-08  Eric Blake  <ebb9@byu.net>
24223
24224         Rewrite memmem to guarantee linear complexity without malloc.
24225         * lib/memmem.c (memmem): Use Two-Way rather than
24226         Knuth-Morris-Pratt, to allow O(1) space usage.
24227         (critical_factorization, two_way_short_needle)
24228         (two_way_long_needle): New functions.
24229         (knuth_morris_pratt): Delete.
24230         * modules/memmem (Depends-on): No longer need malloca or stdbool.
24231         Add stdint.
24232         * tests/test-memmem.c (main): Add tests for periodic needle and
24233         sublinear performance.
24234         * doc/functions/memmem.texi (memmem): Document other deficiencies
24235         in cygwin and older glibc.
24236
24237 2008-01-08  Bruno Haible  <bruno@clisp.org>
24238
24239         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
24240         augmentation.
24241
24242 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
24243
24244         Add a configure time option: --disable-acl.
24245         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
24246         AC_ARG_ENABLE(acl).
24247
24248 2008-01-06  Simon Josefsson  <simon@josefsson.org>
24249
24250         * tests/test-localename.c: Don't include obsolete "setenv.h".
24251
24252         * modules/localename-tests (Depends-on): Need unsetenv.
24253
24254 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24255
24256         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
24257
24258 2008-01-06  Colin Watson  <cjwatson@debian.org>
24259
24260         * users.txt: Add man-db.
24261
24262 2008-01-07  Bruno Haible  <bruno@clisp.org>
24263
24264         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
24265         previous section name.
24266
24267 2008-01-07  Bruno Haible  <bruno@clisp.org>
24268
24269         * lib/progname.c (set_program_name): Don't strip off a leading
24270         "lt-" prefix outside a .libs directory.
24271         Suggested by Paul Eggert.
24272
24273 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
24274             Bruno Haible  <bruno@clisp.org>
24275
24276         Improve memory cleanup in 'relocatable' module.
24277         * lib/relocatable.h (compute_curr_prefix): Change return type to
24278         'char *'.
24279         * lib/relocatable.c (compute_curr_prefix): Change return type to
24280         'char *'. Free curr_installdir after use.
24281         (relocate): Free curr_prefix_better after use.
24282         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
24283
24284 2008-01-01  Bruno Haible  <bruno@clisp.org>
24285
24286         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
24287         failure on older glibc systems.
24288         Reported by Peter Fales <psfales@alcatel-lucent.com>.
24289
24290 2008-01-05  Eric Blake  <ebb9@byu.net>
24291
24292         Avoid quadratic system memmem.
24293         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
24294         Reported by Ralf Wildenhues.
24295
24296         Fix memmem test for mingw.
24297         * modules/memmem-tests (configure.ac): Check for alarm.
24298         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
24299         it.
24300         * doc/functions/memmem.texi: New file.
24301         * doc/gnulib.texi (Function Substitutes): Add memmem.
24302         Reported by Bruno Haible.
24303
24304 2008-01-04  Bruno Haible  <bruno@clisp.org>
24305
24306         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
24307         Require gl_HEADER_STRINGS_H_DEFAULTS, not
24308         gl_HEADER_STRING_H_DEFAULTS.
24309
24310 2008-01-04  Eric Blake  <ebb9@byu.net>
24311
24312         Shorten duration of memmem test.
24313         * tests/test-memmem.c (main): Use alarm to declare failure if test
24314         is taking too long.
24315         Reported by Ralf Wildenhues.
24316
24317 2007-12-21  Simon Josefsson  <simon@josefsson.org>
24318
24319         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
24320         string, needed by strerror.
24321
24322 2008-01-03  Colin Watson  <cjwatson@debian.org>
24323             Bruno Haible  <bruno@clisp.org>
24324
24325         * doc/gnulib-tool.texi (Localization): New section.
24326
24327 2008-01-02  Bruno Haible  <bruno@clisp.org>
24328
24329         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
24330         variables to 'unsigned char *' type.
24331         Reported by Paul Eggert.
24332
24333 2008-01-02  Jim Meyering  <jim@meyering.net>
24334
24335         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
24336
24337 2007-12-31  Jim Meyering  <jim@meyering.net>
24338
24339         Avoid use of private FTS type name.
24340         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
24341
24342 2007-12-30  Karl Berry  <karl@gnu.org>
24343
24344         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
24345         work around defect in Texinfo and/or the standalone Info browser.
24346
24347 2007-12-30  Bruno Haible  <bruno@clisp.org>
24348
24349         Unify 5 copies of the KMP code.
24350         * lib/str-kmp.h: New file.
24351         * lib/c-strcasestr.c: Include str-kmp.h.
24352         (knuth_morris_pratt): Remove function.
24353         (c_strcasestr): Update.
24354         * lib/c-strstr.c: Include str-kmp.h.
24355         (knuth_morris_pratt): Remove function.
24356         (c_strcasestr): Update.
24357         * lib/mbscasestr.c: Include str-kmp.h.
24358         (knuth_morris_pratt_unibyte): Remove function.
24359         * lib/mbsstr.c: Include str-kmp.h.
24360         (knuth_morris_pratt_unibyte): Remove function.
24361         * lib/strcasestr.c: Include str-kmp.h.
24362         (knuth_morris_pratt): Remove function.
24363         (strcasestr): Update.
24364         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
24365         * modules/c-strstr (Files): Likewise.
24366         * modules/mbscasestr (Files): Likewise.
24367         * modules/mbsstr (Files): Likewise.
24368         * modules/strcasestr (Files): Likewise.
24369         Suggested by Paul Eggert.
24370
24371 2007-12-30  Bruno Haible  <bruno@clisp.org>
24372
24373         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
24374         defined.
24375
24376 2007-12-30  Bruno Haible  <bruno@clisp.org>
24377
24378         * lib/xmalloca.h: Include xalloc.h.
24379         (xnmalloca): New macro.
24380
24381 2007-12-30  Bruno Haible  <bruno@clisp.org>
24382
24383         * lib/malloca.h (nmalloca): New macro.
24384         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
24385         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
24386         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
24387         knuth_morris_pratt_multibyte): Likewise.
24388         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
24389         knuth_morris_pratt_multibyte): Likewise.
24390         * lib/memmem.c (knuth_morris_pratt): Likewise.
24391         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
24392
24393 2007-12-25  Bruno Haible  <bruno@clisp.org>
24394
24395         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
24396         * lib/glob.c: Don't include openat.h.
24397         (link_exists2_p): Add back the code that deals with the
24398         !GLOB_ALTDIRFUNC case.
24399         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
24400         let it do the filename concatenation.
24401         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
24402         * modules/glob (Depends-on): Remove openat.
24403
24404 2007-12-31  Bruno Haible  <bruno@clisp.org>
24405
24406         * modules/dirfd (License): Change to LGPLv2+.
24407         Approved by Jim Meyering.
24408
24409 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24410
24411         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
24412         when multiplying M by sizeof (size_t).
24413
24414 2007-12-10  Martin Lambers  <marlam@marlam.de>
24415
24416         Override getpagesize on mingw.
24417         * lib/getpagesize.c: New file.
24418         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
24419         * modules/getpagesize (Files): Add lib/getpagesize.c.
24420         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
24421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24422         REPLACE_GETPAGESIZE.
24423         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
24424
24425 2007-12-25  Bruno Haible  <bruno@clisp.org>
24426
24427         * modules/localcharset (Notice): New field.
24428         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
24429         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
24430
24431 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24432             Bruno Haible  <bruno@clisp.org>
24433
24434         Avoid using the syntax symbol() in formatted documentation.
24435         * MODULES.html.sh (func_module): When replacing symbol() with a
24436         hyperlink, remove the parentheses. Show an error if some remain.
24437         Recognize and render the '...' syntax.
24438         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
24439         Rework. Add paragraph about GCC's inlining.
24440         * doc/alloca.texi: Likewise.
24441         * doc/error.texi: Remove parentheses from symbol reference.
24442         * doc/gnulib-intro.texi: Likewise.
24443         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
24444         * modules/fnmatch (Description): Reword to say "the ... function".
24445         * modules/full-read (Description): Likewise.
24446         * modules/full-write (Description): Likewise.
24447         * modules/safe-read (Description): Likewise.
24448         * modules/safe-write (Description): Likewise.
24449         * modules/strchrnul (Description): Likewise.
24450         * modules/trim (Description): Likewise.
24451         * modules/error (Description): Remove parentheses from symbol
24452         references.
24453         * modules/verror (Description): Likewise.
24454         Reported by Karl Berry.
24455
24456 2007-12-25  Bruno Haible  <bruno@clisp.org>
24457
24458         Fixup after 2007-10-16 commit.
24459         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
24460
24461 2007-12-24  Bruno Haible  <bruno@clisp.org>
24462
24463         Make --enable-relocatable work with DESTDIR.
24464         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
24465         to compute installdir from destprog.
24466         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
24467         also set the RELOC_DESTDIR variable.
24468         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
24469
24470 2007-12-24  Bruno Haible  <bruno@clisp.org>
24471
24472         Fix link error due to xalloc_die().
24473         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
24474         of xreadlink.
24475         * lib/relocwrapper.c: Update comments.
24476         * build-aux/install-reloc: Remove xreadlink.c from file list.
24477         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
24478         xreadlink.c.
24479         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
24480
24481 2007-12-24  Bruno Haible  <bruno@clisp.org>
24482
24483         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
24484         * lib/setenv.h: Remove file.
24485         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
24486         lib/setenv.h.
24487         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
24488         (Depends-on): Add stdlib.
24489         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
24490         gl_FUNC_UNSETENV.
24491         (Include): Replace setenv.h with <stdlib.h>.
24492         * modules/unsetenv: New file.
24493         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
24494         * lib/unsetenv.c: Include <stdlib.h> first.
24495         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
24496         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
24497         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
24498         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
24499         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
24500         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24501         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
24502         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24503         * doc/functions/unsetenv.texi: Update.
24504         * modules/xsetenv (Depends-on): Add unsetenv.
24505         * modules/getdate (Depends-on): Likewise.
24506         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
24507         * lib/xsetenv.c: Don't include setenv.h.
24508         * lib/getdate.y: Likewise.
24509         * lib/relocwrapper.c: Likewise.
24510         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
24511         (Depends-on): Add stdlib.
24512         * NEWS: Mention the changes.
24513         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
24514
24515 2007-12-23  Bruno Haible  <bruno@clisp.org>
24516
24517         * lib/memmem.c (memmem): Use lowercase variable names. Tab
24518         indentation.
24519
24520 2007-12-23  Bruno Haible  <bruno@clisp.org>
24521
24522         * lib/c-strcasestr.c: Add more comments.
24523         * lib/c-strstr.c: Likewise.
24524         * lib/mbscasestr.c: Likewise.
24525         * lib/mbsstr.c: Likewise.
24526         * lib/strcasestr.c: Likewise.
24527         * lib/memmem.c: Likewise.
24528
24529 2007-12-23  Bruno Haible  <bruno@clisp.org>
24530
24531         * tests/test-memmem.c: Include <string.h> first.
24532
24533 2007-12-22  Bruno Haible  <bruno@clisp.org>
24534
24535         * gnulib-tool (func_create_testdir): Change $auxdir while generating
24536         the contents of $testsbase.
24537         Reported by Ralf Wildenhues.
24538
24539 2007-12-22  Bruno Haible  <bruno@clisp.org>
24540
24541         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
24542         two variables local_ldadd_before, local_ldadd_last.
24543
24544 2007-12-20  Eric Blake  <ebb9@byu.net>
24545
24546         Work around circular library issue when cross-compiling.
24547         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
24548         that progname.o does not need to pull in rpl_memcmp.
24549
24550 2007-12-19  Eric Blake  <ebb9@byu.net>
24551
24552         Fix memmem to avoid O(n^2) worst-case complexity.
24553         * lib/memmem.c (knuth_morris_pratt): New function.
24554         (memmem): Use it if first few naive iterations fail.
24555         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
24556         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
24557         * modules/memchr (License): Likewise.
24558         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
24559         malloca.
24560         * tests/test-memmem.c: Rewrite, borrowing ideas from
24561         test-mbsstr1.c; the old version wouldn't even compile!
24562         * modules/memmem-tests: New file.
24563         * lib/string.in.h (rpl_memmem): Add declaration.
24564         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
24565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
24566         REPLACE_MEMMEM.
24567
24568 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24569
24570         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
24571         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
24572         before any system include files, and undef after them all.  This
24573         should fix a problem on VMS reported by John E. Malmberg in
24574         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
24575
24576 2007-12-17  Eric Blake  <ebb9@byu.net>
24577
24578         Revert addition of verify, for BSD/OS.
24579         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
24580         can't handle large files, for the sake of obsolete platforms.
24581         * modules/fseeko (Depends-on): Remove verify.
24582         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
24583         * doc/functions/ftello.texi (ftello): Likewise.
24584         * doc/functions/fgetpos.texi (fgetpos): Likewise.
24585         Reported by Larry Jones.
24586
24587 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
24588
24589         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
24590         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
24591
24592 2007-12-17  Jim Meyering  <meyering@redhat.com>
24593
24594         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
24595         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
24596         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
24597         * modules/getcwd (Depends-on): Add openat.
24598         Reported by Petr Salinger.
24599
24600 2007-12-17  Bruno Haible  <bruno@clisp.org>
24601
24602         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
24603         avoid a segmentation fault of the configure test on x86_64 systems.
24604
24605 2007-12-15  Jim Meyering  <meyering@redhat.com>
24606
24607         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
24608
24609 2007-12-13  Eric Blake  <ebb9@byu.net>
24610
24611         Another fseek test.
24612         * tests/test-fseek.c (main): Also test ungetc handling.
24613         * tests/test-fseeko.c (main): Likewise.
24614         * modules/fseeko (Depends-on): Add verify.
24615         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
24616         large.
24617         Reported by Larry Jones.
24618
24619         Fix fseeko on mingw.
24620         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
24621         seek.
24622
24623         Beef up fseek tests.
24624         * tests/test-fseek.c (main): Also test eof handling.
24625         * tests/test-fseeko.c (main): Likewise.
24626         Reported by Larry Jones.
24627
24628 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
24629
24630         Fix fseeko on BSD-based platforms.
24631         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
24632         successful seek.
24633
24634 2007-12-12  Eric Blake  <ebb9@byu.net>
24635
24636         Allow circular dependency of separate libtests.a
24637         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
24638         when use_libtests.
24639
24640 2007-12-11  Eric Blake  <ebb9@byu.net>
24641
24642         Fix bug with -0.0L in previous patch.
24643         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
24644         * tests/test-isnan.c (main): Also test on zeroes.
24645         * tests/test-isnanf.c (main): Likewise.
24646         * tests/test-isnanl.h (main): Likewise.
24647
24648         Detect pseudo-denormals on x86 even when cross-compiling.
24649         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
24650         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
24651         invalid bit patterns that happen to satisfy ==.
24652
24653         Avoid link failures with separate libtests.a.
24654         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
24655         last, to satisfy circular dependencies.
24656
24657 2007-12-11  Eric Blake  <ebb9@byu.net>
24658         and Bruno Haible  <bruno@clisp.org>
24659
24660         Fix OpenBSD 4.0 <float.h> handling of long double.
24661         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
24662         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
24663         * doc/headers/float.texi (float.h): Document OpenBSD bug.
24664
24665 2007-12-11  Jim Meyering  <meyering@redhat.com>
24666
24667         * users.txt: Add libvirt.
24668
24669         Support versions of autoconf prior to 2.59c.
24670         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
24671         if it is not already defined.
24672
24673 2007-12-09  Bruno Haible  <bruno@clisp.org>
24674
24675         Let 'gnulib-tool --import' collect sources needed for the tests in
24676         tests/ rather than in lib/.
24677         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
24678         argument. If true, add rules to generate libtests.a, and put libtests.a
24679         into $(LDADD). Consider source files in subdirectories and set
24680         uses_subdirs.
24681         (func_emit_initmacro_start, func_emit_initmacro_end,
24682         func_emit_initmacro_done): Pass all arguments explicitly.
24683         (func_import): Determine two module lists main_modules,
24684         testsrelated_modules. Determine use_libtests. Determine two variables
24685         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
24686         instead of just sed_transform_lib_file. Determine two variables
24687         main_files and testsrelated_files. Compute 'files' as the union of
24688         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
24689         func_add_or_update. In the generated gnulib-comp.m4, collect the
24690         object files for tests/ in different variables than those for lib/.
24691         Substitute LIBTESTS_LIBDEPS.
24692         (func_create_testdir): Combine the uses_subdirs results from
24693         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
24694
24695 2007-12-09  Bruno Haible  <bruno@clisp.org>
24696
24697         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
24698         the build-aux directory.
24699
24700 2007-12-09  Bruno Haible  <bruno@clisp.org>
24701
24702         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
24703         introduced on 2006-09-09.
24704
24705 2007-12-07  Jim Meyering  <meyering@redhat.com>
24706
24707         Let these macros work also with autoconf-2.59.
24708         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
24709         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
24710         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24711
24712 2007-12-06  Jim Meyering  <meyering@redhat.com>
24713
24714         Avoid a configure-time syntax error in gl_FUNC_ACL.
24715         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
24716         function in each branch, before testing the cache variable.
24717
24718 2007-12-04  Eric Blake  <ebb9@byu.net>
24719
24720         Make scripts executable.
24721         * build-aux/config.guess: Add execute permissions.
24722         * build-aux/config.sub: Likewise.
24723         * build-aux/gendocs.sh: Likewise.
24724
24725         Fix frexp on mingw.
24726         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
24727         cross-compiling.
24728         * doc/functions/frexp.texi (frexp): Document the bug.
24729
24730         Make cygwin fseeko check more reliable.
24731         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
24732         version numbers, rather than unrelated feature check.
24733         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
24734         * doc/functions/ftello.texi (ftello): Likewise.
24735         Reported by Bruno Haible.
24736
24737         * m4/strerror.m4: Bump version number.
24738
24739 2007-12-03  Bruno Haible  <bruno@clisp.org>
24740
24741         * doc/functions/mprotect.texi: Mention the mingw problem.
24742
24743 2007-12-03  Eric Blake  <ebb9@byu.net>
24744
24745         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
24746         REPLACE_STRERROR is initialized before this macro.
24747
24748 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
24749
24750         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
24751         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
24752         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
24753         put -lsec in even for programs other than 'ls'.  This fixes a problem
24754         for gettext reported by Bruno Haible in
24755         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
24756         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
24757         Add support for Solaris 10.  This isn't efficient, but should get the
24758         job done for now.
24759
24760 2007-12-03  James Youngman  <jay@gnu.org>
24761
24762         * doc/regexprops-generic.texi: change "an close-group" to "a
24763         close-group" and "illegal" to "not allowed".
24764
24765 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24766
24767         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
24768         pr_byname.h. Needed for the rare case when the maintainer has done
24769         "make maintainer-clean" in the source directory and then attempts a
24770         build outside the source directory.
24771         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
24772         scripts_byname.h.
24773
24774 2007-12-02  Martin Lambers <marlam@marlam.de>
24775             Bruno Haible  <bruno@clisp.org>
24776
24777         * lib/getpagesize.h: Remove file.
24778         * lib/unistd.in.h: Include declaration of getpagesize here.
24779         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
24780         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
24781         HAVE_SYS_PARAM_H.
24782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
24783         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24784         * modules/getpagesize (Files): Remove lib/getpagesize.h.
24785         (Depends-on): Add unistd.
24786         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24787         (Include): Use <unistd.h> instead of getpagesize.h.
24788         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
24789         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24790         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
24791         gl_GETPAGESIZE invocation, already handled by module dependency.
24792         * lib/pagealign_alloc.c: Don't include getpagesize.h.
24793
24794 2007-12-02  Bruno Haible  <bruno@clisp.org>
24795
24796         * modules/strings-tests: New file.
24797         * tests/test-strings.c: New file.
24798
24799         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
24800         * lib/strings.in.h: New file.
24801         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
24802         * m4/strings_h.m4: New file.
24803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
24804         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
24805         * modules/strings: New file.
24806         * modules/string (Makefile.am): Update.
24807         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
24808         Reported by Karl Berry.
24809
24810 2007-12-01  Eric Blake  <ebb9@byu.net>
24811
24812         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
24813         accomodate fix in cygwin 1.5.25.
24814
24815 2007-12-01  Jim Meyering  <meyering@redhat.com>
24816
24817         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
24818         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
24819         that would inhibit utf8-optimization of a regexp containing line-
24820         or buffer-anchors, e.g., `^', `$'.
24821
24822 2007-11-30  Bruno Haible  <bruno@clisp.org>
24823
24824         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
24825         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
24826         glthread_recursive_lock_init.
24827         * lib/lock.c (glthread_recursive_lock_init)
24828         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
24829         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24830
24831 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
24832
24833         New function qset_acl, like set_acl but with syscall semantics.
24834         * lib/acl.h (qset_acl): New decl.
24835         * lib/acl.c (qset_acl): New function.
24836         (set_acl): Use new function.  Use more-consistent diagnostics.
24837
24838 2007-11-28  Jim Meyering  <meyering@redhat.com>
24839
24840         * modules/physmem (License): Change from GPL to LGPLv2+.
24841
24842 2007-11-26  Bruno Haible  <bruno@clisp.org>
24843
24844         * lib/vasnprintf.c (decode_long_double): Don't abort if the
24845         'long double' type has excess precision.
24846         Reported by Jim Meyering in
24847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
24848
24849 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24850
24851         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
24852         Sync from <http://gnu.org/licenses>.
24853         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
24854         with license text from same location.
24855         * doc/maintain.texi, doc/standards.texi:  Sync from
24856         <http://savannah.gnu.org/projects/gnustandards>.
24857
24858 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
24859         and Jim Meyering  <meyering@redhat.com>
24860
24861         Adjust getdate' grammar to accept a slightly more regular language.
24862         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
24863         Before, the former was rejected.
24864         * lib/getdate.y (digits_to_date_time): New function, factored
24865         out of ...
24866         (number): ...here.  Just call digits_to_date_time.
24867         (hybrid): New non-terminal to handle an <unsigned number,
24868         signed relative offset> sequence consistently.
24869
24870 2007-11-18  Jim Meyering  <meyering@redhat.com>
24871
24872         Pull my changes from coreutils:
24873         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
24874         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
24875         use of $gnulib_tool_option_extras, so that it's separated from the
24876         preceding argument.
24877
24878         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
24879         * build-aux/bootstrap (cp_mark_as_generated): Create any required
24880         parent destination directories before copying a file into place.
24881
24882 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
24883
24884         bootstrap: work also with 4-argument variant of AC_INIT
24885         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
24886
24887 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
24888
24889         Port test-getaddrinfo to Solaris.
24890         Problem reported by Bruno Haible in
24891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
24892         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
24893         explanation of setting 'hints'.
24894         Don't reject an implementation merely because it returns EAI_SERVICE.
24895         (EAI_SERVICE): Define to 0 if not defined.
24896
24897 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24898
24899         The license of gnu-make and posix-shell is now "GPLed build tool".
24900         * modules/gnu-make (License): Likewise.
24901         * modules/posix-shell (License): Likewise.
24902
24903         New module posix-shell, for determining a POSIX shell
24904         or perhaps something that is close enough to a POSIX shell.
24905         * m4/posix-shell.m4: New file.
24906         * modules/posix-shell: New file.
24907
24908         * MODULES.html.sh: Mention new module.
24909
24910         New module gnu-make, for determining whether we're using GNU Make.
24911         * m4/gnu-make.m4: New file.
24912         * modules/gnu-make: New file.
24913         * MODULES.html.sh: Mention new module.
24914
24915 2007-11-14  Jim Meyering  <meyering@redhat.com>
24916
24917         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
24918         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
24919         use this macro to create a function _definition_.
24920         Remove useless "#undef ARGMATCH_DIE".
24921
24922 2007-11-14  Bruno Haible  <bruno@clisp.org>
24923
24924         * lib/config.charset: Update for OpenBSD 4.1.
24925         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
24926
24927 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
24928
24929         Document 64-bit #if problems in stdint.texi.
24930         * doc/headers/stdint.texi (stdint.h): Mention problems with
24931         64-bit-#if, and how to work around them.
24932
24933         Don't insist on 'long long int' support in the preprocessor.  It
24934         breaks too many things.  For example, PRIdMAX still uses a 'long
24935         long int' format with the latest Sun compiler, even though
24936         HAVE_LONG_LONG_INT isn't defined due to that compiler's
24937         preprocessor problem.  This causes the latest coreutils to dump
24938         core on Solaris 10 sparc with the Sun C compiler.
24939         Instead, fix the 2007-10-16 problem in a different way, by evaluating
24940         the troublesome expressions at configure-time, not at #if-time.
24941         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
24942         preprocessor.
24943         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
24944         compile-time C checks, done at 'configure'-time.
24945         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
24946         * modules/inttypes (Makefile): Substitute the new symbols that
24947         gl_INTTYPES_H now generates.
24948         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
24949
24950 2007-11-12  Bruno Haible  <bruno@clisp.org>
24951
24952         Tests for Unicode character classification functions.
24953
24954         * modules/unictype/bidicategory-byname-tests: New file.
24955         * modules/unictype/bidicategory-name-tests: New file.
24956         * modules/unictype/bidicategory-of-tests: New file.
24957         * modules/unictype/bidicategory-test-tests: New file.
24958         * modules/unictype/block-list-tests: New file.
24959         * modules/unictype/block-of-tests: New file.
24960         * modules/unictype/block-test-tests: New file.
24961         * modules/unictype/category-C-tests: New file.
24962         * modules/unictype/category-Cc-tests: New file.
24963         * modules/unictype/category-Cf-tests: New file.
24964         * modules/unictype/category-Cn-tests: New file.
24965         * modules/unictype/category-Co-tests: New file.
24966         * modules/unictype/category-Cs-tests: New file.
24967         * modules/unictype/category-L-tests: New file.
24968         * modules/unictype/category-Ll-tests: New file.
24969         * modules/unictype/category-Lm-tests: New file.
24970         * modules/unictype/category-Lo-tests: New file.
24971         * modules/unictype/category-Lt-tests: New file.
24972         * modules/unictype/category-Lu-tests: New file.
24973         * modules/unictype/category-M-tests: New file.
24974         * modules/unictype/category-Mc-tests: New file.
24975         * modules/unictype/category-Me-tests: New file.
24976         * modules/unictype/category-Mn-tests: New file.
24977         * modules/unictype/category-N-tests: New file.
24978         * modules/unictype/category-Nd-tests: New file.
24979         * modules/unictype/category-Nl-tests: New file.
24980         * modules/unictype/category-No-tests: New file.
24981         * modules/unictype/category-P-tests: New file.
24982         * modules/unictype/category-Pc-tests: New file.
24983         * modules/unictype/category-Pd-tests: New file.
24984         * modules/unictype/category-Pe-tests: New file.
24985         * modules/unictype/category-Pf-tests: New file.
24986         * modules/unictype/category-Pi-tests: New file.
24987         * modules/unictype/category-Po-tests: New file.
24988         * modules/unictype/category-Ps-tests: New file.
24989         * modules/unictype/category-S-tests: New file.
24990         * modules/unictype/category-Sc-tests: New file.
24991         * modules/unictype/category-Sk-tests: New file.
24992         * modules/unictype/category-Sm-tests: New file.
24993         * modules/unictype/category-So-tests: New file.
24994         * modules/unictype/category-Z-tests: New file.
24995         * modules/unictype/category-Zl-tests: New file.
24996         * modules/unictype/category-Zp-tests: New file.
24997         * modules/unictype/category-Zs-tests: New file.
24998         * modules/unictype/category-and-not-tests: New file.
24999         * modules/unictype/category-and-tests: New file.
25000         * modules/unictype/category-byname-tests: New file.
25001         * modules/unictype/category-name-tests: New file.
25002         * modules/unictype/category-none-tests: New file.
25003         * modules/unictype/category-of-tests: New file.
25004         * modules/unictype/category-or-tests: New file.
25005         * modules/unictype/category-test-withtable-tests: New file.
25006         * modules/unictype/combining-class-tests: New file.
25007         * modules/unictype/ctype-alnum-tests: New file.
25008         * modules/unictype/ctype-alpha-tests: New file.
25009         * modules/unictype/ctype-blank-tests: New file.
25010         * modules/unictype/ctype-cntrl-tests: New file.
25011         * modules/unictype/ctype-digit-tests: New file.
25012         * modules/unictype/ctype-graph-tests: New file.
25013         * modules/unictype/ctype-lower-tests: New file.
25014         * modules/unictype/ctype-print-tests: New file.
25015         * modules/unictype/ctype-punct-tests: New file.
25016         * modules/unictype/ctype-space-tests: New file.
25017         * modules/unictype/ctype-upper-tests: New file.
25018         * modules/unictype/ctype-xdigit-tests: New file.
25019         * modules/unictype/decimal-digit-tests: New file.
25020         * modules/unictype/digit-tests: New file.
25021         * modules/unictype/mirror-tests: New file.
25022         * modules/unictype/numeric-tests: New file.
25023         * modules/unictype/property-alphabetic-tests: New file.
25024         * modules/unictype/property-ascii-hex-digit-tests: New file.
25025         * modules/unictype/property-bidi-arabic-digit-tests: New file.
25026         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
25027         * modules/unictype/property-bidi-block-separator-tests: New file.
25028         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
25029         * modules/unictype/property-bidi-common-separator-tests: New file.
25030         * modules/unictype/property-bidi-control-tests: New file.
25031         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
25032         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
25033         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
25034         * modules/unictype/property-bidi-european-digit-tests: New file.
25035         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
25036         * modules/unictype/property-bidi-left-to-right-tests: New file.
25037         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
25038         * modules/unictype/property-bidi-other-neutral-tests: New file.
25039         * modules/unictype/property-bidi-pdf-tests: New file.
25040         * modules/unictype/property-bidi-segment-separator-tests: New file.
25041         * modules/unictype/property-bidi-whitespace-tests: New file.
25042         * modules/unictype/property-byname-tests: New file.
25043         * modules/unictype/property-combining-tests: New file.
25044         * modules/unictype/property-composite-tests: New file.
25045         * modules/unictype/property-currency-symbol-tests: New file.
25046         * modules/unictype/property-dash-tests: New file.
25047         * modules/unictype/property-decimal-digit-tests: New file.
25048         * modules/unictype/property-default-ignorable-code-point-tests: New file.
25049         * modules/unictype/property-deprecated-tests: New file.
25050         * modules/unictype/property-diacritic-tests: New file.
25051         * modules/unictype/property-extender-tests: New file.
25052         * modules/unictype/property-format-control-tests: New file.
25053         * modules/unictype/property-grapheme-base-tests: New file.
25054         * modules/unictype/property-grapheme-extend-tests: New file.
25055         * modules/unictype/property-grapheme-link-tests: New file.
25056         * modules/unictype/property-hex-digit-tests: New file.
25057         * modules/unictype/property-hyphen-tests: New file.
25058         * modules/unictype/property-id-continue-tests: New file.
25059         * modules/unictype/property-id-start-tests: New file.
25060         * modules/unictype/property-ideographic-tests: New file.
25061         * modules/unictype/property-ids-binary-operator-tests: New file.
25062         * modules/unictype/property-ids-trinary-operator-tests: New file.
25063         * modules/unictype/property-ignorable-control-tests: New file.
25064         * modules/unictype/property-iso-control-tests: New file.
25065         * modules/unictype/property-join-control-tests: New file.
25066         * modules/unictype/property-left-of-pair-tests: New file.
25067         * modules/unictype/property-line-separator-tests: New file.
25068         * modules/unictype/property-logical-order-exception-tests: New file.
25069         * modules/unictype/property-lowercase-tests: New file.
25070         * modules/unictype/property-math-tests: New file.
25071         * modules/unictype/property-non-break-tests: New file.
25072         * modules/unictype/property-not-a-character-tests: New file.
25073         * modules/unictype/property-numeric-tests: New file.
25074         * modules/unictype/property-other-alphabetic-tests: New file.
25075         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
25076         * modules/unictype/property-other-grapheme-extend-tests: New file.
25077         * modules/unictype/property-other-id-continue-tests: New file.
25078         * modules/unictype/property-other-id-start-tests: New file.
25079         * modules/unictype/property-other-lowercase-tests: New file.
25080         * modules/unictype/property-other-math-tests: New file.
25081         * modules/unictype/property-other-uppercase-tests: New file.
25082         * modules/unictype/property-paired-punctuation-tests: New file.
25083         * modules/unictype/property-paragraph-separator-tests: New file.
25084         * modules/unictype/property-pattern-syntax-tests: New file.
25085         * modules/unictype/property-pattern-white-space-tests: New file.
25086         * modules/unictype/property-private-use-tests: New file.
25087         * modules/unictype/property-punctuation-tests: New file.
25088         * modules/unictype/property-quotation-mark-tests: New file.
25089         * modules/unictype/property-radical-tests: New file.
25090         * modules/unictype/property-sentence-terminal-tests: New file.
25091         * modules/unictype/property-soft-dotted-tests: New file.
25092         * modules/unictype/property-space-tests: New file.
25093         * modules/unictype/property-terminal-punctuation-tests: New file.
25094         * modules/unictype/property-test-tests: New file.
25095         * modules/unictype/property-titlecase-tests: New file.
25096         * modules/unictype/property-unassigned-code-value-tests: New file.
25097         * modules/unictype/property-unified-ideograph-tests: New file.
25098         * modules/unictype/property-uppercase-tests: New file.
25099         * modules/unictype/property-variation-selector-tests: New file.
25100         * modules/unictype/property-white-space-tests: New file.
25101         * modules/unictype/property-xid-continue-tests: New file.
25102         * modules/unictype/property-xid-start-tests: New file.
25103         * modules/unictype/property-zero-width-tests: New file.
25104         * modules/unictype/scripts-tests: New file.
25105         * modules/unictype/syntax-c-ident-tests: New file.
25106         * modules/unictype/syntax-c-whitespace-tests: New file.
25107         * modules/unictype/syntax-java-ident-tests: New file.
25108         * modules/unictype/syntax-java-whitespace-tests: New file.
25109         * tests/unictype/test-bidi_byname.c: New file.
25110         * tests/unictype/test-bidi_name.c: New file.
25111         * tests/unictype/test-bidi_of.c: New file.
25112         * tests/unictype/test-bidi_test.c: New file.
25113         * tests/unictype/test-block_list.c: New file.
25114         * tests/unictype/test-block_of.c: New file.
25115         * tests/unictype/test-block_test.c: New file.
25116         * tests/unictype/test-categ_and.c: New file.
25117         * tests/unictype/test-categ_and_not.c: New file.
25118         * tests/unictype/test-categ_byname.c: New file.
25119         * tests/unictype/test-categ_name.c: New file.
25120         * tests/unictype/test-categ_none.c: New file.
25121         * tests/unictype/test-categ_of.c: New file.
25122         * tests/unictype/test-categ_or.c: New file.
25123         * tests/unictype/test-categ_test_withtable.c: New file.
25124         * tests/unictype/test-combining.c: New file.
25125         * tests/unictype/test-decdigit.c: New file.
25126         * tests/unictype/test-digit.c: New file.
25127         * tests/unictype/test-mirror.c: New file.
25128         * tests/unictype/test-numeric.c: New file.
25129         * tests/unictype/test-pr_byname.c: New file.
25130         * tests/unictype/test-pr_test.c: New file.
25131         * tests/unictype/test-predicate-part1.h: New file.
25132         * tests/unictype/test-predicate-part2.h: New file.
25133         * tests/unictype/test-scripts.c: New file.
25134         * tests/unictype/test-sy_c_ident.c: New file.
25135         * tests/unictype/test-sy_java_ident.c: New file.
25136
25137         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
25138         for Unicode 5.0.0.
25139         * tests/unictype/test-categ_Cc.c: Likewise.
25140         * tests/unictype/test-categ_Cf.c: Likewise.
25141         * tests/unictype/test-categ_Cn.c: Likewise.
25142         * tests/unictype/test-categ_Co.c: Likewise.
25143         * tests/unictype/test-categ_Cs.c: Likewise.
25144         * tests/unictype/test-categ_L.c: Likewise.
25145         * tests/unictype/test-categ_Ll.c: Likewise.
25146         * tests/unictype/test-categ_Lm.c: Likewise.
25147         * tests/unictype/test-categ_Lo.c: Likewise.
25148         * tests/unictype/test-categ_Lt.c: Likewise.
25149         * tests/unictype/test-categ_Lu.c: Likewise.
25150         * tests/unictype/test-categ_M.c: Likewise.
25151         * tests/unictype/test-categ_Mc.c: Likewise.
25152         * tests/unictype/test-categ_Me.c: Likewise.
25153         * tests/unictype/test-categ_Mn.c: Likewise.
25154         * tests/unictype/test-categ_N.c: Likewise.
25155         * tests/unictype/test-categ_Nd.c: Likewise.
25156         * tests/unictype/test-categ_Nl.c: Likewise.
25157         * tests/unictype/test-categ_No.c: Likewise.
25158         * tests/unictype/test-categ_P.c: Likewise.
25159         * tests/unictype/test-categ_Pc.c: Likewise.
25160         * tests/unictype/test-categ_Pd.c: Likewise.
25161         * tests/unictype/test-categ_Pe.c: Likewise.
25162         * tests/unictype/test-categ_Pf.c: Likewise.
25163         * tests/unictype/test-categ_Pi.c: Likewise.
25164         * tests/unictype/test-categ_Po.c: Likewise.
25165         * tests/unictype/test-categ_Ps.c: Likewise.
25166         * tests/unictype/test-categ_S.c: Likewise.
25167         * tests/unictype/test-categ_Sc.c: Likewise.
25168         * tests/unictype/test-categ_Sk.c: Likewise.
25169         * tests/unictype/test-categ_Sm.c: Likewise.
25170         * tests/unictype/test-categ_So.c: Likewise.
25171         * tests/unictype/test-categ_Z.c: Likewise.
25172         * tests/unictype/test-categ_Zl.c: Likewise.
25173         * tests/unictype/test-categ_Zp.c: Likewise.
25174         * tests/unictype/test-categ_Zs.c: Likewise.
25175         * tests/unictype/test-ctype_alnum.c: Likewise.
25176         * tests/unictype/test-ctype_alpha.c: Likewise.
25177         * tests/unictype/test-ctype_blank.c: Likewise.
25178         * tests/unictype/test-ctype_cntrl.c: Likewise.
25179         * tests/unictype/test-ctype_digit.c: Likewise.
25180         * tests/unictype/test-ctype_graph.c: Likewise.
25181         * tests/unictype/test-ctype_lower.c: Likewise.
25182         * tests/unictype/test-ctype_print.c: Likewise.
25183         * tests/unictype/test-ctype_punct.c: Likewise.
25184         * tests/unictype/test-ctype_space.c: Likewise.
25185         * tests/unictype/test-ctype_upper.c: Likewise.
25186         * tests/unictype/test-ctype_xdigit.c: Likewise.
25187         * tests/unictype/test-decdigit.h: Likewise.
25188         * tests/unictype/test-digit.h: Likewise.
25189         * tests/unictype/test-numeric.h: Likewise.
25190         * tests/unictype/test-pr_alphabetic.c: Likewise.
25191         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
25192         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25193         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25194         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
25195         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25196         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
25197         * tests/unictype/test-pr_bidi_control.c: Likewise.
25198         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
25199         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
25200         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25201         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25202         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25203         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25204         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25205         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25206         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
25207         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
25208         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
25209         * tests/unictype/test-pr_combining.c: Likewise.
25210         * tests/unictype/test-pr_composite.c: Likewise.
25211         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25212         * tests/unictype/test-pr_dash.c: Likewise.
25213         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25214         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
25215         * tests/unictype/test-pr_deprecated.c: Likewise.
25216         * tests/unictype/test-pr_diacritic.c: Likewise.
25217         * tests/unictype/test-pr_extender.c: Likewise.
25218         * tests/unictype/test-pr_format_control.c: Likewise.
25219         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25220         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25221         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25222         * tests/unictype/test-pr_hex_digit.c: Likewise.
25223         * tests/unictype/test-pr_hyphen.c: Likewise.
25224         * tests/unictype/test-pr_id_continue.c: Likewise.
25225         * tests/unictype/test-pr_id_start.c: Likewise.
25226         * tests/unictype/test-pr_ideographic.c: Likewise.
25227         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
25228         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
25229         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25230         * tests/unictype/test-pr_iso_control.c: Likewise.
25231         * tests/unictype/test-pr_join_control.c: Likewise.
25232         * tests/unictype/test-pr_left_of_pair.c: Likewise.
25233         * tests/unictype/test-pr_line_separator.c: Likewise.
25234         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25235         * tests/unictype/test-pr_lowercase.c: Likewise.
25236         * tests/unictype/test-pr_math.c: Likewise.
25237         * tests/unictype/test-pr_non_break.c: Likewise.
25238         * tests/unictype/test-pr_not_a_character.c: Likewise.
25239         * tests/unictype/test-pr_numeric.c: Likewise.
25240         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25241         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
25242         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
25243         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25244         * tests/unictype/test-pr_other_id_start.c: Likewise.
25245         * tests/unictype/test-pr_other_lowercase.c: Likewise.
25246         * tests/unictype/test-pr_other_math.c: Likewise.
25247         * tests/unictype/test-pr_other_uppercase.c: Likewise.
25248         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
25249         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
25250         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
25251         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
25252         * tests/unictype/test-pr_private_use.c: Likewise.
25253         * tests/unictype/test-pr_punctuation.c: Likewise.
25254         * tests/unictype/test-pr_quotation_mark.c: Likewise.
25255         * tests/unictype/test-pr_radical.c: Likewise.
25256         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25257         * tests/unictype/test-pr_soft_dotted.c: Likewise.
25258         * tests/unictype/test-pr_space.c: Likewise.
25259         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25260         * tests/unictype/test-pr_titlecase.c: Likewise.
25261         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25262         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25263         * tests/unictype/test-pr_uppercase.c: Likewise.
25264         * tests/unictype/test-pr_variation_selector.c: Likewise.
25265         * tests/unictype/test-pr_white_space.c: Likewise.
25266         * tests/unictype/test-pr_xid_continue.c: Likewise.
25267         * tests/unictype/test-pr_xid_start.c: Likewise.
25268         * tests/unictype/test-pr_zero_width.c: Likewise.
25269         * tests/unictype/test-sy_c_whitespace.c: Likewise.
25270         * tests/unictype/test-sy_java_whitespace.c: Likewise.
25271
25272 2007-11-12  Bruno Haible  <bruno@clisp.org>
25273
25274         Unicode character classification functions.
25275         * lib/unictype.h: New file.
25276         * modules/unictype/base: New file.
25277         * modules/unictype/category-L: New file.
25278         * modules/unictype/category-Lu: New file.
25279         * modules/unictype/category-Ll: New file.
25280         * modules/unictype/category-Lt: New file.
25281         * modules/unictype/category-Lm: New file.
25282         * modules/unictype/category-Lo: New file.
25283         * modules/unictype/category-M: New file.
25284         * modules/unictype/category-Mn: New file.
25285         * modules/unictype/category-Mc: New file.
25286         * modules/unictype/category-Me: New file.
25287         * modules/unictype/category-N: New file.
25288         * modules/unictype/category-Nd: New file.
25289         * modules/unictype/category-Nl: New file.
25290         * modules/unictype/category-No: New file.
25291         * modules/unictype/category-P: New file.
25292         * modules/unictype/category-Pc: New file.
25293         * modules/unictype/category-Pd: New file.
25294         * modules/unictype/category-Ps: New file.
25295         * modules/unictype/category-Pe: New file.
25296         * modules/unictype/category-Pi: New file.
25297         * modules/unictype/category-Pf: New file.
25298         * modules/unictype/category-Po: New file.
25299         * modules/unictype/category-S: New file.
25300         * modules/unictype/category-Sm: New file.
25301         * modules/unictype/category-Sc: New file.
25302         * modules/unictype/category-Sk: New file.
25303         * modules/unictype/category-So: New file.
25304         * modules/unictype/category-Z: New file.
25305         * modules/unictype/category-Zs: New file.
25306         * modules/unictype/category-Zl: New file.
25307         * modules/unictype/category-Zp: New file.
25308         * modules/unictype/category-C: New file.
25309         * modules/unictype/category-Cc: New file.
25310         * modules/unictype/category-Cf: New file.
25311         * modules/unictype/category-Cs: New file.
25312         * modules/unictype/category-Co: New file.
25313         * modules/unictype/category-Cn: New file.
25314         * modules/unictype/category-or: New file.
25315         * modules/unictype/category-of: New file.
25316         * modules/unictype/category-test: New file.
25317         * modules/unictype/category-test-withtable: New file.
25318         * modules/unictype/category-byname: New file.
25319         * modules/unictype/category-none: New file.
25320         * modules/unictype/category-and: New file.
25321         * modules/unictype/category-and-not: New file.
25322         * modules/unictype/category-name: New file.
25323         * modules/unictype/combining-class: New file.
25324         * modules/unictype/category-all: New file.
25325         * modules/unictype/bidicategory-all: New file.
25326         * modules/unictype/bidicategory-byname: New file.
25327         * modules/unictype/bidicategory-name: New file.
25328         * modules/unictype/bidicategory-of: New file.
25329         * modules/unictype/bidicategory-test: New file.
25330         * modules/unictype/decimal-digit: New file.
25331         * modules/unictype/digit: New file.
25332         * modules/unictype/numeric: New file.
25333         * modules/unictype/mirror: New file.
25334         * modules/unictype/property-white-space: New file.
25335         * modules/unictype/property-alphabetic: New file.
25336         * modules/unictype/property-other-alphabetic: New file.
25337         * modules/unictype/property-not-a-character: New file.
25338         * modules/unictype/property-default-ignorable-code-point: New file.
25339         * modules/unictype/property-other-default-ignorable-code-point: New
25340         file.
25341         * modules/unictype/property-deprecated: New file.
25342         * modules/unictype/property-logical-order-exception: New file.
25343         * modules/unictype/property-variation-selector: New file.
25344         * modules/unictype/property-private-use: New file.
25345         * modules/unictype/property-unassigned-code-value: New file.
25346         * modules/unictype/property-uppercase: New file.
25347         * modules/unictype/property-other-uppercase: New file.
25348         * modules/unictype/property-lowercase: New file.
25349         * modules/unictype/property-other-lowercase: New file.
25350         * modules/unictype/property-titlecase: New file.
25351         * modules/unictype/property-soft-dotted: New file.
25352         * modules/unictype/property-id-start: New file.
25353         * modules/unictype/property-other-id-start: New file.
25354         * modules/unictype/property-id-continue: New file.
25355         * modules/unictype/property-other-id-continue: New file.
25356         * modules/unictype/property-xid-start: New file.
25357         * modules/unictype/property-xid-continue: New file.
25358         * modules/unictype/property-pattern-white-space: New file.
25359         * modules/unictype/property-pattern-syntax: New file.
25360         * modules/unictype/property-join-control: New file.
25361         * modules/unictype/property-grapheme-base: New file.
25362         * modules/unictype/property-grapheme-extend: New file.
25363         * modules/unictype/property-other-grapheme-extend: New file.
25364         * modules/unictype/property-grapheme-link: New file.
25365         * modules/unictype/property-bidi-control: New file.
25366         * modules/unictype/property-bidi-left-to-right: New file.
25367         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
25368         * modules/unictype/property-bidi-arabic-right-to-left: New file.
25369         * modules/unictype/property-bidi-european-digit: New file.
25370         * modules/unictype/property-bidi-eur-num-separator: New file.
25371         * modules/unictype/property-bidi-eur-num-terminator: New file.
25372         * modules/unictype/property-bidi-arabic-digit: New file.
25373         * modules/unictype/property-bidi-common-separator: New file.
25374         * modules/unictype/property-bidi-block-separator: New file.
25375         * modules/unictype/property-bidi-segment-separator: New file.
25376         * modules/unictype/property-bidi-whitespace: New file.
25377         * modules/unictype/property-bidi-non-spacing-mark: New file.
25378         * modules/unictype/property-bidi-boundary-neutral: New file.
25379         * modules/unictype/property-bidi-pdf: New file.
25380         * modules/unictype/property-bidi-embedding-or-override: New file.
25381         * modules/unictype/property-bidi-other-neutral: New file.
25382         * modules/unictype/property-hex-digit: New file.
25383         * modules/unictype/property-ascii-hex-digit: New file.
25384         * modules/unictype/property-ideographic: New file.
25385         * modules/unictype/property-unified-ideograph: New file.
25386         * modules/unictype/property-radical: New file.
25387         * modules/unictype/property-ids-binary-operator: New file.
25388         * modules/unictype/property-ids-trinary-operator: New file.
25389         * modules/unictype/property-zero-width: New file.
25390         * modules/unictype/property-space: New file.
25391         * modules/unictype/property-non-break: New file.
25392         * modules/unictype/property-iso-control: New file.
25393         * modules/unictype/property-format-control: New file.
25394         * modules/unictype/property-dash: New file.
25395         * modules/unictype/property-hyphen: New file.
25396         * modules/unictype/property-punctuation: New file.
25397         * modules/unictype/property-line-separator: New file.
25398         * modules/unictype/property-paragraph-separator: New file.
25399         * modules/unictype/property-quotation-mark: New file.
25400         * modules/unictype/property-sentence-terminal: New file.
25401         * modules/unictype/property-terminal-punctuation: New file.
25402         * modules/unictype/property-currency-symbol: New file.
25403         * modules/unictype/property-math: New file.
25404         * modules/unictype/property-other-math: New file.
25405         * modules/unictype/property-paired-punctuation: New file.
25406         * modules/unictype/property-left-of-pair: New file.
25407         * modules/unictype/property-combining: New file.
25408         * modules/unictype/property-composite: New file.
25409         * modules/unictype/property-decimal-digit: New file.
25410         * modules/unictype/property-numeric: New file.
25411         * modules/unictype/property-diacritic: New file.
25412         * modules/unictype/property-extender: New file.
25413         * modules/unictype/property-ignorable-control: New file.
25414         * modules/unictype/property-test: New file.
25415         * modules/unictype/property-byname: New file.
25416         * modules/unictype/property-all: New file.
25417         * modules/unictype/scripts: New file.
25418         * modules/unictype/scripts-all: New file.
25419         * modules/unictype/block-of: New file.
25420         * modules/unictype/block-test: New file.
25421         * modules/unictype/block-list: New file.
25422         * modules/unictype/block-all: New file.
25423         * modules/unictype/syntax-c-whitespace: New file.
25424         * modules/unictype/syntax-java-whitespace: New file.
25425         * modules/unictype/syntax-c-ident: New file.
25426         * modules/unictype/syntax-java-ident: New file.
25427         * modules/unictype/ctype-alnum: New file.
25428         * modules/unictype/ctype-alpha: New file.
25429         * modules/unictype/ctype-cntrl: New file.
25430         * modules/unictype/ctype-digit: New file.
25431         * modules/unictype/ctype-graph: New file.
25432         * modules/unictype/ctype-lower: New file.
25433         * modules/unictype/ctype-print: New file.
25434         * modules/unictype/ctype-punct: New file.
25435         * modules/unictype/ctype-space: New file.
25436         * modules/unictype/ctype-upper: New file.
25437         * modules/unictype/ctype-xdigit: New file.
25438         * modules/unictype/ctype-blank: New file.
25439         * lib/unictype/bidi_byname.c: New file.
25440         * lib/unictype/bidi_name.c: New file.
25441         * lib/unictype/bidi_of.c: New file.
25442         * lib/unictype/bidi_test.c: New file.
25443         * lib/unictype/bitmap.h: New file.
25444         * lib/unictype/block_test.c: New file.
25445         * lib/unictype/blocks.c: New file.
25446         * lib/unictype/categ_C.c: New file.
25447         * lib/unictype/categ_Cc.c: New file.
25448         * lib/unictype/categ_Cf.c: New file.
25449         * lib/unictype/categ_Cn.c: New file.
25450         * lib/unictype/categ_Co.c: New file.
25451         * lib/unictype/categ_Cs.c: New file.
25452         * lib/unictype/categ_L.c: New file.
25453         * lib/unictype/categ_Ll.c: New file.
25454         * lib/unictype/categ_Lm.c: New file.
25455         * lib/unictype/categ_Lo.c: New file.
25456         * lib/unictype/categ_Lt.c: New file.
25457         * lib/unictype/categ_Lu.c: New file.
25458         * lib/unictype/categ_M.c: New file.
25459         * lib/unictype/categ_Mc.c: New file.
25460         * lib/unictype/categ_Me.c: New file.
25461         * lib/unictype/categ_Mn.c: New file.
25462         * lib/unictype/categ_N.c: New file.
25463         * lib/unictype/categ_Nd.c: New file.
25464         * lib/unictype/categ_Nl.c: New file.
25465         * lib/unictype/categ_No.c: New file.
25466         * lib/unictype/categ_P.c: New file.
25467         * lib/unictype/categ_Pc.c: New file.
25468         * lib/unictype/categ_Pd.c: New file.
25469         * lib/unictype/categ_Pe.c: New file.
25470         * lib/unictype/categ_Pf.c: New file.
25471         * lib/unictype/categ_Pi.c: New file.
25472         * lib/unictype/categ_Po.c: New file.
25473         * lib/unictype/categ_Ps.c: New file.
25474         * lib/unictype/categ_S.c: New file.
25475         * lib/unictype/categ_Sc.c: New file.
25476         * lib/unictype/categ_Sk.c: New file.
25477         * lib/unictype/categ_Sm.c: New file.
25478         * lib/unictype/categ_So.c: New file.
25479         * lib/unictype/categ_Z.c: New file.
25480         * lib/unictype/categ_Zl.c: New file.
25481         * lib/unictype/categ_Zp.c: New file.
25482         * lib/unictype/categ_Zs.c: New file.
25483         * lib/unictype/categ_and.c: New file.
25484         * lib/unictype/categ_and_not.c: New file.
25485         * lib/unictype/categ_byname.c: New file.
25486         * lib/unictype/categ_name.c: New file.
25487         * lib/unictype/categ_none.c: New file.
25488         * lib/unictype/categ_of.c: New file.
25489         * lib/unictype/categ_or.c: New file.
25490         * lib/unictype/categ_test.c: New file.
25491         * lib/unictype/combining.c: New file.
25492         * lib/unictype/ctype_alnum.c: New file.
25493         * lib/unictype/ctype_alpha.c: New file.
25494         * lib/unictype/ctype_blank.c: New file.
25495         * lib/unictype/ctype_cntrl.c: New file.
25496         * lib/unictype/ctype_digit.c: New file.
25497         * lib/unictype/ctype_graph.c: New file.
25498         * lib/unictype/ctype_lower.c: New file.
25499         * lib/unictype/ctype_print.c: New file.
25500         * lib/unictype/ctype_punct.c: New file.
25501         * lib/unictype/ctype_space.c: New file.
25502         * lib/unictype/ctype_upper.c: New file.
25503         * lib/unictype/ctype_xdigit.c: New file.
25504         * lib/unictype/decdigit.c: New file.
25505         * lib/unictype/digit.c: New file.
25506         * lib/unictype/identsyntaxmap.h: New file.
25507         * lib/unictype/mirror.c: New file.
25508         * lib/unictype/numeric.c: New file.
25509         * lib/unictype/pr_alphabetic.c: New file.
25510         * lib/unictype/pr_ascii_hex_digit.c: New file.
25511         * lib/unictype/pr_bidi_arabic_digit.c: New file.
25512         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
25513         * lib/unictype/pr_bidi_block_separator.c: New file.
25514         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
25515         * lib/unictype/pr_bidi_common_separator.c: New file.
25516         * lib/unictype/pr_bidi_control.c: New file.
25517         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
25518         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
25519         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
25520         * lib/unictype/pr_bidi_european_digit.c: New file.
25521         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
25522         * lib/unictype/pr_bidi_left_to_right.c: New file.
25523         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
25524         * lib/unictype/pr_bidi_other_neutral.c: New file.
25525         * lib/unictype/pr_bidi_pdf.c: New file.
25526         * lib/unictype/pr_bidi_segment_separator.c: New file.
25527         * lib/unictype/pr_bidi_whitespace.c: New file.
25528         * lib/unictype/pr_byname.c: New file.
25529         * lib/unictype/pr_byname.gperf: New file.
25530         * lib/unictype/pr_combining.c: New file.
25531         * lib/unictype/pr_composite.c: New file.
25532         * lib/unictype/pr_currency_symbol.c: New file.
25533         * lib/unictype/pr_dash.c: New file.
25534         * lib/unictype/pr_decimal_digit.c: New file.
25535         * lib/unictype/pr_default_ignorable_code_point.c: New file.
25536         * lib/unictype/pr_deprecated.c: New file.
25537         * lib/unictype/pr_diacritic.c: New file.
25538         * lib/unictype/pr_extender.c: New file.
25539         * lib/unictype/pr_format_control.c: New file.
25540         * lib/unictype/pr_grapheme_base.c: New file.
25541         * lib/unictype/pr_grapheme_extend.c: New file.
25542         * lib/unictype/pr_grapheme_link.c: New file.
25543         * lib/unictype/pr_hex_digit.c: New file.
25544         * lib/unictype/pr_hyphen.c: New file.
25545         * lib/unictype/pr_id_continue.c: New file.
25546         * lib/unictype/pr_id_start.c: New file.
25547         * lib/unictype/pr_ideographic.c: New file.
25548         * lib/unictype/pr_ids_binary_operator.c: New file.
25549         * lib/unictype/pr_ids_trinary_operator.c: New file.
25550         * lib/unictype/pr_ignorable_control.c: New file.
25551         * lib/unictype/pr_iso_control.c: New file.
25552         * lib/unictype/pr_join_control.c: New file.
25553         * lib/unictype/pr_left_of_pair.c: New file.
25554         * lib/unictype/pr_line_separator.c: New file.
25555         * lib/unictype/pr_logical_order_exception.c: New file.
25556         * lib/unictype/pr_lowercase.c: New file.
25557         * lib/unictype/pr_math.c: New file.
25558         * lib/unictype/pr_non_break.c: New file.
25559         * lib/unictype/pr_not_a_character.c: New file.
25560         * lib/unictype/pr_numeric.c: New file.
25561         * lib/unictype/pr_other_alphabetic.c: New file.
25562         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
25563         * lib/unictype/pr_other_grapheme_extend.c: New file.
25564         * lib/unictype/pr_other_id_continue.c: New file.
25565         * lib/unictype/pr_other_id_start.c: New file.
25566         * lib/unictype/pr_other_lowercase.c: New file.
25567         * lib/unictype/pr_other_math.c: New file.
25568         * lib/unictype/pr_other_uppercase.c: New file.
25569         * lib/unictype/pr_paired_punctuation.c: New file.
25570         * lib/unictype/pr_paragraph_separator.c: New file.
25571         * lib/unictype/pr_pattern_syntax.c: New file.
25572         * lib/unictype/pr_pattern_white_space.c: New file.
25573         * lib/unictype/pr_private_use.c: New file.
25574         * lib/unictype/pr_punctuation.c: New file.
25575         * lib/unictype/pr_quotation_mark.c: New file.
25576         * lib/unictype/pr_radical.c: New file.
25577         * lib/unictype/pr_sentence_terminal.c: New file.
25578         * lib/unictype/pr_soft_dotted.c: New file.
25579         * lib/unictype/pr_space.c: New file.
25580         * lib/unictype/pr_terminal_punctuation.c: New file.
25581         * lib/unictype/pr_test.c: New file.
25582         * lib/unictype/pr_titlecase.c: New file.
25583         * lib/unictype/pr_unassigned_code_value.c: New file.
25584         * lib/unictype/pr_unified_ideograph.c: New file.
25585         * lib/unictype/pr_uppercase.c: New file.
25586         * lib/unictype/pr_variation_selector.c: New file.
25587         * lib/unictype/pr_white_space.c: New file.
25588         * lib/unictype/pr_xid_continue.c: New file.
25589         * lib/unictype/pr_xid_start.c: New file.
25590         * lib/unictype/pr_zero_width.c: New file.
25591         * lib/unictype/scripts.c: New file.
25592         * lib/unictype/sy_c_ident.c: New file.
25593         * lib/unictype/sy_c_whitespace.c: New file.
25594         * lib/unictype/sy_java_ident.c: New file.
25595         * lib/unictype/sy_java_whitespace.c: New file.
25596
25597         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
25598         Unicode 5.0.0.
25599         * lib/unictype/blocks.h: Likewise.
25600         * lib/unictype/categ_C.h: Likewise.
25601         * lib/unictype/categ_Cc.h: Likewise.
25602         * lib/unictype/categ_Cf.h: Likewise.
25603         * lib/unictype/categ_Cn.h: Likewise.
25604         * lib/unictype/categ_Co.h: Likewise.
25605         * lib/unictype/categ_Cs.h: Likewise.
25606         * lib/unictype/categ_L.h: Likewise.
25607         * lib/unictype/categ_Ll.h: Likewise.
25608         * lib/unictype/categ_Lm.h: Likewise.
25609         * lib/unictype/categ_Lo.h: Likewise.
25610         * lib/unictype/categ_Lt.h: Likewise.
25611         * lib/unictype/categ_Lu.h: Likewise.
25612         * lib/unictype/categ_M.h: Likewise.
25613         * lib/unictype/categ_Mc.h: Likewise.
25614         * lib/unictype/categ_Me.h: Likewise.
25615         * lib/unictype/categ_Mn.h: Likewise.
25616         * lib/unictype/categ_N.h: Likewise.
25617         * lib/unictype/categ_Nd.h: Likewise.
25618         * lib/unictype/categ_Nl.h: Likewise.
25619         * lib/unictype/categ_No.h: Likewise.
25620         * lib/unictype/categ_P.h: Likewise.
25621         * lib/unictype/categ_Pc.h: Likewise.
25622         * lib/unictype/categ_Pd.h: Likewise.
25623         * lib/unictype/categ_Pe.h: Likewise.
25624         * lib/unictype/categ_Pf.h: Likewise.
25625         * lib/unictype/categ_Pi.h: Likewise.
25626         * lib/unictype/categ_Po.h: Likewise.
25627         * lib/unictype/categ_Ps.h: Likewise.
25628         * lib/unictype/categ_S.h: Likewise.
25629         * lib/unictype/categ_Sc.h: Likewise.
25630         * lib/unictype/categ_Sk.h: Likewise.
25631         * lib/unictype/categ_Sm.h: Likewise.
25632         * lib/unictype/categ_So.h: Likewise.
25633         * lib/unictype/categ_Z.h: Likewise.
25634         * lib/unictype/categ_Zl.h: Likewise.
25635         * lib/unictype/categ_Zp.h: Likewise.
25636         * lib/unictype/categ_Zs.h: Likewise.
25637         * lib/unictype/categ_of.h: Likewise.
25638         * lib/unictype/combining.h: Likewise.
25639         * lib/unictype/ctype_alnum.h: Likewise.
25640         * lib/unictype/ctype_alpha.h: Likewise.
25641         * lib/unictype/ctype_blank.h: Likewise.
25642         * lib/unictype/ctype_cntrl.h: Likewise.
25643         * lib/unictype/ctype_digit.h: Likewise.
25644         * lib/unictype/ctype_graph.h: Likewise.
25645         * lib/unictype/ctype_lower.h: Likewise.
25646         * lib/unictype/ctype_print.h: Likewise.
25647         * lib/unictype/ctype_punct.h: Likewise.
25648         * lib/unictype/ctype_space.h: Likewise.
25649         * lib/unictype/ctype_upper.h: Likewise.
25650         * lib/unictype/ctype_xdigit.h: Likewise.
25651         * lib/unictype/decdigit.h: Likewise.
25652         * lib/unictype/digit.h: Likewise.
25653         * lib/unictype/mirror.h: Likewise.
25654         * lib/unictype/numeric.h: Likewise.
25655         * lib/unictype/pr_alphabetic.h: Likewise.
25656         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25657         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25658         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25659         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25660         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25661         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25662         * lib/unictype/pr_bidi_control.h: Likewise.
25663         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25664         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25665         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25666         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25667         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25668         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25669         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25670         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25671         * lib/unictype/pr_bidi_pdf.h: Likewise.
25672         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25673         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25674         * lib/unictype/pr_combining.h: Likewise.
25675         * lib/unictype/pr_composite.h: Likewise.
25676         * lib/unictype/pr_currency_symbol.h: Likewise.
25677         * lib/unictype/pr_dash.h: Likewise.
25678         * lib/unictype/pr_decimal_digit.h: Likewise.
25679         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25680         * lib/unictype/pr_deprecated.h: Likewise.
25681         * lib/unictype/pr_diacritic.h: Likewise.
25682         * lib/unictype/pr_extender.h: Likewise.
25683         * lib/unictype/pr_format_control.h: Likewise.
25684         * lib/unictype/pr_grapheme_base.h: Likewise.
25685         * lib/unictype/pr_grapheme_extend.h: Likewise.
25686         * lib/unictype/pr_grapheme_link.h: Likewise.
25687         * lib/unictype/pr_hex_digit.h: Likewise.
25688         * lib/unictype/pr_hyphen.h: Likewise.
25689         * lib/unictype/pr_id_continue.h: Likewise.
25690         * lib/unictype/pr_id_start.h: Likewise.
25691         * lib/unictype/pr_ideographic.h: Likewise.
25692         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25693         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25694         * lib/unictype/pr_ignorable_control.h: Likewise.
25695         * lib/unictype/pr_iso_control.h: Likewise.
25696         * lib/unictype/pr_join_control.h: Likewise.
25697         * lib/unictype/pr_left_of_pair.h: Likewise.
25698         * lib/unictype/pr_line_separator.h: Likewise.
25699         * lib/unictype/pr_logical_order_exception.h: Likewise.
25700         * lib/unictype/pr_lowercase.h: Likewise.
25701         * lib/unictype/pr_math.h: Likewise.
25702         * lib/unictype/pr_non_break.h: Likewise.
25703         * lib/unictype/pr_not_a_character.h: Likewise.
25704         * lib/unictype/pr_numeric.h: Likewise.
25705         * lib/unictype/pr_other_alphabetic.h: Likewise.
25706         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25707         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25708         * lib/unictype/pr_other_id_continue.h: Likewise.
25709         * lib/unictype/pr_other_id_start.h: Likewise.
25710         * lib/unictype/pr_other_lowercase.h: Likewise.
25711         * lib/unictype/pr_other_math.h: Likewise.
25712         * lib/unictype/pr_other_uppercase.h: Likewise.
25713         * lib/unictype/pr_paired_punctuation.h: Likewise.
25714         * lib/unictype/pr_paragraph_separator.h: Likewise.
25715         * lib/unictype/pr_pattern_syntax.h: Likewise.
25716         * lib/unictype/pr_pattern_white_space.h: Likewise.
25717         * lib/unictype/pr_private_use.h: Likewise.
25718         * lib/unictype/pr_punctuation.h: Likewise.
25719         * lib/unictype/pr_quotation_mark.h: Likewise.
25720         * lib/unictype/pr_radical.h: Likewise.
25721         * lib/unictype/pr_sentence_terminal.h: Likewise.
25722         * lib/unictype/pr_soft_dotted.h: Likewise.
25723         * lib/unictype/pr_space.h: Likewise.
25724         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25725         * lib/unictype/pr_titlecase.h: Likewise.
25726         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25727         * lib/unictype/pr_unified_ideograph.h: Likewise.
25728         * lib/unictype/pr_uppercase.h: Likewise.
25729         * lib/unictype/pr_variation_selector.h: Likewise.
25730         * lib/unictype/pr_white_space.h: Likewise.
25731         * lib/unictype/pr_xid_continue.h: Likewise.
25732         * lib/unictype/pr_xid_start.h: Likewise.
25733         * lib/unictype/pr_zero_width.h: Likewise.
25734         * lib/unictype/scripts.h: Likewise.
25735         * lib/unictype/scripts_byname.gperf: Likewise.
25736         * lib/unictype/sy_c_ident.h: Likewise.
25737         * lib/unictype/sy_c_whitespace.h: Likewise.
25738         * lib/unictype/sy_java_ident.h: Likewise.
25739         * lib/unictype/sy_java_whitespace.h: Likewise.
25740
25741         * lib/unictype/Makefile: New file.
25742         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
25743         glibc.
25744         * lib/unictype/3level.h: New file, copied from glibc.
25745         * lib/unictype/3levelbit.h: New file.
25746
25747 2007-11-11  Bruno Haible  <bruno@clisp.org>
25748
25749         * modules/gperf: New file.
25750         * modules/iconv_open (Depends-on): Add it.
25751         (Makefile.am): Remove the GPERF definition.
25752
25753 2007-11-11  Bruno Haible  <bruno@clisp.org>
25754
25755         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
25756         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
25757
25758 2007-11-11  Bruno Haible  <bruno@clisp.org>
25759
25760         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
25761         (usage): Remove function.
25762
25763 2007-11-11  Bruno Haible  <bruno@clisp.org>
25764
25765         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
25766         gl_FUNC_CEILF_LIBS.
25767         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
25768         gl_FUNC_CEIL_LIBS.
25769         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
25770         gl_FUNC_CEILL_LIBS.
25771         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
25772         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
25773         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
25774
25775 2007-11-11  Bruno Haible  <bruno@clisp.org>
25776
25777         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
25778         roundf were declared but do not exist on functions.
25779         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
25780         roundl were declared but do not exist on functions.
25781         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
25782         HAVE_FLOORL_AND_CEILL, respectively.
25783         Needed for Sun C on Solaris 10.
25784
25785 2007-11-11  Bruno Haible  <bruno@clisp.org>
25786
25787         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
25788         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
25789         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
25790         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
25791         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
25792         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
25793         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
25794         HAVE_DECL_ROUNDF.
25795         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
25796         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
25797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
25798         of HAVE_DECL_ROUND*.
25799         * modules/math (Makefile.am): Update.
25800
25801 2007-11-10  Bruno Haible  <bruno@clisp.org>
25802
25803         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
25804         ptrdiff_t as m4/intl.m4.
25805
25806 2007-11-10  Jim Meyering  <meyering@redhat.com>
25807
25808         Avoid link failure for the argmatch test.
25809         * tests/test-argmatch.c (usage): Define function to avoid a link
25810         failure: argmatch_die requires a usage function.
25811
25812 2007-11-09  Bruno Haible  <bruno@clisp.org>
25813
25814         * doc/functions/snprintf.texi: Mention BeOS deficiency.
25815         * doc/functions/vsnprintf.texi: Likewise.
25816         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
25817         with a size argument < 2.
25818
25819 2007-11-09  Bruno Haible  <bruno@clisp.org>
25820
25821         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
25822         buffer. Fixes an inefficiency introduced on 2007-11-03.
25823
25824 2007-11-09  Bruno Haible  <bruno@clisp.org>
25825
25826         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
25827         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
25828
25829 2007-11-08  Jim Meyering  <meyering@redhat.com>
25830
25831         Change cache variable name prefix "jm_" to "gl_" everywhere.
25832         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
25833         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
25834         * m4/uptime.m4: s/gl_/jm_/
25835
25836 2007-11-07  Bruno Haible  <bruno@clisp.org>
25837
25838         Update to GNU gettext 0.17.
25839         * m4/intl.m4: Update to GNU gettext 0.17.
25840         * m4/po.m4: Likewise.
25841         * modules/gettext (Files): Remove m4/ulonglong.m4.
25842         (configure.ac): Require gettext infrastructure from version 0.17.
25843
25844 2007-11-06  Bruno Haible  <bruno@clisp.org>
25845
25846         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
25847         symbolic values are not defined in a public header.
25848         * lib/freadable.c (freadable) [QNX]: Likewise.
25849         * lib/freadahead.c (freadahead) [QNX]: Likewise.
25850         * lib/freading.c (freading) [QNX]: Likewise.
25851         * lib/fseterr.c (fseterr) [QNX]: Likewise.
25852         * lib/fwritable.c (fwritable) [QNX]: Likewise.
25853         * lib/fwriting.c (fwriting) [QNX]: Likewise.
25854         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
25855         Reported by Alain Magloire.
25856
25857         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
25858
25859 2007-11-05  Bruno Haible  <bruno@clisp.org>
25860
25861         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
25862         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
25863         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
25864         Reported by Eric Blake.
25865
25866 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25867             Bruno Haible  <bruno@clisp.org>
25868
25869         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
25870         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
25871         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
25872         (malloc): Undefine also before including <stdlib.h>.
25873         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
25874         Needed on OSF/1 4.0.
25875
25876 2007-11-05  Jim Meyering  <meyering@redhat.com>
25877
25878         git-version-gen: sync from coreutils.
25879         * build-aux/git-version-gen: Add comments.
25880         Change the first '-' to '.' in the snapshot version string,
25881         e.g., 6.9-377-08144 -> 6.9.377-08144
25882         Remove first parameter.
25883         Don't declare a version "-dirty" merely because a time
25884         stamp has changed.
25885
25886 2007-11-04  Bruno Haible  <bruno@clisp.org>
25887
25888         * lib/lock.h: Protect all macro definitions containing an 'if'
25889         statement through a "do { ... } while (0)".
25890         * lib/tls.h: Likewise.
25891
25892 2007-11-04  Bruno Haible  <bruno@clisp.org>
25893
25894         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
25895
25896 2007-11-04  Bruno Haible  <bruno@clisp.org>
25897
25898         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
25899         * modules/fprintf-posix (Depends-on): Add nocrash.
25900         * modules/snprintf-posix (Depends-on): Likewise.
25901         * modules/sprintf-posix (Depends-on): Likewise.
25902         * modules/vasnprintf-posix (Depends-on): Likewise.
25903         * modules/vasprintf-posix (Depends-on): Likewise.
25904         * modules/vfprintf-posix (Depends-on): Likewise.
25905         * modules/vsnprintf-posix (Depends-on): Likewise.
25906         * modules/vsprintf-posix (Depends-on): Likewise.
25907         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25908         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25909         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25910         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25911         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25912         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25913         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25914
25915 2007-11-04  Bruno Haible  <bruno@clisp.org>
25916
25917         * modules/nocrash: New file.
25918         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
25919         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
25920
25921 2007-11-04  Bruno Haible  <bruno@clisp.org>
25922
25923         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
25924         precision handling.
25925         * tests/test-vasprintf-posix.c (test_function): Likewise.
25926         * tests/test-snprintf-posix.h (test_function): Likewise.
25927         * tests/test-sprintf-posix.h (test_function): Likewise.
25928
25929         Fix *printf behaviour for large precisions on mingw and BeOS.
25930         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
25931         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
25932         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
25933         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25934         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25935         gl_PRINTF_PRECISION and test its result. Invoke
25936         gl_PREREQ_VASNPRINTF_PRECISION.
25937         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25938         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25939         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25940         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25941         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25942         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25943         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25944         * doc/functions/fprintf.texi: Update.
25945         * doc/functions/printf.texi: Update.
25946         * doc/functions/snprintf.texi: Update.
25947         * doc/functions/sprintf.texi: Update.
25948         * doc/functions/vfprintf.texi: Update.
25949         * doc/functions/vprintf.texi: Update.
25950         * doc/functions/vsnprintf.texi: Update.
25951         * doc/functions/vsprintf.texi: Update.
25952
25953 2007-11-04  Bruno Haible  <bruno@clisp.org>
25954
25955         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
25956
25957 2007-11-04  Bruno Haible  <bruno@clisp.org>
25958
25959         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
25960         Reported by Sylvain Beucler <beuc@gnu.org>.
25961
25962 2007-11-03  Bruno Haible  <bruno@clisp.org>
25963
25964         * tests/test-fprintf-posix2.sh: New file.
25965         * tests/test-fprintf-posix2.c: New file.
25966         * modules/fprintf-posix-tests (Files): Add them.
25967         (TESTS): Add test-fprintf-posix2.sh.
25968         (configure.ac): Check for getrlimit and setrlimit.
25969         (check_PROGRAMS): Add test-fprintf-posix2.
25970
25971         * tests/test-printf-posix2.sh: New file.
25972         * tests/test-printf-posix2.c: New file.
25973         * modules/printf-posix-tests (Files): Add them.
25974         (TESTS): Add test-printf-posix2.sh.
25975         (configure.ac): Check for getrlimit and setrlimit.
25976         (check_PROGRAMS): Add test-printf-posix2.
25977
25978         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
25979         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
25980         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
25981         (decode_double): New function, copied from decode_long_double.
25982         (scale10_round_decimal_decoded): New function, extracted from
25983         scale10_round_decimal_long_double.
25984         (scale10_round_decimal_long_double): Use it.
25985         (scale10_round_decimal_double): New function.
25986         (floorlog10): New function.
25987         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
25988         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
25989         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25990         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25991         gl_PRINTF_ENOMEM and test its result. Invoke
25992         gl_PREREQ_VASNPRINTF_ENOMEM.
25993         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25994         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25995         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25996         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25997         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25998         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25999         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26000         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
26001         * modules/snprintf-posix (Depends-on): Likewise.
26002         * modules/sprintf-posix (Depends-on): Likewise.
26003         * modules/vasnprintf-posix (Depends-on): Likewise.
26004         * modules/vasprintf-posix (Depends-on): Likewise.
26005         * modules/vfprintf-posix (Depends-on): Likewise.
26006         * modules/vsnprintf-posix (Depends-on): Likewise.
26007         * modules/vsprintf-posix (Depends-on): Likewise.
26008         * doc/functions/fprintf.texi: Update.
26009         * doc/functions/printf.texi: Update.
26010         * doc/functions/snprintf.texi: Update.
26011         * doc/functions/sprintf.texi: Update.
26012         * doc/functions/vfprintf.texi: Update.
26013         * doc/functions/vprintf.texi: Update.
26014         * doc/functions/vsnprintf.texi: Update.
26015         * doc/functions/vsprintf.texi: Update.
26016
26017 2007-11-03  Bruno Haible  <bruno@clisp.org>
26018
26019         * modules/frexp-nolibm-tests: New file.
26020
26021         * modules/frexp-nolibm: New file.
26022         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
26023
26024 2007-11-03  Bruno Haible  <bruno@clisp.org>
26025
26026         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
26027         value is C99 compliant.
26028         Needed for OSF/1 5.1.
26029
26030 2007-11-03  Bruno Haible  <bruno@clisp.org>
26031
26032         Fix out-of-memory handling of vasnprintf.
26033         * lib/printf-parse.c: Include <errno.h>.
26034         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
26035         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
26036         is already set.
26037
26038 2007-11-02  Eric Blake  <ebb9@byu.net>
26039
26040         Fix tests on cygwin.
26041         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
26042
26043 2007-11-01  Bruno Haible  <bruno@clisp.org>
26044
26045         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
26046         warning.
26047         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
26048         needed for POSIX compatibility.
26049
26050 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26051
26052         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
26053         for compatibility with GNU.
26054
26055 2007-11-01  Bruno Haible  <bruno@clisp.org>
26056
26057         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
26058         (putenv): Renamed from rpl_putenv. Change argument type from
26059         'const char *' to 'char *'.
26060         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
26061         of defining putenv in config.h, just set REPLACE_PUTENV.
26062         * modules/putenv (Depends-on): Add stdlib.
26063         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26064         (Include): Use <stdlib.h>.
26065         * lib/stdlib.in.h (putenv): New declaration.
26066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
26067         REPLACE_PUTENV.
26068         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
26069         REPLACE_PUTENV.
26070         Needed for MacOS X 10.5.0.
26071         Reported by Peter O'Gorman <peter@pogma.com>.
26072
26073 2007-11-01  Jim Meyering  <meyering@redhat.com>
26074
26075         Treat an empty date string exactly like "0".
26076         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
26077         if the remaining date string (to be parsed) is empty, use "0".
26078         Reported by Mischa Molhoek and discussed in this thread:
26079         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
26080
26081 2007-10-31  Bruno Haible  <bruno@clisp.org>
26082
26083         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
26084         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
26085         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
26086         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
26087         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
26088         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
26089
26090 2007-10-31  Bruno Haible  <bruno@clisp.org>
26091
26092         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
26093         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
26094         (AC_TYPE_LONG_LONG_INT): Use it.
26095         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
26096         it as well.
26097         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
26098         to m4/longlong.m4.
26099         * modules/stdint (Files): Remove m4/ulonglong.m4.
26100         * modules/strtoull (Files): Use m4/longlong.m4 instead of
26101         m4/ulonglong.m4.
26102         * modules/strtoumax (Files): Likewise.
26103
26104 2007-10-30  Bruno Haible  <bruno@clisp.org>
26105
26106         * modules/xvasprintf-posix: New file.
26107         Suggested by Eric Blake.
26108
26109 2007-10-30  Bruno Haible  <bruno@clisp.org>
26110
26111         * modules/xprintf-posix-tests: New file.
26112         * tests/test-xprintf-posix.sh: New file.
26113         * tests/test-xprintf-posix.c: New file.
26114         * tests/test-xfprintf-posix.c: New file.
26115
26116         * modules/xprintf-posix: New file.
26117
26118 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26119
26120         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
26121         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
26122         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
26123
26124 2007-10-29  Bruno Haible  <bruno@clisp.org>
26125
26126         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
26127         contain the special marker '_cv_'.
26128         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26129         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26130         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26131         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26132         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26133         Reported by Ralf Wildenhues.
26134
26135 2007-10-29  Bruno Haible  <bruno@clisp.org>
26136
26137         * gnulib-tool (func_import): When --lgpl is not specified, set
26138         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
26139         GPLv3.
26140         Reported by Simon Josefsson.
26141
26142 2007-10-28  Bruno Haible  <bruno@clisp.org>
26143
26144         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
26145         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
26146         HAVE_DECL_ISFINITE.
26147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26148         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
26149         HAVE_DECL_ISFINITE.
26150
26151 2007-10-28  Bruno Haible  <bruno@clisp.org>
26152
26153         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
26154         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
26155
26156 2007-10-28  Bruno Haible  <bruno@clisp.org>
26157
26158         Fix link errors with Sun C 5.0 on Solaris 10.
26159         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
26160         function is declared but not present in the compiler's libm.
26161         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26162         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
26163         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
26164         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
26165         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
26166         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
26167         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
26168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26169         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
26170         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
26171         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
26172         HAVE_DECL_FLOORL.
26173
26174 2007-10-28  Bruno Haible  <bruno@clisp.org>
26175
26176         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
26177         gl_FUNC_FLOORL. Cache the result.
26178         (gl_FUNC_FLOORL): Use it.
26179         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
26180         gl_FUNC_CEILL. Cache the result.
26181         (gl_FUNC_CEILL): Use it.
26182
26183         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
26184         gl_FUNC_FLOOR. Cache the result.
26185         (gl_FUNC_FLOOR): Use it.
26186         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
26187         gl_FUNC_CEIL. Cache the result.
26188         (gl_FUNC_CEIL): Use it.
26189
26190         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
26191         gl_FUNC_FLOORF. Cache the result.
26192         (gl_FUNC_FLOORF): Use it.
26193         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
26194         gl_FUNC_CEILF. Cache the result.
26195         (gl_FUNC_CEILF): Use it.
26196
26197 2007-10-28  Bruno Haible  <bruno@clisp.org>
26198
26199         * gnulib-tool: Allow specifying the LGPL version number through
26200         --lgpl=2 or --lgpl=3.
26201         (func_usage): Document --lgpl with argument.
26202         Handle --lgpl=... arguments.
26203         (func_import): Recognize also gl_LGPL calls with an argument. When
26204         --lgpl=2 is used and the module's license is just LGPL, report an
26205         error. Set sed_transform_lib_file according to the lgpl variable. In
26206         the generated files, use --lgpl or gl_LGPL invocations with argument,
26207         if necessary.
26208         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
26209         an LGPv2+ license.
26210         * doc/gnulib-tool.texi (Modified imports): Update explanation of
26211         gl_LGPL macro.
26212
26213 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26214             Bruno Haible  <bruno@clisp.org>
26215
26216         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
26217         (u16_uctomb_aux): Likewise.
26218         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
26219         !HAVE_INLINE.
26220         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
26221
26222 2007-10-28  Bruno Haible  <bruno@clisp.org>
26223
26224         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
26225         Invoke AM_GETTEXT_OPTION if it exists.
26226         * modules/vasprintf: Likewise.
26227         * modules/verror: Likewise.
26228         * modules/xprintf: Likewise.
26229         * modules/xvasprintf: Likewise.
26230
26231 2007-10-27  Ben Pfaff  <blp@gnu.org>
26232
26233         * lib/math.in.h: Define isfinite macro and prototypes for
26234         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
26235         implementations.
26236         * m4/math_h.m4: New substitutions for isfinite module.
26237         * lib/isfinite.c: New file.
26238         * m4/isfinite.m4: New file.
26239         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
26240         * modules/isfinite: New file.
26241         * modules/isfinite-tests: New file.
26242         * tests/tests-isfinite.c: New file.
26243         * doc/functions/isfinite.texi: Mention isfinite module.
26244         * MODULES.html.sh: Mention new module.
26245
26246 2007-10-27  Ben Pfaff  <blp@gnu.org>
26247
26248         Ralf Wildenhues reported that Tru64 4.0D declares the round
26249         functions but does not have definitions.
26250         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
26251         cannot be found in any library, set the output variable to
26252         "missing" instead of "".
26253         * m4/round.m4: Also use our substitute if we cannot find round in
26254         any library, even if it is declared.
26255         * m4/roundf.m4: Likewise for roundf.
26256         * m4/roundl.m4: Likewise for roundl.
26257         * lib/math.in.h: Undefine roundf, round, roundl before defining
26258         their replacements, to allow for hypothetical systems where these
26259         may be defined as macros but not available in libraries.
26260
26261 2007-10-27  Bruno Haible  <bruno@clisp.org>
26262
26263         * doc/gnulib.texi: Invoke @firstparagraphindent.
26264         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
26265         changes in gnulib.
26266         (Source changes): New section.
26267
26268 2007-10-26  Bruno Haible  <bruno@clisp.org>
26269
26270         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
26271         borrowed from autoconf.
26272
26273 2007-10-26  Bruno Haible  <bruno@clisp.org>
26274
26275         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
26276         strerror returned the empty string. Needed on HP-UX 11.00.
26277
26278 2007-10-24  Micah Cowan  <micah@cowan.name>
26279
26280         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
26281         * build-aux/bootstrap: Remove support for now-unnecessary option,
26282         --cvs-user, and envvars CVS_USER, CVS_RSH.
26283
26284 2007-10-24  Jim Meyering  <meyering@redhat.com>
26285
26286         Avoid diagnostics from sha1sum when there is no cached checksum.
26287         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
26288         if the po.s1 file hasn't been created yet.
26289
26290         * build-aux/bootstrap: Sync from coreutils:
26291         2007-10-24  Jim Meyering  <meyering@redhat.com>
26292         Get gnulib from the git repository, not from an obsolete cvs one.
26293         * build-aux/bootstrap: Suggestion from Micah Cowan.
26294         2007-10-04  Jim Meyering  <jim@meyering.net>
26295         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
26296         (update_po_files): Work also when there are no .po files in po/.
26297
26298 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26299
26300         * README: Append ".git" to git and cg examples.
26301         Problem reported by Benoit Sigoure.
26302
26303 2007-10-23  Micah Cowan  <micah@cowan.name>
26304
26305         * users.txt: Add wget.
26306
26307 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26308
26309         Fix linking of some unistdio tests on FreeBSD.
26310         * modules/unistdio/u16-vsnprintf-tests
26311         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
26312         * modules/unistdio/u16-vsprintf-tests
26313         (test_u16_vsnprintf1_LDADD): Likewise.
26314         * modules/unistdio/u32-vsnprintf-tests
26315         (test_u32_vsnprintf1_LDADD): Likewise.
26316         * modules/unistdio/u32-vsprintf-tests
26317         (test_u32_vsprintf1_LDADD): Likewise.
26318         * modules/unistdio/u8-vsnprintf-tests
26319         (test_u8_vsnprintf1_LDADD): Likewise.
26320         * modules/unistdio/u8-vsprintf-tests
26321         (test_u8_vsprintf1_LDADD): Likewise.
26322         * modules/unistdio/ulc-vsnprintf-tests
26323         (test_ulc_vsnprintf1_LDADD): Likewise.
26324         * modules/unistdio/ulc-vsprintf-tests
26325         (test_ulc_vsprintf1_LDADD): Likewise.
26326
26327         Fix linking of some uniconv tests on FreeBSD.
26328         * modules/uniconv/u16-conv-from-enc-tests
26329         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
26330         * modules/uniconv/u16-conv-to-enc-tests
26331         (test_u16_conv_to_enc_LDADD): Likewise.
26332         * modules/uniconv/u16-strconv-from-enc-tests
26333         (test_u16_strconv_from_enc_LDADD): Likewise.
26334         * modules/uniconv/u16-strconv-to-enc-tests
26335         (test_u16_strconv_to_enc_LDADD): Likewise.
26336         * modules/uniconv/u32-conv-from-enc-tests
26337         (test_u32_conv_from_enc_LDADD): Likewise.
26338         * modules/uniconv/u32-conv-to-enc-tests
26339         (test_u32_conv_to_enc_LDADD): Likewise.
26340         * modules/uniconv/u32-strconv-from-enc-tests
26341         (test_u32_strconv_from_enc_LDADD): Likewise.
26342         * modules/uniconv/u32-strconv-to-enc-tests
26343         (test_u32_strconv_to_enc_LDADD): Likewise.
26344         * modules/uniconv/u8-conv-from-enc-tests
26345         (test_u8_conv_from_enc_LDADD): Likewise.
26346         * modules/uniconv/u8-conv-to-enc-tests
26347         (test_u8_conv_to_enc_LDADD): Likewise.
26348         * modules/uniconv/u8-strconv-from-enc-tests
26349         (test_u8_strconv_from_enc_LDADD): Likewise.
26350         * modules/uniconv/u8-strconv-to-enc-tests
26351         (test_u8_strconv_to_enc_LDADD): Likewise.
26352
26353 2007-10-22  Bruno Haible  <bruno@clisp.org>
26354
26355         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
26356         size.
26357
26358 2007-10-22  Eric Blake  <ebb9@byu.net>
26359
26360         Tweak x*printf documentation.
26361         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
26362         variable name and comments.
26363         Suggested by Bruno Haible.
26364
26365 2007-10-22  Bruno Haible  <bruno@clisp.org>
26366
26367         * lib/acl.c (copy_acl): Fix file name in comment.
26368
26369 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26370
26371         Fix Tru64 problem with stdbool.h.
26372         * lib/stdbool.in.h (false, true):
26373         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
26374         Don't declare as an enum in this situation; it runs afoul of Tru64.
26375         Problem reported by Steven M. Schweda in
26376         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
26377
26378 2007-10-22  Eric Blake  <ebb9@byu.net>
26379
26380         Also wrap vf?printf.
26381         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
26382         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
26383         (xvprintf, xvfprintf): New functions.
26384
26385 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26386
26387         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
26388         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
26389
26390         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
26391         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
26392
26393 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26394
26395         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
26396         by Bruno Haible.
26397
26398 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26399
26400         * lib/getloadavg.c
26401         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
26402         Undef `sys' after including sys/table.h, for Tru64 4.0D.
26403
26404         * tests/test-i-ring.c: Work for C89.
26405
26406 2007-10-22  Bruno Haible  <bruno@clisp.org>
26407
26408         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
26409         -1u, in preprocessor expression, so that we don't test for the bug
26410         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
26411         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
26412
26413 2007-10-22  Eric Blake  <ebb9@byu.net>
26414
26415         * tests/test-yesno.sh: Silence stderr during test.
26416
26417 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26418
26419         * modules/crypto/gc-camellia: New file.
26420
26421         * m4/gc-camellia.m4: New file.
26422
26423         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
26424
26425         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
26426
26427 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26428
26429         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
26430         --help to stdout.  Reported by sms@antinode.org (Steven
26431         M. Schweda).
26432
26433 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26434
26435         * users.txt: Fix link to libksba.
26436
26437 2007-10-21  Ben Pfaff  <blp@gnu.org>
26438
26439         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
26440         round.c roundf implementation that depends on floorf and ceilf to
26441         be tested unconditionally.
26442
26443 2007-10-21  Ben Pfaff  <blp@gnu.org>
26444
26445         * m4/check-libm-func.m4: Removed.
26446         * m4/check-math-lib.m4: New file.
26447         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
26448         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
26449         definition and lack of AC_LIBOBJ([roundf]).
26450         * m4/roundl.m4: Ditto, and similarly for roundl.
26451         * modules/round: Reference new m4 file.
26452         * modules/roundf: Ditto.
26453         * modules/roundl: Ditto.
26454         * tests/test-round2.c (main): Use ROUND instead of round.
26455         Bug report from Bruno Haible.
26456
26457 2007-10-21  Bruno Haible  <bruno@clisp.org>
26458
26459         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
26460         context.
26461
26462 2007-10-21  Bruno Haible  <bruno@clisp.org>
26463
26464         * tests/test-wcwidth.c (main): Allow negative result for some control
26465         characters.
26466
26467         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
26468         Needed on OSF/1 5.1.
26469
26470 2007-10-21  Bruno Haible  <bruno@clisp.org>
26471
26472         * tests/test-floorf1.c: Include isnanf.h.
26473         (main): Use isnanf() instead of isnan().
26474         * tests/test-ceilf1.c: Include isnanf.h.
26475         (main): Use isnanf() instead of isnan().
26476         * tests/test-truncf1.c: Include isnanf.h.
26477         (main): Use isnanf() instead of isnan().
26478         * tests/test-roundf1.c: Include isnanf.h.
26479         (main): Use isnanf() instead of isnan().
26480
26481 2007-10-21  Eric Blake  <ebb9@byu.net>
26482
26483         * users.txt: Update URL for m4.
26484
26485 2007-10-21  Bruno Haible  <bruno@clisp.org>
26486
26487         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
26488
26489 2007-10-21  Bruno Haible  <bruno@clisp.org>
26490
26491         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
26492         Git's management files if the CVS files are not present.
26493
26494 2007-10-20  Bruno Haible  <bruno@clisp.org>
26495
26496         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
26497         gcc-3.4.x.
26498
26499 2007-10-20  Ben Pfaff  <blp@gnu.org>
26500
26501         * lib/math.in.h: Declare round, roundf, roundl if we are providing
26502         implementations.
26503         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
26504         * lib/round.c: New file.
26505         * lib/roundf.c: New file.
26506         * lib/roundl.c: New file.
26507         * m4/round.m4: New file.
26508         * m4/roundf.m4: New file.
26509         * m4/roundl.m4: New file.
26510         * m4/check-libm-func-m4: New file.
26511         * modules/math: Replace round, roundf, roundl related @VARS@ in
26512         math.in.h.
26513         * modules/round: New file.
26514         * modules/round-tests: New file.
26515         * modules/roundf: New file.
26516         * modules/roundf-tests: New file.
26517         * modules/roundl: New file.
26518         * modules/roundl-tests: New file.
26519         * tests/test-round1.c: New file.
26520         * tests/test-round2.c: New file.
26521         * tests/test-roundf1.c: New file.
26522         * tests/test-roundf2.c: New file.
26523         * tests/test-roundl.c: New file.
26524         * doc/functions/round.texi: Mention round module.
26525         * doc/functions/roundf.texi: Mention roundf module.
26526         * doc/functions/roundl.texi: Mention roundl module.
26527         * MODULES.html.sh: Mention new modules.
26528         Thanks to Bruno Haible for suggestions.
26529
26530 2007-10-20  Jim Meyering  <meyering@redhat.com>
26531
26532         * lib/xprintf.c: Include <config.h> unconditionally.
26533
26534         Change xprintf's license to GPL.
26535         * modules/xprintf (License): s/LGPL/GPL/, since this module
26536         depends on modules (exit and exitfail) which are GPL.
26537         Suggestion from Bruno Haible.
26538
26539         xprintf fixes.
26540         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
26541         Use a clearer diagnostic.
26542         Patch from Bruno Haible.
26543
26544 2007-10-20  Bruno Haible  <bruno@clisp.org>
26545
26546         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
26547         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
26548         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26549
26550 2007-10-20  Bruno Haible  <bruno@clisp.org>
26551
26552         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
26553         precision in the comparison result > x - 1 or similar.
26554         * tests/test-ceilf2.c (correct_result_p): Likewise.
26555         * tests/test-truncf2.c (correct_result_p): Likewise.
26556         * tests/test-trunc2.c (correct_result_p): Likewise.
26557         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26558
26559 2007-10-20  Bruno Haible  <bruno@clisp.org>
26560
26561         * modules/ceil: New file.
26562         * m4/ceil.m4: New file.
26563         * doc/functions/ceil.texi: Mention the 'ceil' module.
26564
26565 2007-10-20  Bruno Haible  <bruno@clisp.org>
26566
26567         * modules/floor: New file.
26568         * m4/floor.m4: New file.
26569         * doc/functions/floor.texi: Mention the 'floor' module.
26570
26571 2007-10-20  Bruno Haible  <bruno@clisp.org>
26572
26573         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
26574         of %a.
26575         * modules/floorf-tests (Depends-on): Likewise.
26576         * modules/truncf-tests (Depends-on): Likewise.
26577         * modules/trunc-tests (Depends-on): Likewise.
26578         Reported by Ben Pfaff.
26579
26580 2007-10-19  Jim Meyering  <meyering@redhat.com>
26581
26582         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
26583         Don't bother testing specific errno values.  Just test ferror.
26584
26585         New module: xprintf
26586         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
26587
26588 2007-10-19  Bruno Haible  <bruno@clisp.org>
26589
26590         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
26591         syntax.
26592         * modules/javaexec (Makefile.am): Likewise.
26593         * modules/relocatable-prog (Makefile.am): Likewise.
26594         Suggested by Jim Meyering.
26595
26596 2007-10-18  Bruno Haible  <bruno@clisp.org>
26597
26598         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
26599         Reported by Jim Meyering.
26600
26601 2007-10-18  Eric Blake  <ebb9@byu.net>
26602
26603         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
26604
26605 2007-10-18  Bruno Haible  <bruno@clisp.org>
26606
26607         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
26608         the format string into writable memory. Needed in Fortify conditions.
26609
26610 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
26611             Bruno Haible  <bruno@clisp.org>
26612
26613         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
26614         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
26615         * modules/trim (Depends-on): Add mbchar.
26616         (configure.ac): Add gl_FUNC_MBRTOWC.
26617         (Makefile.am): Augment lib_SOURCES.
26618
26619 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
26620
26621         Modify glob.c to use fstatat and dirfd, to simplify it.
26622         Suggested by Eric Blake.
26623         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
26624         Don't include <stdbool.h>; not used.
26625         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
26626         (link_exists_p): Simplify implementation, since we can now assume
26627         dirfd and fstatat.
26628         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
26629
26630 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26631
26632         * gnulib-tool (func_get_dependencies): Fix sed script to
26633         match only tests.
26634
26635 2007-10-17  Bruno Haible  <bruno@clisp.org>
26636
26637         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
26638         allow locale names without encoding suffix.
26639         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26640         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26641
26642 2007-10-16  Bruno Haible  <bruno@clisp.org>
26643
26644         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
26645         * lib/getgroups.c (getgroups): Likewise.
26646         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
26647
26648 2007-10-16  Bruno Haible  <bruno@clisp.org>
26649
26650         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
26651         * modules/malloc-posix (License): Likewise.
26652         * modules/realloc-posix (License): Likewise.
26653         * modules/calloc-posix (License): Likewise.
26654         * modules/intprops (License): Change from GPL to LGPL, with
26655         Paul Eggert's approval.
26656
26657 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26658
26659         Merge glibc changes into lib/glob.c.
26660
26661         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
26662         2007-10-15 04:59:03 UTC.  Here are the changes:
26663
26664         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
26665
26666         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
26667
26668         * lib/glob.c: Add some branch prediction throughout.
26669
26670         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
26671
26672         [BZ #5103]
26673         * lib/glob.c (glob): Recognize patterns starting \/.
26674
26675         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
26676
26677         [BZ #3996]
26678         * lib/glob.c (attribute_hidden): Define if not defined.
26679         (glob): Unescape dirname, filename or username when needed and not
26680         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
26681         is NULL.  Handle unescaped [ in pattern without closing ].
26682         Don't pass GLOB_CHECK down to recursive glob for directories.
26683         (__glob_pattern_type): New function.
26684         (__glob_pattern_p): Implement using __glob_pattern_type.
26685         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
26686         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
26687         Remove unreachable code.
26688
26689         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
26690
26691         * lib/glob.c (glob_in_dir): Add some comments and asserts to
26692         explain why there are no leaks.
26693
26694         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
26695
26696         [BZ #3253]
26697         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
26698         time, rather allocate increasingly bigger arrays of pointers, if
26699         possible with alloca, if too large with malloc.
26700
26701 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26702
26703         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
26704         Problem reported by H.Merijn Brand in
26705         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
26706         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
26707         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26708
26709 2007-10-15  Bruno Haible  <bruno@clisp.org>
26710
26711         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
26712         with explicit rpl_ prefix.
26713         * lib/fopen.c (fopen): Likewise.
26714         * lib/freopen.c (freopen): Likewise.
26715         * lib/iconv.c (iconv): Likewise.
26716         * lib/iconv_close.c (iconv_close): Likewise.
26717
26718 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26719
26720         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
26721
26722 2007-10-15  Bruno Haible  <bruno@clisp.org>
26723
26724         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
26725         <stddef.h> instead of <stdlib.h> since we only need NULL.
26726         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26727
26728 2007-10-15  Bruno Haible  <bruno@clisp.org>
26729
26730         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
26731         Replace paragraph talking about LIBOBJS.
26732         Reported by Colin Watson <cjwatson@debian.org>.
26733
26734 2007-10-15  Bruno Haible  <bruno@clisp.org>
26735
26736         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
26737         <stdlib.h> before using NULL.
26738
26739 2007-10-15  Simon Josefsson  <simon@josefsson.org>
26740
26741         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
26742         Reported by Albert Chin <china@thewrittenword.com>.
26743
26744 2007-10-14  Bruno Haible  <bruno@clisp.org>
26745
26746         * modules/iconv_open-utf-tests: New file.
26747         * tests/test-iconv-utf.c: New file.
26748
26749         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
26750         * modules/iconv_open-utf: New file.
26751         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
26752         (iconv, iconv_close): New declarations.
26753         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
26754         be defined.
26755         (iconv_open): Add special handling of conversion between UTF-8 and
26756         UTF-{16,32}{BE,LE}.
26757         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
26758         * lib/iconv_close.c: New file.
26759         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
26760         gl_FUNC_ICONV_OPEN.
26761         (gl_FUNC_ICONV_OPEN): Use it.
26762         (gl_FUNC_ICONV_OPEN_UTF): New macro.
26763         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
26764         and REPLACE_ICONV_UTF.
26765         * modules/iconv_open (Depends-on): Add c-strcase.
26766         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
26767         ICONV_CONST.
26768         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
26769
26770 2007-10-13  Albert Chin  <china@thewrittenword.com>
26771             Bruno Haible  <bruno@clisp.org>
26772
26773         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
26774         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
26775
26776 2007-10-13  Bruno Haible  <bruno@clisp.org>
26777
26778         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
26779         defined, use the ISO C99 inline semantics.
26780         * lib/argp.h (ARGP_EI): Likewise.
26781
26782 2007-10-13  Bruno Haible  <bruno@clisp.org>
26783
26784         Handle 'inline' change in gcc 4.3.0.
26785         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
26786         argp_fmtstream_write, argp_fmtstream_set_lmargin,
26787         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
26788         argp_fmtstream_point): Disable 'extern' declaration if the function
26789         definition is going to be provided inline.
26790         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
26791         semantics, not the ISO C99 inline semantics.
26792         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
26793         'extern' declaration if the function definition is going to be provided
26794         inline.
26795         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
26796         the GNU C inline semantics, not the ISO C99 inline semantics. With
26797         GCC 4.2, avoid a warning.
26798
26799 2007-10-13  Bruno Haible  <bruno@clisp.org>
26800
26801         * lib/freading.h (freading): Enable the use of __freading for
26802         glibc >= 2.7.
26803         * lib/freading.c (freading): Likewise.
26804
26805 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
26806
26807         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
26808         "warning: C99 inline functions are not supported; using GNU89".
26809
26810 2007-10-12  Bruno Haible  <bruno@clisp.org>
26811
26812         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
26813         of 2.
26814         * tests/test-ceilf2.c: New file.
26815         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
26816
26817         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
26818         * modules/ceilf-tests: Update.
26819
26820 2007-10-12  Bruno Haible  <bruno@clisp.org>
26821
26822         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
26823         of 2.
26824         * tests/test-floorf2.c: New file.
26825         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
26826
26827         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
26828         * modules/floorf-tests: Update.
26829
26830 2007-10-12  Bruno Haible  <bruno@clisp.org>
26831
26832         * tests/test-trunc2.c: New file.
26833         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
26834
26835         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
26836         * modules/trunc-tests: Update.
26837
26838 2007-10-12  Bruno Haible  <bruno@clisp.org>
26839
26840         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
26841         of 2.
26842         * tests/test-truncf2.c: New file.
26843         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
26844
26845         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
26846         * modules/truncf-tests: Update.
26847
26848 2007-10-11  Eric Blake  <ebb9@byu.net>
26849
26850         Don't claim strerror is broken on Interix.
26851         * doc/functions/strerror.texi (strerror): Known broken systems are
26852         now Solaris 8, and not Interix.
26853         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
26854         Interix on cross-compile.
26855         Reported by Martin Koeppe in
26856         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
26857
26858 2007-10-11  Bruno Haible  <bruno@clisp.org>
26859
26860         * modules/i-ring-tests: New file.
26861         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
26862         instead of assert.
26863
26864 2007-10-11  Bruno Haible  <bruno@clisp.org>
26865
26866         * modules/filenamecat-tests: New file.
26867         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
26868         * lib/filenamecat.c: Remove test code.
26869
26870 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26871
26872         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
26873
26874         * lib/strerror.c: Include <string.h> always, to test interface,
26875         and to remove the need for the dummy.
26876         Include intprops.h to compute width instead of doing it ourselves
26877         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
26878         (strerror): Define it to return NULL if there's no system strerror.
26879         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
26880         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
26881         ancient pre-strerror Unix systems well any more.  Saying "unknown
26882         system error" is enough.
26883         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
26884         simpler strerror.c implementation.
26885         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
26886         Simplify the tests to reflect the simpler strerror implementation.
26887         * modules/strerror (Depends-on): Add intprops.
26888
26889 2007-10-09  Eric Blake  <ebb9@byu.net>
26890
26891         Silence test-fpending.
26892         * modules/fpending-tests (Files): Add wrapper script.
26893         * tests/test-fpending.sh: New file.
26894
26895 2007-10-09  Bruno Haible  <bruno@clisp.org>
26896
26897         * MODULES.html.sh (func_module): Don't create a hyperlink for
26898         function names like 'printf_frexp'.
26899         (Misc): Add crc, memxor.
26900         (Characteristics of floating types): New section.
26901         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
26902         isnanf-nolibm, signbit, trunc, truncf, truncl.
26903         (Enhancements for ISO C 99 functions): New subsection Input/output.
26904         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
26905         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
26906         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
26907         (Compatibility checks for POSIX:2001 functions): Add clock-time.
26908         (Enhancements for POSIX:2001 functions): Add chdir-long.
26909         (File system functions): Add areadlink, chdir-safer, read-file.
26910         Remove cycle-check.
26911         (File system as inode set): New section.
26912         (Date and time): Add gethrxtime.
26913         (Multithreading): Add openmp.
26914         (Internationalization functions): Add localename.
26915         (Unicode string functions): Add unistr/u*-mbsnlen.
26916         (Support for maintaining and releasing projects): Add git-version-gen.
26917         (Lone files): Remove directories.
26918
26919 2007-10-08  Ben Pfaff  <blp@gnu.org>
26920
26921         * lib/xmalloca.h: Fix typo in comment.
26922
26923 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26924
26925         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
26926         when avoiding problems with integer overflow.  Use a portable test
26927         instead.
26928
26929 2007-10-08  Simon Josefsson  <simon@josefsson.org>
26930
26931         * modules/dummy (License): Change to LGPLv2+.
26932         * modules/float (License): Likewise
26933         * modules/realloc (License): Likewise
26934         * modules/stdlib (License): Likewise
26935
26936 2007-10-07  Bruno Haible  <bruno@clisp.org>
26937
26938         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
26939         * floor.c (TWO_MANT_DIG): Likewise.
26940         * ceil.c (TWO_MANT_DIG): Likewise.
26941         Reported by Ben Pfaff.
26942
26943 2007-10-07  Bruno Haible  <bruno@clisp.org>
26944
26945         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
26946         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
26947         * lib/frexp.c (FUNC): Likewise.
26948         * lib/printf-frexp.h (printf_frexp): Likewise.
26949         * lib/printf-frexpl.h (printf_frexpl): Likewise.
26950         * lib/printf-frexp.c (FUNC): Likewise.
26951         Suggested by Jim Meyering.
26952
26953 2007-10-07  Jim Meyering  <meyering@redhat.com>
26954
26955         Make xnanosleep's integer overflow test more robust.
26956         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
26957         so that gcc-4.3.0 doesn't optimize away this test for overflow.
26958
26959 2007-10-07  Bruno Haible  <bruno@clisp.org>
26960
26961         * NEWS: Mention the license change.
26962
26963         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
26964         abbreviations in the modules files.
26965
26966         Change copyright notice from GPLv2+ to GPLv3+.
26967         * README: Change copyright notice.
26968         * MODULES.html.sh: Likewise.
26969         * build-aux/bootstrap.conf: Likewise.
26970         * build-aux/config.libpath: Likewise.
26971         * build-aux/csharpcomp.sh.in: Likewise.
26972         * build-aux/csharpexec.sh.in: Likewise.
26973         * build-aux/install-reloc: Likewise.
26974         * build-aux/javacomp.sh.in: Likewise.
26975         * build-aux/javaexec.sh.in: Likewise.
26976         * build-aux/ldd.sh.in: Likewise.
26977         * build-aux/reloc-ldflags: Likewise.
26978         * build-aux/relocatable.sh.in: Likewise.
26979         * build-aux/x-to-1.in: Likewise.
26980         * check-module: Likewise.
26981         * config/srclistvars.sh: Likewise.
26982         * gnulib-tool: Likewise.
26983         * lib/acl-internal.h: Likewise.
26984         * lib/acl.c: Likewise.
26985         * lib/acl.h: Likewise.
26986         * lib/acl_entries.c: Likewise.
26987         * lib/areadlink-with-size.c: Likewise.
26988         * lib/areadlink.c: Likewise.
26989         * lib/areadlink.h: Likewise.
26990         * lib/argmatch.c: Likewise.
26991         * lib/argmatch.h: Likewise.
26992         * lib/argp-ba.c: Likewise.
26993         * lib/argp-eexst.c: Likewise.
26994         * lib/argp-fmtstream.c: Likewise.
26995         * lib/argp-fmtstream.h: Likewise.
26996         * lib/argp-fs-xinl.c: Likewise.
26997         * lib/argp-help.c: Likewise.
26998         * lib/argp-namefrob.h: Likewise.
26999         * lib/argp-parse.c: Likewise.
27000         * lib/argp-pin.c: Likewise.
27001         * lib/argp-pv.c: Likewise.
27002         * lib/argp-pvh.c: Likewise.
27003         * lib/argp-xinl.c: Likewise.
27004         * lib/argp.h: Likewise.
27005         * lib/at-func.c: Likewise.
27006         * lib/atanl.c: Likewise.
27007         * lib/backupfile.c: Likewise.
27008         * lib/backupfile.h: Likewise.
27009         * lib/basename.c: Likewise.
27010         * lib/binary-io.h: Likewise.
27011         * lib/byteswap.in.h: Likewise.
27012         * lib/c-stack.c: Likewise.
27013         * lib/c-stack.h: Likewise.
27014         * lib/c-strcasestr.c: Likewise.
27015         * lib/c-strcasestr.h: Likewise.
27016         * lib/c-strstr.c: Likewise.
27017         * lib/c-strstr.h: Likewise.
27018         * lib/c-strtod.c: Likewise.
27019         * lib/calloc.c: Likewise.
27020         * lib/canon-host.c: Likewise.
27021         * lib/canon-host.h: Likewise.
27022         * lib/canonicalize-lgpl.c: Likewise.
27023         * lib/canonicalize.c: Likewise.
27024         * lib/canonicalize.h: Likewise.
27025         * lib/ceil.c: Likewise.
27026         * lib/ceilf.c: Likewise.
27027         * lib/ceill.c: Likewise.
27028         * lib/chdir-long.c: Likewise.
27029         * lib/chdir-long.h: Likewise.
27030         * lib/chdir-safer.c: Likewise.
27031         * lib/chdir-safer.h: Likewise.
27032         * lib/chown.c: Likewise.
27033         * lib/classpath.c: Likewise.
27034         * lib/classpath.h: Likewise.
27035         * lib/clean-temp.c: Likewise.
27036         * lib/clean-temp.h: Likewise.
27037         * lib/cloexec.c: Likewise.
27038         * lib/close-stream.c: Likewise.
27039         * lib/closein.c: Likewise.
27040         * lib/closein.h: Likewise.
27041         * lib/closeout.c: Likewise.
27042         * lib/closeout.h: Likewise.
27043         * lib/concat-filename.c: Likewise.
27044         * lib/copy-file.c: Likewise.
27045         * lib/copy-file.h: Likewise.
27046         * lib/count-one-bits.h: Likewise.
27047         * lib/crc.c: Likewise.
27048         * lib/crc.h: Likewise.
27049         * lib/creat-safer.c: Likewise.
27050         * lib/csharpcomp.c: Likewise.
27051         * lib/csharpcomp.h: Likewise.
27052         * lib/csharpexec.c: Likewise.
27053         * lib/csharpexec.h: Likewise.
27054         * lib/cycle-check.c: Likewise.
27055         * lib/cycle-check.h: Likewise.
27056         * lib/diacrit.c: Likewise.
27057         * lib/diacrit.h: Likewise.
27058         * lib/diffseq.h: Likewise.
27059         * lib/dirchownmod.c: Likewise.
27060         * lib/dirent.in.h: Likewise.
27061         * lib/dirfd.c: Likewise.
27062         * lib/dirfd.h: Likewise.
27063         * lib/dirname.c: Likewise.
27064         * lib/dirname.h: Likewise.
27065         * lib/dummy.c: Likewise.
27066         * lib/dup-safer.c: Likewise.
27067         * lib/dup2.c: Likewise.
27068         * lib/eealloc.h: Likewise.
27069         * lib/error.c: Likewise.
27070         * lib/error.h: Likewise.
27071         * lib/euidaccess.c: Likewise.
27072         * lib/exclude.c: Likewise.
27073         * lib/exclude.h: Likewise.
27074         * lib/execute.c: Likewise.
27075         * lib/execute.h: Likewise.
27076         * lib/exitfail.c: Likewise.
27077         * lib/exitfail.h: Likewise.
27078         * lib/expl.c: Likewise.
27079         * lib/fatal-signal.c: Likewise.
27080         * lib/fatal-signal.h: Likewise.
27081         * lib/fbufmode.c: Likewise.
27082         * lib/fbufmode.h: Likewise.
27083         * lib/fchdir.c: Likewise.
27084         * lib/fchmodat.c: Likewise.
27085         * lib/fchownat.c: Likewise.
27086         * lib/fcntl--.h: Likewise.
27087         * lib/fcntl-safer.h: Likewise.
27088         * lib/fcntl.in.h: Likewise.
27089         * lib/fd-safer.c: Likewise.
27090         * lib/fflush.c: Likewise.
27091         * lib/file-has-acl.c: Likewise.
27092         * lib/file-set.c: Likewise.
27093         * lib/file-type.c: Likewise.
27094         * lib/file-type.h: Likewise.
27095         * lib/fileblocks.c: Likewise.
27096         * lib/filemode.c: Likewise.
27097         * lib/filemode.h: Likewise.
27098         * lib/filename.h: Likewise.
27099         * lib/filenamecat.c: Likewise.
27100         * lib/filenamecat.h: Likewise.
27101         * lib/findprog.c: Likewise.
27102         * lib/findprog.h: Likewise.
27103         * lib/float.in.h: Likewise.
27104         * lib/floor.c: Likewise.
27105         * lib/floorf.c: Likewise.
27106         * lib/floorl.c: Likewise.
27107         * lib/fopen-safer.c: Likewise.
27108         * lib/fopen.c: Likewise.
27109         * lib/fpending.c: Likewise.
27110         * lib/fpending.h: Likewise.
27111         * lib/fprintf.c: Likewise.
27112         * lib/fprintftime.h: Likewise.
27113         * lib/fpucw.h: Likewise.
27114         * lib/fpurge.c: Likewise.
27115         * lib/fpurge.h: Likewise.
27116         * lib/freadable.c: Likewise.
27117         * lib/freadable.h: Likewise.
27118         * lib/freadahead.c: Likewise.
27119         * lib/freadahead.h: Likewise.
27120         * lib/freading.c: Likewise.
27121         * lib/freading.h: Likewise.
27122         * lib/free.c: Likewise.
27123         * lib/freopen.c: Likewise.
27124         * lib/frexp.c: Likewise.
27125         * lib/frexpl.c: Likewise.
27126         * lib/fseek.c: Likewise.
27127         * lib/fseterr.c: Likewise.
27128         * lib/fseterr.h: Likewise.
27129         * lib/fstatat.c: Likewise.
27130         * lib/fstrcmp.c: Likewise.
27131         * lib/fstrcmp.h: Likewise.
27132         * lib/fsusage.c: Likewise.
27133         * lib/fsusage.h: Likewise.
27134         * lib/ftell.c: Likewise.
27135         * lib/ftello.c: Likewise.
27136         * lib/fts-cycle.c: Likewise.
27137         * lib/fts.c: Likewise.
27138         * lib/fts_.h: Likewise.
27139         * lib/full-read.c: Likewise.
27140         * lib/full-read.h: Likewise.
27141         * lib/full-write.c: Likewise.
27142         * lib/full-write.h: Likewise.
27143         * lib/fwritable.c: Likewise.
27144         * lib/fwritable.h: Likewise.
27145         * lib/fwriteerror.c: Likewise.
27146         * lib/fwriteerror.h: Likewise.
27147         * lib/fwriting.c: Likewise.
27148         * lib/fwriting.h: Likewise.
27149         * lib/gcd.c: Likewise.
27150         * lib/gcd.h: Likewise.
27151         * lib/getcwd.c: Likewise.
27152         * lib/getdate.h: Likewise.
27153         * lib/getdate.y: Likewise.
27154         * lib/getdomainname.c: Likewise.
27155         * lib/getdomainname.h: Likewise.
27156         * lib/getgroups.c: Likewise.
27157         * lib/gethostname.c: Likewise.
27158         * lib/gethrxtime.c: Likewise.
27159         * lib/gethrxtime.h: Likewise.
27160         * lib/getloadavg.c: Likewise.
27161         * lib/getndelim2.c: Likewise.
27162         * lib/getndelim2.h: Likewise.
27163         * lib/getnline.c: Likewise.
27164         * lib/getnline.h: Likewise.
27165         * lib/getopt.c: Likewise.
27166         * lib/getopt.in.h: Likewise.
27167         * lib/getopt1.c: Likewise.
27168         * lib/getopt_int.h: Likewise.
27169         * lib/getpagesize.h: Likewise.
27170         * lib/getsubopt.c: Likewise.
27171         * lib/gettime.c: Likewise.
27172         * lib/getugroups.c: Likewise.
27173         * lib/getugroups.h: Likewise.
27174         * lib/getusershell.c: Likewise.
27175         * lib/gl_anyavltree_list1.h: Likewise.
27176         * lib/gl_anyavltree_list2.h: Likewise.
27177         * lib/gl_anyhash_list1.h: Likewise.
27178         * lib/gl_anyhash_list2.h: Likewise.
27179         * lib/gl_anylinked_list1.h: Likewise.
27180         * lib/gl_anylinked_list2.h: Likewise.
27181         * lib/gl_anyrbtree_list1.h: Likewise.
27182         * lib/gl_anyrbtree_list2.h: Likewise.
27183         * lib/gl_anytree_list1.h: Likewise.
27184         * lib/gl_anytree_list2.h: Likewise.
27185         * lib/gl_anytree_oset.h: Likewise.
27186         * lib/gl_anytreehash_list1.h: Likewise.
27187         * lib/gl_anytreehash_list2.h: Likewise.
27188         * lib/gl_array_list.c: Likewise.
27189         * lib/gl_array_list.h: Likewise.
27190         * lib/gl_array_oset.c: Likewise.
27191         * lib/gl_array_oset.h: Likewise.
27192         * lib/gl_avltree_list.c: Likewise.
27193         * lib/gl_avltree_list.h: Likewise.
27194         * lib/gl_avltree_oset.c: Likewise.
27195         * lib/gl_avltree_oset.h: Likewise.
27196         * lib/gl_avltreehash_list.c: Likewise.
27197         * lib/gl_avltreehash_list.h: Likewise.
27198         * lib/gl_carray_list.c: Likewise.
27199         * lib/gl_carray_list.h: Likewise.
27200         * lib/gl_linked_list.c: Likewise.
27201         * lib/gl_linked_list.h: Likewise.
27202         * lib/gl_linkedhash_list.c: Likewise.
27203         * lib/gl_linkedhash_list.h: Likewise.
27204         * lib/gl_list.c: Likewise.
27205         * lib/gl_list.h: Likewise.
27206         * lib/gl_oset.c: Likewise.
27207         * lib/gl_oset.h: Likewise.
27208         * lib/gl_rbtree_list.c: Likewise.
27209         * lib/gl_rbtree_list.h: Likewise.
27210         * lib/gl_rbtree_oset.c: Likewise.
27211         * lib/gl_rbtree_oset.h: Likewise.
27212         * lib/gl_rbtreehash_list.c: Likewise.
27213         * lib/gl_rbtreehash_list.h: Likewise.
27214         * lib/gl_sublist.c: Likewise.
27215         * lib/gl_sublist.h: Likewise.
27216         * lib/group-member.c: Likewise.
27217         * lib/group-member.h: Likewise.
27218         * lib/hard-locale.c: Likewise.
27219         * lib/hard-locale.h: Likewise.
27220         * lib/hash-pjw.c: Likewise.
27221         * lib/hash-pjw.h: Likewise.
27222         * lib/hash-triple.c: Likewise.
27223         * lib/hash.c: Likewise.
27224         * lib/hash.h: Likewise.
27225         * lib/human.c: Likewise.
27226         * lib/human.h: Likewise.
27227         * lib/i-ring.c: Likewise.
27228         * lib/i-ring.h: Likewise.
27229         * lib/idcache.c: Likewise.
27230         * lib/imaxabs.c: Likewise.
27231         * lib/imaxdiv.c: Likewise.
27232         * lib/inet_pton.c: Likewise.
27233         * lib/inet_pton.h: Likewise.
27234         * lib/intprops.h: Likewise.
27235         * lib/inttostr.c: Likewise.
27236         * lib/inttostr.h: Likewise.
27237         * lib/inttypes.in.h: Likewise.
27238         * lib/isapipe.c: Likewise.
27239         * lib/isdir.c: Likewise.
27240         * lib/isnan.c: Likewise.
27241         * lib/isnan.h: Likewise.
27242         * lib/isnanf.c: Likewise.
27243         * lib/isnanf.h: Likewise.
27244         * lib/isnanl-nolibm.h: Likewise.
27245         * lib/isnanl.c: Likewise.
27246         * lib/isnanl.h: Likewise.
27247         * lib/javacomp.c: Likewise.
27248         * lib/javacomp.h: Likewise.
27249         * lib/javaexec.c: Likewise.
27250         * lib/javaexec.h: Likewise.
27251         * lib/javaversion.c: Likewise.
27252         * lib/javaversion.h: Likewise.
27253         * lib/javaversion.java: Likewise.
27254         * lib/lbrkprop.h: Likewise.
27255         * lib/lchmod.h: Likewise.
27256         * lib/lchown.c: Likewise.
27257         * lib/ldexpl.c: Likewise.
27258         * lib/linebreak.c: Likewise.
27259         * lib/linebreak.h: Likewise.
27260         * lib/linebuffer.c: Likewise.
27261         * lib/linebuffer.h: Likewise.
27262         * lib/locale.in.h: Likewise.
27263         * lib/logl.c: Likewise.
27264         * lib/long-options.c: Likewise.
27265         * lib/long-options.h: Likewise.
27266         * lib/lstat.c: Likewise.
27267         * lib/lstat.h: Likewise.
27268         * lib/math.in.h: Likewise.
27269         * lib/mbchar.c: Likewise.
27270         * lib/mbchar.h: Likewise.
27271         * lib/mbfile.h: Likewise.
27272         * lib/mbiter.h: Likewise.
27273         * lib/mbscasecmp.c: Likewise.
27274         * lib/mbscasestr.c: Likewise.
27275         * lib/mbschr.c: Likewise.
27276         * lib/mbscspn.c: Likewise.
27277         * lib/mbslen.c: Likewise.
27278         * lib/mbsncasecmp.c: Likewise.
27279         * lib/mbsnlen.c: Likewise.
27280         * lib/mbspbrk.c: Likewise.
27281         * lib/mbspcasecmp.c: Likewise.
27282         * lib/mbsrchr.c: Likewise.
27283         * lib/mbssep.c: Likewise.
27284         * lib/mbsspn.c: Likewise.
27285         * lib/mbsstr.c: Likewise.
27286         * lib/mbstok_r.c: Likewise.
27287         * lib/mbswidth.c: Likewise.
27288         * lib/mbswidth.h: Likewise.
27289         * lib/mbuiter.h: Likewise.
27290         * lib/memcasecmp.c: Likewise.
27291         * lib/memcasecmp.h: Likewise.
27292         * lib/memchr.c: Likewise.
27293         * lib/memcmp.c: Likewise.
27294         * lib/memcoll.c: Likewise.
27295         * lib/memcoll.h: Likewise.
27296         * lib/memcpy.c: Likewise.
27297         * lib/memrchr.c: Likewise.
27298         * lib/mkancesdirs.c: Likewise.
27299         * lib/mkdir-p.c: Likewise.
27300         * lib/mkdir-p.h: Likewise.
27301         * lib/mkdir.c: Likewise.
27302         * lib/mkdirat.c: Likewise.
27303         * lib/mkdtemp.c: Likewise.
27304         * lib/mkstemp-safer.c: Likewise.
27305         * lib/mkstemp.c: Likewise.
27306         * lib/modechange.c: Likewise.
27307         * lib/modechange.h: Likewise.
27308         * lib/mountlist.c: Likewise.
27309         * lib/mountlist.h: Likewise.
27310         * lib/mpsort.c: Likewise.
27311         * lib/nanosleep.c: Likewise.
27312         * lib/obstack.c: Likewise.
27313         * lib/obstack.h: Likewise.
27314         * lib/open-safer.c: Likewise.
27315         * lib/open.c: Likewise.
27316         * lib/openat-die.c: Likewise.
27317         * lib/openat-priv.h: Likewise.
27318         * lib/openat-proc.c: Likewise.
27319         * lib/openat.c: Likewise.
27320         * lib/openat.h: Likewise.
27321         * lib/pagealign_alloc.c: Likewise.
27322         * lib/pagealign_alloc.h: Likewise.
27323         * lib/physmem.c: Likewise.
27324         * lib/physmem.h: Likewise.
27325         * lib/pipe-safer.c: Likewise.
27326         * lib/pipe.c: Likewise.
27327         * lib/pipe.h: Likewise.
27328         * lib/posixtm.c: Likewise.
27329         * lib/posixtm.h: Likewise.
27330         * lib/posixver.c: Likewise.
27331         * lib/printf-frexp.c: Likewise.
27332         * lib/printf-frexp.h: Likewise.
27333         * lib/printf-frexpl.c: Likewise.
27334         * lib/printf-frexpl.h: Likewise.
27335         * lib/printf.c: Likewise.
27336         * lib/progname.c: Likewise.
27337         * lib/progname.h: Likewise.
27338         * lib/progreloc.c: Likewise.
27339         * lib/putenv.c: Likewise.
27340         * lib/quote.c: Likewise.
27341         * lib/quote.h: Likewise.
27342         * lib/quotearg.c: Likewise.
27343         * lib/quotearg.h: Likewise.
27344         * lib/raise.c: Likewise.
27345         * lib/readline.c: Likewise.
27346         * lib/readline.h: Likewise.
27347         * lib/readlink.c: Likewise.
27348         * lib/readtokens.c: Likewise.
27349         * lib/readtokens.h: Likewise.
27350         * lib/readtokens0.c: Likewise.
27351         * lib/readtokens0.h: Likewise.
27352         * lib/readutmp.c: Likewise.
27353         * lib/readutmp.h: Likewise.
27354         * lib/realloc.c: Likewise.
27355         * lib/relocwrapper.c: Likewise.
27356         * lib/rename-dest-slash.c: Likewise.
27357         * lib/rename.c: Likewise.
27358         * lib/rmdir.c: Likewise.
27359         * lib/rpmatch.c: Likewise.
27360         * lib/safe-read.c: Likewise.
27361         * lib/safe-read.h: Likewise.
27362         * lib/safe-write.c: Likewise.
27363         * lib/safe-write.h: Likewise.
27364         * lib/same-inode.h: Likewise.
27365         * lib/same.c: Likewise.
27366         * lib/same.h: Likewise.
27367         * lib/save-cwd.c: Likewise.
27368         * lib/save-cwd.h: Likewise.
27369         * lib/savedir.c: Likewise.
27370         * lib/savedir.h: Likewise.
27371         * lib/savewd.c: Likewise.
27372         * lib/savewd.h: Likewise.
27373         * lib/search.in.h: Likewise.
27374         * lib/setenv.c: Likewise.
27375         * lib/setenv.h: Likewise.
27376         * lib/settime.c: Likewise.
27377         * lib/sh-quote.c: Likewise.
27378         * lib/sh-quote.h: Likewise.
27379         * lib/sig2str.c: Likewise.
27380         * lib/sig2str.h: Likewise.
27381         * lib/signal.in.h: Likewise.
27382         * lib/signbitd.c: Likewise.
27383         * lib/signbitf.c: Likewise.
27384         * lib/signbitl.c: Likewise.
27385         * lib/sigprocmask.c: Likewise.
27386         * lib/sincosl.c: Likewise.
27387         * lib/sleep.c: Likewise.
27388         * lib/sprintf.c: Likewise.
27389         * lib/sqrtl.c: Likewise.
27390         * lib/stat-time.h: Likewise.
27391         * lib/stdio--.h: Likewise.
27392         * lib/stdio-safer.h: Likewise.
27393         * lib/stdlib--.h: Likewise.
27394         * lib/stdlib-safer.h: Likewise.
27395         * lib/stdlib.in.h: Likewise.
27396         * lib/stpcpy.c: Likewise.
27397         * lib/stpncpy.c: Likewise.
27398         * lib/strchrnul.c: Likewise.
27399         * lib/strcspn.c: Likewise.
27400         * lib/strerror.c: Likewise.
27401         * lib/strftime.c: Likewise.
27402         * lib/strftime.h: Likewise.
27403         * lib/striconveh.c: Likewise.
27404         * lib/striconveh.h: Likewise.
27405         * lib/striconveha.c: Likewise.
27406         * lib/striconveha.h: Likewise.
27407         * lib/stripslash.c: Likewise.
27408         * lib/strnlen1.c: Likewise.
27409         * lib/strnlen1.h: Likewise.
27410         * lib/strtod.c: Likewise.
27411         * lib/strtoimax.c: Likewise.
27412         * lib/strtok_r.c: Likewise.
27413         * lib/strtol.c: Likewise.
27414         * lib/strtoll.c: Likewise.
27415         * lib/strtoul.c: Likewise.
27416         * lib/strtoull.c: Likewise.
27417         * lib/sysexits.in.h: Likewise.
27418         * lib/tempname.c: Likewise.
27419         * lib/tempname.h: Likewise.
27420         * lib/timespec.h: Likewise.
27421         * lib/tls.c: Likewise.
27422         * lib/tls.h: Likewise.
27423         * lib/tmpdir.c: Likewise.
27424         * lib/tmpdir.h: Likewise.
27425         * lib/tmpfile-safer.c: Likewise.
27426         * lib/tmpfile.c: Likewise.
27427         * lib/trigl.c: Likewise.
27428         * lib/trigl.h: Likewise.
27429         * lib/trim.c: Likewise.
27430         * lib/trim.h: Likewise.
27431         * lib/trunc.c: Likewise.
27432         * lib/truncf.c: Likewise.
27433         * lib/truncl.c: Likewise.
27434         * lib/tsearch.c: Likewise.
27435         * lib/unicodeio.c: Likewise.
27436         * lib/unicodeio.h: Likewise.
27437         * lib/unistd--.h: Likewise.
27438         * lib/unistd-safer.h: Likewise.
27439         * lib/unistdio/ulc-fprintf.c: Likewise.
27440         * lib/unistdio/ulc-vfprintf.c: Likewise.
27441         * lib/unlinkdir.c: Likewise.
27442         * lib/unlinkdir.h: Likewise.
27443         * lib/unlocked-io.h: Likewise.
27444         * lib/unsetenv.c: Likewise.
27445         * lib/userspec.c: Likewise.
27446         * lib/utime.c: Likewise.
27447         * lib/utimecmp.c: Likewise.
27448         * lib/utimecmp.h: Likewise.
27449         * lib/utimens.c: Likewise.
27450         * lib/verify.h: Likewise.
27451         * lib/verror.c: Likewise.
27452         * lib/verror.h: Likewise.
27453         * lib/version-etc-fsf.c: Likewise.
27454         * lib/version-etc.c: Likewise.
27455         * lib/version-etc.h: Likewise.
27456         * lib/vfprintf.c: Likewise.
27457         * lib/vprintf.c: Likewise.
27458         * lib/vsprintf.c: Likewise.
27459         * lib/w32spawn.h: Likewise.
27460         * lib/wait-process.c: Likewise.
27461         * lib/wait-process.h: Likewise.
27462         * lib/wcwidth.c: Likewise.
27463         * lib/write-any-file.c: Likewise.
27464         * lib/xalloc-die.c: Likewise.
27465         * lib/xalloc.h: Likewise.
27466         * lib/xasprintf.c: Likewise.
27467         * lib/xgetcwd.c: Likewise.
27468         * lib/xgetcwd.h: Likewise.
27469         * lib/xgetdomainname.c: Likewise.
27470         * lib/xgetdomainname.h: Likewise.
27471         * lib/xgethostname.c: Likewise.
27472         * lib/xmalloc.c: Likewise.
27473         * lib/xmalloca.c: Likewise.
27474         * lib/xmalloca.h: Likewise.
27475         * lib/xmemcoll.c: Likewise.
27476         * lib/xnanosleep.c: Likewise.
27477         * lib/xreadlink.c: Likewise.
27478         * lib/xreadlink.h: Likewise.
27479         * lib/xsetenv.c: Likewise.
27480         * lib/xsetenv.h: Likewise.
27481         * lib/xstriconv.c: Likewise.
27482         * lib/xstriconv.h: Likewise.
27483         * lib/xstrndup.c: Likewise.
27484         * lib/xstrndup.h: Likewise.
27485         * lib/xstrtod.c: Likewise.
27486         * lib/xstrtod.h: Likewise.
27487         * lib/xstrtol-error.c: Likewise.
27488         * lib/xstrtol.c: Likewise.
27489         * lib/xstrtol.h: Likewise.
27490         * lib/xtime.h: Likewise.
27491         * lib/xvasprintf.c: Likewise.
27492         * lib/xvasprintf.h: Likewise.
27493         * lib/yesno.c: Likewise.
27494         * lib/yesno.h: Likewise.
27495         * posix-modules: Likewise.
27496         * tests/test-alloca-opt.c: Likewise.
27497         * tests/test-arcfour.c: Likewise.
27498         * tests/test-arctwo.c: Likewise.
27499         * tests/test-argmatch.c: Likewise.
27500         * tests/test-argp-2.sh: Likewise.
27501         * tests/test-argp.c: Likewise.
27502         * tests/test-arpa_inet.c: Likewise.
27503         * tests/test-array_list.c: Likewise.
27504         * tests/test-array_oset.c: Likewise.
27505         * tests/test-atexit.c: Likewise.
27506         * tests/test-avltree_list.c: Likewise.
27507         * tests/test-avltree_oset.c: Likewise.
27508         * tests/test-avltreehash_list.c: Likewise.
27509         * tests/test-base64.c: Likewise.
27510         * tests/test-binary-io.c: Likewise.
27511         * tests/test-byteswap.c: Likewise.
27512         * tests/test-c-ctype.c: Likewise.
27513         * tests/test-c-strcasecmp.c: Likewise.
27514         * tests/test-c-strcasestr.c: Likewise.
27515         * tests/test-c-strncasecmp.c: Likewise.
27516         * tests/test-c-strstr.c: Likewise.
27517         * tests/test-canonicalize-lgpl.c: Likewise.
27518         * tests/test-canonicalize.c: Likewise.
27519         * tests/test-carray_list.c: Likewise.
27520         * tests/test-ceilf.c: Likewise.
27521         * tests/test-ceill.c: Likewise.
27522         * tests/test-count-one-bits.c: Likewise.
27523         * tests/test-crc.c: Likewise.
27524         * tests/test-dirname.c: Likewise.
27525         * tests/test-fbufmode.c: Likewise.
27526         * tests/test-fcntl.c: Likewise.
27527         * tests/test-fflush.c: Likewise.
27528         * tests/test-floorf.c: Likewise.
27529         * tests/test-floorl.c: Likewise.
27530         * tests/test-fopen.c: Likewise.
27531         * tests/test-fprintf-posix.c: Likewise.
27532         * tests/test-fprintf-posix.h: Likewise.
27533         * tests/test-fpurge.c: Likewise.
27534         * tests/test-freadable.c: Likewise.
27535         * tests/test-freadahead.c: Likewise.
27536         * tests/test-freading.c: Likewise.
27537         * tests/test-freopen.c: Likewise.
27538         * tests/test-frexp.c: Likewise.
27539         * tests/test-frexpl.c: Likewise.
27540         * tests/test-fseek.c: Likewise.
27541         * tests/test-fseeko.c: Likewise.
27542         * tests/test-fseterr.c: Likewise.
27543         * tests/test-fstrcmp.c: Likewise.
27544         * tests/test-ftell.c: Likewise.
27545         * tests/test-ftello.c: Likewise.
27546         * tests/test-fwritable.c: Likewise.
27547         * tests/test-fwriting.c: Likewise.
27548         * tests/test-getaddrinfo.c: Likewise.
27549         * tests/test-getpass.c: Likewise.
27550         * tests/test-gettimeofday.c: Likewise.
27551         * tests/test-hmac-md5.c: Likewise.
27552         * tests/test-hmac-sha1.c: Likewise.
27553         * tests/test-iconv.c: Likewise.
27554         * tests/test-iconvme.c: Likewise.
27555         * tests/test-inttypes.c: Likewise.
27556         * tests/test-isnan.c: Likewise.
27557         * tests/test-isnanf.c: Likewise.
27558         * tests/test-isnanl-nolibm.c: Likewise.
27559         * tests/test-isnanl.c: Likewise.
27560         * tests/test-isnanl.h: Likewise.
27561         * tests/test-ldexpl.c: Likewise.
27562         * tests/test-linked_list.c: Likewise.
27563         * tests/test-linkedhash_list.c: Likewise.
27564         * tests/test-locale.c: Likewise.
27565         * tests/test-localename.c: Likewise.
27566         * tests/test-lock.c: Likewise.
27567         * tests/test-lseek.c: Likewise.
27568         * tests/test-malloca.c: Likewise.
27569         * tests/test-math.c: Likewise.
27570         * tests/test-mbscasecmp.c: Likewise.
27571         * tests/test-mbscasestr1.c: Likewise.
27572         * tests/test-mbscasestr2.c: Likewise.
27573         * tests/test-mbscasestr3.c: Likewise.
27574         * tests/test-mbscasestr4.c: Likewise.
27575         * tests/test-mbschr.c: Likewise.
27576         * tests/test-mbscspn.c: Likewise.
27577         * tests/test-mbsncasecmp.c: Likewise.
27578         * tests/test-mbspbrk.c: Likewise.
27579         * tests/test-mbspcasecmp.c: Likewise.
27580         * tests/test-mbsrchr.c: Likewise.
27581         * tests/test-mbsspn.c: Likewise.
27582         * tests/test-mbsstr1.c: Likewise.
27583         * tests/test-mbsstr2.c: Likewise.
27584         * tests/test-mbsstr3.c: Likewise.
27585         * tests/test-md5.c: Likewise.
27586         * tests/test-memmem.c: Likewise.
27587         * tests/test-netinet_in.c: Likewise.
27588         * tests/test-open.c: Likewise.
27589         * tests/test-printf-frexp.c: Likewise.
27590         * tests/test-printf-frexpl.c: Likewise.
27591         * tests/test-printf-posix.c: Likewise.
27592         * tests/test-printf-posix.h: Likewise.
27593         * tests/test-rbtree_list.c: Likewise.
27594         * tests/test-rbtree_oset.c: Likewise.
27595         * tests/test-rbtreehash_list.c: Likewise.
27596         * tests/test-read-file.c: Likewise.
27597         * tests/test-rijndael.c: Likewise.
27598         * tests/test-search.c: Likewise.
27599         * tests/test-signbit.c: Likewise.
27600         * tests/test-sleep.c: Likewise.
27601         * tests/test-snprintf-posix.c: Likewise.
27602         * tests/test-snprintf-posix.h: Likewise.
27603         * tests/test-snprintf.c: Likewise.
27604         * tests/test-sprintf-posix.c: Likewise.
27605         * tests/test-sprintf-posix.h: Likewise.
27606         * tests/test-stat-time.c: Likewise.
27607         * tests/test-stdbool.c: Likewise.
27608         * tests/test-stdint.c: Likewise.
27609         * tests/test-stdio.c: Likewise.
27610         * tests/test-stdlib.c: Likewise.
27611         * tests/test-stpncpy.c: Likewise.
27612         * tests/test-strcasestr.c: Likewise.
27613         * tests/test-striconv.c: Likewise.
27614         * tests/test-striconveh.c: Likewise.
27615         * tests/test-striconveha.c: Likewise.
27616         * tests/test-string.c: Likewise.
27617         * tests/test-sys_select.c: Likewise.
27618         * tests/test-sys_socket.c: Likewise.
27619         * tests/test-sys_stat.c: Likewise.
27620         * tests/test-sys_time.c: Likewise.
27621         * tests/test-sysexits.c: Likewise.
27622         * tests/test-time.c: Likewise.
27623         * tests/test-tls.c: Likewise.
27624         * tests/test-trunc.c: Likewise.
27625         * tests/test-truncf.c: Likewise.
27626         * tests/test-truncl.c: Likewise.
27627         * tests/test-unistd.c: Likewise.
27628         * tests/test-vasnprintf-posix.c: Likewise.
27629         * tests/test-vasnprintf-posix2.c: Likewise.
27630         * tests/test-vasnprintf.c: Likewise.
27631         * tests/test-vasprintf-posix.c: Likewise.
27632         * tests/test-vasprintf.c: Likewise.
27633         * tests/test-verify.c: Likewise.
27634         * tests/test-vfprintf-posix.c: Likewise.
27635         * tests/test-vprintf-posix.c: Likewise.
27636         * tests/test-vsnprintf-posix.c: Likewise.
27637         * tests/test-vsnprintf.c: Likewise.
27638         * tests/test-vsprintf-posix.c: Likewise.
27639         * tests/test-wchar.c: Likewise.
27640         * tests/test-wctype.c: Likewise.
27641         * tests/test-wcwidth.c: Likewise.
27642         * tests/test-xstrtol.c: Likewise.
27643         * tests/test-xvasprintf.c: Likewise.
27644         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27645         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27646         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27647         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27648         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27649         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27650         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27651         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27652         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27653         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27654         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27655         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27656         * tests/uniname/test-uninames.c: Likewise.
27657         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27658         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
27659         * tests/unistdio/test-u16-printf1.h: Likewise.
27660         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27661         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27662         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27663         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27664         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27665         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27666         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27667         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
27668         * tests/unistdio/test-u32-printf1.h: Likewise.
27669         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27670         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27671         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27672         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27673         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27674         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27675         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27676         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
27677         * tests/unistdio/test-u8-printf1.h: Likewise.
27678         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27679         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27680         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27681         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27682         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27683         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27684         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27685         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
27686         * tests/unistdio/test-ulc-printf1.h: Likewise.
27687         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27688         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27689         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27690         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27691         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27692         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27693         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27694         * tests/uniwidth/test-u16-width.c: Likewise.
27695         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27696         * tests/uniwidth/test-u32-width.c: Likewise.
27697         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27698         * tests/uniwidth/test-u8-width.c: Likewise.
27699         * tests/uniwidth/test-uc_width.c: Likewise.
27700         * config/srclist-update: Likewise.
27701         (fixlicense): Update to GPLv3+.
27702
27703         Change copyright notice from LGPLv2.1+ to LGPLv3+.
27704         * tests/test-tsearch.c: Change copyright notice.
27705
27706         Change copyright notice from LGPLv2.0+ to LGPLv3+.
27707         * lib/c-strcaseeq.h: Change copyright notice.
27708         * lib/streq.h: Likewise.
27709         * lib/uniconv.h: Likewise.
27710         * lib/uniconv/u-conv-from-enc.h: Likewise.
27711         * lib/uniconv/u-conv-to-enc.h: Likewise.
27712         * lib/uniconv/u-strconv-from-enc.h: Likewise.
27713         * lib/uniconv/u-strconv-to-enc.h: Likewise.
27714         * lib/uniconv/u16-conv-from-enc.c: Likewise.
27715         * lib/uniconv/u16-conv-to-enc.c: Likewise.
27716         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
27717         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
27718         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
27719         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
27720         * lib/uniconv/u32-conv-from-enc.c: Likewise.
27721         * lib/uniconv/u32-conv-to-enc.c: Likewise.
27722         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
27723         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
27724         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
27725         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
27726         * lib/uniconv/u8-conv-from-enc.c: Likewise.
27727         * lib/uniconv/u8-conv-to-enc.c: Likewise.
27728         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
27729         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
27730         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
27731         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
27732         * lib/uniname.h: Likewise.
27733         * lib/uniname/uniname.c: Likewise.
27734         * lib/unistdio.h: Likewise.
27735         * lib/unistdio/u-asnprintf.h: Likewise.
27736         * lib/unistdio/u-asprintf.h: Likewise.
27737         * lib/unistdio/u-printf-args.c: Likewise.
27738         * lib/unistdio/u-printf-args.h: Likewise.
27739         * lib/unistdio/u-printf-parse.h: Likewise.
27740         * lib/unistdio/u-snprintf.h: Likewise.
27741         * lib/unistdio/u-sprintf.h: Likewise.
27742         * lib/unistdio/u-vasprintf.h: Likewise.
27743         * lib/unistdio/u-vsnprintf.h: Likewise.
27744         * lib/unistdio/u-vsprintf.h: Likewise.
27745         * lib/unistdio/u16-asnprintf.c: Likewise.
27746         * lib/unistdio/u16-asprintf.c: Likewise.
27747         * lib/unistdio/u16-printf-parse.c: Likewise.
27748         * lib/unistdio/u16-snprintf.c: Likewise.
27749         * lib/unistdio/u16-sprintf.c: Likewise.
27750         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
27751         * lib/unistdio/u16-u16-asprintf.c: Likewise.
27752         * lib/unistdio/u16-u16-snprintf.c: Likewise.
27753         * lib/unistdio/u16-u16-sprintf.c: Likewise.
27754         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
27755         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
27756         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
27757         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
27758         * lib/unistdio/u16-vasnprintf.c: Likewise.
27759         * lib/unistdio/u16-vasprintf.c: Likewise.
27760         * lib/unistdio/u16-vsnprintf.c: Likewise.
27761         * lib/unistdio/u16-vsprintf.c: Likewise.
27762         * lib/unistdio/u32-asnprintf.c: Likewise.
27763         * lib/unistdio/u32-asprintf.c: Likewise.
27764         * lib/unistdio/u32-printf-parse.c: Likewise.
27765         * lib/unistdio/u32-snprintf.c: Likewise.
27766         * lib/unistdio/u32-sprintf.c: Likewise.
27767         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
27768         * lib/unistdio/u32-u32-asprintf.c: Likewise.
27769         * lib/unistdio/u32-u32-snprintf.c: Likewise.
27770         * lib/unistdio/u32-u32-sprintf.c: Likewise.
27771         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
27772         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
27773         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
27774         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
27775         * lib/unistdio/u32-vasnprintf.c: Likewise.
27776         * lib/unistdio/u32-vasprintf.c: Likewise.
27777         * lib/unistdio/u32-vsnprintf.c: Likewise.
27778         * lib/unistdio/u32-vsprintf.c: Likewise.
27779         * lib/unistdio/u8-asnprintf.c: Likewise.
27780         * lib/unistdio/u8-asprintf.c: Likewise.
27781         * lib/unistdio/u8-printf-parse.c: Likewise.
27782         * lib/unistdio/u8-snprintf.c: Likewise.
27783         * lib/unistdio/u8-sprintf.c: Likewise.
27784         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
27785         * lib/unistdio/u8-u8-asprintf.c: Likewise.
27786         * lib/unistdio/u8-u8-snprintf.c: Likewise.
27787         * lib/unistdio/u8-u8-sprintf.c: Likewise.
27788         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
27789         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
27790         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
27791         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
27792         * lib/unistdio/u8-vasnprintf.c: Likewise.
27793         * lib/unistdio/u8-vasprintf.c: Likewise.
27794         * lib/unistdio/u8-vsnprintf.c: Likewise.
27795         * lib/unistdio/u8-vsprintf.c: Likewise.
27796         * lib/unistdio/ulc-asnprintf.c: Likewise.
27797         * lib/unistdio/ulc-asprintf.c: Likewise.
27798         * lib/unistdio/ulc-printf-parse.c: Likewise.
27799         * lib/unistdio/ulc-snprintf.c: Likewise.
27800         * lib/unistdio/ulc-sprintf.c: Likewise.
27801         * lib/unistdio/ulc-vasnprintf.c: Likewise.
27802         * lib/unistdio/ulc-vasprintf.c: Likewise.
27803         * lib/unistdio/ulc-vsnprintf.c: Likewise.
27804         * lib/unistdio/ulc-vsprintf.c: Likewise.
27805         * lib/unistr.h: Likewise.
27806         * lib/unistr/u-cpy-alloc.h: Likewise.
27807         * lib/unistr/u-cpy.h: Likewise.
27808         * lib/unistr/u-endswith.h: Likewise.
27809         * lib/unistr/u-move.h: Likewise.
27810         * lib/unistr/u-set.h: Likewise.
27811         * lib/unistr/u-startswith.h: Likewise.
27812         * lib/unistr/u-stpcpy.h: Likewise.
27813         * lib/unistr/u-stpncpy.h: Likewise.
27814         * lib/unistr/u-strcat.h: Likewise.
27815         * lib/unistr/u-strcpy.h: Likewise.
27816         * lib/unistr/u-strcspn.h: Likewise.
27817         * lib/unistr/u-strdup.h: Likewise.
27818         * lib/unistr/u-strlen.h: Likewise.
27819         * lib/unistr/u-strncat.h: Likewise.
27820         * lib/unistr/u-strncpy.h: Likewise.
27821         * lib/unistr/u-strnlen.h: Likewise.
27822         * lib/unistr/u-strpbrk.h: Likewise.
27823         * lib/unistr/u-strspn.h: Likewise.
27824         * lib/unistr/u-strstr.h: Likewise.
27825         * lib/unistr/u-strtok.h: Likewise.
27826         * lib/unistr/u16-check.c: Likewise.
27827         * lib/unistr/u16-chr.c: Likewise.
27828         * lib/unistr/u16-cmp.c: Likewise.
27829         * lib/unistr/u16-cpy-alloc.c: Likewise.
27830         * lib/unistr/u16-cpy.c: Likewise.
27831         * lib/unistr/u16-endswith.c: Likewise.
27832         * lib/unistr/u16-mblen.c: Likewise.
27833         * lib/unistr/u16-mbsnlen.c: Likewise.
27834         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27835         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27836         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27837         * lib/unistr/u16-mbtouc.c: Likewise.
27838         * lib/unistr/u16-mbtoucr.c: Likewise.
27839         * lib/unistr/u16-move.c: Likewise.
27840         * lib/unistr/u16-next.c: Likewise.
27841         * lib/unistr/u16-prev.c: Likewise.
27842         * lib/unistr/u16-set.c: Likewise.
27843         * lib/unistr/u16-startswith.c: Likewise.
27844         * lib/unistr/u16-stpcpy.c: Likewise.
27845         * lib/unistr/u16-stpncpy.c: Likewise.
27846         * lib/unistr/u16-strcat.c: Likewise.
27847         * lib/unistr/u16-strchr.c: Likewise.
27848         * lib/unistr/u16-strcmp.c: Likewise.
27849         * lib/unistr/u16-strcpy.c: Likewise.
27850         * lib/unistr/u16-strcspn.c: Likewise.
27851         * lib/unistr/u16-strdup.c: Likewise.
27852         * lib/unistr/u16-strlen.c: Likewise.
27853         * lib/unistr/u16-strmblen.c: Likewise.
27854         * lib/unistr/u16-strmbtouc.c: Likewise.
27855         * lib/unistr/u16-strncat.c: Likewise.
27856         * lib/unistr/u16-strncmp.c: Likewise.
27857         * lib/unistr/u16-strncpy.c: Likewise.
27858         * lib/unistr/u16-strnlen.c: Likewise.
27859         * lib/unistr/u16-strpbrk.c: Likewise.
27860         * lib/unistr/u16-strrchr.c: Likewise.
27861         * lib/unistr/u16-strspn.c: Likewise.
27862         * lib/unistr/u16-strstr.c: Likewise.
27863         * lib/unistr/u16-strtok.c: Likewise.
27864         * lib/unistr/u16-to-u32.c: Likewise.
27865         * lib/unistr/u16-to-u8.c: Likewise.
27866         * lib/unistr/u16-uctomb-aux.c: Likewise.
27867         * lib/unistr/u16-uctomb.c: Likewise.
27868         * lib/unistr/u32-check.c: Likewise.
27869         * lib/unistr/u32-chr.c: Likewise.
27870         * lib/unistr/u32-cmp.c: Likewise.
27871         * lib/unistr/u32-cpy-alloc.c: Likewise.
27872         * lib/unistr/u32-cpy.c: Likewise.
27873         * lib/unistr/u32-endswith.c: Likewise.
27874         * lib/unistr/u32-mblen.c: Likewise.
27875         * lib/unistr/u32-mbsnlen.c: Likewise.
27876         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27877         * lib/unistr/u32-mbtouc.c: Likewise.
27878         * lib/unistr/u32-mbtoucr.c: Likewise.
27879         * lib/unistr/u32-move.c: Likewise.
27880         * lib/unistr/u32-next.c: Likewise.
27881         * lib/unistr/u32-prev.c: Likewise.
27882         * lib/unistr/u32-set.c: Likewise.
27883         * lib/unistr/u32-startswith.c: Likewise.
27884         * lib/unistr/u32-stpcpy.c: Likewise.
27885         * lib/unistr/u32-stpncpy.c: Likewise.
27886         * lib/unistr/u32-strcat.c: Likewise.
27887         * lib/unistr/u32-strchr.c: Likewise.
27888         * lib/unistr/u32-strcmp.c: Likewise.
27889         * lib/unistr/u32-strcpy.c: Likewise.
27890         * lib/unistr/u32-strcspn.c: Likewise.
27891         * lib/unistr/u32-strdup.c: Likewise.
27892         * lib/unistr/u32-strlen.c: Likewise.
27893         * lib/unistr/u32-strmblen.c: Likewise.
27894         * lib/unistr/u32-strmbtouc.c: Likewise.
27895         * lib/unistr/u32-strncat.c: Likewise.
27896         * lib/unistr/u32-strncmp.c: Likewise.
27897         * lib/unistr/u32-strncpy.c: Likewise.
27898         * lib/unistr/u32-strnlen.c: Likewise.
27899         * lib/unistr/u32-strpbrk.c: Likewise.
27900         * lib/unistr/u32-strrchr.c: Likewise.
27901         * lib/unistr/u32-strspn.c: Likewise.
27902         * lib/unistr/u32-strstr.c: Likewise.
27903         * lib/unistr/u32-strtok.c: Likewise.
27904         * lib/unistr/u32-to-u16.c: Likewise.
27905         * lib/unistr/u32-to-u8.c: Likewise.
27906         * lib/unistr/u32-uctomb.c: Likewise.
27907         * lib/unistr/u8-check.c: Likewise.
27908         * lib/unistr/u8-chr.c: Likewise.
27909         * lib/unistr/u8-cmp.c: Likewise.
27910         * lib/unistr/u8-cpy-alloc.c: Likewise.
27911         * lib/unistr/u8-cpy.c: Likewise.
27912         * lib/unistr/u8-endswith.c: Likewise.
27913         * lib/unistr/u8-mblen.c: Likewise.
27914         * lib/unistr/u8-mbsnlen.c: Likewise.
27915         * lib/unistr/u8-mbtouc-aux.c: Likewise.
27916         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27917         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27918         * lib/unistr/u8-mbtouc.c: Likewise.
27919         * lib/unistr/u8-mbtoucr.c: Likewise.
27920         * lib/unistr/u8-move.c: Likewise.
27921         * lib/unistr/u8-next.c: Likewise.
27922         * lib/unistr/u8-prev.c: Likewise.
27923         * lib/unistr/u8-set.c: Likewise.
27924         * lib/unistr/u8-startswith.c: Likewise.
27925         * lib/unistr/u8-stpcpy.c: Likewise.
27926         * lib/unistr/u8-stpncpy.c: Likewise.
27927         * lib/unistr/u8-strcat.c: Likewise.
27928         * lib/unistr/u8-strchr.c: Likewise.
27929         * lib/unistr/u8-strcmp.c: Likewise.
27930         * lib/unistr/u8-strcpy.c: Likewise.
27931         * lib/unistr/u8-strcspn.c: Likewise.
27932         * lib/unistr/u8-strdup.c: Likewise.
27933         * lib/unistr/u8-strlen.c: Likewise.
27934         * lib/unistr/u8-strmblen.c: Likewise.
27935         * lib/unistr/u8-strmbtouc.c: Likewise.
27936         * lib/unistr/u8-strncat.c: Likewise.
27937         * lib/unistr/u8-strncmp.c: Likewise.
27938         * lib/unistr/u8-strncpy.c: Likewise.
27939         * lib/unistr/u8-strnlen.c: Likewise.
27940         * lib/unistr/u8-strpbrk.c: Likewise.
27941         * lib/unistr/u8-strrchr.c: Likewise.
27942         * lib/unistr/u8-strspn.c: Likewise.
27943         * lib/unistr/u8-strstr.c: Likewise.
27944         * lib/unistr/u8-strtok.c: Likewise.
27945         * lib/unistr/u8-to-u16.c: Likewise.
27946         * lib/unistr/u8-to-u32.c: Likewise.
27947         * lib/unistr/u8-uctomb-aux.c: Likewise.
27948         * lib/unistr/u8-uctomb.c: Likewise.
27949         * lib/unitypes.h: Likewise.
27950         * lib/uniwidth.h: Likewise.
27951         * lib/uniwidth/cjk.h: Likewise.
27952         * lib/uniwidth/u16-strwidth.c: Likewise.
27953         * lib/uniwidth/u16-width.c: Likewise.
27954         * lib/uniwidth/u32-strwidth.c: Likewise.
27955         * lib/uniwidth/u32-width.c: Likewise.
27956         * lib/uniwidth/u8-strwidth.c: Likewise.
27957         * lib/uniwidth/u8-width.c: Likewise.
27958         * lib/uniwidth/width.c: Likewise.
27959
27960 2007-10-07  Bruno Haible  <bruno@clisp.org>
27961
27962         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
27963         The file is still under LGPL (see modules/inttypes).
27964
27965 2007-10-06  Bruno Haible  <bruno@clisp.org>
27966
27967         * modules/trunc (Dependencies): Add 'extensions'.
27968         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
27969         Reported by Ben Pfaff <blp@gnu.org>.
27970
27971 2007-10-06  Bruno Haible  <bruno@clisp.org>
27972
27973         * modules/freopen-tests: New file.
27974         * tests/test-freopen.c: New file.
27975
27976         * modules/fopen-tests: New file.
27977         * tests/test-fopen.c: New file.
27978
27979         * modules/fopen: New file.
27980         * lib/fopen.c: New file.
27981         * m4/fopen.m4: New file.
27982         * modules/freopen: New file.
27983         * lib/freopen.c: New file.
27984         * m4/freopen.m4: New file.
27985         * lib/stdio.in.h (fopen, freopen): New declarations.
27986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
27987         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
27988         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
27989         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
27990         * doc/functions/fopen.texi: Mention the 'fopen' module.
27991         * doc/functions/freopen.texi: Mention the 'freopen' module.
27992
27993 2007-10-06  Bruno Haible  <bruno@clisp.org>
27994
27995         * modules/open-tests: New file.
27996         * tests/test-open.c: New file.
27997
27998         * modules/open: New file.
27999         * lib/open.c: New file.
28000         * m4/open.m4: New file.
28001         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
28002         lib/open.c does.
28003         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
28004         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
28005         macros.
28006         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
28007         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
28008         REPLACE_OPEN.
28009         * doc/functions/open.texi: Mention the 'open' module.
28010
28011 2007-10-04  Bruno Haible  <bruno@clisp.org>
28012
28013         * modules/ceill-tests: New file.
28014         * tests/test-ceill.c: New file.
28015
28016         * modules/ceill: New file.
28017         * lib/ceill.c: Replace entire file.
28018         * m4/ceill.m4: New file.
28019         * lib/math.in.h (ceill): Replace declaration.
28020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
28021         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
28022         * doc/functions/ceill.texi: Mention the 'ceill' module.
28023         * modules/mathl (Files): Remove lib/ceill.c.
28024         (Depends-on): Add ceill.
28025
28026 2007-10-04  Bruno Haible  <bruno@clisp.org>
28027
28028         * modules/ceilf-tests: New file.
28029         * tests/test-ceilf.c: New file.
28030
28031         * modules/ceilf: New file.
28032         * lib/ceil.c: New file.
28033         * lib/ceilf.c: New file.
28034         * m4/ceilf.m4: New file.
28035         * lib/math.in.h (ceilf): New declaration.
28036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
28037         HAVE_DECL_CEILF.
28038         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
28039         HAVE_DECL_CEILF.
28040         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
28041
28042 2007-10-04  Bruno Haible  <bruno@clisp.org>
28043
28044         * modules/floorl-tests: New file.
28045         * tests/test-floorl.c: New file.
28046
28047         * modules/floorl: New file.
28048         * lib/floorl.c: Replace entire file.
28049         * m4/floorl.m4: New file.
28050         * lib/math.in.h (floorl): Replace declaration.
28051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
28052         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
28053         * doc/functions/floorl.texi: Mention the 'floorl' module.
28054         * modules/mathl (Files): Remove lib/floorl.c.
28055         (Depends-on): Add floorl.
28056
28057 2007-10-04  Bruno Haible  <bruno@clisp.org>
28058
28059         * modules/floorf-tests: New file.
28060         * tests/test-floorf.c: New file.
28061
28062         * modules/floorf: New file.
28063         * lib/floor.c: New file.
28064         * lib/floorf.c: New file.
28065         * m4/floorf.m4: New file.
28066         * lib/math.in.h (floorf): New declaration.
28067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
28068         HAVE_DECL_FLOORF.
28069         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
28070         HAVE_DECL_FLOORF.
28071         * doc/functions/floorf.texi: Mention the 'floorf' module.
28072
28073 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
28074             Bruno Haible  <bruno@clisp.org>
28075
28076         Advertise for the Git server instead of the CVS server.
28077         * doc/gnulib-intro.texi (Steady Development): Mention the Git
28078         repository instead of the CVS one.
28079         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
28080         about all VCS systems generically.
28081         * doc/gnulib.texi (Introduction): Capitalize `Git'.
28082
28083 2007-10-04  Bruno Haible  <bruno@clisp.org>
28084
28085         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
28086         means.
28087         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
28088
28089 2007-10-04  Bruno Haible  <bruno@clisp.org>
28090
28091         * modules/truncl-tests: New file.
28092         * tests/test-truncl.c: New file.
28093
28094         * modules/truncl: New file.
28095         * lib/truncl.c: New file.
28096         * m4/truncl.m4: New file.
28097         * lib/math.in.h (truncl): New declaration.
28098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
28099         HAVE_DECL_TRUNCL.
28100         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
28101         HAVE_DECL_TRUNCL.
28102         * doc/functions/truncl.texi: Mention the 'truncl' module.
28103
28104 2007-10-04  Bruno Haible  <bruno@clisp.org>
28105
28106         * modules/truncf-tests: New file.
28107         * tests/test-truncf.c: New file.
28108
28109         * modules/truncf: New file.
28110         * lib/trunc.c: Make paramerizable through USE_* macros.
28111         * lib/truncf.c: New file.
28112         * m4/truncf.m4: New file.
28113         * lib/math.in.h (truncf): New declaration.
28114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
28115         HAVE_DECL_TRUNCF.
28116         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
28117         HAVE_DECL_TRUNCF.
28118         * doc/functions/truncf.texi: Mention the 'truncf' module.
28119
28120 2007-10-03  Bruno Haible  <bruno@clisp.org>
28121
28122         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
28123         augmentation also for tests modules.
28124         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
28125         * modules/atexit-tests (Makefile.am): Likewise.
28126         * modules/binary-io-tests (Makefile.am): Likewise.
28127         * modules/c-strcase-tests (Makefile.am): Likewise.
28128         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
28129         * modules/canonicalize-tests (Makefile.am): Likewise.
28130         * modules/closein-tests (Makefile.am): Likewise.
28131         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28132         * modules/freadahead-tests (Makefile.am): Likewise.
28133         * modules/fseek-tests (Makefile.am): Likewise.
28134         * modules/fseeko-tests (Makefile.am): Likewise.
28135         * modules/ftell-tests (Makefile.am): Likewise.
28136         * modules/ftello-tests (Makefile.am): Likewise.
28137         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
28138         * modules/isnanl-tests (Makefile.am): Likewise.
28139         * modules/lseek-tests (Makefile.am): Likewise.
28140         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28141         * modules/mbscasestr-tests (Makefile.am): Likewise.
28142         * modules/mbschr-tests (Makefile.am): Likewise.
28143         * modules/mbscspn-tests (Makefile.am): Likewise.
28144         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28145         * modules/mbspbrk-tests (Makefile.am): Likewise.
28146         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28147         * modules/mbsrchr-tests (Makefile.am): Likewise.
28148         * modules/mbsspn-tests (Makefile.am): Likewise.
28149         * modules/mbsstr-tests (Makefile.am): Likewise.
28150         * modules/printf-posix-tests (Makefile.am): Likewise.
28151         * modules/snprintf-posix-tests (Makefile.am): Likewise.
28152         * modules/sprintf-posix-tests (Makefile.am): Likewise.
28153         * modules/tsearch-tests (Makefile.am): Likewise.
28154         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28155         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28156         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28157         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28158         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28159         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28160         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28161         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28162         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
28163         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
28164         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28165         * modules/xstrtol-tests (Makefile.am): Likewise.
28166         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28167         * modules/yesno-tests (Makefile.am): Likewise.
28168
28169 2007-10-03  Bruno Haible  <bruno@clisp.org>
28170
28171         * modules/trunc-tests: New file.
28172         * tests/test-trunc.c: New file.
28173
28174         * modules/trunc: New file.
28175         * lib/trunc.c: New file.
28176         * m4/trunc.m4: New file.
28177         * lib/math.in.h (trunc): New declaration.
28178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
28179         HAVE_DECL_TRUNC.
28180         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
28181         HAVE_DECL_TRUNC.
28182         * doc/functions/trunc.texi: Mention the 'trunc' module.
28183
28184 2007-10-03  Bruno Haible  <bruno@clisp.org>
28185
28186         * tests/test-fpending.c: New file, mostly copied
28187         from coreutils/lib/t-fpending.c.
28188         * modules/fpending-tests: New file.
28189
28190 2007-10-03  Bruno Haible  <bruno@clisp.org>
28191
28192         Port the stdio extensions to QNX (untested).
28193         * lib/fseterr.c (fseterr): Add support for QNX.
28194         * lib/fbufmode.c (fbufmode): Likewise.
28195         * lib/freadable.c (freadable): Likewise.
28196         * lib/fwritable.c (fwritable): Likewise.
28197         * lib/freading.c (freading): Likewise.
28198         * lib/fwriting.c (fwriting): Likewise.
28199         * lib/freadahead.c (freadahed): Likewise.
28200         * lib/fpurge.c (fpurge): Likewise.
28201         * lib/fseeko.c (rpl_fseeko): Likewise.
28202
28203 2007-10-03  Bruno Haible  <bruno@clisp.org>
28204             Jim Meyering  <jim@meyering.net>
28205             Eric Blake  <ebb9@byu.net>
28206
28207         * doc/relocatable.texi: Use @command instead of @program.
28208
28209 2007-10-02  Jim Meyering  <jim@meyering.net>
28210
28211         Perform one more "_.h" -> ".in.h" substitution.
28212         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
28213         instead of unistd_.h here, too.
28214
28215 2007-10-01  Bruno Haible  <bruno@clisp.org>
28216
28217         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
28218         Needed for the alloca-opt module.
28219
28220 2007-09-30  Bruno Haible  <bruno@clisp.org>
28221
28222         * lib/alloca.in.h: Renamed from lib/alloca_.h.
28223         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
28224         alloca_.h.
28225         * lib/argz.in.h: Renamed from lib/argz_.h.
28226         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
28227         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
28228         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
28229         byteswap_.h.
28230         * lib/dirent.in.h: Renamed from lib/dirent_.h.
28231         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
28232         dirent_.h.
28233         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
28234         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
28235         fcntl_.h.
28236         * lib/float.in.h: Renamed from lib/float_.h.
28237         * modules/float (Files, Makefile.am): Use float.in.h instead of
28238         float_.h.
28239         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
28240         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
28241         fnmatch_.h.
28242         * lib/getopt.in.h: Renamed from lib/getopt_.h.
28243         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
28244         getopt_.h.
28245         * lib/glob.in.h: Renamed from lib/glob_.h.
28246         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
28247         * lib/iconv.in.h: Renamed from lib/iconv_.h.
28248         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
28249         iconv_.h.
28250         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
28251         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
28252         inttypes_.h.
28253         * lib/locale.in.h: Renamed from lib/locale_.h.
28254         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
28255         locale_.h.
28256         * lib/math.in.h: Renamed from lib/math_.h.
28257         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
28258         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
28259         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
28260         of netinet_in_.h. Add dependency.
28261         * lib/poll.in.h: Renamed from lib/poll_.h.
28262         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
28263         * lib/search.in.h: Renamed from lib/search_.h.
28264         * modules/search (Files, Makefile.am): Use search.in.h instead of
28265         search_.h.
28266         * lib/signal.in.h: Renamed from lib/signal_.h.
28267         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
28268         _signal.h.
28269         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
28270         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
28271         stdbool_.h.
28272         * lib/stdint.in.h: Renamed from lib/stdint_.h.
28273         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
28274         stdint_.h.
28275         * lib/stdio.in.h: Renamed from lib/stdio_.h.
28276         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
28277         stdio_.h.
28278         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
28279         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
28280         stdlib_.h.
28281         * lib/string.in.h: Renamed from lib/string_.h.
28282         * modules/string (Files, Makefile.am): Use string.in.h instead of
28283         string_.h.
28284         * doc/gnulib-tool.texi (Initial import): Update.
28285         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
28286         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
28287         of sys_select_.h. Add dependency.
28288         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
28289         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
28290         of sys_socket_.h.
28291         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
28292         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
28293         sys_stat_.h.
28294         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
28295         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
28296         sys_time_.h.
28297         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
28298         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
28299         sysexits_.h.
28300         * lib/time.in.h: Renamed from lib/time_.h.
28301         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
28302         * lib/unistd.in.h: Renamed from lib/unistd_.h.
28303         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
28304         unistd_.h.
28305         * lib/wchar.in.h: Renamed from lib/wchar_.h.
28306         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
28307         wchar_.h.
28308         * lib/wctype.in.h: Renamed from lib/wctype_.h.
28309         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
28310         wctype_.h.
28311         * build-aux/bootstrap (slurp): Update.
28312         * lib/.cppi-disable: Update.
28313
28314 2007-09-30  Bruno Haible  <bruno@clisp.org>
28315
28316         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
28317         Needed on BeOS.
28318
28319 2007-09-30  Bruno Haible  <bruno@clisp.org>
28320
28321         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
28322
28323 2007-09-29  Bruno Haible  <bruno@clisp.org>
28324
28325         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
28326
28327 2007-09-29  Bruno Haible  <bruno@clisp.org>
28328
28329         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
28330         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
28331         * build-aux/install-reloc: Compile also areadlink.c.
28332         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
28333
28334 2007-09-29  Bruno Haible  <bruno@clisp.org>
28335
28336         * gnulib-tool (func_emit_initmacro_done): Indentation.
28337
28338 2007-09-29  Bruno Haible  <bruno@clisp.org>
28339
28340         * README: Add CVS checkout update instructions.
28341         Info from Bob Proulx <bob@proulx.com>.
28342
28343 2007-09-28  Eric Blake  <ebb9@byu.net>
28344
28345         Provide move-if-change.
28346         * build-aux/move-if-change: New file, based on best practice
28347         rather than any canonical upstream location.
28348
28349 2007-09-28  Jim Meyering  <jim@meyering.net>
28350
28351         Fix canonicalize loop-detection corner case.
28352         Do not attempt to stat the symlink values stored via seen_triple.
28353         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
28354         on linux-2.6.18, (but not 2.6.22).
28355         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
28356         triple_compare.  The former compares dev,ino,filename, while the latter
28357         would actually stat dirname(filename) when dev and ino were equal.
28358         * lib/hash-triple.c: Install <string.h>.
28359         (STREQ): Define.
28360         (triple_compare_ino_str): New function.
28361         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
28362
28363 2007-09-28  Eric Blake  <ebb9@byu.net>
28364
28365         Enforce that AC_REPLACE_FUNCS files exist.
28366         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
28367         override check for typos.
28368
28369         Fix test-closein on Solaris 10.
28370         * tests/test-closein.c (main): Don't assume stdin can be inherited
28371         closed on all systems.
28372         * tests/test-closein.sh: Likewise.
28373         Reported by Piotr Tarnowski.
28374
28375 2007-09-28  Jim Meyering  <jim@meyering.net>
28376
28377         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
28378
28379 2007-09-27  Jim Meyering  <jim@meyering.net>
28380
28381         canonicalize: Avoid a false-positive cycle failure.
28382         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
28383         Sort.  Remove cycle-check.
28384         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
28385         not cycle-check.h.
28386         (seen_triple): New function.
28387         (canonicalize_filename_mode): Use it instead of cycle-check.
28388         * tests/test-canonicalize.c: Add a test for this bug.
28389         * tests/test-canonicalize.sh: Set up and run the test.
28390
28391         New module, file-set, from coreutils.
28392         * modules/file-set: Define it.
28393         * lib/file-set.c, lib/file-set.h: Implement.
28394
28395         New module, hash-triple, from coreutils.
28396         * modules/hash-triple: Define it.
28397         * lib/hash-triple.c, lib/hash-triple.h: Implement.
28398
28399 2007-09-25  Eric Blake  <ebb9@byu.net>
28400
28401         Fix strerror on Interix.
28402         * lib/string_.h (strerror): Declare replacement.
28403         * doc/functions/strerror.texi (strerror): Document the Interix
28404         shortcoming.
28405         * modules/string (Makefile.am): Support new hooks.
28406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
28407         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
28408         gl_FUNC_STRERROR_SEPARATE.
28409         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
28410         * lib/strerror.c (rpl_strerror): Provide replacement.
28411         * modules/strerror (Depends-on): Add string.
28412         (configure.ac): Detect use of module.
28413         * tests/test-strerror.c: New file.
28414         * modules/strerror-tests: New test module.
28415         * modules/argp (Depends-on): Add strerror.
28416         * modules/error (Depends-on): Likewise.
28417         Reported by Martin Koeppe.
28418
28419 2007-09-24  Bruno Haible  <bruno@clisp.org>
28420
28421         * README: Update git instructions.
28422
28423 2007-09-24  Eric Blake  <ebb9@byu.net>
28424
28425         Revert fpending breakage from 2007-09-08.
28426         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
28427         __fpending.c.
28428
28429 2007-09-24  Jim Meyering  <jim@meyering.net>
28430
28431         filenamecat.c: Add a test.
28432         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
28433         showing how the function works when DIR is the empty string.
28434
28435 2007-09-21  Simon Josefsson  <simon@josefsson.org>
28436
28437         * tests/test-canonicalize.sh: Turn on executable bit.
28438
28439 2007-09-19  Eric Blake  <ebb9@byu.net>
28440
28441         * README: Update CVS instructions.
28442
28443 2007-09-18  Bruno Haible  <bruno@clisp.org>
28444
28445         * modules/areadlink: New file.
28446         * lib/areadlink.h (areadlink): New declaration.
28447         * lib/areadlink.c: New file, based on lib/xreadlink.c.
28448
28449 2007-09-17  Jim Meyering  <jim@meyering.net>
28450
28451         * lib/savewd.c (ESTALE) [!defined]: Define.
28452         Reported to be required on Interix by Martin Koeppe.
28453
28454 2007-09-17  Bruno Haible  <bruno@clisp.org>
28455
28456         * gnulib-tool (func_version): Use $version.
28457
28458 2007-09-16  Bruno Haible  <bruno@clisp.org>
28459
28460         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
28461         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
28462         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
28463         Reported by Greg Schafer <gschafer@zip.com.au>.
28464
28465 2007-09-15  Bruno Haible  <bruno@clisp.org>
28466
28467         * gnulib-tool (sed): Try a little harder to make bash understand the
28468         alias.
28469         Reported by Bruce Korb <bruce.korb@gmail.com>.
28470
28471 2007-09-13  Eric Blake  <ebb9@byu.net>
28472
28473         * ChangeLog: Remove conflict markers.
28474
28475 2007-09-13  Simon Josefsson  <simon@josefsson.org>
28476
28477         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
28478         Reported by Bruno Haible <bruno@clisp.org>.
28479
28480 2007-09-12  Bruno Haible  <bruno@clisp.org>
28481
28482         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
28483         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
28484         is not defined.
28485
28486 2007-09-12  Eric Blake  <ebb9@byu.net>
28487
28488         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
28489         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
28490         Autoconf definition.
28491         * modules/euidaccess (Depends-on): Add extensions, for
28492         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
28493         * modules/fnmatch (Depends-on): Likewise.
28494         * modules/getaddrinfo (Depends-on): Likewise.
28495         * modules/getdelim (Depends-on): Likewise.
28496         * modules/getline (Depends-on): Likewise.
28497         * modules/getsubopt (Depends-on): Likewise.
28498         * modules/gettext (Depends-on): Likewise.
28499         * modules/group-member (Depends-on): Likewise.
28500         * modules/mbchar (Depends-on): Likewise.
28501         * modules/memmem (Depends-on): Likewise.
28502         * modules/mempcpy (Depends-on): Likewise.
28503         * modules/memrchr (Depends-on): Likewise.
28504         * modules/pagealign_alloc (Depends-on): Likewise.
28505         * modules/readutmp (Depends-on): Likewise.
28506         * modules/stpcpy (Depends-on): Likewise.
28507         * modules/stpncpy (Depends-on): Likewise.
28508         * modules/strchrnul (Depends-on): Likewise.
28509         * modules/strndup (Depends-on): Likewise.
28510         * modules/strsep (Depends-on): Likewise.
28511         * modules/strverscmp (Depends-on): Likewise.
28512         * modules/vasprintf (Depends-on): Likewise.
28513         * modules/wcwidth (Depends-on): Likewise.
28514         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
28515         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
28516         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
28517         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
28518         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28519         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28520         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
28521         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
28522         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
28523         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28524         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28525         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28526         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28527         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28528         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
28529         * m4/readutmp.m4 (gl_READUTMP): Likewise.
28530         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28531         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28532         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28533         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28534         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28535         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28536         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28537         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
28538         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
28539         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28540         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
28541         so that lock.m4 can be used in gettext without extensions module.
28542
28543 2007-09-11  Bruno Haible  <bruno@clisp.org>
28544
28545         * m4/isc-posix.m4: Remove file.
28546         Suggested by Eric Blake.
28547
28548 2007-09-11  Eric Blake  <ebb9@byu.net>
28549
28550         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
28551
28552 2007-09-10  Bruno Haible  <bruno@clisp.org>
28553
28554         * posix-modules: Fix typo in error message.
28555         Reported by Matt <mkraai@beckman.com>.
28556
28557 2007-09-09  Bruno Haible  <bruno@clisp.org>
28558
28559         * doc/functions/getdelim.texi: Update list of platforms lacking the
28560         function.
28561         * doc/functions/getline.texi: Likewise.
28562
28563 2007-09-09  Jim Meyering  <jim@meyering.net>
28564
28565         * lib/hash.c (hash_initialize): Detect calloc failure.
28566         Reported by Bruno Haible.
28567
28568 2007-09-09  Bruno Haible  <bruno@clisp.org>
28569
28570         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
28571         malloc or realloc fails.
28572
28573 2007-09-09  Bruno Haible  <bruno@clisp.org>
28574
28575         * modules/getcwd (Depends-on): Add malloc-posix.
28576         * modules/glob (Depends-on): Likewise.
28577         * modules/putenv (Depends-on): Likewise.
28578         * modules/strdup (Depends-on): Likewise.
28579         * modules/getdelim (Depends-on): Add realloc-posix.
28580         * modules/read-file (Depends-on): Likewise.
28581
28582 2007-09-09  Bruno Haible  <bruno@clisp.org>
28583
28584         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
28585         (gl_FUNC_MALLOC_POSIX): Require it.
28586         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
28587         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
28588         * modules/realloc (Files): Add m4/malloc.m4.
28589         * modules/calloc (Files): Likewise.
28590
28591 2007-09-09  Bruno Haible  <bruno@clisp.org>
28592
28593         * modules/malloc-posix: New file.
28594         * modules/malloc (Depends-on): Add malloc-posix.
28595         * lib/malloc.c: Include errno.h.
28596         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
28597         and a POSIX-compatible malloc into a single function. Set ENOMEM
28598         when returning NULL.
28599         * m4/malloc.m4: New file.
28600         * doc/functions/malloc.texi: Mention the malloc-posix module.
28601         * lib/stdlib_.h (malloc): New declaration.
28602         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28603         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
28604         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
28605         and HAVE_MALLOC_POSIX.
28606
28607 2007-09-09  Bruno Haible  <bruno@clisp.org>
28608
28609         * modules/realloc-posix: New file.
28610         * modules/realloc (Depends-on): Add realloc-posix.
28611         * lib/realloc.c: Include errno.h.
28612         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
28613         and a POSIX-compatible realloc into a single function. Set ENOMEM
28614         when returning NULL.
28615         * m4/realloc.m4: New file.
28616         * doc/functions/realloc.texi: Mention the realloc-posix module.
28617         * lib/stdlib_.h (realloc): New declaration.
28618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28619         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
28620         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
28621         and HAVE_REALLOC_POSIX.
28622
28623 2007-09-09  Bruno Haible  <bruno@clisp.org>
28624
28625         * modules/calloc-posix: New file.
28626         * modules/calloc (Depends-on): Add calloc-posix.
28627         * lib/calloc.c: Include errno.h.
28628         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
28629         and a POSIX-compatible calloc into a single function. Set ENOMEM
28630         when returning NULL.
28631         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
28632         * doc/functions/calloc.texi: Mention the calloc-posix module.
28633         * lib/stdlib_.h (calloc): New declaration.
28634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28635         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
28636         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
28637         and HAVE_CALLOC_POSIX.
28638
28639 2007-09-09  Bruno Haible  <bruno@clisp.org>
28640
28641         Allow for modules to show an arbitrary notice.
28642         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
28643         * gnulib-tool: New option --extract-notice.
28644         (func_usage): Document it.
28645         (sed_extract_prog): Update.
28646         (func_get_notice): New function.
28647         (func_modules_notice): New function.
28648         (func_import, func_create_testdir): Invoke it.
28649         Suggested by Jim Meyering.
28650
28651 2007-09-09  Bruno Haible  <bruno@clisp.org>
28652
28653         * gnulib-tool: New options --verbose, --quiet.
28654         (func_usage): Document them.
28655         (verbose): New variable.
28656         (func_execute_command): New function.
28657         (func_import): Don't show the module list and the file list if
28658         $verbose < 0.
28659         (func_create_testdir): Likewise. Use func_execute_command.
28660         (func_create_megatestdir): Use func_execute_command.
28661
28662 2007-09-08  Bruno Haible  <bruno@clisp.org>
28663
28664         * gnulib-tool (func_import): Prefer rsync over wget when available,
28665         for fetching the PO files.
28666
28667 2007-09-08  Bruno Haible  <bruno@clisp.org>
28668
28669         * posix-modules: New file. Portions copied from gnulib-tool.
28670         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
28671
28672 2007-09-08  Jim Meyering  <jim@meyering.net>
28673
28674         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
28675         * lib/fpending.h: Rename from __fpending.h.
28676         * lib/fpending.c: Rename from __fpending.c.
28677         Include "fpending.h", not "__fpending.h".
28678         * lib/__fpending.h, lib/__fpending.c: Remove files.
28679         * modules/fpending (Files): Reflect new file names.
28680         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
28681
28682 2007-09-08  Bruno Haible  <bruno@clisp.org>
28683
28684         * m4/inttypes-h.m4: Remove stub file.
28685
28686 2007-09-07  Simon Josefsson  <simon@josefsson.org>
28687
28688         * doc/headers/stdint.texi: Discuss #include_next issue.
28689
28690 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28691
28692         * build-aux/bootstrap: Remove obsolete comment about wget --help.
28693
28694 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28695
28696         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
28697         in variable name.
28698
28699 2007-09-03  Jim Meyering  <jim@meyering.net>
28700
28701         New module: git-version-gen.
28702         * modules/git-version-gen: New file.
28703
28704         Import changes from coreutils for bootstrap script.
28705
28706         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
28707
28708         bootstrap: uses rsync to download the .po files
28709         * build-aux/bootstrap (po_download_command_format): New global.
28710         (download_po_files): Use rsync.
28711         (update_po_files): Don't remove .po files after download,
28712         so future rsync runs can take advantage of the copies.
28713
28714         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
28715
28716         Solve the unnecessary-.po-file-regeneration problem once and for all.
28717         * build-aux/bootstrap (download_po_files): New function, renamed from
28718         get_translations.  Now, downloads, but doesn't update LINGUAS.
28719         (update_po_files): New function.
28720
28721         bootstrap: Ignore more.
28722         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
28723         uniwidth to e.g., lib/.gitignore.
28724         (slurp): Handle the sys_stat_.h -> sys mapping, too.
28725
28726         * build-aux/bootstrap: New setting: vc_ignore.
28727         (insert_sorted_if_absent): Create $file if absent.
28728         Adapt to new, possibly empty, list: $vc_ignore.
28729
28730         bootstrap: generate more ignorable names
28731         * build-aux/bootstrap (slurp): When generating ignorable names,
28732         also map .sin to .sed, .gperf to .c, and .y to .c.
28733
28734 2007-09-03  Jim Meyering  <jim@meyering.net>
28735
28736         * build-aux/git-version-gen: New file, from coreutils.  For details, see
28737         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
28738
28739 2007-09-02  Bruno Haible  <bruno@clisp.org>
28740
28741         Fix mis-recognition of 'mcs' on QNX 6.
28742         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
28743         output contains the string "Mono".
28744         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
28745         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
28746
28747 2007-09-01  Bruno Haible  <bruno@clisp.org>
28748
28749         Fix collision between uniwidth/* and linebreak modules.
28750         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
28751         u32_width): Remove declarations.
28752         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
28753         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
28754         streq3, streq2, streq1, streq0): Remove functions.
28755         (STREQ): Remove macro.
28756         (is_cjk_encoding): Remove function.
28757         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
28758         (uc_width, u8_width, u16_width, u32_width): Remove functions.
28759         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
28760         * NEWS: Document the change.
28761
28762 2007-09-01  Bruno Haible  <bruno@clisp.org>
28763
28764         * lib/streq.h: Add double-inclusion guard.
28765
28766 2007-09-01  Karl Berry  <karl@gnu.org>
28767
28768         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
28769
28770 2007-08-28  Jim Meyering  <jim@meyering.net>
28771
28772         Rename mreadlink_with_size to areadlink_with_size.
28773         * NEWS: Document the change.
28774         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
28775         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
28776         * lib/mreadlink.h: Rename this to...
28777         * lib/areadlink.h: ...this.
28778         * modules/mreadlink-with-size: Rename this to...
28779         * modules/areadlink-with-size: ...this.
28780         * lib/canonicalize.c: Reflect the renaming.
28781         * modules/canonicalize: Likewise.
28782
28783 2007-08-26  Bruno Haible  <bruno@clisp.org>
28784
28785         * gnulib-tool (func_import): When deciding which files to remove,
28786         consider also dangling symbolic links.
28787         Reported by Eric Blake.
28788
28789 2007-08-26  Bruno Haible  <bruno@clisp.org>
28790
28791         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
28792
28793 2007-08-23  Simon Josefsson  <simon@josefsson.org>
28794
28795         * lib/readline.c: Don't include getline.h, the prototype is now
28796         found in stdio.h.
28797
28798 2007-08-23  Jim Meyering  <jim@meyering.net>
28799
28800         Getdelim touchup.
28801         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
28802         around the funlockfile call, since funlockfile never sets errno.
28803         Don't set errno upon failed realloc.
28804
28805 2007-08-22  Eric Blake  <ebb9@byu.net>
28806
28807         Getline touchups.
28808         * lib/getdelim.c (getdelim): Revert regression that required *n to
28809         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
28810         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
28811         getdelim, rather than whether implementation is missing.
28812         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
28813         * lib/stdio_.h (getline): Also declare if replacement is
28814         required.
28815         * doc/functions/getdelim.texi: New file.
28816         * doc/functions/getline.texi: Likewise.
28817         * doc/gnulib.texi (Function Substitutes): Add new files.
28818         Reported by Bruno Haible.
28819
28820 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
28821
28822         * users.txt: Add Guile.
28823
28824 2007-08-22  Eric Blake  <ebb9@byu.net>
28825
28826         * tests/test-getdelim.c (main): Use remove, not unlink.
28827         * tests/test-getline.c (main): Likewise.
28828
28829         Move getline and getdelim into stdio.h, per POSIX 200x.
28830         * modules/getline (Files): Remove getline.h.
28831         (Depends-on): Add stdio.
28832         (configure.ac): Add module indicator.
28833         * modules/getdelim (Files): Remove getdelim.h.
28834         (Depends-on): Add stdio.
28835         (configure.ac): Add module indicator.
28836         * modules/stdio (Makefile.am): Work with new indicators.
28837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28838         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
28839         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28840         * lib/getdelim.h: Delete.
28841         * lib/getline.h: Delete.
28842         * lib/stdio_.h (getdelim, getline): Declare.
28843         * modules/getdelim-tests: New module.
28844         * modules/getline-tests: Likewise.
28845         * tests/test-getdelim.c: New file.
28846         * tests/test-getline.c: Likewise.
28847         * NEWS: Document the change.
28848         * lib/getline.c: Update choice of header.
28849         * lib/csharpcomp.c: Likewise.
28850         * lib/getpass.c: Likewise.
28851         * lib/javacomp.c: Likewise.
28852         * lib/javaversion.c: Likewise.
28853         * lib/yesno.c: Likewise.
28854         * lib/getdelim.c: Likewise.
28855         (getdelim): Set errno on failure, and avoid memory leak.
28856
28857 2007-08-19  Bruno Haible  <bruno@clisp.org>
28858
28859         * modules/closein (Depends-on): Add freadahead.
28860         * lib/closein.c: Include freadahead.h.
28861         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
28862         is zero.
28863
28864 2007-08-19  Bruno Haible  <bruno@clisp.org>
28865
28866         * modules/freadahead-tests: New file.
28867         * tests/test-freadahead.sh: New file.
28868         * tests/test-freadahead.c: New file.
28869
28870         * modules/freadahead: New file.
28871         * lib/freadahead.h: New file.
28872         * lib/freadahead.c: New file.
28873         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
28874         fbufmode, fpurge, freadable, fwritable.
28875
28876 2007-08-19  Eric Blake  <ebb9@byu.net>
28877
28878         Test yesno in combination with closein.
28879         * lib/yesno.c (yesno): Document use of stdin.
28880         * modules/yesno-tests (Files): New module.
28881         * tests/test-yesno.c (main): New file.
28882         * tests/test-yesno.sh: Likewise.
28883
28884 2007-08-19  Bruno Haible  <bruno@clisp.org>
28885
28886         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
28887         * lib/fseeko.c (rpl_fseeko): Likewise.
28888         * lib/fseterr.c (fseterr): Likewise.
28889
28890 2007-08-19  Bruno Haible  <bruno@clisp.org>
28891
28892         * tests/test-lseek.c (main): Disable a test for BeOS.
28893         * doc/functions/lseek.texi: Document the BeOS bug.
28894
28895 2007-08-19  Bruno Haible  <bruno@clisp.org>
28896             Eric Blake  <ebb9@byu.net>
28897
28898         * lib/lseek.c: Include <sys/stat.h>.
28899         (rpl_lseek): Add workaround code also for Unix platforms.
28900         Needed for BeOS.
28901         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
28902         * doc/functions/lseek.texi: Document BeOS definiency.
28903
28904 2007-08-18  Bruno Haible  <bruno@clisp.org>
28905
28906         * modules/fstrcmp-tests: New file.
28907         * tests/test-fstrcmp.c: New file.
28908
28909 2007-08-18  Bruno Haible  <bruno@clisp.org>
28910
28911         * modules/fstrcmp: New file, from GNU gettext with modifications.
28912         * lib/fstrcmp.h: New file, from GNU gettext.
28913         * lib/fstrcmp.c: New file, from GNU gettext.
28914         * MODULES.html.sh (String handling): Add fstrcmp.
28915
28916 2007-08-18  Bruno Haible  <bruno@clisp.org>
28917
28918         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
28919         'bool'.
28920         (diag, compareseq): Remove const from the ctxt argument.
28921         (USE_HEURISTIC): Undefine at the end.
28922
28923 2007-08-18  Jim Meyering  <jim@meyering.net>
28924
28925         New file: lib/idcache.h
28926         * NEWS: Mention the addition.
28927         * modules/idcache (Files): Add lib/idcache.h
28928         * lib/idcache.c: Include "idcache.h".
28929         Don't include <sys/types.h>.
28930         Add a FIXME comment.
28931         Move file-scoped "static" declarations to the top.
28932         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
28933
28934 2007-08-17  Bruno Haible  <bruno@clisp.org>
28935         and Paul Eggert  <eggert@cs.ucla.edu>
28936
28937         * MODULES.html.sh: Add diffseq.
28938         * modules/diffseq: New file.
28939         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
28940         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
28941
28942 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28943
28944         Import changes from coreutils for bootstrap script.
28945
28946         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
28947
28948         * build-aux/bootstrap (slurp): Work even in environments where
28949         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
28950         current code does not slurp files whose names start with ".", and
28951         this looks like it might be a troublesome area.
28952
28953         2007-07-11  Jim Meyering  <jim@meyering.net>
28954
28955         If there's a GPL vN copyright comment, require that N == 3.
28956
28957         2007-07-08  Jim Meyering  <jim@meyering.net>
28958
28959         Run the coreutils-specific code only if tests/Makefile.am.in exists.
28960         * build-aux/bootstrap (mam_template): Move definition out of loop.
28961
28962         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
28963
28964         * build-aux/bootstrap (symlink_to_dir): Rename function from
28965         symlink_to_gnulib.  Add a directory parameter.  Update all
28966         callers.
28967         (cp_mark_as_generated): Also check for -- and link to -- files in
28968         gl/.
28969
28970         2007-07-08  Jim Meyering  <jim@meyering.net>
28971
28972         Adapt to deeper hierarchy in gnulib.
28973         * build-aux/bootstrap (symlink_to_dir): If the destination
28974         directory doesn't exist, create it. This is required at least for
28975         "lib/uniwidth/cjk.h".
28976
28977         2007-05-15  Jim Meyering  <jim@meyering.net>
28978
28979         * build-aux/bootstrap: Now that generated Makefile.am files
28980         are no longer under version control, they must be created at
28981         bootstrap time.
28982
28983 2007-08-14  Ben Pfaff  <blp@gnu.org>
28984
28985         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
28986
28987 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
28988
28989         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
28990         given the changes below.
28991         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
28992         even on hosts that have padding bits beyond the supported 64.
28993
28994 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28995
28996         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
28997         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
28998         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
28999         depends on it.
29000         (xstrtol_error): Remove.
29001         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
29002         but with a different signature.
29003         (ATTRIBUTE_NORETURN, __attribute__): New macros.
29004         * lib/xstrtol-error.c: Include exitfail.h.
29005         (xstrtol_fatal): New function, with a different signature from the
29006         old xstrtol_error, so that the caller need not worry about passing
29007         in an exit status, or about storage management of the option argument.
29008         (xstrtol_error): Now a static function.  Redo signature to
29009         implement xstrtol_fatal.  Output the correct number of hyphens in
29010         front of the option so that the caller need not worry about
29011         storage management.
29012         (N_): New macro.
29013         (_): Remove; not used now.
29014         * modules/xstrtol: Depend on getopt.
29015         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
29016         of old STRTOL_FATAL_ERROR macro.
29017         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
29018         of test program.
29019         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
29020         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
29021
29022 2007-08-08  Eric Blake  <ebb9@byu.net>
29023
29024         * lib/xstrtol-error.c: Add missing include.
29025
29026         Move xstrtol messages into gnulib domain, when --pobase is used.
29027         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
29028         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
29029         * modules/xstrtol (Files): Distribute new file.
29030         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
29031         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
29032         * tests/test-xstrtol.c: ...into new file.
29033         * tests/test-xstrtoul.c: Also test xstrtoul.
29034         * tests/test-xstrtoimax.c: Also test xstrtoimax.
29035         * tests/test-xstrtoumax.c: Also test xstrtoumax.
29036         * tests/test-xstrtol.sh: Drive the tests.
29037         * tests/test-xstrtoimax.sh: Likewise.
29038         * tests/test-xstrtoumax.sh: Likewise.
29039         * modules/xstrtol-tests: New module.
29040         * modules/xstrtoimax-tests: Likewise.
29041         * modules/xstrtoumax-tests: Likewise.
29042
29043 2007-08-08  Jim Meyering  <jim@meyering.net>
29044
29045         New function: mfile_name_concat.
29046         * lib/filenamecat.c (mfile_name_concat): New function, just like
29047         file_name_concat, but return NULL upon failure rather than exiting
29048         with a diagnostic.
29049         * lib/filenamecat.h: Declare it.
29050
29051 2007-08-07  Bruno Haible  <bruno@clisp.org>
29052
29053         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
29054         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
29055         warning from gcc.
29056         Reported by Eric Blake.
29057
29058 2007-08-07  Simon Josefsson  <simon@josefsson.org>
29059
29060         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
29061         * modules/crypto/arcfour (License): Likewise.
29062         * modules/crypto/des-tests (License): Likewise.
29063         * modules/crypto/gc-arctwo-tests (License): Likewise.
29064         * modules/crypto/gc-des-tests (License): Likewise.
29065         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
29066         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
29067         * modules/crypto/gc-md2-tests (License): Likewise.
29068         * modules/crypto/gc-md4-tests (License): Likewise.
29069         * modules/crypto/gc-md5-tests (License): Likewise.
29070         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
29071         * modules/crypto/gc-rijndael-tests (License): Likewise.
29072         * modules/crypto/gc-sha1-tests (License): Likewise.
29073         * modules/crypto/gc-tests (License): Likewise.
29074         * modules/crypto/hmac-md5 (License): Likewise.
29075         * modules/crypto/hmac-sha1 (License): Likewise.
29076         * modules/crypto/md2-tests (License): Likewise.
29077         * modules/crypto/md4-tests (License): Likewise.
29078         * modules/crypto/md5 (License): Likewise.
29079         * modules/crypto/rijndael (License): Likewise.
29080         * modules/crypto/sha1 (License): Likewise.
29081         * modules/memxor (License): Likewise.
29082
29083 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29084         and Bruno Haible  <bruno@clisp.org>
29085
29086         * NEWS: Describe interface changes to human, xstrtol.
29087         * lib/human.h: Include <xstrtol.h>.
29088         (human_options): Return enum strtol_error, not int.  Remove
29089         bool arg; take int * instead.
29090         * lib/human.c: Don't include "gettext.h".
29091         (_): Remove; no longer used.
29092         Don't include <xstrtol.h>, since human.h does it.
29093         (human_options): Adjust to abovementioned interface changes.
29094         Do not report error to stderr; that's now the caller's
29095         responsibility.
29096         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
29097         interface change.
29098         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
29099         Str, Argument_type_string.  All uses changed.  Put " argument"
29100         in diagnostics to make them clearer.  Change wording of suffix
29101         message for clarity.
29102         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
29103         Argument_type_string.
29104         (STRTOL_FATAL_WARN): Remove; no longer used.
29105         * modules/human (Depends-on): Remove gettext-h.
29106
29107 2007-08-06  Simon Josefsson  <simon@josefsson.org>
29108
29109         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
29110
29111 2007-07-31  Bruno Haible  <bruno@clisp.org>
29112
29113         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
29114         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
29115         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
29116
29117 2007-07-31  Bruno Haible  <bruno@clisp.org>
29118
29119         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
29120         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
29121
29122 2007-07-30  Bruno Haible  <bruno@clisp.org>
29123
29124         * modules/base64 (License): Use the synonymous term "LGPLv2+".
29125         * modules/c-ctype (License): Likewise.
29126         * modules/c-strcase (License): Likewise.
29127         * modules/check-version (License): Likewise.
29128         * modules/iconv (License): Likewise.
29129         * modules/iconv_open (License): Likewise.
29130         * modules/read-file (License): Likewise.
29131         * modules/striconv (License): Likewise.
29132         * modules/strverscmp (License): Likewise.
29133         * modules/vasprintf (License): Likewise.
29134         * modules/crypto/des (License): Likewise.
29135         * modules/crypto/gc (License): Likewise.
29136         * modules/crypto/gc-arcfour (License): Likewise.
29137         * modules/crypto/gc-arctwo (License): Likewise.
29138         * modules/crypto/gc-des (License): Likewise.
29139         * modules/crypto/gc-hmac-md5 (License): Likewise.
29140         * modules/crypto/gc-hmac-sha1 (License): Likewise.
29141         * modules/crypto/gc-md2 (License): Likewise.
29142         * modules/crypto/gc-md4 (License): Likewise.
29143         * modules/crypto/gc-md5 (License): Likewise.
29144         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
29145         * modules/crypto/gc-random (License): Likewise.
29146         * modules/crypto/gc-rijndael (License): Likewise.
29147         * modules/crypto/gc-sha1 (License): Likewise.
29148         * modules/crypto/md2 (License): Likewise.
29149         * modules/crypto/md4 (License): Likewise.
29150
29151 2007-07-30  Jim Meyering  <jim@meyering.net>
29152
29153         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
29154         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
29155         it has valid stat data.  This bug would cause du not to count the
29156         sizes of inaccessible directories.
29157         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
29158         in <http://bugzilla.redhat.com/250077>.
29159
29160 2007-07-25  Peter O'Gorman  <peter@pogma.com>
29161             Bruno Haible  <bruno@clisp.org>
29162
29163         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
29164         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
29165         #include_next, gives a diagnostic about it, but reports no error in
29166         the exit code.
29167         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29168
29169 2007-07-24  Ben Pfaff  <blp@gnu.org>
29170
29171         Improve name: "count-one-bits" is better than "popcount".
29172         * MODULES.html.sh: Update name.
29173         * lib/popcount.h: Renamed lib/count-one-bits.h.
29174         (popcount): Renamed count_one_bits.
29175         (popcountl): Renamed count_one_bits_l.
29176         (popcountll): Renamed count_one_bits_ll.
29177         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
29178         * modules/popcount: Renamed module/count-one-bits.
29179         * modules/popcount-tests: Renamed module/count-one-bits-tests.
29180         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
29181
29182 2007-07-23  Ben Pfaff  <blp@gnu.org>
29183
29184         * lib/popcount.h (popcount32): Reduce size of constants, to allow
29185         better code generation, and add U to large constants to avoid
29186         warnings, in non-GCC case.
29187         Suggested by Bruno Haible.
29188
29189 2007-07-23  Ben Pfaff  <blp@gnu.org>
29190
29191         * lib/popcount.h: Use verify_true instead of if...abort.
29192         * modules/popcount: Depend on verify module.
29193         Suggested by Jim Meyering.
29194
29195 2007-07-23  Bruno Haible  <bruno@clisp.org>
29196
29197         * gnulib-tool (func_import): Create a .cvsignore file also when the
29198         directory is not yet in CVS but the toplevel directory is. When
29199         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
29200         Reported by Karl Berry.
29201
29202 2007-07-22  Ben Pfaff  <blp@gnu.org>
29203
29204         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
29205         case.
29206         Suggested by Eric Blake.
29207
29208 2007-07-22  Ben Pfaff  <blp@gnu.org>
29209
29210         New module: popcount.
29211         * MODULES.html.sh: Add popcount.
29212         * modules/popcount: New file.
29213         * modules/popcount-tests: New file.
29214         * tests/test-popcount.c: New file.
29215         * lib/popcount.h: New file.
29216         * m4/popcount.m4: New file.
29217
29218 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
29219
29220         * build-aux/announce-gen: Update to GPLv3.
29221
29222         * build-aux/config.guess: Update from config.
29223
29224 2007-07-21  Bruno Haible  <bruno@clisp.org>
29225
29226         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
29227         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
29228
29229 2007-07-20  Jim Meyering  <jim@meyering.net>
29230
29231         * check-module: Diagnose a self-dependency.
29232
29233 2007-07-19  Bruno Haible  <bruno@clisp.org>
29234
29235         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
29236         empty.
29237         Reported by Eric Blake.
29238
29239 2007-07-18  Bruno Haible  <bruno@clisp.org>
29240
29241         * gnulib-tool: New options --po-base, --po-domain.
29242         (func_usage): Document them.
29243         (pobase, po_domain): New variables.
29244         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
29245         DEFAULT_TEXT_DOMAIN.
29246         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
29247         (func_import): Consider pobase and po_domain. Create a po/ directory.
29248         (func_create_testdir): Set pobase and po_domain to empty.
29249         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
29250         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
29251
29252 2007-07-18  Bruno Haible  <bruno@clisp.org>
29253
29254         * gnulib-tool (func_get_automake_snippet): Synthesize also an
29255         EXTRA_DIST augmentation for files in build-aux/.
29256
29257 2007-07-16  Bruno Haible  <bruno@clisp.org>
29258
29259         * modules/lseek (License): Use the synonymous term "LGPLv2+".
29260         * modules/getdelim (License): Likewise.
29261
29262 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29263
29264         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
29265         * modules/d-type (License): Likewise.
29266         * modules/extensions (License): Likewise.
29267         * modules/fnmatch (License): Likewise.
29268         * modules/fseeko (License): Likewise.
29269         * modules/getaddrinfo (License): Likewise.
29270         * modules/getline (License): Likewise.
29271         * modules/getlogin_r (License): Likewise.
29272         * modules/getpass (License): Likewise.
29273         * modules/gettimeofday (License): Likewise.
29274         * modules/glob (License): Likewise.
29275         * modules/inet_ntop (License): Likewise.
29276         * modules/malloc (License): Likewise.
29277         * modules/malloca (License): Likewise.
29278         * modules/memmem (License): Likewise.
29279         * modules/mempcpy (License): Likewise.
29280         * modules/memset (License): Likewise.
29281         * modules/minmax (License): Likewise.
29282         * modules/mktime (License): Likewise.
29283         * modules/netinet_in (License): Likewise.
29284         * modules/pathmax (License): Likewise.
29285         * modules/poll (License): Likewise.
29286         * modules/regex (License): Likewise.
29287         * modules/snprintf (License): Likewise.
29288         * modules/stdbool (License): Likewise.
29289         * modules/stdint (License): Likewise.
29290         * modules/stdio (License): Likewise.
29291         * modules/strcase (License): Likewise.
29292         * modules/strcasestr (License): Likewise.
29293         * modules/strdup (License): Likewise.
29294         * modules/string (License): Likewise.
29295         * modules/strndup (License): Likewise.
29296         * modules/strnlen (License): Likewise.
29297         * modules/strpbrk (License): Likewise.
29298         * modules/strptime (License): Likewise.
29299         * modules/strsep (License): Likewise.
29300         * modules/sys_select (License): Likewise.
29301         * modules/sys_socket (License): Likewise.
29302         * modules/sys_stat (License): Likewise.
29303         * modules/sys_time (License): Likewise.
29304         * modules/time (License): Likewise.
29305         * modules/time_r (License): Likewise.
29306         * modules/timegm (License): Likewise.
29307         * modules/unistd (License): Likewise.
29308         * modules/vsnprintf (License): Likewise.
29309         * modules/wctype (License): Likewise.
29310
29311 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29312
29313         * modules/argz (License): LGPLv2+.
29314
29315 2007-07-15  Karl Berry  <karl@gnu.org>
29316
29317         * doc/gnulib.texi: revise node structure per new fdl.texi.
29318
29319 2007-07-14  Bruno Haible  <bruno@clisp.org>
29320
29321         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
29322         the output file.
29323         * lib/uniname/uninames.h: Regenerated.
29324
29325 2007-07-14  Karl Berry  <karl@gnu.org>
29326
29327         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
29328         omitting sectioning and index commands.
29329
29330 2007-07-13  Bruno Haible  <bruno@clisp.org>
29331
29332         New gnulib-tool option --more-symlinks.
29333         * gnulib-tool (func_usage): Document --more-symlinks.
29334         (do_copyrights): New variable.
29335         Recognize option --more-symlinks.
29336         (func_import): Don't add a copyright notice transform to
29337         sed_transform_lib_file if do_copyrights is empty.
29338
29339 2007-07-13  Bruno Haible  <bruno@clisp.org>
29340
29341         * lib/vasnprintf.c (decimal_point_char): Define also if
29342         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
29343         && !NEED_PRINTF_DIRECTIVE_A.
29344         Reported by Clemens Koller <clemens.koller@anagramm.de> via
29345         Gary V. Vaughan <gary@gnu.org>.
29346
29347 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
29348
29349         * lib/inttypes_.h: Undo previous change, since it was fixed
29350         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
29351
29352 2007-07-13  Bruno Haible  <bruno@clisp.org>
29353
29354         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
29355         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
29356
29357 2007-07-13  Jim Meyering  <jim@meyering.net>
29358
29359         df: Don't fail for Tru64's "file-on-file mount".
29360         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
29361         so we fall through and use statfs instead.  Details here:
29362         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
29363         Reported by Albert Chin.
29364
29365 2007-07-13  Bruno Haible  <bruno@clisp.org>
29366
29367         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
29368         * modules/configmake (License): Likewise.
29369         * modules/gettext (License): Likewise.
29370         * modules/gettext-h (License): Likewise.
29371         * modules/include_next (License): Likewise.
29372         * modules/link-warning (License): Likewise.
29373         * modules/localcharset (License): Likewise.
29374         * modules/localename (License): Likewise.
29375         * modules/lock (License): Likewise.
29376         * modules/relocatable-lib-lgpl (License): Likewise.
29377         * modules/size_max (License): Likewise.
29378         * modules/vasnprintf (License): Likewise.
29379         * modules/wchar (License): Likewise.
29380         * modules/xsize (License): Likewise.
29381
29382 2007-07-13  Bruno Haible  <bruno@clisp.org>
29383
29384         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
29385         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
29386
29387 2007-07-12  Bruno Haible  <bruno@clisp.org>
29388
29389         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
29390         in the modules files.
29391
29392 2007-07-11  Karl Berry  <karl@gnu.org>
29393
29394         * MODULES.html.sh (func_module): use
29395          sed -e '\|^'"${includefile}"'$|d'
29396          instead of /.../d, to avoid errors on $includefile's containing /.
29397
29398 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29399
29400         * gnulib-tool (func_import): Avoid duplication of --avoid
29401         statements
29402         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
29403         names to `_' in variable names.
29404
29405 2007-07-10  Eric Blake  <ebb9@byu.net>
29406
29407         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
29408         * NEWS: Document this change.
29409
29410 2007-07-08  Bruno Haible  <bruno@clisp.org>
29411
29412         Update to Unicode 5.0.
29413         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
29414         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
29415         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
29416         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
29417         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
29418         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
29419         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
29420         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
29421         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
29422         U+10A3F, U+1D242..U+1D244.
29423         (nonspacing_table_ind): Update.
29424         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
29425         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
29426
29427 2007-07-08  Bruno Haible  <bruno@clisp.org>
29428
29429         Update to Unicode 5.0.
29430         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
29431         code transform. Extend the name index field of unicode_name_to_code and
29432         unicode_code_to_name from 16 to 24 bits.
29433         * lib/uniname/uniname.c (unicode_character_name,
29434         unicode_name_character): Add the range 0x12xxx to the code transform.
29435         * lib/uniname/uninames.h: Regenerated.
29436         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
29437
29438 2007-07-07  Bruno Haible  <bruno@clisp.org>
29439
29440         * modules/wcwidth-tests: New file.
29441         * tests/test-wcwidth.c: New file.
29442
29443         Work around MacOS X wcwidth() bug.
29444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
29445         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
29446         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
29447         original wcwidth in non-UTF-8 locales.
29448         * modules/wcwidth (Depends-on): Add localcharset, streq,
29449         uniwidth/width.
29450         * doc/functions/wcwidth.texi: Update.
29451
29452 2007-07-07  Bruno Haible  <bruno@clisp.org>
29453
29454         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
29455         (wcwidth): New declaration.
29456         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
29457         macros.
29458         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
29459         here. Prepare for creating <wchar.h> unconditionally.
29460         * modules/wchar (Depends-on): Add link-warning.
29461         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
29462         REPLACE_WCWIDTH, and GL_LINK_WARNING.
29463         * lib/wcwidth.h: Remove file.
29464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
29465         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
29466         * modules/wcwidth (Files): Remove lib/wcwidth.h.
29467         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
29468         (Include): Replace wcwidth.h with <wchar.h>.
29469         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
29470         * lib/mbchar.h: Don't include wcwidth.h.
29471         * lib/mbswidth.c: Likewise.
29472         * NEWS: Mention the change.
29473
29474 2007-07-07  Bruno Haible  <bruno@clisp.org>
29475
29476         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
29477         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
29478         definition with an external declaration.
29479         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
29480         defined as a function. Remove AC_C_INLINE requirement.
29481         * modules/wcwidth (Files): Add lib/wcwidth.c.
29482         (Makefile.am): Remove redundant statement.
29483
29484 2007-07-07  Bruno Haible  <bruno@clisp.org>
29485
29486         * MODULES.html.sh (Unicode string functions): Add the new modules.
29487
29488         * tests/uniwidth/test-u32-strwidth.c: New file.
29489         * modules/uniwidth/u32-strwidth-tests: New file.
29490
29491         * lib/uniwidth/u32-strwidth.c: New file.
29492         * modules/uniwidth/u32-strwidth: New file.
29493
29494         * tests/uniwidth/test-u16-strwidth.c: New file.
29495         * modules/uniwidth/u16-strwidth-tests: New file.
29496
29497         * lib/uniwidth/u16-strwidth.c: New file.
29498         * modules/uniwidth/u16-strwidth: New file.
29499
29500         * tests/uniwidth/test-u8-strwidth.c: New file.
29501         * modules/uniwidth/u8-strwidth-tests: New file.
29502
29503         * lib/uniwidth/u8-strwidth.c: New file.
29504         * modules/uniwidth/u8-strwidth: New file.
29505
29506         * tests/uniwidth/test-u32-width.c: New file.
29507         * modules/uniwidth/u32-width-tests: New file.
29508
29509         * lib/uniwidth/u32-width.c: New file.
29510         * modules/uniwidth/u32-width: New file.
29511
29512         * tests/uniwidth/test-u16-width.c: New file.
29513         * modules/uniwidth/u16-width-tests: New file.
29514
29515         * lib/uniwidth/u16-width.c: New file.
29516         * modules/uniwidth/u16-width: New file.
29517
29518         * tests/uniwidth/test-u8-width.c: New file.
29519         * modules/uniwidth/u8-width-tests: New file.
29520
29521         * lib/uniwidth/u8-width.c: New file.
29522         * modules/uniwidth/u8-width: New file.
29523
29524         * tests/uniwidth/test-uc_width.c: New file.
29525         * modules/uniwidth/width-tests: New file.
29526
29527         * lib/uniwidth/width.c: New file, from GNU libiconv.
29528         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
29529         * modules/uniwidth/width: New file.
29530
29531         * lib/uniwidth.h: New file, from GNU libiconv.
29532         * modules/uniwidth/base: New file.
29533
29534 2007-07-07  Bruno Haible  <bruno@clisp.org>
29535
29536         * lib/uniname.h: New file, from GNU gettext.
29537         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
29538         * lib/uniname/uninames.h: New file, from GNU gettext.
29539         * lib/uniname/uniname.c: New file, from GNU gettext.
29540         * tests/uniname/test-uninames.sh: New file.
29541         * tests/uniname/test-uninames.c: New file, from GNU gettext.
29542         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
29543         * modules/uniname/base: New file.
29544         * modules/uniname/uniname: New file.
29545         * modules/uniname/uniname-tests: New file.
29546         * MODULES.html.sh (Unicode string functions): Add the new modules.
29547
29548 2007-07-06  Bruno Haible  <bruno@clisp.org>
29549
29550         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
29551
29552 2007-07-06  Bruno Haible  <bruno@clisp.org>
29553
29554         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
29555         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
29556         includes <cygwin/sys_time.h> which includes <sys/select.h> which
29557         include <sys/time.h>.
29558         Reported by Eric Blake.
29559
29560 2007-07-06  Eric Blake  <ebb9@byu.net>
29561
29562         Fix testing canonicalize on cygwin.
29563         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
29564         Revert patch from 2007-06-19.
29565         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
29566         canonicalize module is also in use.
29567         * tests/test-canonicalize.c: New file.
29568         * tests/test-canonicalize.sh: Likewise.
29569         * modules/canonicalize-tests: Likewise.
29570
29571 2007-07-06  Jim Meyering  <jim@meyering.net>
29572
29573         * lib/getugroups.c (getugroups): Detect getgrent failure.
29574         Adjust comment to reflect reality: this function may return -1.
29575
29576 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29577
29578         * build-aux/bootstrap (TP_URL,get_translations): Update to use
29579         the new TP address.
29580         (usage): Fix typo
29581         (gnulib_mk): New variable.
29582
29583 2007-07-05  Jim Meyering  <jim@meyering.net>
29584
29585         Don't let endgrent clobber errno, no matter how improbable.
29586         * lib/getugroups.c (getugroups): Save and restore errno around
29587         endgrent call.
29588
29589         Close the group DB even when failing with 2^31 or more members.
29590         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
29591
29592 2007-07-04  Jim Meyering  <jim@meyering.net>
29593
29594         * lib/getugroups.h: New file.
29595         * lib/getugroups.c: Include "getugroups.h".
29596         Remove uses of "register" keyword.
29597         Move local variable, "cp", down into scope where used.
29598         Give "username" parameter the "const" attribute.
29599         * modules/getugroups (Files): Add lib/getugroups.h
29600
29601 2007-07-04  Karl Berry  <karl@gnu.org>
29602
29603         * MODULES.html.sh (func_all_modules): Complete rename of
29604         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
29605
29606 2007-07-02  Bruno Haible  <bruno@clisp.org>
29607
29608         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
29609         mode, when inttypes.h comes from gnulib.
29610         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29611
29612 2007-07-02  Simon Josefsson  <simon@josefsson.org>
29613
29614         * NEWS: Mention lgpl module name change.
29615
29616         * modules/lgpl-2.1: Renamed from lgpl.
29617
29618         * NEWS: Mention gpl module name change.
29619
29620         * modules/gpl-3.0: New file, based on gpl-2.0.
29621
29622         * modules/gpl-2.0: Renamed from gpl.
29623
29624         * modules/gpl: Fix filename, doc/gpl.texi is now found at
29625         doc/gpl-2.0.texi.
29626
29627 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
29628
29629         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
29630         #define __STDC_LIMIT_MACROS temporarily while including
29631         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
29632         Problem reported by Joel E. Denny in
29633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
29634
29635 2007-07-01  Bruno Haible  <bruno@clisp.org>
29636
29637         * lib/unistdio.h: New file.
29638         * lib/unistdio/u-asnprintf.h: New file.
29639         * lib/unistdio/u-asprintf.h: New file.
29640         * lib/unistdio/u-printf-args.c: New file.
29641         * lib/unistdio/u-printf-args.h: New file.
29642         * lib/unistdio/u-printf-parse.h: New file.
29643         * lib/unistdio/u-snprintf.h: New file.
29644         * lib/unistdio/u-sprintf.h: New file.
29645         * lib/unistdio/u-vasprintf.h: New file.
29646         * lib/unistdio/u-vsnprintf.h: New file.
29647         * lib/unistdio/u-vsprintf.h: New file.
29648         * lib/unistdio/ulc-asnprintf.c: New file.
29649         * lib/unistdio/ulc-asprintf.c: New file.
29650         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
29651         * lib/unistdio/ulc-printf-parse.c: New file.
29652         * lib/unistdio/ulc-snprintf.c: New file.
29653         * lib/unistdio/ulc-sprintf.c: New file.
29654         * lib/unistdio/ulc-vasnprintf.c: New file.
29655         * lib/unistdio/ulc-vasprintf.c: New file.
29656         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
29657         * lib/unistdio/ulc-vsnprintf.c: New file.
29658         * lib/unistdio/ulc-vsprintf.c: New file.
29659         * lib/unistdio/u8-asnprintf.c: New file.
29660         * lib/unistdio/u8-asprintf.c: New file.
29661         * lib/unistdio/u8-printf-parse.c: New file.
29662         * lib/unistdio/u8-snprintf.c: New file.
29663         * lib/unistdio/u8-sprintf.c: New file.
29664         * lib/unistdio/u8-vasnprintf.c: New file.
29665         * lib/unistdio/u8-vasprintf.c: New file.
29666         * lib/unistdio/u8-vsnprintf.c: New file.
29667         * lib/unistdio/u8-vsprintf.c: New file.
29668         * lib/unistdio/u8-u8-asnprintf.c: New file.
29669         * lib/unistdio/u8-u8-asprintf.c: New file.
29670         * lib/unistdio/u8-u8-snprintf.c: New file.
29671         * lib/unistdio/u8-u8-sprintf.c: New file.
29672         * lib/unistdio/u8-u8-vasnprintf.c: New file.
29673         * lib/unistdio/u8-u8-vasprintf.c: New file.
29674         * lib/unistdio/u8-u8-vsnprintf.c: New file.
29675         * lib/unistdio/u8-u8-vsprintf.c: New file.
29676         * lib/unistdio/u16-asnprintf.c: New file.
29677         * lib/unistdio/u16-asprintf.c: New file.
29678         * lib/unistdio/u16-printf-parse.c: New file.
29679         * lib/unistdio/u16-snprintf.c: New file.
29680         * lib/unistdio/u16-sprintf.c: New file.
29681         * lib/unistdio/u16-vasnprintf.c: New file.
29682         * lib/unistdio/u16-vasprintf.c: New file.
29683         * lib/unistdio/u16-vsnprintf.c: New file.
29684         * lib/unistdio/u16-vsprintf.c: New file.
29685         * lib/unistdio/u16-u16-asnprintf.c: New file.
29686         * lib/unistdio/u16-u16-asprintf.c: New file.
29687         * lib/unistdio/u16-u16-snprintf.c: New file.
29688         * lib/unistdio/u16-u16-sprintf.c: New file.
29689         * lib/unistdio/u16-u16-vasnprintf.c: New file.
29690         * lib/unistdio/u16-u16-vasprintf.c: New file.
29691         * lib/unistdio/u16-u16-vsnprintf.c: New file.
29692         * lib/unistdio/u16-u16-vsprintf.c: New file.
29693         * lib/unistdio/u32-asnprintf.c: New file.
29694         * lib/unistdio/u32-asprintf.c: New file.
29695         * lib/unistdio/u32-printf-parse.c: New file.
29696         * lib/unistdio/u32-snprintf.c: New file.
29697         * lib/unistdio/u32-sprintf.c: New file.
29698         * lib/unistdio/u32-vasnprintf.c: New file.
29699         * lib/unistdio/u32-vasprintf.c: New file.
29700         * lib/unistdio/u32-vsnprintf.c: New file.
29701         * lib/unistdio/u32-vsprintf.c: New file.
29702         * lib/unistdio/u32-u32-asnprintf.c: New file.
29703         * lib/unistdio/u32-u32-asprintf.c: New file.
29704         * lib/unistdio/u32-u32-snprintf.c: New file.
29705         * lib/unistdio/u32-u32-sprintf.c: New file.
29706         * lib/unistdio/u32-u32-vasnprintf.c: New file.
29707         * lib/unistdio/u32-u32-vasprintf.c: New file.
29708         * lib/unistdio/u32-u32-vsnprintf.c: New file.
29709         * lib/unistdio/u32-u32-vsprintf.c: New file.
29710         * tests/unistdio/test-ulc-asnprintf1.c: New file.
29711         * tests/unistdio/test-ulc-asnprintf1.h: New file.
29712         * tests/unistdio/test-ulc-printf1.h: New file.
29713         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
29714         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
29715         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
29716         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
29717         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
29718         * tests/unistdio/test-ulc-vasprintf1.c: New file.
29719         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
29720         * tests/unistdio/test-ulc-vsprintf1.c: New file.
29721         * tests/unistdio/test-u8-asnprintf1.c: New file.
29722         * tests/unistdio/test-u8-asnprintf1.h: New file.
29723         * tests/unistdio/test-u8-printf1.h: New file.
29724         * tests/unistdio/test-u8-vasnprintf1.c: New file.
29725         * tests/unistdio/test-u8-vasnprintf2.c: New file.
29726         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
29727         * tests/unistdio/test-u8-vasnprintf3.c: New file.
29728         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
29729         * tests/unistdio/test-u8-vasprintf1.c: New file.
29730         * tests/unistdio/test-u8-vsnprintf1.c: New file.
29731         * tests/unistdio/test-u8-vsprintf1.c: New file.
29732         * tests/unistdio/test-u16-asnprintf1.c: New file.
29733         * tests/unistdio/test-u16-asnprintf1.h: New file.
29734         * tests/unistdio/test-u16-printf1.h: New file.
29735         * tests/unistdio/test-u16-vasnprintf1.c: New file.
29736         * tests/unistdio/test-u16-vasnprintf2.c: New file.
29737         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
29738         * tests/unistdio/test-u16-vasnprintf3.c: New file.
29739         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
29740         * tests/unistdio/test-u16-vasprintf1.c: New file.
29741         * tests/unistdio/test-u16-vsnprintf1.c: New file.
29742         * tests/unistdio/test-u16-vsprintf1.c: New file.
29743         * tests/unistdio/test-u32-asnprintf1.c: New file.
29744         * tests/unistdio/test-u32-asnprintf1.h: New file.
29745         * tests/unistdio/test-u32-printf1.h: New file.
29746         * tests/unistdio/test-u32-vasnprintf1.c: New file.
29747         * tests/unistdio/test-u32-vasnprintf2.c: New file.
29748         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
29749         * tests/unistdio/test-u32-vasnprintf3.c: New file.
29750         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
29751         * tests/unistdio/test-u32-vasprintf1.c: New file.
29752         * tests/unistdio/test-u32-vsnprintf1.c: New file.
29753         * tests/unistdio/test-u32-vsprintf1.c: New file.
29754         * modules/unistdio/base: New file.
29755         * modules/unistdio/u-printf-args: New file.
29756         * modules/unistdio/ulc-asnprintf: New file.
29757         * modules/unistdio/ulc-asprintf: New file.
29758         * modules/unistdio/ulc-fprintf: New file.
29759         * modules/unistdio/ulc-printf-parse: New file.
29760         * modules/unistdio/ulc-snprintf: New file.
29761         * modules/unistdio/ulc-sprintf: New file.
29762         * modules/unistdio/ulc-vasnprintf: New file.
29763         * modules/unistdio/ulc-vasprintf: New file.
29764         * modules/unistdio/ulc-vfprintf: New file.
29765         * modules/unistdio/ulc-vsnprintf: New file.
29766         * modules/unistdio/ulc-vsprintf: New file.
29767         * modules/unistdio/u8-asnprintf: New file.
29768         * modules/unistdio/u8-asprintf: New file.
29769         * modules/unistdio/u8-printf-parse: New file.
29770         * modules/unistdio/u8-snprintf: New file.
29771         * modules/unistdio/u8-sprintf: New file.
29772         * modules/unistdio/u8-vasnprintf: New file.
29773         * modules/unistdio/u8-vasprintf: New file.
29774         * modules/unistdio/u8-vsnprintf: New file.
29775         * modules/unistdio/u8-vsprintf: New file.
29776         * modules/unistdio/u8-u8-asnprintf: New file.
29777         * modules/unistdio/u8-u8-asprintf: New file.
29778         * modules/unistdio/u8-u8-snprintf: New file.
29779         * modules/unistdio/u8-u8-sprintf: New file.
29780         * modules/unistdio/u8-u8-vasnprintf: New file.
29781         * modules/unistdio/u8-u8-vasprintf: New file.
29782         * modules/unistdio/u8-u8-vsnprintf: New file.
29783         * modules/unistdio/u8-u8-vsprintf: New file.
29784         * modules/unistdio/u16-asnprintf: New file.
29785         * modules/unistdio/u16-asprintf: New file.
29786         * modules/unistdio/u16-printf-parse: New file.
29787         * modules/unistdio/u16-snprintf: New file.
29788         * modules/unistdio/u16-sprintf: New file.
29789         * modules/unistdio/u16-vasnprintf: New file.
29790         * modules/unistdio/u16-vasprintf: New file.
29791         * modules/unistdio/u16-vsnprintf: New file.
29792         * modules/unistdio/u16-vsprintf: New file.
29793         * modules/unistdio/u16-u16-asnprintf: New file.
29794         * modules/unistdio/u16-u16-asprintf: New file.
29795         * modules/unistdio/u16-u16-snprintf: New file.
29796         * modules/unistdio/u16-u16-sprintf: New file.
29797         * modules/unistdio/u16-u16-vasnprintf: New file.
29798         * modules/unistdio/u16-u16-vasprintf: New file.
29799         * modules/unistdio/u16-u16-vsnprintf: New file.
29800         * modules/unistdio/u16-u16-vsprintf: New file.
29801         * modules/unistdio/u32-asnprintf: New file.
29802         * modules/unistdio/u32-asprintf: New file.
29803         * modules/unistdio/u32-printf-parse: New file.
29804         * modules/unistdio/u32-snprintf: New file.
29805         * modules/unistdio/u32-sprintf: New file.
29806         * modules/unistdio/u32-vasnprintf: New file.
29807         * modules/unistdio/u32-vasprintf: New file.
29808         * modules/unistdio/u32-vsnprintf: New file.
29809         * modules/unistdio/u32-vsprintf: New file.
29810         * modules/unistdio/u32-u32-asnprintf: New file.
29811         * modules/unistdio/u32-u32-asprintf: New file.
29812         * modules/unistdio/u32-u32-snprintf: New file.
29813         * modules/unistdio/u32-u32-sprintf: New file.
29814         * modules/unistdio/u32-u32-vasnprintf: New file.
29815         * modules/unistdio/u32-u32-vasprintf: New file.
29816         * modules/unistdio/u32-u32-vsnprintf: New file.
29817         * modules/unistdio/u32-u32-vsprintf: New file.
29818         * modules/unistdio/ulc-asnprintf-tests: New file.
29819         * modules/unistdio/ulc-vasnprintf-tests: New file.
29820         * modules/unistdio/ulc-vasprintf-tests: New file.
29821         * modules/unistdio/ulc-vsnprintf-tests: New file.
29822         * modules/unistdio/ulc-vsprintf-tests: New file.
29823         * modules/unistdio/u8-asnprintf-tests: New file.
29824         * modules/unistdio/u8-vasnprintf-tests: New file.
29825         * modules/unistdio/u8-vasprintf-tests: New file.
29826         * modules/unistdio/u8-vsnprintf-tests: New file.
29827         * modules/unistdio/u8-vsprintf-tests: New file.
29828         * modules/unistdio/u16-asnprintf-tests: New file.
29829         * modules/unistdio/u16-vasnprintf-tests: New file.
29830         * modules/unistdio/u16-vasprintf-tests: New file.
29831         * modules/unistdio/u16-vsnprintf-tests: New file.
29832         * modules/unistdio/u16-vsprintf-tests: New file.
29833         * modules/unistdio/u32-asnprintf-tests: New file.
29834         * modules/unistdio/u32-vasnprintf-tests: New file.
29835         * modules/unistdio/u32-vasprintf-tests: New file.
29836         * modules/unistdio/u32-vsnprintf-tests: New file.
29837         * modules/unistdio/u32-vsprintf-tests: New file.
29838         * MODULES.html.sh (Unicode string functions): Add the new modules.
29839
29840 2007-07-01  Bruno Haible  <bruno@clisp.org>
29841
29842         * lib/sprintf.c (sprintf): Limit the available length estimation,
29843         to avoid address wraparound.
29844         * lib/vsprintf.c (vsprintf): Likewise.
29845         * modules/sprintf-posix (Dependencies): Add stdint.
29846         * modules/vsprintf-posix (Dependencies): Likewise.
29847
29848 2007-07-01  Bruno Haible  <bruno@clisp.org>
29849
29850         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
29851         Windows PATH as well. Conservative double-quoting. Comments.
29852
29853 2007-07-01  Bruno Haible  <bruno@clisp.org>
29854             Eric Blake  <ebb9@byu.net>
29855             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29856
29857         * gnulib-tool (self_abspathname): Fix algorithm to cope with
29858         empty components in $PATH, denoting '.'.
29859
29860 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29861
29862         * gnulib-tool: Fix indentation.
29863         (func_create_megatestdir): Likewise.
29864         Report by Bruno Haible.
29865
29866 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29867
29868         Sync from Automake.
29869         * build-aux/gnupload: Fix shell portability issues with for loops.
29870         Report by Karl Berry.
29871
29872 2007-06-29  Simon Josefsson  <simon@josefsson.org>
29873
29874         * build-aux/maint.mk (POURL): Use translationproject.org.
29875
29876 2007-06-27  Simon Josefsson  <simon@josefsson.org>
29877             Bruno Haible  <bruno@clisp.org>
29878
29879         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
29880         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
29881         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
29882         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
29883         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
29884
29885 2007-06-27  Bruno Haible  <bruno@clisp.org>
29886
29887         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
29888         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
29889
29890 2007-06-26  Karl Berry  <karl@gnu.org>
29891
29892         * MODULES.html.sh: remove xreadlink-with-size.
29893
29894 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29895
29896         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
29897         method that I hope also handles the double-include problem noted
29898         by Bruno Haible in
29899         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
29900
29901 2007-06-23  Bruno Haible  <bruno@clisp.org>
29902
29903         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29904         Don't let the 'mostlyclean' target fail if the last subdirectory could
29905         not be removed.
29906         Reported by Karl Berry.
29907
29908 2007-06-23  Bruno Haible  <bruno@clisp.org>
29909
29910         * gnulib-tool (echo): Add a speedier workaround for ksh.
29911         * tests/test-echo.sh: Likewise.
29912
29913 2007-06-23  Bruno Haible  <bruno@clisp.org>
29914
29915         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
29916         * tests/test-echo.sh: Likewise.
29917
29918 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29919
29920         * gnulib-tool (IFS): Initialize early, so we don't set it to
29921         empty later.
29922         (self_abspathname): Rewrite algorithm to set it, reindent.
29923         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
29924         (func_create_megatestdir): Merge some sed scripts.
29925
29926 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29927
29928         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
29929         exposed by Sun Studio 11 cc on Solaris 8.
29930
29931 2007-06-22  Bruno Haible  <bruno@clisp.org>
29932
29933         * gnulib-tool (echo): Ensure the echo primitive does not interpret
29934         backslashes.
29935         * tests/test-echo.sh: New file.
29936
29937 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29938
29939         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
29940         simplify `sed_replace_build_aux' scripts, they are portable but
29941         echoing them with `echo' is not.
29942         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
29943
29944 2007-06-21  Karl Berry  <karl@gnu.org>
29945
29946         * config/srclist.txt: guess we can't handle the licenses via
29947         srclist at the moment.
29948
29949 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
29950
29951         * MODULES.html.sh: Add include_next.
29952         * modules/include_next: New file.
29953
29954 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29955
29956         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
29957         INCLUDE_NEXT.
29958         (gl_CHECK_NEXT_HEADERS): New macro.
29959         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
29960         the obsolescent gl_ABSOLUTE_HEADER.
29961         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
29962         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
29963         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29964         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29965         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29966         * m4/math_h.m4 (gl_MATH_H): Likewise.
29967         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
29968         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29969         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29970         * m4/stdint.m4 (gl_STDINT_H): Likewise.
29971         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29972         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29973         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29974         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29975         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29976         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29977         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29978         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29979         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
29980         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29981         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29982         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29983         * m4/inttypes.m4 (gl_INTTYPES_H): Define
29984         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
29985         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
29986         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
29987         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
29988         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
29989         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
29990         * lib/float_.h: Likewise.
29991         * lib/inttypes_.h: Likewise.
29992         * lib/math_.h: Likewise.
29993         * lib/search_.h: Likewise.
29994         * lib/signal_.h: Likewise.
29995         * lib/stdint_.h: Likewise.
29996         * lib/stdio_.h: Likewise.
29997         * lib/stdlib_.h: Likewise.
29998         * lib/string_.h: Likewise.
29999         * lib/sys_stat_.h: Likewise.
30000         * lib/sys_time_.h: Likewise.
30001         * lib/time_.h: Likewise.
30002         * lib/unistd_.h: Likewise.
30003         * lib/wchar_.h: Likewise.
30004         * lib/wctype_.h: Likewise.
30005         * lib/dirent_.h: Likewise.
30006         * lib/iconv_.h: Likewise.
30007         * lib/locale_.h: Likewise.
30008         * lib/netinet_in_.h: Likewise.
30009         * lib/sys_select_.h: Likewise.
30010         * lib/sys_socket_.h: Likewise.
30011         * lib/sysexits_.h: Likewise.
30012         * modules/fcntl (Depends-on): Depend on include_next, not
30013         absolute_header.
30014         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
30015         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
30016         * modules/fchdir: Likewise.
30017         * modules/float: Likewise.
30018         * modules/iconv_open: Likewise.
30019         * modules/inttypes: Likewise.
30020         * modules/locale: Likewise.
30021         * modules/math: Likewise.
30022         * modules/netinet_in: Likewise.
30023         * modules/search: Likewise.
30024         * modules/signal: Likewise.
30025         * modules/stdint: Likewise.
30026         * modules/stdio: Likewise.
30027         * modules/stdlib: Likewise.
30028         * modules/string: Likewise.
30029         * modules/sys_select: Likewise.
30030         * modules/sys_socket: Likewise.
30031         * modules/sys_stat: Likewise.
30032         * modules/sys_time: Likewise.
30033         * modules/sysexits: Likewise.
30034         * modules/time: Likewise.
30035         * modules/unistd: Likewise.
30036         * modules/wchar: Likewise.
30037         * modules/wctype: Likewise.
30038         * modules/sys_stat: Change maintainer to "all".
30039         * modules/unistd: Likewise.
30040
30041 2007-06-20  Karl Berry  <karl@gnu.org>
30042
30043         * config/srclist.txt: track www changes in license files.
30044
30045 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
30046
30047         * build-aux/bootstrap: Remove stray dot.
30048         Make sure build_aux settings are honored when linking
30049         gnulib_extra_files.
30050
30051 2007-06-19  Eric Blake  <ebb9@byu.net>
30052
30053         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
30054         Allow compilation on cygwin.
30055
30056 2007-06-19  Jim Meyering  <jim@meyering.net>
30057
30058         xreadlink-with-size: Remove module.  No longer used.
30059         Ex-callers now use xreadlink or mreadlink-with-size.
30060         * modules/xreadlink-with-size: Remove module.
30061         * lib/xreadlink-with-size.c: Remove file.
30062         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
30063         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
30064         just before the function definition *is* accurate.
30065
30066         Eliminate one way canonicalize_filename_mode could exit.
30067         * lib/canonicalize.c (canonicalize_filename_mode):
30068         Use mreadlink_with_size, not xreadlink_with_size.
30069
30070 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
30071
30072         Detect porting problems to FreeBSD/arm, which has time_t wider than
30073         long int.  Original problem reported for GNU diff by Xin Li in
30074         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
30075         * modules/getdate (Depends-on): Add intprops, verify.
30076         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
30077         is an integer type no wider than long int.
30078
30079 2007-06-18  Jim Meyering  <jim@meyering.net>
30080
30081         New module: mreadlink-with-size.
30082         * MODULES.html.sh: Add mreadlink-with-size.
30083         * modules/mreadlink-with-size: New module
30084         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
30085         not xreadlink-with-size.
30086         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
30087
30088 2007-06-16  Bruno Haible  <bruno@clisp.org>
30089
30090         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
30091         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
30092         Reported by Gary V. Vaughan <gary@gnu.org>.
30093
30094 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30095
30096         Revamp lchown so that it lives in unistd.h where it belongs.
30097         * lib/lchown.h: Remove.
30098         * lib/dirchownmod.c: Don't include lib/lchown.h.
30099         * lib/fchownat.c: Likewise.
30100         * lib/openat.c: Likewise.
30101         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
30102         does not follow symlinks.
30103         (EOPNOTSUPP): Define if not defined.
30104         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
30105         is defined to 0.
30106         (lchown): New decl.
30107         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
30108         Do not check for lchown decl.
30109         Set REPLACE_LCHOWN.
30110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
30111         REPLACE_LCHOWN.
30112         * modules/chown: Make it clear it follows symlinks.
30113         * modules/lchown: Make it clear it doesn't follow symlinks.
30114         (Files): Remove lib/lchown.h
30115         (Depends-on): Add unistd.
30116         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
30117         (Include): Include <unistd.h>, not "lchown.h".
30118         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
30119         REPLACE_LCHOWN.
30120
30121 2007-06-15  Jim Meyering  <jim@meyering.net>
30122
30123         Change license (GPL to LGPL) of fsusage and dependents.
30124         * modules/fsusage (License): Change to LGPL.
30125         * modules/full-read (License): Likewise.
30126         * modules/full-write (License): Likewise.
30127         * modules/safe-read (License): Likewise.
30128         * modules/safe-write (License): Likewise.
30129
30130 2007-06-14  Ben Pfaff  <blp@gnu.org>
30131
30132         Missing part of allocsa -> malloca transition.
30133         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
30134         gl_MALLOCA.
30135
30136 2007-06-12  Bruno Haible  <bruno@clisp.org>
30137
30138         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
30139         to ia64, x86_64, i386.
30140         Reported by Eric Blake.
30141
30142 2007-06-12  Bruno Haible  <bruno@clisp.org>
30143
30144         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
30145         cross-compiling to x86_64.
30146
30147 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
30148
30149         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
30150         glitch reported by Ralf Wildenhues in
30151         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
30152
30153         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
30154         Vin Shelton.
30155
30156 2007-06-11  Bruno Haible  <bruno@clisp.org>
30157
30158         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
30159         replacement string.
30160         Reported by Eric Blake.
30161
30162 2007-06-10  Bruno Haible  <bruno@clisp.org>
30163
30164         Prepare vasnprintf code for use with Unicode strings.
30165         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
30166         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
30167         TYPE_U32_STRING.
30168         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
30169         a_u32_string variants.
30170         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30171         * lib/printf-args.c: Don't include config.h and the specification
30172         header if PRINTF_FETCHARGS is already defined.
30173         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30174         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
30175         TYPE_U16_STRING, TYPE_U32_STRING.
30176         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
30177         u16_directive, u16_directives, u32_directive, u32_directives): New
30178         types.
30179         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
30180         New declarations.
30181         * lib/printf-parse.c: Don't include config.h and the specification
30182         header if PRINTF_PARSE is already defined. Eliminate the set of
30183         parameters for WIDE_CHAR_VERSION; the user of this file must provide
30184         them now. Include c-ctype.h.
30185         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
30186         directive and CHAR_T_ONLY_ASCII.
30187         * lib/vasnprintf.c: Don't include config.h and the specification header
30188         if VASNPRINTF is already defined.
30189         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
30190         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
30191         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
30192         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
30193         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
30194         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
30195         code accordingly.
30196         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
30197         pad_ourselves also in this case, with the 'c' and 's' directives, and
30198         with a different notion of "width".
30199         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
30200
30201 2007-06-10  Bruno Haible  <bruno@clisp.org>
30202
30203         * modules/unistr/u32-mbsnlen: New file.
30204         * lib/unistr/u32-mbsnlen.c: New file.
30205
30206         * modules/unistr/u16-mbsnlen: New file.
30207         * lib/unistr/u16-mbsnlen.c: New file.
30208
30209         * modules/unistr/u8-mbsnlen: New file.
30210         * lib/unistr/u8-mbsnlen.c: New file.
30211
30212         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
30213         declarations.
30214
30215 2007-06-10  Bruno Haible  <bruno@clisp.org>
30216
30217         * lib/string_.h (mbsnlen): New declaration.
30218         * lib/mbsnlen.c: New file.
30219         * m4/mbsnlen.m4: New file.
30220         * modules/mbsnlen: New file.
30221         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
30222         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
30223         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
30224
30225 2007-06-10  Bruno Haible  <bruno@clisp.org>
30226
30227         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
30228
30229 2007-06-10  Bruno Haible  <bruno@clisp.org>
30230
30231         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
30232         * lib/mbuiter.h: Likewise.
30233
30234 2007-06-10  Bruno Haible  <bruno@clisp.org>
30235
30236         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
30237         declaration.
30238
30239 2007-06-10  Karl Berry  <karl@gnu.org>
30240
30241         * config/srclist.txt: remove gettext entries, Bruno prefers
30242         to update individually.
30243
30244 2007-06-10  Bruno Haible  <bruno@clisp.org>
30245
30246         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
30247         'maxlen'. Ensure only length + width bytes are allocated, not
30248         length + 1 + width.
30249
30250 2007-06-09  Bruno Haible  <bruno@clisp.org>
30251
30252         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
30253         (CHAR_T): Remove macro.
30254         (VASNPRINTF): Update.
30255
30256 2007-06-09  Bruno Haible  <bruno@clisp.org>
30257
30258         * MODULES.html.sh (Unicode string functions): Add the new modules.
30259
30260         * modules/uniconv/u32-conv-to-enc: New file.
30261         * lib/uniconv/u32-conv-to-enc.c: New file.
30262         * modules/uniconv/u32-conv-to-enc-tests: New file.
30263         * tests/uniconv/test-u32-conv-to-enc.c: New file.
30264
30265         * modules/uniconv/u16-conv-to-enc: New file.
30266         * lib/uniconv/u16-conv-to-enc.c: New file.
30267         * lib/uniconv/u-conv-to-enc.h: New file.
30268         * modules/uniconv/u16-conv-to-enc-tests: New file.
30269         * tests/uniconv/test-u16-conv-to-enc.c: New file.
30270
30271         * modules/uniconv/u8-conv-to-enc: New file.
30272         * lib/uniconv/u8-conv-to-enc.c: New file.
30273         * modules/uniconv/u8-conv-to-enc-tests: New file.
30274         * tests/uniconv/test-u8-conv-to-enc.c: New file.
30275
30276         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30277         u32_conv_to_encoding): New declarations.
30278
30279 2007-06-09  Bruno Haible  <bruno@clisp.org>
30280
30281         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
30282
30283 2007-06-09  Bruno Haible  <bruno@clisp.org>
30284
30285         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
30286         * modules/malloca: Renamed from modules/allocsa, updated.
30287         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
30288         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
30289         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
30290         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
30291         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
30292         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
30293         * modules/xmalloca: Renamed from modules/xallocsa, updated.
30294         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
30295         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
30296         * modules/c-strcasestr (Depends-on): Update.
30297         * lib/c-strcasestr.c: Update.
30298         * modules/c-strstr (Depends-on): Update.
30299         * lib/c-strstr.c: Update.
30300         * modules/canonicalize-lgpl (Depends-on): Update.
30301         * lib/canonicalize-lgpl.c: Update.
30302         * modules/clean-temp (Depends-on): Update.
30303         * lib/clean-temp.c: Update.
30304         * modules/csharpcomp (Depends-on): Update.
30305         * lib/csharpcomp.c: Update.
30306         * modules/csharpexec (Depends-on): Update.
30307         * lib/csharpexec.c: Update.
30308         * modules/javacomp (Depends-on): Update.
30309         * lib/javacomp.c: Update.
30310         * modules/javaexec (Depends-on): Update.
30311         * lib/javaexec.c: Update.
30312         * modules/mbscasestr (Depends-on): Update.
30313         * lib/mbscasestr.c: Update.
30314         * modules/mbsstr (Depends-on): Update.
30315         * lib/mbsstr.c: Update.
30316         * modules/setenv (Depends-on): Update.
30317         * lib/setenv.c: Update.
30318         * modules/strcasestr (Depends-on): Update.
30319         * lib/strcasestr.c: Update.
30320         * modules/striconveha (Depends-on): Update.
30321         * lib/striconveha.c: Update.
30322         * modules/relocatable-prog-wrapper (Files): Update.
30323         * lib/relocwrapper.c: Update.
30324         * build-aux/install-reloc: Update.
30325         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
30326
30327 2007-06-08  Bruno Haible  <bruno@clisp.org>
30328
30329         Port to uClibc.
30330         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
30331         * lib/fpurge.c (fpurge): Likewise.
30332         * lib/freading.c (freading): Likewise.
30333         * lib/fseeko.c (rpl_fseeko): Likewise.
30334         * lib/fseterr.c (fseterr): Likewise.
30335         * lib/fwriting.c (fwriting): Likewise.
30336         * tests/test-fflush.c (main): Avoid a failure on uClibc.
30337
30338 2007-06-08  Bruno Haible  <bruno@clisp.org>
30339
30340         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
30341         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
30342         * modules/gettext (Files): Add m4/intlmacosx.m4.
30343
30344 2007-06-07  Bruno Haible  <bruno@clisp.org>
30345
30346         * modules/localename-tests: New file.
30347         * tests/test-localename.c: New file.
30348
30349         New module 'localename'.
30350         * lib/localename.h: New file.
30351         * lib/localename.c: New file, from GNU gettext.
30352         * m4/localename.m4: New file.
30353         * modules/localename: New file.
30354
30355 2007-06-07  Bruno Haible  <bruno@clisp.org>
30356
30357         Work around the lack of <wchar.h> on some builds of uClibc.
30358         * doc/headers/wchar.texi: Update.
30359         * lib/wchar_.h: Include <wchar.h> only if it exists.
30360         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
30361         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
30362         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
30363         doesn't exist.
30364         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
30365         * modules/mbfile (Depends-on): Add wchar.
30366         * modules/mbiter (Depends-on): Likewise.
30367         * modules/mbuiter (Depends-on): Likewise.
30368         Reported by Simon Josefsson.
30369
30370 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30371
30372         Work around problem reported by Steven M. Schweda in
30373         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
30374         Tru64 5.1B with the Compaq compiler environment installed declares
30375         an 'isblank' function but does not define it in the C library.
30376         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
30377         * lib/regex_internal.h (isblank): Likewise.
30378         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
30379         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30380
30381 2007-06-05  Bruno Haible  <bruno@clisp.org>
30382
30383         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
30384         ia64.
30385         * modules/printf-safe: New file.
30386         * modules/fprintf-posix (Depends-on): Add printf-safe.
30387         * modules/printf-posix (Depends-on): Likewise.
30388         * modules/snprintf-posix (Depends-on): Likewise.
30389         * modules/sprintf-posix (Depends-on): Likewise.
30390         * modules/vasnprintf-posix (Depends-on): Likewise.
30391         * modules/vasprintf-posix (Depends-on): Likewise.
30392         * modules/vfprintf-posix (Depends-on): Likewise.
30393         * modules/vprintf-posix (Depends-on): Likewise.
30394         * modules/vsnprintf-posix (Depends-on): Likewise.
30395         * modules/vsprintf-posix (Depends-on): Likewise.
30396         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30397         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
30398         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
30399         "no" on i386, x86_64, ia64.
30400         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
30401         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30402         on i386, x86_64, ia64.
30403         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
30404         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30405         on i386, x86_64, ia64.
30406         * tests/test-vasnprintf-posix.c: Include float.h.
30407         (LDBL80_WORDS): New macro.
30408         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30409         on i386, x86_64, ia64.
30410         * tests/test-vasprintf-posix.c: Include float.h.
30411         (LDBL80_WORDS): New macro.
30412         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30413         on i386, x86_64, ia64.
30414         * tests/test-snprintf-posix.c: Include float.h.
30415         * tests/test-sprintf-posix.c: Likewise.
30416         * tests/test-vsnprintf-posix.c: Likewise.
30417         * tests/test-vsprintf-posix.c: Likewise.
30418
30419 2007-06-05  Bruno Haible  <bruno@clisp.org>
30420
30421         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
30422         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
30423         non-IEEE numbers on i386, x86_64, ia64.
30424         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
30425         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
30426         * tests/test-isnanl.h: Include float.h.
30427         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
30428
30429 2007-06-05  Bruno Haible  <bruno@clisp.org>
30430
30431         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
30432         also the %a / %A. Handle the %a / %A code before this extra handling.
30433
30434 2007-06-05  Bruno Haible  <bruno@clisp.org>
30435
30436         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
30437         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
30438
30439 2007-06-05  Bruno Haible  <bruno@clisp.org>
30440
30441         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
30442         typo in variable name.
30443
30444 2007-06-05  Eric Blake  <ebb9@byu.net>
30445
30446         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
30447         Reported by Simon Josefsson.
30448
30449 2007-06-04  Bruno Haible  <bruno@clisp.org>
30450
30451         Avoid test failures on some PowerPC platforms.
30452         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
30453         Define differently for PowerPC.
30454         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
30455         Reported by Gary V. Vaughan <gary@gnu.org>.
30456
30457 2007-06-02  Bruno Haible  <bruno@clisp.org>
30458
30459         Fix test-stdint failure on FreeBSD/ia64.
30460         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
30461         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
30462         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
30463         * doc/headers/stdint.texi: Update.
30464
30465 2007-06-01  Bruno Haible  <bruno@clisp.org>
30466
30467         * tests/test-binary-io.c (main): Pass a third argument to open().
30468         Reported by Gary V. Vaughan <gary@gnu.org>.
30469
30470 2007-06-01  Bruno Haible  <bruno@clisp.org>
30471
30472         * doc/functions/frexpl.texi: Update for mingw.
30473
30474 2007-06-01  Bruno Haible  <bruno@clisp.org>
30475
30476         * tests/test-lseek.c (main): Disable test of errno for invalid third
30477         argument.
30478         * doc/functions/lseek.texi: Update.
30479         Reported by Gary V. Vaughan <gary@gnu.org>.
30480
30481 2007-05-28  Bruno Haible  <bruno@clisp.org>
30482
30483         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
30484
30485 2007-05-31  Eric Blake  <ebb9@byu.net>
30486
30487         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
30488         cross compiling.
30489
30490 2007-05-30  Eric Blake  <ebb9@byu.net>
30491         and Bruno Haible  <bruno@clisp.org>
30492
30493         Work around mingw test failures exposed by m4-1.4.9b.
30494         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
30495         * tests/test-unistd.c: Disable uid_t and git_t tests for the
30496         moment.
30497
30498 2007-05-30  Bruno Haible  <bruno@clisp.org>
30499
30500         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
30501         assuming that they are closed. Needed on HP-UX 11.
30502
30503 2007-05-29  Bruno Haible  <bruno@clisp.org>
30504
30505         Fix a problem with #include_next.
30506         * lib/dirent_.h: Split the double-inclusion guard.
30507         * lib/fcntl_.h: Likewise.
30508         * lib/float_.h: Likewise.
30509         * lib/iconv_.h: Likewise.
30510         * lib/inttypes_.h: Likewise.
30511         * lib/locale_.h: Likewise.
30512         * lib/math_.h: Likewise.
30513         * lib/netinet_in_.h: Likewise.
30514         * lib/search_.h: Likewise.
30515         * lib/signal_.h: Likewise.
30516         * lib/stdint_.h: Likewise.
30517         * lib/stdio_.h: Likewise.
30518         * lib/stdlib_.h: Likewise.
30519         * lib/string_.h: Likewise.
30520         * lib/sys_select_.h: Likewise.
30521         * lib/sys_socket_.h: Likewise.
30522         * lib/sys_stat_.h: Likewise.
30523         * lib/sys_time_.h: Likewise.
30524         * lib/sysexits_.h: Likewise.
30525         * lib/time_.h: Likewise.
30526         * lib/unistd_.h: Likewise.
30527         * lib/wchar_.h: Likewise.
30528         * lib/wctype_.h: Likewise.
30529
30530 2007-05-29  Bruno Haible  <bruno@clisp.org>
30531
30532         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
30533         for the moment.
30534
30535 2007-05-29  Bruno Haible  <bruno@clisp.org>
30536
30537         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
30538         invocation.
30539         Reported by Eric Blake.
30540
30541 2007-05-29  Bruno Haible  <bruno@clisp.org>
30542
30543         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
30544         compiling case.
30545
30546 2007-05-29  Eric Blake  <ebb9@byu.net>
30547             Bruno Haible  <bruno@clisp.org>
30548
30549         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
30550         cross compiles.
30551
30552 2007-05-28  Eric Blake  <ebb9@byu.net>
30553
30554         * modules/closein-tests (test_closein_LDADD): Support test on
30555         cygwin with libtool.
30556
30557 2007-05-28  Bruno Haible  <bruno@clisp.org>
30558
30559         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
30560         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30561         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30562         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30563         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30564         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30565         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30566         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30567         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30568
30569 2007-05-28  Eric Blake  <ebb9@byu.net>
30570
30571         Unconditionally include <config.h> in unit tests.
30572         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
30573         * tests/test-allocsa.c, tests/test-arcfour.c,
30574         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
30575         tests/test-array_list.c, tests/test-array_oset.c,
30576         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
30577         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
30578         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
30579         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
30580         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
30581         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
30582         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
30583         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
30584         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
30585         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
30586         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
30587         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
30588         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
30589         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
30590         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
30591         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
30592         test-md5.c, test-memmem.c, test-printf-posix.c,
30593         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
30594         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
30595         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
30596         test-strcasestr.c, test-striconv.c, test-striconveh.c,
30597         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
30598         test-vasnprintf-posix2.c, test-vasnprintf.c,
30599         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
30600         test-vfprintf-posix.c, test-vprintf-posix.c,
30601         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
30602         test-xvasprintf.c: Likewise.
30603
30604 2007-05-28  Bruno Haible  <bruno@clisp.org>
30605
30606         * gnulib-tool (func_import): Remember the --with-tests command-line
30607         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
30608         Reported by Eric Blake.
30609
30610 2007-05-28  Bruno Haible  <bruno@clisp.org>
30611
30612         * modules/ftell-tests: New file.
30613         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
30614         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
30615
30616         * lib/ftell.c: New file.
30617         * modules/ftell: New file.
30618         * m4/ftell.m4: New file.
30619         * doc/functions/ftell.texi: Update.
30620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
30621         REPLACE_FTELL.
30622         * lib/stdio_.h (rpl_ftell): New declaration.
30623         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
30624         REPLACE_FTELL.
30625
30626 2007-05-28  Eric Blake  <ebb9@byu.net>
30627
30628         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
30629
30630 2007-05-28  Bruno Haible  <bruno@clisp.org>
30631
30632         * modules/fseek-tests: New file.
30633         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
30634         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
30635
30636         * lib/fseek.c: New file.
30637         * modules/fseek: New file.
30638         * m4/fseek.m4: New file.
30639         * doc/functions/fseek.texi: Update.
30640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
30641         REPLACE_FSEEK.
30642         * lib/stdio_.h (rpl_fseek): New declaration.
30643         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
30644         REPLACE_FSEEK.
30645
30646 2007-05-28  Bruno Haible  <bruno@clisp.org>
30647
30648         * lib/stdio_.h (fflush): More comments.
30649
30650 2007-05-28  Bruno Haible  <bruno@clisp.org>
30651
30652         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
30653         runtime test.
30654
30655 2007-05-28  Eric Blake  <ebb9@byu.net>
30656
30657         Improve lseek module.
30658         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
30659         * lib/unistd_.h (lseek): Scale back link warning message.
30660         * tests/test-lseek.c: Beef up test.
30661         * tests/test-lseek.sh: Exercise more facets of lseek.
30662         Reported by Bruno Haible.
30663
30664 2007-05-28  Bruno Haible  <bruno@clisp.org>
30665
30666         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
30667         to define.
30668
30669 2007-05-27  Bruno Haible  <bruno@clisp.org>
30670
30671         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
30672
30673 2007-05-27  Bruno Haible  <bruno@clisp.org>
30674
30675         * modules/openmp: New file.
30676         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
30677         Noah Misch.
30678
30679 2007-05-26  Bruno Haible  <bruno@clisp.org>
30680
30681         * modules/chdir-long (Depends-on): Add fchdir.
30682         * modules/chdir-safer (Depends-on): Likewise.
30683         * modules/fts (Depends-on): Likewise.
30684         * modules/fts-lgpl (Depends-on): Likewise.
30685         * modules/openat (Depends-on): Likewise.
30686         * modules/savewd (Depends-on): Likewise.
30687
30688 2007-05-24  Eric Blake  <ebb9@byu.net>
30689
30690         Fix lseek on mingw.
30691         * modules/lseek: New module.
30692         * m4/lseek.m4: New file.
30693         * lib/lseek.c: New file.
30694         * modules/lseek-tests: New file.
30695         * tests/test-lseek.c: New file.
30696         * tests/test-lseek.sh: New file.
30697         * MODULES.html.sh: Document lseek module.
30698         * modules/fflush (Depends-on): Add lseek, fseeko.
30699         * modules/fseeko (Depends-on): Likewise.
30700         * modules/ftello (Depends-on): Likewise.
30701         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
30702         broken.
30703         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
30704         broken.
30705         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
30706         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
30707         * lib/ftello.c (rpl_ftello): Likewise.
30708         * tests/test-fseeko.c (main): Test this.
30709         * tests/test-fseeko.sh: Likewise.
30710         * tests/test-ftello.c (main): Likewise.
30711         * tests/test-ftello.sh: Likewise.
30712         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
30713         implies replacing fseek.
30714         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
30715         HAVE_FTELLO.
30716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
30717         * modules/unistd (Makefile.am): Likewise.
30718         * lib/unistd_.h (lseek): Declare a replacement.
30719         * doc/functions/lseek.texi (lseek): Document this fix.
30720         * doc/functions/fseek.texi (fseek): Likewise.
30721         * doc/functions/ftell.texi (ftell): Likewise.
30722
30723 2007-05-24  Bruno Haible  <bruno@clisp.org>
30724
30725         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
30726         in the printed representation of a NaN.
30727         * tests/test-vasprintf-posix.c (test_function): Likewise.
30728         * tests/test-snprintf-posix.h (test_function): Likewise.
30729         * tests/test-sprintf-posix.h (test_function): Likewise.
30730         Reported by Eric Blake.
30731
30732 2007-05-23  Eric Blake  <ebb9@byu.net>
30733
30734         Fix fseeko/ftello on cygwin 1.5.24.
30735         * doc/functions/fseeko.texi (fseeko): Document the fix.
30736         * doc/functions/ftello.texi (ftello): Document the fix.
30737         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
30738         * doc/functions/stdout.text (stdout): New file.
30739         * doc/functions/stderr.text (stderr): New file.
30740         * doc/gnulib.texi (Function Substitutes): Use new files.
30741         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
30742         prior to 1.7.0.
30743         * tests/test-ftello.c (main): Likewise for ftello.
30744         * tests/test-fseeko.sh: New file.
30745         * tests/test-ftello.sh: New file.
30746         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
30747         with seekable stdin.
30748         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
30749         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
30750         (gl_REPLACE_FSEEKO): New macro.
30751         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
30752         * modules/fseeko (Files): Distribute fseeko.c.
30753         * modules/ftello (Files): Distribute ftello.c.
30754         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
30755         mode.
30756         * lib/ftello.c (rpl_ftello): New file.
30757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
30758         fseeko, ftello.
30759         (gl_STDIN_LARGE_OFFSET): New macro.
30760         * modules/stdio (Makefile.am): Perform the replacement.
30761         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
30762
30763 2007-05-23  Bruno Haible  <bruno@clisp.org>
30764
30765         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
30766         GNULIB_POSIXCHECK is defined.
30767
30768 2007-05-21  Bruno Haible  <bruno@clisp.org>
30769
30770         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
30771         Check also the output for NaN arguments. When cross-compiling, guess
30772         no on IRIX.
30773         * lib/vasnprintf.c: Update comments.
30774         * tests/test-vasnprintf-posix.c (strisnan): New function.
30775         (test_function): Use it.
30776         * tests/test-vasprintf-posix.c (strisnan): New function.
30777         (test_function): Use it.
30778         * tests/test-snprintf-posix.h (strisnan): New function.
30779         (test_function): Use it.
30780         * tests/test-sprintf-posix.h (strisnan): New function.
30781         (test_function): Use it.
30782         Reported by Eric Blake.
30783
30784 2007-05-20  Bruno Haible  <bruno@clisp.org>
30785
30786         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
30787         numbers that fails on BeOS.
30788         * doc/functions/frexpl.texi: Update.
30789
30790 2007-05-20  Jim Meyering  <jim@meyering.net>
30791
30792         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
30793         forced upon us by glibc-2.6.
30794
30795 2007-05-20  Bruno Haible  <bruno@clisp.org>
30796
30797         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
30798         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
30799         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
30800         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
30801         NEED_PRINTF_INFINITE.
30802         (is_infinitel): New function.
30803         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
30804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
30805         gl_PREREQ_VASNPRINTF_INFINITE.
30806         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
30807         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30808         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
30809         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
30810         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
30811         gl_PREREQ_VASNPRINTF_INFINITE.
30812         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30814         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30816         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30817         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30818         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30819         * doc/functions/fprintf.texi: Update.
30820         * doc/functions/printf.texi: Update.
30821         * doc/functions/snprintf.texi: Update.
30822         * doc/functions/sprintf.texi: Update.
30823         * doc/functions/vfprintf.texi: Update.
30824         * doc/functions/vprintf.texi: Update.
30825         * doc/functions/vsnprintf.texi: Update.
30826         * doc/functions/vsprintf.texi: Update.
30827
30828 2007-05-20  Bruno Haible  <bruno@clisp.org>
30829
30830         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
30831         was not found in libc.
30832         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30833
30834 2007-05-20  Bruno Haible  <bruno@clisp.org>
30835
30836         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30837         printed as "-nan" instead of "nan".
30838         * tests/test-vasprintf-posix.c (test_function): Likewise.
30839         * tests/test-snprintf-posix.h (test_function): Likewise.
30840         * tests/test-sprintf-posix.h (test_function): Likewise.
30841         Needed for HP-UX 11.
30842
30843 2007-05-20  Jim Meyering  <jim@meyering.net>
30844
30845         Fix buggy test for the fchownat-deref bug.
30846         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
30847         symlink required for the run-test.  Without it, this test would
30848         always declare that fchownat doesn't work, and client code would
30849         unnecessarily use the replacement function with fixed libc.
30850         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
30851         Reported by Greg Schafer.
30852
30853 2007-05-19  Bruno Haible  <bruno@clisp.org>
30854
30855         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
30856         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
30857         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
30858         Needed for IRIX 6.5 and Solaris 2.5.1.
30859
30860 2007-05-19  Bruno Haible  <bruno@clisp.org>
30861
30862         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
30863         (test_function): Skip tests involving -0.0 on platforms where
30864         -0.0 = 0.0.
30865         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
30866         (test_function): Skip tests involving -0.0 on platforms where
30867         -0.0 = 0.0.
30868         * tests/test-snprintf-posix.h (have_minus_zero): New function.
30869         (test_function): Skip tests involving -0.0 on platforms where
30870         -0.0 = 0.0.
30871         * tests/test-sprintf-posix.h (have_minus_zero): New function.
30872         (test_function): Skip tests involving -0.0 on platforms where
30873         -0.0 = 0.0.
30874         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
30875         tests.
30876         * tests/test-printf-posix.h (test_function): Likewise.
30877         * tests/test-printf-posix.output: Remove all -0.0 related results.
30878         Needed for IRIX 6.5.
30879
30880 2007-05-19  Bruno Haible  <bruno@clisp.org>
30881
30882         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30883         printed as "nan0x7fffffff" instead of "nan".
30884         * tests/test-vasprintf-posix.c (test_function): Likewise.
30885         * tests/test-snprintf-posix.h (test_function): Likewise.
30886         * tests/test-sprintf-posix.h (test_function): Likewise.
30887         * tests/test-fprintf-posix.h (NaN): Remove macro.
30888         (test_function): Remove all NaN related tests.
30889         * tests/test-printf-posix.h (NaN): Remove macro.
30890         (test_function): Remove all NaN related tests.
30891         * tests/test-printf-posix.output: Remove all NaN related results.
30892         Needed for IRIX 6.5.
30893
30894 2007-05-19  Bruno Haible  <bruno@clisp.org>
30895
30896         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
30897         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30898
30899 2007-05-19  Bruno Haible  <bruno@clisp.org>
30900
30901         * lib/float_.h: New file.
30902         * m4/float_h.m4: New file.
30903         * modules/float: New file.
30904         * modules/isnanl (Dependencies): Add float.
30905         * modules/isnanl-nolibm (Dependencies): Likewise.
30906         * modules/mathl (Dependencies): Likewise.
30907         * modules/printf-frexpl (Dependencies): Likewise.
30908         * modules/signbit (Dependencies): Likewise.
30909         * modules/vasnprintf (Dependencies): Likewise.
30910         * doc/headers/float.texi: Update.
30911
30912 2007-05-19  Jim Meyering  <jim@meyering.net>
30913
30914         * lib/utimens.c (gl_futimens): Rename from futimens,
30915         now that glibc-2.6 declares futimens.
30916         * lib/utimens.h: Likewise.
30917
30918 2007-05-19  Bruno Haible  <bruno@clisp.org>
30919
30920         Avoid test failures on mingw.
30921         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
30922         * tests/test-printf-posix.sh: Likewise.
30923         * tests/test-vfprintf-posix.sh: Likewise.
30924         * tests/test-vprintf-posix.sh: Likewise.
30925
30926 2007-05-19  Bruno Haible  <bruno@clisp.org>
30927
30928         Fix *printf result for NaN, Inf, -0.0 on mingw.
30929         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
30930         * lib/vasnprintf.c: Include math.h and isnan.h.
30931         (is_infinite_or_zero): New function.
30932         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
30933         values in the %f, %F, %e, %E, %g, %G directives.
30934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
30935         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30936         gl_PRINTF_INFINITE and test its result. Invoke
30937         gl_PREREQ_VASNPRINTF_INFINITE.
30938         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30939         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30941         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30942         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30943         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30944         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30945         * doc/functions/fprintf.texi: Update.
30946         * doc/functions/printf.texi: Update.
30947         * doc/functions/snprintf.texi: Update.
30948         * doc/functions/sprintf.texi: Update.
30949         * doc/functions/vfprintf.texi: Update.
30950         * doc/functions/vprintf.texi: Update.
30951         * doc/functions/vsnprintf.texi: Update.
30952         * doc/functions/vsprintf.texi: Update.
30953
30954 2007-05-19  Bruno Haible  <bruno@clisp.org>
30955
30956         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
30957         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
30958         Instead of multiplying with 10^k, set extra_zeroes to k.
30959         (scale10_round_long_double): Remove function.
30960
30961 2007-05-18  Bruno Haible  <bruno@clisp.org>
30962
30963         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
30964         introduced on 2007-05-06.
30965
30966 2007-05-18  Bruno Haible  <bruno@clisp.org>
30967
30968         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
30969         %g directives.
30970         * tests/test-vasprintf-posix.c (test_function): Likewise.
30971         * tests/test-snprintf-posix.h (test_function): Likewise.
30972         * tests/test-sprintf-posix.h (test_function): Likewise.
30973
30974 2007-05-18  Bruno Haible  <bruno@clisp.org>
30975
30976         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
30977         (strmatch): New function.
30978         (test_function): Test the %f directive on numbers of various exponents.
30979         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
30980         (strmatch): New function.
30981         (test_function): Test the %f directive on numbers of various exponents.
30982         * tests/test-snprintf-posix.h (strmatch): New function.
30983         (test_function): Test the %f directive on numbers of various exponents.
30984         * tests/test-sprintf-posix.h (strmatch): New function.
30985         (test_function): Test the %f directive on numbers of various exponents.
30986         * tests/test-snprintf-posix.c (SIZEOF): New macro.
30987         * tests/test-sprintf-posix.c (SIZEOF): New macro.
30988         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
30989         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
30990
30991 2007-05-18  Bruno Haible  <bruno@clisp.org>
30992
30993         Add support for 'long double' number output.
30994         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
30995         * lib/vasnprintf.c: Include math.h and float+.h.
30996         (mp_limb_t): New type.
30997         (GMP_LIMB_BITS): New macro.
30998         (mp_twolimb_t): New type.
30999         (GMP_TWOLIMB_BITS): New macro.
31000         (mpn_t): New type.
31001         (multiply, divide, convert_to_decimal, decode_long_double,
31002         scale10_round_long_double, scale10_round_decimal_long_double,
31003         floorlog10l): New functions.
31004         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
31005         for the %f, %F, %e, %E, %g, %G directives.
31006         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
31007         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31008         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
31009         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
31010         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31011         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31012         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31013         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31014         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31015         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31016         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31017         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
31018         * modules/snprintf-posix (Depends-on): Likewise.
31019         * modules/sprintf-posix (Depends-on): Likewise.
31020         * modules/vasnprintf-posix (Depends-on): Likewise.
31021         * modules/vasprintf-posix (Depends-on): Likewise.
31022         * modules/vfprintf-posix (Depends-on): Likewise.
31023         * modules/vsnprintf-posix (Depends-on): Likewise.
31024         * modules/vsprintf-posix (Depends-on): Likewise.
31025         * modules/vasnprintf (Files): Add lib/float+.h.
31026         * doc/functions/fprintf.texi: Update.
31027         * doc/functions/printf.texi: Update.
31028         * doc/functions/snprintf.texi: Update.
31029         * doc/functions/sprintf.texi: Update.
31030         * doc/functions/vfprintf.texi: Update.
31031         * doc/functions/vprintf.texi: Update.
31032         * doc/functions/vsnprintf.texi: Update.
31033         * doc/functions/vsprintf.texi: Update.
31034
31035 2007-05-18  Bruno Haible  <bruno@clisp.org>
31036
31037         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
31038
31039 2007-05-18  Bruno Haible  <bruno@clisp.org>
31040
31041         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
31042         for printing 64-bit integers. Needed for mingw.
31043
31044 2007-05-18  Bruno Haible  <bruno@clisp.org>
31045
31046         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
31047         gl_FUNC_FREXPL_WORKS.
31048         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
31049
31050 2007-05-18  Bruno Haible  <bruno@clisp.org>
31051
31052         * modules/frexpl-nolibm-tests: New file.
31053
31054         * modules/frexpl-nolibm: New file.
31055         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
31056
31057 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31058
31059         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
31060         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
31061         GCC 4.2, which otherwise issues a lot of warnings.
31062         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
31063         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
31064         Likewise.
31065         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
31066         * modules/iconv_open (iconv.h): Likewise.
31067         * modules/locale (locale.h): Likewise.
31068         * modules/netinet_in (netinet/in.h): Likewise.
31069         * modules/sys_select (sys_select.h): Likewise.
31070         * modules/sys_socket (sys/socket.h): Likewise.
31071         * modules/sys_stat (sys/stat.h): Likewise.
31072         * modules/sysexits (sysexits.h): Likewise.
31073         * modules/unistd (unistd.h): Likewise.
31074
31075 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31076
31077         * modules/closein-tests (Makefile.am): Distribute
31078         `test-closein.sh'.
31079
31080 2007-05-17  Bruno Haible  <bruno@clisp.org>
31081
31082         * tests/test-printf-posix.output: Renamed from
31083         tests/test-fprintf-posix.out.
31084         * modules/fprintf-posix-tests: Update.
31085         * modules/printf-posix-tests: Update.
31086         * modules/vfprintf-posix-tests: Update.
31087         * modules/vprintf-posix-tests: Update.
31088         * tests/test-fprintf-posix.sh: Update.
31089         * tests/test-printf-posix.sh: Update.
31090         * tests/test-vfprintf-posix.sh: Update.
31091         * tests/test-vprintf-posix.sh: Update.
31092         Reported by Ralf Wildenhues.
31093
31094 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31095
31096         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
31097         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
31098         GCC 4.2, which otherwise issues a lot of warnings.
31099         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
31100         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
31101         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
31102         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
31103         it should no longer be needed.
31104         * lib/string_.h: Likewise.
31105         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
31106         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
31107         * modules/inttypes (inttypes.h): Likewise.
31108         * modules/math (math.h): Likewise.
31109         * modules/search (search.h): Likewise.
31110         * modules/signal (signal.h): Likewise.
31111         * modules/stdint (stdint.h): Likewise.
31112         * modules/stdio (stdio.h): Likewise.
31113         * modules/stdlib (stdlib.h): Likewise.
31114         * modules/string (string.h): Likewise.
31115         * modules/sys_time (sys/time.h): Likewise.
31116         * modules/time (time.h): Likewise.
31117         * modules/wchar (wchar.h): Likewise.
31118         * modules/wctype (wtype.h): Likewise.
31119
31120 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31121
31122         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
31123
31124 2007-05-13  Bruno Haible  <bruno@clisp.org>
31125
31126         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
31127         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31128         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
31129         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
31130         (gl_PREREQ_STRTOK_R): Don't require it here.
31131
31132 2007-05-13  Bruno Haible  <bruno@clisp.org>
31133
31134         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
31135         when used in C++ mode.
31136
31137 2007-05-12  Bruno Haible  <bruno@clisp.org>
31138
31139         * lib/linebuffer.h: Tweak doc.
31140         * lib/linebuffer.c: Likewise.
31141
31142 2007-05-12  James Youngman  <jay@gnu.org>
31143
31144         * lib/linebuffer.c (readlinebuffer_delim): New function,
31145         like readlinebuffer, but use a caller-specified delimiter.
31146         (readlinebuffer): Just call readlinebuffer_delim with '\n'
31147         as the delimiter.
31148         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
31149
31150 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31151
31152         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
31153         * modules/openat (Files): Remove openat-die.c.
31154         (Depends-on): Add openat-die.
31155         * modules/openat-die: New module.
31156
31157 2007-05-06  Bruno Haible  <bruno@clisp.org>
31158
31159         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
31160         Update with info about Cygwin.
31161         * doc/functions/fprintf.texi: Update.
31162         * doc/functions/printf.texi: Update.
31163         * doc/functions/snprintf.texi: Update.
31164         * doc/functions/sprintf.texi: Update.
31165         * doc/functions/vfprintf.texi: Update.
31166         * doc/functions/vprintf.texi: Update.
31167         * doc/functions/vsnprintf.texi: Update.
31168         * doc/functions/vsprintf.texi: Update.
31169         Reported by Eric Blake.
31170
31171 2007-05-06  Bruno Haible  <bruno@clisp.org>
31172
31173         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
31174         padding ourselves for the floating-point directives.
31175         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
31176         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
31177         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31178         gl_PRINTF_FLAG_ZERO and test its result. Invoke
31179         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
31180         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31181         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31182         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31183         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31184         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31186         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31187         * tests/test-snprintf-posix.h (test_function): Also check the width
31188         and some flags in the %f directive.
31189         * tests/test-sprintf-posix.h (test_function): Likewise.
31190         * tests/test-vasnprintf-posix.c (test_function): Likewise.
31191         * tests/test-vasprintf-posix.c (test_function): Likewise.
31192         * doc/functions/fprintf.texi: Update.
31193         * doc/functions/printf.texi: Update.
31194         * doc/functions/snprintf.texi: Update.
31195         * doc/functions/sprintf.texi: Update.
31196         * doc/functions/vfprintf.texi: Update.
31197         * doc/functions/vprintf.texi: Update.
31198         * doc/functions/vsnprintf.texi: Update.
31199         * doc/functions/vsprintf.texi: Update.
31200
31201 2007-05-06  Bruno Haible  <bruno@clisp.org>
31202
31203         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
31204         pass the ' flag character to sprintf or snprintf.
31205         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
31206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
31207         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31208         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
31209         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
31210         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31211         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31213         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31214         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31216         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31217         * tests/test-snprintf-posix.h (test_function): Also check the grouping
31218         flag.
31219         * tests/test-sprintf-posix.h (test_function): Likewise.
31220         * tests/test-vasnprintf-posix.c (test_function): Likewise.
31221         * tests/test-vasprintf-posix.c (test_function): Likewise.
31222         * doc/functions/fprintf.texi: Update.
31223         * doc/functions/printf.texi: Update.
31224         * doc/functions/snprintf.texi: Update.
31225         * doc/functions/sprintf.texi: Update.
31226         * doc/functions/vfprintf.texi: Update.
31227         * doc/functions/vprintf.texi: Update.
31228         * doc/functions/vsnprintf.texi: Update.
31229         * doc/functions/vsprintf.texi: Update.
31230
31231 2007-05-01  Bruno Haible  <bruno@clisp.org>
31232
31233         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
31234
31235 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
31236
31237         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
31238         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
31239
31240 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
31241
31242         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
31243         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
31244         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
31245
31246 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
31247
31248         * lib/argp-help.c (struct hol_entry): New member `ord'.
31249         (HOL_ENTRY_PTRCMP): Use ord for comparison
31250         (hol_sort): Initialize ord.
31251
31252 2007-05-01  Bruno Haible  <bruno@clisp.org>
31253
31254         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
31255         Reported by Eric Blake.
31256         * doc/gnulib.texi (Function Substitutes): Update.
31257
31258 2007-05-01  Bruno Haible  <bruno@clisp.org>
31259
31260         * doc/functions.texi: Remove file, now redundant through
31261         doc/functions/*.texi.
31262
31263 2007-05-01  Bruno Haible  <bruno@clisp.org>
31264
31265         * modules/argp (Depends-on): Add sleep.
31266
31267 2007-05-01  Bruno Haible  <bruno@clisp.org>
31268
31269         * modules/sleep-tests: New file.
31270         * tests/test-sleep.c: New file.
31271
31272         * modules/sleep: New file.
31273         * lib/sleep.c: New file.
31274         * m4/sleep.m4: New file.
31275         * lib/unistd_.h (sleep): New declaration.
31276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
31277         HAVE_SLEEP.
31278         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
31279         * doc/functions/sleep.texi: Document the sleep module.
31280
31281 2007-05-01  Bruno Haible  <bruno@clisp.org>
31282
31283         * lib/sigprocmask.h: Remove file.
31284         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
31285         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
31286         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
31287         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
31288         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
31289         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
31290         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
31291         HAVE_SIGSET_T as a shell variable.
31292         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
31293         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
31294         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
31295         (Depends-on): Add signal. Remove verify.
31296         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
31297         (Include): Mention <signal.h> instead of sigprocmask.h.
31298         * NEWS: Mention the change.
31299         * lib/fatal-signal.c: Don't include sigprocmask.h.
31300
31301 2007-05-01  Bruno Haible  <bruno@clisp.org>
31302
31303         * modules/signal: New file.
31304         * lib/signal_.h: New file.
31305         * m4/signal_h.m4: New file.
31306
31307 2007-05-01  Bruno Haible  <bruno@clisp.org>
31308
31309         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
31310         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
31311         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
31312         HAVE_WCTYPE_CTMP_BUG into wctype.h.
31313
31314 2007-05-01  Bruno Haible  <bruno@clisp.org>
31315
31316         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
31317         configure time.
31318         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
31319         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
31320         * modules/sys_stat (Makefile.am): Substitute their values into
31321         sys/stat.h.
31322
31323 2007-05-01  Bruno Haible  <bruno@clisp.org>
31324
31325         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
31326         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
31327         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
31328
31329 2007-05-01  Bruno Haible  <bruno@clisp.org>
31330
31331         * doc/header/assert.texi: Undo last change: don't mention the gnulib
31332         'assert' module here.
31333
31334 2007-05-01  Bruno Haible  <bruno@clisp.org>
31335
31336         * doc/functions/*.texi: New files.
31337         * doc/functions/google-ranking.txt: New file.
31338         * doc/gnulib.texi (Function Substitutes): New chapter.
31339         (ctime, inet_ntoa): Remove sections.
31340         * doc/ctime.texi: Remove file.
31341         * doc/inet_ntoa.texi: Remove file.
31342         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
31343         dependencies.
31344         (%.info): New rule, specifying a --reference-limit.
31345
31346 2007-05-01  Bruno Haible  <bruno@clisp.org>
31347
31348         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
31349
31350 2007-05-01  Bruno Haible  <bruno@clisp.org>
31351
31352         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
31353         the portability of 'mkdir' to mingw systems.
31354
31355 2007-05-01  Bruno Haible  <bruno@clisp.org>
31356
31357         * doc/headers/google-ranking.txt: New file.
31358
31359 2007-04-30  Eric Blake  <ebb9@byu.net>
31360
31361         Prefer fseeko to fseek.
31362         * modules/getpass (Depends-on): Add fseeko.
31363         * lib/getpass.c (getpass): Use fseeko, not fseek.
31364
31365 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
31366
31367         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
31368         assumes the sorting is stable, while most qsort implementations
31369         are not.  Use argument addresses to ensure they never compare as
31370         equal.
31371
31372         * tests/test-argp-2.sh (usage-indent test): Fix output
31373         (func_compare): Restore diff options
31374         * tests/test-argp.c: Restore #include "progname.h"
31375
31376 2007-04-29  Bruno Haible  <bruno@clisp.org>
31377
31378         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
31379         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31380         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
31381         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31382         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
31383         (configure.ac): Define CHECK_SNPRINTF_POSIX.
31384         (TESTS, check_PROGRAMS): Add test-snprintf.
31385         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
31386         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
31387         (TESTS, check_PROGRAMS): Add test-vsnprintf.
31388         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
31389         assertions that fail on HP-UX, OSF/1, or IRIX.
31390         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
31391
31392 2007-04-29  Bruno Haible  <bruno@clisp.org>
31393
31394         * MODULES.html.sh (posix_functions): Remove 'contents'.
31395
31396 2007-04-29  Karl Berry  <karl@gnu.org>
31397
31398         * config/srclist.txt (gendocs_template_min): new entry.
31399
31400 2007-04-29  Bruno Haible  <bruno@clisp.org>
31401
31402         Work around fpurge bug on BSD systems.
31403         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
31404         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
31405         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
31406         fpurge to rpl_fpurge if the system already has this function.
31407         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
31408         the case where the system already has this function. Correct invariants
31409         on BSD systems.
31410         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
31411         BSD systems.
31412
31413 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31414
31415         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
31416         proposed by Sven Verdoolaege.
31417
31418         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
31419         options.
31420         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
31421         (usage and help tests): Update
31422
31423 2007-04-29  Bruno Haible  <bruno@clisp.org>
31424
31425         * tests/test-fflush.c (main): Use a file of size 17, not 10.
31426         Print more information in case of failure. Disable a test on BeOS.
31427
31428 2007-04-29  Bruno Haible  <bruno@clisp.org>
31429
31430         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
31431         This helps debugging on systems on which no gdb is available.
31432
31433 2007-04-29  Bruno Haible  <bruno@clisp.org>
31434
31435         * lib/freading.h: Improve comments.
31436         * lib/fwriting.h: Likewise.
31437         * tests/test-freading.c (main): Don't check freading immediately after
31438         repositioning. Needed for glibc.
31439
31440 2007-04-29  Bruno Haible  <bruno@clisp.org>
31441
31442         * lib/freading.c (freading): Trivial simplification.
31443
31444 2007-04-28  Bruno Haible  <bruno@clisp.org>
31445
31446         * tests/test-fwriting.c (main): Also test the interaction between
31447         fflush and fwriting.
31448         * modules/fwriting-tests (Depends-on): Add fflush.
31449
31450         * tests/test-freading.c (main): Also test the interaction between
31451         fflush and freading.
31452         * modules/freading-tests (Depends-on): Add fflush.
31453
31454 2007-04-28  Bruno Haible  <bruno@clisp.org>
31455
31456         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
31457         fseeko and ftello.
31458         Suggested by Eric Blake.
31459
31460 2007-04-28  Jim Meyering  <jim@meyering.net>
31461
31462         Avoid false-negative in gl_STDINT_H's C99 conformance test.
31463         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
31464         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
31465
31466 2007-04-27  Eric Blake  <ebb9@byu.net>
31467
31468         * doc/headers/assert.texi (assert.h): Document assert module use.
31469
31470 2007-04-27  Bruno Haible  <bruno@clisp.org>
31471
31472         * doc/headers/*.texi: New files.
31473         * doc/gnulib.texi (Header File Substitutes): New chapter.
31474         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
31475         dependencies.
31476         (standards.info ,standards.html, standards.dvi): Update dependencies.
31477         (mostlyclean, clean): New targets.
31478
31479 2007-04-27  Bruno Haible  <bruno@clisp.org>
31480
31481         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
31482         * modules/sysexits (Files, Makefile.am): Update.
31483
31484         * lib/sys_socket_.h: Renamed from lib/socket_.h.
31485         * modules/sys_socket (Files, Makefile.am): Update.
31486
31487         * lib/sys_stat_.h: Renamed from lib/stat_.h.
31488         * modules/sys_stat (Files, Makefile.am): Update.
31489
31490 2007-04-27  Eric Blake  <ebb9@byu.net>
31491
31492         * lib/freading.h: Improve comments.
31493         * lib/fwriting.h: Likewise.
31494         * lib/fflush.c: Likewise.
31495
31496         Fix closein for mingw.
31497         * modules/closein-tests: Add tests for closein.
31498         * tests/test-closein.c: New file.
31499         * tests/test-closein.sh: Likewise.
31500         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
31501         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
31502
31503 2007-04-27  Bruno Haible  <bruno@clisp.org>
31504
31505         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
31506         version is < 6.
31507         * lib/math_.h [__DECC]: Likewise.
31508         * lib/stdio_.h [__DECC]: Likewise.
31509         * lib/stdlib_.h [__DECC]: Likewise.
31510         * lib/string_.h [__DECC]: Likewise.
31511         * lib/time_.h [__DECC]: Likewise.
31512         * lib/wchar_.h [__DECC]: Likewise.
31513         * lib/wctype_.h [__DECC]: Likewise.
31514
31515 2007-04-27  Bruno Haible  <bruno@clisp.org>
31516
31517         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
31518
31519 2007-04-27  Bruno Haible  <bruno@clisp.org>
31520
31521         * lib/fflush.c: Add comments.
31522         * modules/fpurge-tests (Depends-on): Add fflush.
31523         * modules/freadable-tests (Depends-on): Likewise.
31524         * modules/fwritable-tests (Depends-on): Likewise.
31525
31526 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
31527
31528         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
31529         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
31530         Report by Bruno Haible <bruno@clisp.org>.
31531
31532 2007-04-26  Eric Blake  <ebb9@byu.net>
31533
31534         Fix fflush on mingw.
31535         * modules/fflush (Depends-on): Add freading.
31536         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
31537         but unread data.
31538
31539 2007-04-26  Eric Blake  <ebb9@byu.net>
31540         and Bruno Haible  <bruno@clisp.org>
31541
31542         Implement freading and fwriting.
31543         * lib/freading.c: New file.
31544         * lib/freading.h: Likewise.
31545         * m4/freading.m4: Likewise.
31546         * modules/freading: Likewise.
31547         * modules/freading-tests: Likewise.
31548         * tests/test-freading.c: Likewise.
31549         * lib/fwriting.c: New file.
31550         * lib/fwriting.h: Likewise.
31551         * m4/fwriting.m4: Likewise.
31552         * modules/fwriting: Likewise.
31553         * modules/fwriting-tests: Likewise.
31554         * tests/test-fwriting.c: Likewise.
31555         * MODULES.html.sh (File stream based Input/Output): Mention them.
31556
31557 2007-04-26  Bruno Haible  <bruno@clisp.org>
31558
31559         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
31560         'long' when we assume it.
31561         Suggested by Eric Blake.
31562
31563 2007-04-26  Bruno Haible  <bruno@clisp.org>
31564
31565         Ensure fseeko, ftello are declared on glibc systems.
31566         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
31567         * modules/fseeko (configure.ac-early): Likewise.
31568         * modules/ftello (configure.ac-early): Likewise.
31569         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
31570         AC_FUNC_FSEEKO for this.
31571         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
31572         (gl_CHECK_FSEEKO): Remove macro.
31573
31574 2007-04-26  Bruno Haible  <bruno@clisp.org>
31575
31576         * tests/test-fflush.c (main): Also check the ftell result after
31577         fflush and fseek/fseeko.
31578         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
31579         file descriptor position cache in the stream.
31580         * lib/fseeko.c (rpl_fseeko): Likewise.
31581
31582 2007-04-26  Bruno Haible  <bruno@clisp.org>
31583
31584         * modules/fflush-tests (Depends-on): Add fseeko.
31585
31586 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
31587             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31588
31589         * lib/argz_.h: ensure error_t definition is obtained in same
31590         mechanism system argz.h would have.
31591         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
31592         argz facilities are known bad.  Err on the side of caution if
31593         cross-compiling.
31594
31595 2007-04-25  Eric Blake  <ebb9@byu.net>
31596
31597         * lib/fpurge.c (includes): Use stdlib.h for free.
31598         * tests/test-fflush.c (main): Also test fflush-fseeko.
31599
31600 2007-04-25  Bruno Haible  <bruno@clisp.org>
31601
31602         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
31603         * lib/fseeko.c: New file.
31604         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
31605         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
31606         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
31607         gl_FUNC_FSEEKO.
31608         (gl_FUNC_FSEEKO): Invoke it.
31609         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
31610         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
31611         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
31612
31613 2007-04-25  Bruno Haible  <bruno@clisp.org>
31614
31615         * modules/fflush (Depends-on): Add ftello.
31616
31617 2007-04-25  Bruno Haible  <bruno@clisp.org>
31618
31619         * modules/ftello-tests: New file.
31620         * tests/test-ftello.c: New file.
31621
31622         * modules/ftello: New file.
31623         * m4/ftello.m4: New file.
31624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
31625         HAVE_FTELLO.
31626         * lib/stdio_.h (ftello): New declaration.
31627         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
31628         HAVE_FTELLO.
31629
31630 2007-04-25  Bruno Haible  <bruno@clisp.org>
31631
31632         * modules/fseeko-tests: New file.
31633         * tests/test-fseeko.c: New file.
31634
31635         * modules/fseeko: New file.
31636         * m4/fseeko.m4: New file.
31637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
31638         HAVE_FSEEKO.
31639         * lib/stdio_.h (fseeko): New declaration.
31640         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
31641         HAVE_FSEEKO.
31642
31643 2007-04-25  Bruno Haible  <bruno@clisp.org>
31644
31645         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
31646
31647 2007-04-25  Bruno Haible  <bruno@clisp.org>
31648
31649         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
31650         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
31651         * tests/test-unistd.c: Likewise.
31652         * tests/test-fcntl.c: Likewise.
31653
31654 2007-04-23  Eric Blake  <ebb9@byu.net>
31655
31656         * lib/fflush.c: Fix missing include.
31657         Reported by Bruno Haible.
31658
31659 2007-04-23  Bruno Haible  <bruno@clisp.org>
31660
31661         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
31662         Reported by Eric Blake.
31663
31664 2007-04-23  Bruno Haible  <bruno@clisp.org>
31665
31666         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
31667
31668 2007-04-23  Bruno Haible  <bruno@clisp.org>
31669
31670         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
31671
31672 2007-04-23  Bruno Haible  <bruno@clisp.org>
31673
31674         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
31675         Needed on HP-UX 11.
31676
31677 2007-04-16  Eric Blake  <ebb9@byu.net>
31678
31679         Make fflush rely on fpurge.
31680         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
31681         open coding all variants.
31682         * modules/fflush (Depends-on): Add fpurge and unistd.
31683         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
31684         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
31685
31686         Fix --with-tests compilation on cygwin.
31687         * modules/argmatch-tests (Makefile.am): List gnulib library first
31688         in LDADD.
31689         * modules/argp-tests (Makefile.am): Likewise.
31690         * modules/array-list-tests (Makefile.am): Likewise.
31691         * modules/array-oset-tests (Makefile.am): Likewise.
31692         * modules/avltree-list-tests (Makefile.am): Likewise.
31693         * modules/avltree-oset-tests (Makefile.am): Likewise.
31694         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31695         * modules/carray-list-tests (Makefile.am): Likewise.
31696         * modules/dirname-tests (Makefile.am): Likewise.
31697         * modules/frexp-tests (Makefile.am): Likewise.
31698         * modules/isnanl-tests (Makefile.am): Likewise.
31699         * modules/linked-list-tests (Makefile.am): Likewise.
31700         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31701         * modules/lock-tests (Makefile.am): Likewise.
31702         * modules/rbtree-list-tests (Makefile.am): Likewise.
31703         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31704         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31705         * modules/tls-tests (Makefile.am): Likewise.
31706         * modules/tsearch-tests (Makefile.am): Likewise.
31707         * modules/xvasprintf-tests (Makefile.am): Likewise.
31708
31709         Fix fpurge for cygwin.
31710         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
31711         value.
31712         * modules/fpurge-tests (Depends-on): Clean up trash.
31713
31714 2007-04-16  Simon Josefsson  <simon@josefsson.org>
31715
31716         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
31717
31718         * m4/autobuild.m4: Re-indent.
31719
31720 2007-04-13  Bruno Haible  <bruno@clisp.org>
31721
31722         * modules/fpurge-tests: New file.
31723         * tests/test-fpurge.c: New file.
31724
31725         * modules/fpurge: New file.
31726         * lib/fpurge.h: New file.
31727         * lib/fpurge.c: New file.
31728         * m4/fpurge.m4: New file.
31729
31730 2007-04-13  Bruno Haible  <bruno@clisp.org>
31731
31732         * modules/fbufmode-tests: New file.
31733         * tests/test-fbufmode.c: New file.
31734
31735         * modules/fbufmode: New file.
31736         * lib/fbufmode.h: New file.
31737         * lib/fbufmode.c: New file.
31738         * m4/fbufmode.m4: New file.
31739
31740 2007-04-13  Bruno Haible  <bruno@clisp.org>
31741
31742         * modules/fwritable-tests: New file.
31743         * tests/test-fwritable.c: New file.
31744
31745         * modules/fwritable: New file.
31746         * lib/fwritable.h: New file.
31747         * lib/fwritable.c: New file.
31748         * m4/fwritable.m4: New file.
31749
31750 2007-04-13  Bruno Haible  <bruno@clisp.org>
31751
31752         * modules/freadable-tests: New file.
31753         * tests/test-freadable.c: New file.
31754
31755         * modules/freadable: New file.
31756         * lib/freadable.h: New file.
31757         * lib/freadable.c: New file.
31758         * m4/freadable.m4: New file.
31759
31760 2007-04-13  Bruno Haible  <bruno@clisp.org>
31761
31762         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
31763         MOSTLYCLEANFILES.
31764
31765 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
31766
31767         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
31768         gzip bootstrap.conf to avoid dragging in i18n machinery.
31769         (gnulib_tool_option): Use it.
31770
31771 2007-04-13  Bruno Haible  <bruno@clisp.org>
31772
31773         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
31774         %F directives.
31775         * tests/test-vasprintf-posix.c (test_function): Likewise.
31776         * tests/test-snprintf-posix.h (test_function): Likewise.
31777         * tests/test-sprintf-posix.h (test_function): Likewise.
31778         * tests/test-fprintf-posix.h (test_function): Likewise.
31779         * tests/test-printf-posix.h (test_function): Likewise.
31780         * tests/test-fprintf-posix.out: Likewise.
31781
31782 2007-04-13  Bruno Haible  <bruno@clisp.org>
31783
31784         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
31785         * modules/tls-tests (configure.ac): Likewise.
31786         Reported by Arto C. Nirkko <anirkko@insel.ch>.
31787
31788 2007-04-13  Bruno Haible  <bruno@clisp.org>
31789
31790         * lib/tls.c (glthread_tls_get): Fix return type.
31791         Patch by Arto C. Nirkko <anirkko@insel.ch>.
31792
31793 2007-04-12  Eric Blake  <ebb9@byu.net>
31794
31795         * modules/gettime (Depends-on): Remove gettime.
31796         Reported by Dmitry V. Levin.
31797
31798 2007-04-12  Bruno Haible  <bruno@clisp.org>
31799
31800         * modules/fflush (Include): Mention <stdio.h>.
31801         * modules/strtoimax (Include): Mention <inttypes.h>.
31802         * modules/strtoumax (Include): Likewise.
31803
31804 2007-04-12  Eric Blake  <ebb9@byu.net>
31805
31806         * .cvsignore: New file.
31807         * .gitignore: Likewise.
31808
31809 2007-04-12  Bruno Haible  <bruno@clisp.org>
31810
31811         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
31812         not before, since $(LDADD) often contains libgnu.a.
31813         * modules/striconv-tests (test_striconv_LDADD): Likewise.
31814         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
31815         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
31816         Needed on Cygwin.
31817
31818 2007-04-12  Eric Blake  <ebb9@byu.net>
31819
31820         Work around glibc's failure to flush stdin on fclose.
31821         * lib/closein.c (close_stdin): Flush stdin before closing.
31822
31823         Work around glibc's failure to reset seekable stdin on exit.
31824         * modules/closein: New module.
31825         * lib/closein.c: New file.
31826         * lib/closein.h: Likewise.
31827         * m4/closein.m4: Likewise.
31828         * MODULES.html.sh (File stream based Input/Output): Document it.
31829
31830 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31831
31832         * gnulib-tool: Rename generated 'autobuild' script to
31833         'do-autobuild' in --create-megatestdir output.
31834
31835         * doc/gnulib.texi (Build robot for gnulib): Fix.
31836
31837 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31838
31839         * modules/sysexits (Depends-on): Add absolute-header.
31840
31841 2007-04-12  Eric Blake  <ebb9@byu.net>
31842
31843         No need to preserve errno on success.
31844         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
31845         Reported by Bruno Haible.
31846
31847 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31848
31849         * MODULES.html.sh (Support for maintaining and releasing
31850         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
31851
31852 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31853
31854         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
31855
31856 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31857
31858         * modules/autobuild: New module.
31859
31860         * m4/autobuild.m4: New file.
31861
31862 2007-04-11  Bruno Haible  <bruno@clisp.org>
31863
31864         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
31865         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
31866         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
31867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
31868         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31869         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31870         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31871         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31872         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31873         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31874         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
31875         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31876         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31877         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
31878         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31879         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31880         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
31881         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31882         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31883         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
31884         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31885         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31886         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
31887         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31888         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31889         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
31890         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31891         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31892         Reported by Eric Blake.
31893
31894 2007-04-11  Bruno Haible  <bruno@clisp.org>
31895
31896         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
31897
31898 2007-04-10  Bruno Haible  <bruno@clisp.org>
31899
31900         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
31901         for NaN and Infinity. Needed on FreeBSD 6.1.
31902         * tests/test-vasnprintf-posix.c (test_function): Undo last change
31903         regarding results for "%010a" of Infinity and NaN.
31904         * tests/test-vasprintf-posix.c (test_function): Likewise.
31905         * tests/test-snprintf-posix.h (test_function): Likewise.
31906         * tests/test-sprintf-posix.h (test_function): Likewise.
31907         * tests/test-fprintf-posix.h (test_function): Likewise.
31908         * tests/test-printf-posix.h (test_function): Likewise.
31909         * tests/test-fprintf-posix.out: Likewise.
31910
31911 2007-04-10  Bruno Haible  <bruno@clisp.org>
31912
31913         * modules/locale-tests: New file.
31914         * tests/test-locale.c: New file.
31915
31916         * modules/locale: New file.
31917         * lib/locale_.h: New file.
31918         * m4/locale_h.m4: New file.
31919
31920 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
31921             Bruno Haible  <bruno@clisp.org>
31922
31923         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
31924         be determined, test for availability of the copysignf, copysign,
31925         copysignl functions.
31926         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
31927         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
31928         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
31929
31930 2007-04-09  Eric Blake  <ebb9@byu.net>
31931
31932         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
31933         * modules/stdio (Makefile.am): Support fflush.
31934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31935         * modules/fflush: New file.
31936         * lib/fflush.c: Likewise.
31937         * m4/fflush.m4: Likewise.
31938         * modules/fflush-tests: New test.
31939         * tests/test-fflush.c: Likewise.
31940         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
31941
31942 2007-04-06  Bruno Haible  <bruno@clisp.org>
31943
31944         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
31945         (VASNPRINTF): Use signbit for faster determination whether to print a
31946         minus sign.
31947         * modules/vasnprintf (Files): Remove lib/float+.h.
31948         * modules/fprintf-posix (Depends-on): Add signbit.
31949         * modules/snprintf-posix (Depends-on): Likewise.
31950         * modules/sprintf-posix (Depends-on): Likewise.
31951         * modules/vasnprintf-posix (Depends-on): Likewise.
31952         * modules/vasprintf-posix (Depends-on): Likewise.
31953         * modules/vfprintf-posix (Depends-on): Likewise.
31954         * modules/vsnprintf-posix (Depends-on): Likewise.
31955         * modules/vsprintf-posix (Depends-on): Likewise.
31956
31957 2007-04-06  Bruno Haible  <bruno@clisp.org>
31958
31959         * tests/test-frexp.c (main): Test also the sign bit of zero results.
31960         * tests/test-frexpl.c (main): Likewise.
31961         * tests/test-ldexpl.c (main): Likewise.
31962         * modules/frexp-tests (Depends-on): Add signbit.
31963         * modules/frexpl-tests (Depdends-on): Likewise.
31964         * modules/ldexpl-tests (Depdends-on): Likewise.
31965
31966 2007-04-06  Bruno Haible  <bruno@clisp.org>
31967
31968         * modules/signbit-tests: New file.
31969         * tests/test-signbit.c: New file.
31970
31971         * modules/signbit: New file.
31972         * lib/signbitf.c: New file.
31973         * lib/signbitd.c: New file.
31974         * lib/signbitl.c: New file.
31975         * m4/signbit.m4: New file.
31976         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
31977         (signbit): New macro.
31978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
31979         REPLACE_SIGNBIT.
31980         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
31981         REPLACE_FREXPL into math.h.
31982
31983 2007-04-06  Bruno Haible  <bruno@clisp.org>
31984
31985         * modules/isnanf-nolibm-tests: New file.
31986         * tests/test-isnanf.c: New file.
31987
31988         * modules/isnanf-nolibm: New file.
31989         * lib/isnanf.h: New file.
31990         * lib/isnanf.c: New file.
31991         * lib/isnan.c: Consider the USE_FLOAT macro.
31992         * m4/isnanf.m4: New file.
31993
31994 2007-04-06  Bruno Haible  <bruno@clisp.org>
31995
31996         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
31997         (Link): New section.
31998
31999         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
32000
32001 2007-04-06  Bruno Haible  <bruno@clisp.org>
32002
32003         Assume the 'long double' type.
32004         * m4/longdouble.m4: Remove file.
32005         * config/srclist.txt: Don't mention longdouble.m4.
32006         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
32007         * lib/float+.h: Likewise.
32008         * lib/frexp.c: Likewise.
32009         * lib/printf-args.h: Likewise.
32010         * lib/printf-args.c: Likewise.
32011         * lib/printf-frexp.c: Likewise.
32012         * lib/printf-parse.c: Likewise.
32013         * lib/vasnprintf.c: Likewise.
32014         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
32015         * m4/intl.m4: Likewise.
32016         * m4/isnanl.m4: Likewise.
32017         * m4/printf.m4: Likewise.
32018         * m4/printf-frexpl.m4: Likewise.
32019         * m4/vasnprintf.m4: Likewise.
32020         * modules/allocsa (Files): Remove m4/longdouble.m4.
32021         * modules/gettext (Files): Likewise.
32022         * modules/relocatable-prog-wrapper (Files): Likewise.
32023         * modules/vasnprintf (Files): Likewise.
32024         * modules/isnanl (Files): Likewise.
32025         (Include): Simplify.
32026         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
32027         (Include): Simplify.
32028         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
32029         (Include): Simplify.
32030         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
32031         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32032         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
32033         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32034         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32035         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32036         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
32037         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32038         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32039         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32040         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
32041         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32042         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
32043         * tests/test-isnanl.c: Likewise.
32044         * tests/test-snprintf-posix.h: Likewise.
32045         * tests/test-sprintf-posix.h: Likewise.
32046         * tests/test-vasnprintf-posix.c: Likewise.
32047         * tests/test-vasnprintf-posix2.c: Likewise.
32048         * tests/test-vasprintf-posix.c: Likewise.
32049
32050 2007-04-06  Bruno Haible  <bruno@clisp.org>
32051
32052         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
32053         * lib/math_.h [__DECC]: Include the overridden include file through
32054         #include_next, outside the double-inclusion guard.
32055         * lib/stdio_.h [__DECC]: Likewise.
32056         * lib/stdlib_.h [__DECC]: Likewise.
32057         * lib/string_.h [__DECC]: Likewise.
32058         * lib/time_.h [__DECC]: Likewise.
32059         * lib/wchar_.h [__DECC]: Likewise.
32060         * lib/wctype_.h [__DECC]: Likewise.
32061         * lib/inttypes_.h [__DECC]: Likewise.
32062         Reported by Albert Chin <china@thewrittenword.com> in
32063         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
32064
32065 2007-04-04  Eric Blake  <ebb9@byu.net>
32066
32067         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
32068         1.5.x.
32069
32070 2007-04-04  Bruno Haible  <bruno@clisp.org>
32071
32072         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
32073         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
32074
32075 2007-04-04  Bruno Haible  <bruno@clisp.org>
32076
32077         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
32078         results for "%010a" of Infinity and NaN.
32079         * tests/test-vasprintf-posix.c (test_function): Likewise.
32080         * tests/test-snprintf-posix.h (test_function): Likewise.
32081         * tests/test-sprintf-posix.h (test_function): Likewise.
32082         * tests/test-fprintf-posix.h (test_function): Remove these tests.
32083         * tests/test-printf-posix.h (test_function): Likewise.
32084         * tests/test-fprintf-posix.out: Update.
32085         Needed for FreeBSD 6.1.
32086
32087 2007-04-04  Bruno Haible  <bruno@clisp.org>
32088
32089         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
32090         directly used by the gnulib modules nor by gnulib-tool.
32091
32092 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
32093
32094         * DEPENDENCIES: Give overall description of version dependency
32095         desirability.  Use more-typical names for apps.
32096         Add shell, coreutils, diffutils, grep, tar, gzip.
32097
32098 2007-04-04  Simon Josefsson  <simon@josefsson.org>
32099
32100         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
32101
32102 2007-04-04  Karl Berry  <karl@gnu.org>
32103
32104         * MODULES.html.sh (func_module): missing '.
32105
32106 2007-04-03  Bruno Haible  <bruno@clisp.org>
32107
32108         * modules/argmatch-tests (Makefile.am): New variable
32109         test_argmatch_LDADD.
32110         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
32111         * modules/array-list-tests (Makefile.am): New variable
32112         test_array_list_LDADD.
32113         * modules/array-oset-tests (Makefile.am): New variable
32114         test_array_oset_LDADD.
32115         * modules/avltree-list-tests (Makefile.am): New variable
32116         test_avltree_list_LDADD.
32117         * modules/avltree-oset-tests (Makefile.am): New variable
32118         test_avltree_oset_LDADD.
32119         * modules/avltreehash-list-tests (Makefile.am): New variable
32120         test_avltreehash_list_LDADD.
32121         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
32122         test_canonicalize_lgpl_LDADD.
32123         * modules/carray-list-tests (Makefile.am): New variable
32124         test_carray_list_LDADD.
32125         * modules/dirname-tests (Makefile.am): New variable
32126         test_dirname_LDADD.
32127         * modules/linked-list-tests (Makefile.am): New variable
32128         test_linked_list_LDADD.
32129         * modules/linkedhash-list-tests (Makefile.am): New variable
32130         test_linkedhash_list_LDADD.
32131         * modules/rbtree-list-tests (Makefile.am): New variable
32132         test_rbtree_list_LDADD.
32133         * modules/rbtree-oset-tests (Makefile.am): New variable
32134         test_rbtree_oset_LDADD.
32135         * modules/rbtreehash-list-tests (Makefile.am): New variable
32136         test_rbtreehash_list_LDADD.
32137         * modules/xvasprintf-tests (Makefile.am): New variable
32138         test_xvasprintf_LDADD.
32139         Reported by Eric Blake.
32140
32141 2007-04-03  Eric Blake  <ebb9@byu.net>
32142
32143         * DEPENDENCIES: Weaken m4 requirements.
32144
32145 2007-04-03  Bruno Haible  <bruno@clisp.org>
32146
32147         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
32148         * modules/isnanl-tests (configure.ac): Likewise.
32149
32150 2007-04-03  Ben Pfaff  <blp@gnu.org>
32151
32152         * modules/iconv_open: Add $(srcdir)/ to source directory
32153         references in Makefile fragments that call gperf, to fix VPATH
32154         builds.
32155
32156 2007-04-03  Bruno Haible  <bruno@clisp.org>
32157
32158         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
32159         * lib/ldexpl.c: Undo last change.
32160
32161 2007-04-03  Bruno Haible  <bruno@clisp.org>
32162
32163         * modules/printf-frexpl (Depends-on): Undo last change.
32164         (Files): Add m4/ldexpl.m4.
32165
32166 2007-04-03  Bruno Haible  <bruno@clisp.org>
32167
32168         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
32169         * modules/isnanl (Link): New section.
32170
32171         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
32172         * modules/frexp (Link): New section.
32173
32174         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
32175         * modules/frexpl (Link): New section.
32176
32177         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
32178         * modules/ldexpl (Link): New section.
32179
32180 2007-04-03  Bruno Haible  <bruno@clisp.org>
32181
32182         * modules/TEMPLATE-EXTENDED: New file.
32183         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
32184
32185 2007-04-03  Bruno Haible  <bruno@clisp.org>
32186
32187         * DEPENDENCIES: New file.
32188         Suggested by Simon Josefsson.
32189
32190 2007-04-03  Bruno Haible  <bruno@clisp.org>
32191
32192         * doc/gnulib.texi: Escape @.
32193
32194 2007-04-03  James Youngman  <jay@gnu.org>
32195         and Paul Eggert  <eggert@cs.ucla.edu>
32196
32197         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
32198         birthtime on all systems that have birthtime, not just those which
32199         use st_birthtimensec rather than st_birthtim.  Putting zero in
32200         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
32201         that the birth time is not available for files on an NFS mount.
32202
32203 2007-04-03  Simon Josefsson  <simon@josefsson.org>
32204
32205         * modules/memxor: Move back from crypto/, suggested by Bruno.
32206         * modules/crypto/hmac-sha1: Fix memxor dependency.
32207
32208         * modules/crypto/gc: Moved from ../.
32209
32210 2007-04-02  Eric Blake  <ebb9@byu.net>
32211
32212         * lib/ldexpl.c (includes): Avoid libm.
32213
32214         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
32215
32216 2007-04-02  Bruno Haible  <bruno@clisp.org>
32217
32218         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
32219         on IRIX.
32220
32221 2007-04-02  Bruno Haible  <bruno@clisp.org>
32222
32223         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
32224         x86 or x86_64 platforms running MacOS X.
32225         Reported by Ryan Schmidt <@ryandesign.com>.
32226
32227 2007-04-02  Bruno Haible  <bruno@clisp.org>
32228
32229         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
32230         i386.
32231
32232 2007-04-01  Simon Josefsson  <simon@josefsson.org>
32233
32234         * modules/crypto/arcfour: Moved from ../.
32235         * modules/crypto/arcfour-tests: Moved from ../.
32236         * modules/crypto/arctwo: Moved from ../.
32237         * modules/crypto/arctwo-tests: Moved from ../.
32238         * modules/crypto/des: Moved from ../.
32239         * modules/crypto/des-tests: Moved from ../.
32240         * modules/crypto/gc-arcfour: Moved from ../.
32241         * modules/crypto/gc-arcfour-tests: Moved from ../.
32242         * modules/crypto/gc-arctwo: Moved from ../.
32243         * modules/crypto/gc-arctwo-tests: Moved from ../.
32244         * modules/crypto/gc-des: Moved from ../.
32245         * modules/crypto/gc-des-tests: Moved from ../.
32246         * modules/crypto/gc-hmac-md5: Moved from ../.
32247         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
32248         * modules/crypto/gc-hmac-sha1: Moved from ../.
32249         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
32250         * modules/crypto/gc-md2: Moved from ../.
32251         * modules/crypto/gc-md2-tests: Moved from ../.
32252         * modules/crypto/gc-md4: Moved from ../.
32253         * modules/crypto/gc-md4-tests: Moved from ../.
32254         * modules/crypto/gc-md5: Moved from ../.
32255         * modules/crypto/gc-md5-tests: Moved from ../.
32256         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
32257         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
32258         * modules/crypto/gc-random: Moved from ../.
32259         * modules/crypto/gc-rijndael: Moved from ../.
32260         * modules/crypto/gc-rijndael-tests: Moved from ../.
32261         * modules/crypto/gc-sha1: Moved from ../.
32262         * modules/crypto/gc-sha1-tests: Moved from ../.
32263         * modules/crypto/gc-tests: Moved from ../.
32264         * modules/crypto/hmac-md5: Moved from ../.
32265         * modules/crypto/hmac-md5-tests: Moved from ../.
32266         * modules/crypto/hmac-sha1: Moved from ../.
32267         * modules/crypto/hmac-sha1-tests: Moved from ../.
32268         * modules/crypto/md2: Moved from ../.
32269         * modules/crypto/md2-tests: Moved from ../.
32270         * modules/crypto/md4: Moved from ../.
32271         * modules/crypto/md4-tests: Moved from ../.
32272         * modules/crypto/md5: Moved from ../.
32273         * modules/crypto/md5-tests: Moved from ../.
32274         * modules/crypto/memxor: Moved from ../.
32275         * modules/crypto/rijndael: Moved from ../.
32276         * modules/crypto/rijndael-tests: Moved from ../.
32277         * modules/crypto/sha1: Moved from ../.
32278
32279 2007-03-30  James Youngman  <jay@gnu.org>
32280
32281         * tests/test-stat-time.c (prepare_test): use chmod() rather than
32282         rename() to change the ctime of a file (because ctime is unaffected
32283         by rename on jfs2 on AIX 5.1).
32284         (main): Start by doing cleanup, in case a previous run failed leaving
32285         test files behind.
32286
32287 2007-03-31  Bruno Haible  <bruno@clisp.org>
32288
32289         Support old proprietary implementations of iconv.
32290         * modules/iconv_open: New file.
32291         * lib/iconv_.h: New file.
32292         * m4/iconv_h.m4: New file.
32293         * lib/iconv_open.c: New file.
32294         * lib/iconv_open-aix.gperf: New file.
32295         * lib/iconv_open-hpux.gperf: New file.
32296         * lib/iconv_open-irix.gperf: New file.
32297         * lib/iconv_open-osf.gperf: New file.
32298         * m4/iconv_open.m4: New file.
32299         * modules/linebreak (Depends-on): Add iconv_open.
32300         * modules/striconv (Depends-on): Likewise.
32301         * modules/striconveh (Depends-on): Likewise.
32302         * modules/unicodeio (Depends-on): Likewise.
32303         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
32304         (iconv_t)(-1).
32305         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
32306         conversion if cd is (iconv_t)(-1).
32307         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
32308         is not possible.
32309
32310 2007-03-31  Bruno Haible  <bruno@clisp.org>
32311
32312         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32313         work on Solaris either. Protect also second use of "autodetect_jp".
32314
32315 2007-03-31  Bruno Haible  <bruno@clisp.org>
32316
32317         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
32318         the function is not present.
32319
32320 2007-03-31  Bruno Haible  <bruno@clisp.org>
32321
32322         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
32323         the function is not present.
32324
32325 2007-03-31  Bruno Haible  <bruno@clisp.org>
32326
32327         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
32328         a bug in HP-UX iconv_open().
32329
32330 2007-03-31  Bruno Haible  <bruno@clisp.org>
32331
32332         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
32333         (Mathematics <math.h>): New section, add fpieee.
32334         (Input/output <stdio.h>): Add fseterr.
32335         (Mathematics <math.h>): New section, add printf-frexp.
32336         (Container data structures): Add sublist.
32337         (Core language properties): Add fpucw, inline.
32338         (Functions for greatest-width integer types <inttypes.h>): Add
32339         imaxabs, imaxdiv, inttypes.
32340         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
32341         isnanl-nolibm, ldexp.
32342         (Mathematics <math.h>): New section, add printf-frexpl.
32343         (Support for systems lacking POSIX:2001): Add fprintf-posix,
32344         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
32345         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
32346         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
32347         (Unicode string functions): Add unistr/u*-mbtoucr.
32348         (Java): Add javacomp-script, javaexec-script.
32349         (C#): Add csharpcomp-script, csharpexec-script.
32350         (Support for building libraries and executables): Add havelib,
32351         relocatable-*.
32352         (Support for maintaining and releasing projects): Renamed from
32353         'Support for maintaining and release projects'. Add announce-gen.
32354
32355 2007-03-31  Bruno Haible  <bruno@clisp.org>
32356
32357         * README: Talk primarily about git.
32358         (git and CVS): Renamed from CVS.
32359         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
32360         gnulib is available through git.
32361         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
32362
32363 2007-03-30  Bruno Haible  <bruno@clisp.org>
32364
32365         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
32366         * lib/poll_.h: Likewise.
32367         * lib/stat_.h: Likewise.
32368         * lib/sys_time_.h: Likewise.
32369         * lib/sysexit_.h: Likewise.
32370         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
32371         * lib/stdbool_.h: Likewise.
32372         * lib/byteswap_.h: Add double-inclusion guard.
32373
32374 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
32375
32376         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
32377
32378 2007-03-30  Karl Berry  <karl@gnu.org>
32379
32380         * config/srclist-update: double space after USA in the license
32381         substitution, since that's how it's usually (?) written.
32382
32383 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32384
32385         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
32386         reported by Bruno Haible.
32387
32388 2007-03-29  Bruno Haible  <bruno@clisp.org>
32389
32390         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
32391         a bug in AIX iconv().
32392
32393 2007-03-29  Bruno Haible  <bruno@clisp.org>
32394
32395         * modules/ldexpl-tests: New file.
32396         * tests/test-ldexpl.c: New file.
32397
32398 2007-03-29  Bruno Haible  <bruno@clisp.org>
32399
32400         * lib/ldexpl.c: Include fpucw.h.
32401         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
32402         multiplication.
32403         * modules/ldexpl (Depends-on): Add fpucw.
32404
32405 2007-03-29  Bruno Haible  <bruno@clisp.org>
32406
32407         * modules/ldexpl: New file.
32408         * m4/ldexpl.m4: New file.
32409         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
32410         set.
32411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
32412         REPLACE_LDEXPL.
32413         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
32414         REPLACE_LDEXPL.
32415         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32416         gl_FUNC_LDEXPL_WORKS.
32417         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
32418         * modules/mathl (Files): Remove lib/ldexpl.c.
32419         (Depends-on): Add ldexpl.
32420
32421 2007-03-29  Bruno Haible  <bruno@clisp.org>
32422
32423         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
32424
32425 2007-03-29  Bruno Haible  <bruno@clisp.org>
32426
32427         * tests/test-striconveh.c (main): Don't assume that a direct conversion
32428         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
32429         and possibly also HP-UX.
32430         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32431         work on AIX, IRIX, HP-UX, OSF/1.
32432         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32433         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32434         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32435         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32436         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
32437         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32438
32439 2007-03-29  Bruno Haible  <bruno@clisp.org>
32440
32441         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
32442
32443 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32444
32445         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
32446         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
32447
32448 2007-03-29  Eric Blake  <ebb9@byu.net>
32449
32450         * lib/acl-internal.h: Remove redundant include.
32451         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
32452         Cygwin when a file is locked.
32453
32454 2007-03-29  Bruno Haible  <bruno@clisp.org>
32455
32456         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
32457         file.
32458         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
32459
32460 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32461
32462         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
32463         try to remove a parent directory if the child couldn't be removed
32464         (except for the first rmdir, which could fail because the child
32465         doesn't exist).  Problem reported by Jeff Blaine in
32466         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
32467
32468 2007-03-28  Bruno Haible  <bruno@clisp.org>
32469
32470         * lib/striconveh.c (utf8conv_carefully): New function.
32471         (mem_cd_iconveh_internal): Invoke it.
32472
32473 2007-03-28  Bruno Haible  <bruno@clisp.org>
32474
32475         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
32476         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
32477         input.
32478         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
32479         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
32480         unistr/u8-uctomb.
32481
32482 2007-03-28  Bruno Haible  <bruno@clisp.org>
32483
32484         * modules/unistr/u8-mbtoucr: New file.
32485         * lib/unistr/u8-mbtoucr.c: New file.
32486         * modules/unistr/u16-mbtoucr: New file.
32487         * lib/unistr/u16-mbtoucr.c: New file.
32488         * modules/unistr/u16-mbtoucr: New file.
32489         * lib/unistr/u16-mbtoucr.c: New file.
32490         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
32491
32492 2007-03-27  Simon Josefsson  <simon@josefsson.org>
32493             Bruno Haible  <bruno@clisp.org>
32494
32495         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
32496         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
32497         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
32498
32499         * m4/stdio_h.m4: Add stubs for vasprintf too.
32500
32501         * modules/stdio: Support vasprintf in sed command.
32502
32503         * modules/vasprintf: Depend on stdio for prototypes.  Remove
32504         vasprintf.h.  Add stdio module indicator.
32505
32506         * lib/stdio_.h: Declare asprintf and vasprintf, based on
32507         vasprintf.h.
32508
32509         * lib/vasprintf.h: File removed.
32510
32511         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
32512         * lib/vasprintf.c: Ditto.
32513         * lib/xvasprintf.c: Ditto.
32514         * tests/test-vasprintf-posix.c: Ditto.
32515         * tests/test-vasprintf.c: Ditto.
32516
32517 2007-03-27  Bruno Haible  <bruno@clisp.org>
32518
32519         Make vasnprintf multithread-safe.
32520         * lib/vasnprintf.c (decimal_point_char): New function.
32521         (VASNPRINTF): Use it.
32522         Suggested by Simon Josefsson.
32523
32524 2007-03-27  Eric Blake  <ebb9@byu.net>
32525
32526         Support sub-second birthtime on cygwin.
32527         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
32528         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
32529         (get_stat_birthtime): Also work with st_birthtim.
32530
32531 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32532
32533         * lib/stat-time.h (USE_BIRTHTIME): Remove.
32534         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
32535         (get_stat_birthtime_ns): Do not try to use "spare" fields.
32536         (get_stat_birthtime_ns): Simplify compile-time tests.
32537         (get_stat_birthtime): Change the API to look like
32538         get_stat_mtime etc., except return a negative tv_nsec on error.
32539         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
32540         Don't check for "spare" fields.
32541         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
32542         or for struct stat.st_birthtime, as these tests aren't used.
32543         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
32544
32545 2007-03-27  Bruno Haible  <bruno@clisp.org>
32546
32547         * lib/stat-time.h: Include <sys/stat.h>.
32548
32549 2007-03-27  James Youngman  <jay@gnu.org>
32550
32551         * lib/stat-time.h (get_stat_birthtime): New function for
32552           retrieving st_birthtime as provided by UFS2 (hence *BSD).
32553         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
32554           and its variants.
32555         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
32556         * modules/stat-time-test: New file.
32557         * tests/test-stat-time.c: New test, devised by Bruno Haible.
32558
32559 2007-03-26  Bruno Haible  <bruno@clisp.org>
32560
32561         Better support of signalling NaNs.
32562         * lib/atanl.c: Include isnanl.h.
32563         (atanl): Perform test for NaN at the beginning of the function and
32564         through a call to isnanl.
32565         * lib/cosl.c: Include isnanl.h.
32566         (cosl): Perform test for NaN at the beginning of the function and
32567         through a call to isnanl.
32568         * lib/ldexpl.c: Include isnanl.h.
32569         (ldexpl): Perform test for NaN through a call to isnanl.
32570         * lib/logl.c: Include isnanl.h.
32571         (logl): Perform test for NaN at the beginning of the function and
32572         through a call to isnanl.
32573         * lib/sinl.c: Include isnanl.h.
32574         (sinl): Perform test for NaN at the beginning of the function and
32575         through a call to isnanl.
32576         * lib/sqrtl.c: Include isnanl.h.
32577         (sqrtl): Perform test for NaN at the beginning of the function and
32578         through a call to isnanl.
32579         * lib/tanl.c: Include isnanl.h.
32580         (tanl): Perform test for NaN at the beginning of the function and
32581         through a call to isnanl.
32582         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
32583         * modules/mathl (Depends-on): Add isnanl.
32584
32585 2007-03-26  Eric Blake  <ebb9@byu.net>
32586
32587         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
32588         regression in logic sense of previous patch.
32589
32590 2007-03-26  Bruno Haible  <bruno@clisp.org>
32591
32592         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
32593         unportable shell command "if ! ...".
32594         Reported by Ralf Wildenhues.
32595
32596 2007-03-25  Bruno Haible  <bruno@clisp.org>
32597
32598         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
32599         <sysexits.h> file, and only add EX_CONFIG.
32600         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
32601         absolute file name and whether it is sufficient. Substitute also
32602         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
32603         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
32604         ABSOLUTE_SYSEXITS_H into sysexits.h.
32605
32606 2007-03-25  Bruno Haible  <bruno@clisp.org>
32607
32608         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
32609         hints is NULL.
32610
32611 2007-03-25  Bruno Haible  <bruno@clisp.org>
32612
32613         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
32614         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
32615
32616 2007-03-25  Bruno Haible  <bruno@clisp.org>
32617
32618         * lib/vasnprintf.c: Include langinfo.h.
32619         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
32620         multithread-safe.
32621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
32622         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
32623         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32624         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32625         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32626         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32627         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32628         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
32629         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32630         Reported by Simon Josefsson.
32631
32632 2007-03-25  Bruno Haible  <bruno@clisp.org>
32633
32634         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
32635         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
32636         * modules/vasnprintf (Depends-on): Add stdint.
32637
32638 2007-03-25  Bruno Haible  <bruno@clisp.org>
32639
32640         * modules/fpieee: New file.
32641         * m4/fpieee.m4: New file.
32642         * modules/isnan-nolibm (Depends-on): Add fpieee.
32643         * modules/isnanl-nolibm (Depends-on): Add fpieee.
32644         * modules/isnanl (Depends-on): Add fpieee.
32645
32646 2007-03-25  Bruno Haible  <bruno@clisp.org>
32647
32648         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
32649
32650 2007-03-25  Bruno Haible  <bruno@clisp.org>
32651
32652         Avoid test failures on IRIX 6.5.
32653         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
32654         (main): Use it.
32655         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
32656         macros.
32657         (main): Use them.
32658
32659 2007-03-25  Bruno Haible  <bruno@clisp.org>
32660
32661         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
32662         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
32663         exists but doesn't work.
32664         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
32665         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
32666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
32667         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
32668
32669 2007-03-25  Bruno Haible  <bruno@clisp.org>
32670
32671         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
32672         returns inf. Needed on IRIX 6.5.
32673
32674 2007-03-25  Bruno Haible  <bruno@clisp.org>
32675
32676         * tests/test-frexpl.c: Include isnanl-nolibm.h.
32677         (main): Use isnanl instead of x != x idiom.
32678         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
32679
32680         * tests/test-frexp.c: Include isnan.h.
32681         (main): Use isnan instead of x != x idiom.
32682         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
32683
32684 2007-03-25  Bruno Haible  <bruno@clisp.org>
32685
32686         * tests/test-frexp.c (NaN): New function/macro.
32687         (main): Use it instead of 0.0 / 0.0.
32688         * tests/test-isnan.c (NaN): New function/macro.
32689         (main): Use it instead of 0.0 / 0.0.
32690         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
32691         (test_function): Use it instead of 0.0 / 0.0.
32692         * tests/test-vasprintf-posix.c (NaN): New function/macro.
32693         (test_function): Use it instead of 0.0 / 0.0.
32694         * tests/test-snprintf-posix.h (NaN): New function/macro.
32695         (test_function): Use it instead of 0.0 / 0.0.
32696         * tests/test-sprintf-posix.h (NaN): New function/macro.
32697         (test_function): Use it instead of 0.0 / 0.0.
32698         * tests/test-fprintf-posix.h (NaN): New function/macro.
32699         (test_function): Use it instead of 0.0 / 0.0.
32700         * tests/test-printf-posix.h (NaN): New function/macro.
32701         (test_function): Use it instead of 0.0 / 0.0.
32702
32703         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
32704
32705 2007-03-25  Bruno Haible  <bruno@clisp.org>
32706
32707         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
32708
32709 2007-03-25  Bruno Haible  <bruno@clisp.org>
32710
32711         * lib/regexec.c (merge_state_with_log): Make static.
32712
32713 2007-03-25  Bruno Haible  <bruno@clisp.org>
32714
32715         * lib/trigl.c (kernel_rem_pio2): Make static.
32716
32717 2007-03-25  Bruno Haible  <bruno@clisp.org>
32718
32719         * lib/sincosl.c (sincosl_table): Make static.
32720
32721 2007-03-25  Bruno Haible  <bruno@clisp.org>
32722
32723         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
32724         if the compiler does not support C99.
32725
32726 2007-03-25  Bruno Haible  <bruno@clisp.org>
32727
32728         * modules/time (Makefile.am): Ensure all rule action lines start with a
32729         tab.
32730
32731 2007-03-24  Bruno Haible  <bruno@clisp.org>
32732
32733         * modules/tsearch-tests: New file.
32734         * tests/test-tsearch.sh: New file.
32735         * tests/test-tsearch.c: New file, mostly copied from glibc.
32736
32737         * modules/search-tests: New file.
32738         * tests/test-search.c: New file.
32739
32740         * modules/search: New file.
32741         * lib/search_.h: New file, incorporating lib/tsearch.h.
32742         * m4/search_h.m4: New file.
32743         * lib/tsearch.h: Remove file.
32744         * lib/tsearch.c: Include search.h instead of tsearch.h.
32745         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
32746         HAVE_TSEARCH.
32747         * modules/tsearch (Files): Remove lib/tsearch.h.
32748         (Depends-on): Add search.
32749         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
32750         (Include): Change tsearch.h into search.h.
32751
32752 2007-03-24  Bruno Haible  <bruno@clisp.org>
32753
32754         * modules/fpucw: New file.
32755         * lib/fpucw.h: New file.
32756         * lib/frexp.c: Include fpucw.h.
32757         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32758         (FUNC): Use them.
32759         * lib/printf-frexp.c: Include fpucw.h.
32760         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32761         (FUNC): Use them.
32762         * lib/vasnprintf.c: Include fpucw.h.
32763         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
32764         'long double' calculations.
32765         * tests/test-frexpl.c: Include fpucw.h.
32766         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32767         * tests/test-printf-frexpl.c: Include fpucw.h.
32768         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32769         * modules/frexpl (Depends-on): Add fpucw.
32770         * modules/printf-frexpl (Depends-on): Likewise.
32771         * modules/fprintf-posix (Depends-on): Likewise.
32772         * modules/snprintf-posix (Depends-on): Likewise.
32773         * modules/sprintf-posix (Depends-on): Likewise.
32774         * modules/vasnprintf-posix (Depends-on): Likewise.
32775         * modules/vasprintf-posix (Depends-on): Likewise.
32776         * modules/vfprintf-posix (Depends-on): Likewise.
32777         * modules/vsnprintf-posix (Depends-on): Likewise.
32778         * modules/vsprintf-posix (Depends-on): Likewise.
32779         * modules/frexpl-tests (Depends-on): Likewise.
32780         * modules/printf-frexpl-tests (Depends-on): Likewise.
32781
32782 2007-03-24  Bruno Haible  <bruno@clisp.org>
32783
32784         * lib/float+.h: New file.
32785         * lib/isnan.c: Include float+.h.
32786         (SIZE): New macro.
32787         (FUNC): Compare only SIZE bytes of the value.
32788         * lib/vasnprintf.c: Include float+.h.
32789         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
32790         SIZEOF_LDBL or SIZEOF_DBL bytes.
32791         * modules/isnan-nolibm (Files): Add lib/float+.h.
32792         * modules/isnanl-nolibm (Files): Add lib/float+.h.
32793         * modules/isnanl (Files): Add lib/float+.h.
32794         * modules/vasnprintf (Files): Add lib/float+.h.
32795
32796 2007-03-24  Bruno Haible  <bruno@clisp.org>
32797
32798         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
32799         include isnanl-nolibm.h.
32800
32801 2007-03-24  Bruno Haible  <bruno@clisp.org>
32802
32803         * tests/test-read-file.c (main): Don't produce spurious output for
32804         expected situations. Make the test fail if it encountered unexpected
32805         results.
32806
32807 2007-03-24  Bruno Haible  <bruno@clisp.org>
32808
32809         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
32810         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
32811
32812 2007-03-24  Bruno Haible  <bruno@clisp.org>
32813
32814         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
32815
32816 2007-03-24  Bruno Haible  <bruno@clisp.org>
32817
32818         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
32819         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
32820
32821         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
32822         * modules/utf8-ucs4: Turn into a symbolic link to module
32823         unistr/u8-mbtouc.
32824
32825         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
32826         utf8-ucs4-unsafe.
32827         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
32828         unistr/u8-mbtouc-unsafe.
32829
32830         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
32831         * modules/utf16-ucs4: Turn into a symbolic link to module
32832         unistr/u16-mbtouc.
32833
32834         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
32835         utf16-ucs4-unsafe.
32836         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
32837         unistr/u16-mbtouc-unsafe.
32838
32839         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
32840         * modules/ucs4-utf8: Turn into a symbolic link to module
32841         unistr/u8-ubtomb.
32842
32843         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
32844         * modules/ucs4-utf16: Turn into a symbolic link to module
32845         unistr/u16-ubtomb.
32846
32847 2007-03-24  Bruno Haible  <bruno@clisp.org>
32848
32849         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
32850         Enable the function only if HAVE_INLINE.
32851         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
32852         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32853         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
32854         Enable the function only if HAVE_INLINE.
32855         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
32856         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32857         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
32858         Enable the function only if HAVE_INLINE.
32859         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
32860         Enable the function only if HAVE_INLINE.
32861         * modules/utf8-ucs4: Update.
32862         * modules/utf8-ucs4-unsafe: Update.
32863         * modules/utf16-ucs4: Update.
32864         * modules/utf16-ucs4-unsafe: Update.
32865         * modules/ucs4-utf8: Update.
32866         * modules/ucs4-utf16: Update.
32867
32868 2007-03-24  Bruno Haible  <bruno@clisp.org>
32869
32870         * lib/utf8-ucs4.h: Remove file.
32871         * lib/utf8-ucs4-unsafe.h: Remove file.
32872         * lib/utf16-ucs4.h: Remove file.
32873         * lib/utf16-ucs4-unsafe.h: Remove file.
32874         * lib/ucs4-utf8.h: Remove file.
32875         * lib/ucs4-utf16.h: Remove file.
32876         * lib/unistr.h: Include their previous contents.
32877         * m4/utf-ucs4.m4: Remove file.
32878         * m4/ucs4-utf.m4: Remove file.
32879         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
32880         (Depends-on): Add unistr/base.
32881         (configure.ac): Remove gl_UTF_UCS4.
32882         (Makefile.am): Update.
32883         (Include): Change to unistr.h.
32884         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
32885         (Depends-on): Add unistr/base.
32886         (configure.ac): Remove gl_UTF_UCS4.
32887         (Makefile.am): Update.
32888         (Include): Change to unistr.h.
32889         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
32890         (Depends-on): Add unistr/base.
32891         (configure.ac): Remove gl_UTF_UCS4.
32892         (Makefile.am): Update.
32893         (Include): Change to unistr.h.
32894         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
32895         (Depends-on): Add unistr/base.
32896         (configure.ac): Remove gl_UTF_UCS4.
32897         (Makefile.am): Update.
32898         (Include): Change to unistr.h.
32899         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
32900         (Depends-on): Add unistr/base.
32901         (configure.ac): Remove gl_UCS4_UTF.
32902         (Makefile.am): Update.
32903         (Include): Change to unistr.h.
32904         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
32905         (Depends-on): Add unistr/base.
32906         (configure.ac): Remove gl_UCS4_UTF.
32907         (Makefile.am): Update.
32908         (Include): Change to unistr.h.
32909         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
32910         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
32911         utf8-ucs4-unsafe.h.
32912         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
32913         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
32914         utf16-ucs4-unsafe.h.
32915         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
32916         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
32917         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
32918         * lib/unistr/u8-strchr.c: Likewise.
32919         * lib/unistr/u8-strrchr.c: Likewise.
32920         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
32921         * lib/unistr/u16-strchr.c: Likewise.
32922         * lib/unistr/u16-strrchr.c: Likewise.
32923         * lib/striconveh.c: Update.
32924         * lib/linebreak.c: Update.
32925
32926 2007-03-24  Bruno Haible  <bruno@clisp.org>
32927
32928         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
32929         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
32930
32931 2007-03-22  Bruno Haible  <bruno@clisp.org>
32932
32933         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
32934
32935 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
32936
32937         * MODULES.html.sh (File system functions): New module write-any-file.
32938         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
32939         * m4/write-any-file.m4: New files.
32940
32941 2007-03-23  Eric Blake  <ebb9@byu.net>
32942
32943         * gnulib-tool: Rearrange space-tab sequences, since some editors
32944         like to eat them.
32945
32946 2007-03-23  Eric Blake  <ebb9@byu.net>
32947
32948         * lib/version-etc.c (version_etc_va): Update license wording to
32949         be more concise.  Recommended by Richard Stallman.
32950
32951 2007-03-22  Bruno Haible  <bruno@clisp.org>
32952
32953         * lib/poll.c (MSG_PEEK): New fallback definition.
32954
32955 2007-03-22  Bruno Haible  <bruno@clisp.org>
32956
32957         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
32958         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
32959         (main): Update.
32960         Fixes a compilation error on BeOS.
32961
32962 2007-03-22  Bruno Haible  <bruno@clisp.org>
32963
32964         * modules/frexpl-tests: New file.
32965         * tests/test-frexpl.c: New file.
32966
32967         * modules/frexpl: New file.
32968         * m4/frexpl.m4: New file.
32969         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
32970         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
32971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
32972         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
32973         (Depends-on): Add frexpl. Remove isnanl-nolibm.
32974         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
32975
32976 2007-03-22  Bruno Haible  <bruno@clisp.org>
32977
32978         * lib/frexpl.c: Share code with lib/frexp.c.
32979         * modules/mathl (Files): Add lib/frexp.c.
32980         (Depends-on): Add isnanl-nolibm.
32981
32982 2007-03-22  Bruno Haible  <bruno@clisp.org>
32983
32984         * modules/printf-frexp (Files): Add m4/frexp.m4.
32985         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
32986         only if the found frexp function actually works.
32987
32988 2007-03-22  Bruno Haible  <bruno@clisp.org>
32989
32990         * lib/frexp.c: Remove older implementation that uses divisions.
32991
32992 2007-03-21  Bruno Haible  <bruno@clisp.org>
32993
32994         * modules/frexp-tests: New file.
32995         * tests/test-frexp.c: New file.
32996
32997         * modules/frexp: New file.
32998         * lib/frexp.c: New file.
32999         * m4/frexp.m4: New file.
33000         * lib/math_.h (frexp): New declaration.
33001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
33002         REPLACE_FREXP.
33003         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
33004
33005 2007-03-21  Bruno Haible  <bruno@clisp.org>
33006
33007         * modules/isnanl-tests: New file.
33008         * tests/test-isnanl.c: New file.
33009
33010         * modules/isnanl: New file.
33011         * lib/isnanl.h: New file.
33012         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
33013         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
33014         gl_FUNC_ISNANL_WORKS.
33015         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
33016         New macros.
33017
33018 2007-03-21  Bruno Haible  <bruno@clisp.org>
33019
33020         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
33021         lib/isnanl.h.
33022         (Include): Update.
33023         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
33024         * lib/vasnprintf.c: Update.
33025         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
33026         tests/test-isnanl.h, remove tests/test-isnanl.c.
33027         (Makefile.am): Update.
33028         * tests/test-isnanl-nolibm.c: New file.
33029         * tests/test-isnanl.h: New file.
33030         * tests/test-isnanl.c: Remove file.
33031
33032 2007-03-21  Jim Meyering  <jim@meyering.net>
33033
33034         When trying to open ".", treat ESTALE like EACCES.
33035         * lib/savewd.c (savewd_save): Resort to forking not just upon
33036         failure with EACCES, but also when errno is ESTALE.
33037
33038 2007-03-20  Bruno Haible  <bruno@clisp.org>
33039
33040         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
33041         Needed on AIX 5.1. Reported by Matthew Woehlke.
33042
33043 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33044
33045         Suggestions by Bruno Haible:
33046         * lib/acl-internal.h: Include "gettext.h" rather than rolling
33047         our own.
33048         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
33049         * modules/acl (Depends-on): Add gettext.
33050
33051 2007-03-19  Bruno Haible  <bruno@clisp.org>
33052
33053         * modules/iconvme: Remove file.
33054         * lib/iconvme.h: Remove file.
33055         * lib/iconvme.c: Remove file.
33056         * m4/iconvme.m4: Remove file.
33057
33058 2007-03-19  Bruno Haible  <bruno@clisp.org>
33059
33060         * doc/relocatable-maint.texi: Break long shell script line.
33061         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33062
33063 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33064
33065         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
33066         handle file_has_acl.
33067         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
33068         * lib/acl.c: Move header inclusions and related macro defns into
33069         lib/acl-internal.h.
33070         (S_ISLNK): Remove defn, since that's now done for us.
33071         (file_has_acl): Move to lib/file-has-acl.c.
33072         Call acl_trivial if available.  This is the crucial part of the fix.
33073         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
33074         shared within the library.  Rewrite a bit, partly to make it compatible
33075         with the GNU coding style.
33076         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
33077         Remove unnecessary double-quotes.
33078         Don't test for acl_to_text; the build will catch that.
33079         Replace acl_entries if it doesn't exist and it is needed.
33080         Check for -lsec and acl_trivial (as used on Solaris 10).
33081         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
33082         lib/file-has-acl.c.
33083         (Depends-on): Add sys_stat, for S_ISLNK.
33084
33085 2007-03-19  Ben Pfaff  <blp@gnu.org>
33086
33087         * doc/gnulib.texi: Fix typos.
33088         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33089
33090 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33091
33092         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
33093         If size is zero here, buf must be zero.
33094
33095 2007-03-19  Simon Josefsson  <simon@josefsson.org>
33096
33097         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
33098         <bruno@clisp.org>.
33099
33100 2007-03-18  Bruno Haible  <bruno@clisp.org>
33101
33102         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
33103         Suggested by Eric Blake.
33104
33105 2007-03-18  Ben Pfaff  <blp@gnu.org>
33106
33107         * doc/relocatable.texi: Recommend using as prefix a directory
33108         that does not exist and will never be created.  Based on
33109         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
33110         and others.
33111
33112 2007-03-17  Bruno Haible  <bruno@clisp.org>
33113
33114         * lib/fchownat.c: Include lchown.h.
33115
33116 2007-03-17  Bruno Haible  <bruno@clisp.org>
33117
33118         Fix endless loop when the given allocated size was > INT_MAX.
33119         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
33120         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
33121         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
33122         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
33123         * lib/sprintf.c (sprintf): Likewise.
33124
33125 2007-03-17  Bruno Haible  <bruno@clisp.org>
33126
33127         * tests/test-argp-2.sh (func_compare): Output a context diff.
33128
33129 2007-03-17  Bruno Haible  <bruno@clisp.org>
33130
33131         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
33132         locale's decimal-point character.
33133
33134 2007-03-17  Bruno Haible  <bruno@clisp.org>
33135
33136         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
33137         before comparing it. Needed because on some platforms (e.g. x86) a
33138         'long double' occupies less bytes than sizeof (long double).
33139
33140 2007-03-17  Bruno Haible  <bruno@clisp.org>
33141
33142         * tests/test-crc.c (main): Make printf statements 64-bit clean.
33143         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
33144         * tests/test-getaddrinfo.c (simple): Likewise.
33145         * tests/test-read-file.c (main): Likewise.
33146
33147 2007-03-17  Bruno Haible  <bruno@clisp.org>
33148
33149         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
33150
33151 2007-03-17  Bruno Haible  <bruno@clisp.org>
33152
33153         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
33154         unused variable.
33155
33156 2007-03-17  Bruno Haible  <bruno@clisp.org>
33157
33158         * tests/test-c-strcasecmp.c: Include c-strcase.h.
33159         * tests/test-c-strncasecmp.c: Likewise.
33160
33161 2007-03-17  Bruno Haible  <bruno@clisp.org>
33162
33163         * modules/stdlib (Depends-on): Add unistd.
33164         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
33165         Needed for MacOS X 10.3.
33166
33167 2007-03-17  Bruno Haible  <bruno@clisp.org>
33168
33169         * lib/unistr/u-strdup.h: Include <stdlib.h>.
33170
33171 2007-03-17  Bruno Haible  <bruno@clisp.org>
33172
33173         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
33174
33175 2007-03-17  Bruno Haible  <bruno@clisp.org>
33176
33177         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
33178         to reflect files copied from gnulib (with or without modifications).
33179         Suggested by Jim Meyering.
33180
33181 2007-03-17  Eric Blake  <ebb9@byu.net>
33182
33183         * NEWS: Document stdlib change from 2007-02-18.
33184
33185 2007-03-17  Jim Meyering  <jim@meyering.net>
33186
33187         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
33188         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
33189         someone uses a name containing shell meta-characters.
33190         Reported by Alfred M. Szmidt.
33191
33192         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
33193
33194 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
33195
33196         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
33197         and copy gettext configuration files only if configure.ac contains
33198         a use of AM_GNU_GETTEXT_VERSION.
33199
33200 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
33201
33202         * build-aux/bootstrap (gnulib_name): New variable.
33203         (gnulib_tool_options): Use it.
33204
33205 2007-03-13  Simon Josefsson  <simon@josefsson.org>
33206
33207         * tests/test-des.c: Use new namespace.
33208
33209 2007-03-15  Bruno Haible  <bruno@clisp.org>
33210
33211         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
33212         Reported by James Youngman <jay@gnu.org>.
33213
33214 2007-03-15  Bruno Haible  <bruno@clisp.org>
33215
33216         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
33217         declared prototype. Needed with cc on OSF/1 5.1.
33218
33219 2007-03-15  Bruno Haible  <bruno@clisp.org>
33220
33221         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
33222         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
33223         (struct gl_list_implementation): Add dispose_fn argument to the
33224         'create_empty', 'create' methods.
33225         (struct gl_list_impl_base): Add field 'dispose_fn'.
33226         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
33227         argument.
33228         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
33229         dispose_fn argument.
33230         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
33231         dispose_fn on the dropped values.
33232         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
33233         dispose_fn argument.
33234         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
33235         dropped values.
33236         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
33237         (gl_tree_remove_node): Call dispose_fn on the dropped value.
33238         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
33239         (gl_tree_remove_node): Call dispose_fn on the dropped value.
33240         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
33241         argument.
33242         (gl_tree_list_free): Call dispose_fn on the dropped values.
33243         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
33244         the dropped values.
33245         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
33246         Add dispose_fn argument.
33247         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
33248         Call dispose_fn on the dropped values.
33249         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
33250         Add dispose_fn argument.
33251         (gl_sublist_create): Initialize the 'dispose_fn' field.
33252         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
33253         * tests/test-array_list.c (main): Update.
33254         * tests/test-carray_list.c (main): Update.
33255         * tests/test-avltree_list.c (main): Update.
33256         * tests/test-rbtree_list.c (main): Update.
33257         * tests/test-avltreehash_list.c (main): Update.
33258         * tests/test-rbtreehash_list.c (main): Update.
33259         * tests/test-linked_list.c (main): Update.
33260         * tests/test-linkedhash_list.c (main): Update.
33261         * tests/test-array_oset.c (main): Update.
33262
33263 2007-03-15  Bruno Haible  <bruno@clisp.org>
33264
33265         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
33266         (gl_oset_create_empty): Add dispose_fn argument.
33267         (struct gl_oset_implementation): Add dispose_fn argument to
33268         'create_empty' method.
33269         (struct gl_oset_impl_base): Add dispose_fn field.
33270         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
33271         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
33272         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
33273         values.
33274         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
33275         (gl_tree_oset_free): Call dispose_fn on the dropped values.
33276         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33277         dropped value.
33278         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33279         dropped value.
33280         * tests/test-array_oset.c (main): Update.
33281         * tests/test-avltree_oset.c (main): Update.
33282         * tests/test-rbtree_oset.c (main): Update.
33283         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
33284
33285 2007-03-13  Bruno Haible  <bruno@clisp.org>
33286
33287         * tests/test-stdbool.c (i): Update after last patch.
33288
33289 2007-03-12  Bruno Haible  <bruno@clisp.org>
33290
33291         * lib/quotearg.c: Include <wctype.h> early, before the definition of
33292         the iswprint macro. Needed on Solaris 2.5.1.
33293
33294 2007-03-12  Bruno Haible  <bruno@clisp.org>
33295
33296         * tests/test-printf-frexp.c (main): Declare x as volatile.
33297
33298 2007-03-12  Simon Josefsson  <simon@josefsson.org>
33299
33300         * doc/gnulib.texi (Build robot for gnulib): New section.
33301
33302 2007-03-12  Jim Meyering  <jim@meyering.net>
33303
33304         * build-aux/bootstrap: New file.
33305         * build-aux/bootstrap.conf: New file, from coreutils.
33306
33307 2007-03-11  Bruno Haible  <bruno@clisp.org>
33308
33309         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
33310
33311 2007-03-12  Simon Josefsson  <simon@josefsson.org>
33312
33313         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
33314         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
33315         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
33316
33317 2007-03-11  Bruno Haible  <bruno@clisp.org>
33318
33319         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
33320         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
33321
33322 2007-03-11  Bruno Haible  <bruno@clisp.org>
33323
33324         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
33325         formula. Needed for SunPRO C 5.0.
33326
33327 2007-03-11  Bruno Haible  <bruno@clisp.org>
33328
33329         * modules/long-options (Depends-on): Add getopt.
33330
33331 2007-03-11  Bruno Haible  <bruno@clisp.org>
33332
33333         * modules/modechange (Depends-on): Add stdbool.
33334
33335 2007-03-11  Bruno Haible  <bruno@clisp.org>
33336
33337         * modules/i-ring (Depends-on): Add stdbool.
33338
33339 2007-03-11  Bruno Haible  <bruno@clisp.org>
33340
33341         * modules/gc-des (Depends-on): Add stdbool.
33342
33343 2007-03-11  Bruno Haible  <bruno@clisp.org>
33344
33345         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
33346
33347 2007-03-11  Bruno Haible  <bruno@clisp.org>
33348
33349         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
33350
33351 2007-03-11  Bruno Haible  <bruno@clisp.org>
33352
33353         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
33354
33355 2007-03-11  Bruno Haible  <bruno@clisp.org>
33356
33357         * lib/vasnprintf.c (sprintf): Undefine.
33358
33359 2007-03-11  Bruno Haible  <bruno@clisp.org>
33360
33361         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
33362         initializers in SunPRO C and Compaq C compilers.
33363
33364 2007-03-11  Bruno Haible  <bruno@clisp.org>
33365
33366         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
33367         decrementing code ANSI C compliant.
33368
33369 2007-03-11  Bruno Haible  <bruno@clisp.org>
33370
33371         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
33372         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
33373
33374 2007-03-11  Bruno Haible  <bruno@clisp.org>
33375
33376         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
33377         <stdbool.h> substitute doesn't pass.
33378
33379 2007-03-11  Bruno Haible  <bruno@clisp.org>
33380
33381         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
33382
33383 2007-03-11  Bruno Haible  <bruno@clisp.org>
33384
33385         * gnulib-tool (func_create_megatestdir): Create also an autobuild
33386         script, for submission to autobuild.josefsson.org.
33387
33388 2007-03-10  Bruno Haible  <bruno@clisp.org>
33389
33390         * modules/canonicalize-lgpl-tests: New file.
33391         * tests/test-canonicalize-lgpl.sh: New file.
33392         * tests/test-canonicalize-lgpl.c: New file.
33393
33394         * modules/c-strcase-tests: New file.
33395         * tests/test-c-strcase.sh: New file.
33396         * tests/test-c-strcasecmp.c: New file.
33397         * tests/test-c-strncasecmp.c: New file.
33398
33399         * modules/atexit-tests: New file.
33400         * tests/test-atexit.sh: New file.
33401         * tests/test-atexit.c: New file.
33402
33403 2007-03-10  Bruno Haible  <bruno@clisp.org>
33404
33405         * tests/test-binary-io.sh: Use temporary filenames that are not so
33406         likely to clash with those of other tests (in a parallel make).
33407         * tests/test-binary-io.c: Likewise.
33408
33409 2007-03-10  Bruno Haible  <bruno@clisp.org>
33410
33411         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
33412         fallback; use #error instead.
33413         Suggested by Simon Josefsson.
33414
33415 2007-03-10  Bruno Haible  <bruno@clisp.org>
33416
33417         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
33418         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
33419         first and the last.
33420
33421 2007-03-10  Bruno Haible  <bruno@clisp.org>
33422
33423         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
33424
33425 2007-03-10  Bruno Haible  <bruno@clisp.org>
33426
33427         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
33428         "make distcheck".
33429         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
33430         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
33431         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
33432
33433 2007-03-10  Bruno Haible  <bruno@clisp.org>
33434
33435         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
33436         variable.
33437         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
33438         variable.
33439
33440 2007-03-09  Eric Blake  <ebb9@byu.net>
33441         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
33442
33443         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
33444         types are not being provided by gnulib.
33445         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
33446         types are supported.
33447
33448 2007-03-10  Bruno Haible  <bruno@clisp.org>
33449
33450         * lib/stdio_.h (__attribute__): New macro.
33451         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
33452         vsprintf): Specify __attribute__ __format__ for GCC.
33453         Suggested by Eric Blake.
33454
33455 2007-03-09  Bruno Haible  <bruno@clisp.org>
33456
33457         * modules/printf-posix-tests: New file.
33458         * tests/test-printf-posix.sh: New file.
33459         * tests/test-printf-posix.c: New file.
33460
33461         * modules/printf-posix: New file.
33462         * lib/printf.c: New file.
33463         * m4/printf-posix-rpl.m4: New file.
33464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
33465         REPLACE_PRINTF.
33466         * lib/stdio_.h (printf): New declaration.
33467         (format, __format__, ____printf____, ____scanf____, ____strftime____,
33468         ____strfmon____): New macros.
33469         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
33470         REPLACE_PRINTF.
33471
33472 2007-03-09  Bruno Haible  <bruno@clisp.org>
33473
33474         * tests/test-vasnprintf-posix2.sh: New file.
33475         * tests/test-vasnprintf-posix2.c: New file.
33476         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
33477         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33478         (Makefile.am): Activate test-vasnprintf-posix2.sh.
33479
33480         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
33481         a locale dependent decimal point, rather than always '.'.
33482
33483 2007-03-09  Eric Blake  <ebb9@byu.net>
33484
33485         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
33486         spite of platforms like Tandem/NSK that define it to -1.
33487
33488 2007-03-08  Bruno Haible  <bruno@clisp.org>
33489
33490         * modules/vprintf-posix-tests: New file.
33491         * tests/test-vprintf-posix.sh: New file.
33492         * tests/test-vprintf-posix.c: New file.
33493         * tests/test-printf-posix.h: New file.
33494
33495         * modules/vprintf-posix: New file.
33496         * lib/vprintf.c: New file.
33497         * m4/vprintf-posix.m4: New file.
33498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
33499         REPLACE_VPRINTF.
33500         * lib/stdio_.h (vprintf): New declaration.
33501         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
33502         REPLACE_VPRINTF.
33503
33504 2007-03-08  Bruno Haible  <bruno@clisp.org>
33505
33506         * modules/fprintf-posix-tests: New file.
33507         * tests/test-fprintf-posix.sh: New file.
33508         * tests/test-fprintf-posix.c: New file.
33509
33510         * modules/fprintf-posix: New file.
33511         * lib/fprintf.c: New file.
33512         * m4/fprintf-posix.m4: New file.
33513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
33514         REPLACE_FPRINTF.
33515         * lib/stdio_.h (fprintf): New declaration.
33516         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
33517         REPLACE_FPRINTF.
33518
33519 2007-03-08  Bruno Haible  <bruno@clisp.org>
33520
33521         * modules/vfprintf-posix-tests: New file.
33522         * tests/test-vfprintf-posix.sh: New file.
33523         * tests/test-vfprintf-posix.c: New file.
33524         * tests/test-fprintf-posix.h: New file.
33525         * tests/test-fprintf-posix.out: New file.
33526
33527         * modules/vfprintf-posix: New file.
33528         * lib/vfprintf.c: New file.
33529         * m4/vfprintf-posix.m4: New file.
33530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
33531         REPLACE_VFPRINTF.
33532         * lib/stdio_.h (vfprintf): New declaration.
33533         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
33534         REPLACE_VFPRINTF.
33535
33536 2007-03-08  Bruno Haible  <bruno@clisp.org>
33537
33538         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
33539
33540 2007-03-08  Bruno Haible  <bruno@clisp.org>
33541
33542         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
33543         instead of 'expr' invocations.
33544         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33545         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33546         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33548         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33549         Suggested by Paul Eggert.
33550
33551 2007-03-08  Bruno Haible  <bruno@clisp.org>
33552
33553         * modules/fseterr-tests: New file.
33554         * tests/test-fseterr.c: New file.
33555
33556         * modules/fseterr: New file.
33557         * lib/fseterr.h: New file.
33558         * lib/fseterr.c: New file.
33559
33560 2007-03-08  Bruno Haible  <bruno@clisp.org>
33561
33562         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
33563         * lib/getopt_.h: Likewise.
33564         * lib/mbswidth.h: Likewise.
33565         * lib/setenv.h: Likewise.
33566         * lib/vasnprintf.h: Likewise.
33567         * lib/vasprintf.h: Likewise.
33568         * lib/verror.h: Likewise.
33569         * lib/xsetenv.h: Likewise.
33570         * lib/xvasprintf.h: Likewise.
33571
33572 2007-03-08  Jim Meyering  <jim@meyering.net>
33573
33574         * users.txt: Add parted.
33575
33576         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
33577
33578 2007-03-07  Bruno Haible  <bruno@clisp.org>
33579
33580         * m4/printf.m4: Make the shell script snippets copy&pastable.
33581
33582 2007-03-02  Bruno Haible  <bruno@clisp.org>
33583
33584         * lib/netinet_in_.h: New file.
33585         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
33586         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
33587         * modules/netinet_in (Files): Add lib/netinet_in_.h.
33588         (Depends-on): Add absolute-header.
33589         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
33590         into netinet/in.h.
33591
33592 2007-03-03  Bruno Haible  <bruno@clisp.org>
33593
33594         * lib/sys_select_.h: New file.
33595         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
33596         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
33597         * modules/sys_select (Files): Add lib/sys_select_.h.
33598         (Depends-on): Add absolute-header.
33599         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
33600         into sys/select.h.
33601
33602 2007-03-02  Bruno Haible  <bruno@clisp.org>
33603
33604         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
33605         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
33606         values.
33607         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
33608         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
33609         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
33610         * modules/sys_socket (Depends-on): Add absolute-header.
33611         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
33612         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
33613         (Include): Remove requirement of inclusion of <sys/types.h>.
33614
33615 2007-03-02  Bruno Haible  <bruno@clisp.org>
33616
33617         * lib/byteswap_.h (bswap_32): Fix formula.
33618
33619 2007-03-06  Bruno Haible  <bruno@clisp.org>
33620
33621         * modules/sprintf-posix-tests: New file.
33622         * tests/test-sprintf-posix.c: New file.
33623
33624         * modules/sprintf-posix: New file.
33625         * lib/sprintf.c: New file.
33626         * m4/sprintf-posix.m4: New file.
33627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
33628         REPLACE_SPRINTF.
33629         * lib/stdio_.h (sprintf): New declaration.
33630         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
33631         REPLACE_SPRINTF.
33632
33633 2007-03-06  Bruno Haible  <bruno@clisp.org>
33634
33635         * modules/vsprintf-posix-tests: New file.
33636         * tests/test-vsprintf-posix.c: New file.
33637         * tests/test-sprintf-posix.h: New file.
33638
33639         * modules/vsprintf-posix: New file.
33640         * lib/vsprintf.c: New file.
33641         * m4/vsprintf-posix.m4: New file.
33642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
33643         REPLACE_VSPRINTF.
33644         * lib/stdio_.h (vsprintf): New declaration.
33645         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
33646         REPLACE_VSPRINTF.
33647
33648 2007-03-06  Bruno Haible  <bruno@clisp.org>
33649
33650         * modules/vsnprintf (Depend-on): Remove minmax.
33651
33652 2007-03-06  Bruno Haible  <bruno@clisp.org>
33653
33654         * modules/snprintf-posix-tests: New file.
33655         * tests/test-snprintf-posix.c: New file.
33656
33657         * modules/snprintf-posix: New file.
33658         * m4/snprintf-posix.m4: New file.
33659         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
33660         gl_FUNC_SNPRINTF.
33661         (gl_FUNC_SNPRINTF): Invoke it.
33662         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
33663         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
33664         is set.
33665         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
33666
33667 2007-03-06  Bruno Haible  <bruno@clisp.org>
33668
33669         * modules/vsnprintf-posix-tests: New file.
33670         * tests/test-vsnprintf-posix.c: New file.
33671         * tests/test-snprintf-posix.h: New file.
33672
33673         * modules/vsnprintf-posix: New file.
33674         * m4/vsnprintf-posix.m4: New file.
33675         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
33676         gl_FUNC_VSNPRINTF.
33677         (gl_FUNC_VSNPRINTF): Invoke it.
33678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
33679         * lib/stdio_.h (vsnprintf): Define as a replacement if
33680         REPLACE_VSNPRINTF is set.
33681         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
33682
33683 2007-03-06  Bruno Haible  <bruno@clisp.org>
33684
33685         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
33686         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
33687
33688 2007-03-06  Bruno Haible  <bruno@clisp.org>
33689
33690         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
33691         (asinl): Declare also if HAVE_DECL_ASINL is set.
33692         (atanl): Declare also if HAVE_DECL_ATANL is set.
33693         (ceill): Declare also if HAVE_DECL_CEILL is set.
33694         (cosl): Declare also if HAVE_DECL_COSL is set.
33695         (expl): Declare also if HAVE_DECL_EXPL is set.
33696         (floorl): Declare also if HAVE_DECL_FLOORL is set.
33697         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
33698         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
33699         (logl): Declare also if HAVE_DECL_LOGL is set.
33700         (sinl): Declare also if HAVE_DECL_SINL is set.
33701         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
33702         (tanl): Declare also if HAVE_DECL_TANL is set.
33703         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
33704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
33705         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
33706         declaration of frexpl, ldexpl.
33707         * modules/printf-frexpl (Depends-on): Add math.
33708         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
33709
33710 2007-03-05  Bruno Haible  <bruno@clisp.org>
33711
33712         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
33713         frexpl and ldexpl are declared.
33714         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
33715
33716 2007-03-05  Bruno Haible  <bruno@clisp.org>
33717
33718         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
33719         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
33720
33721 2007-03-05  Bruno Haible  <bruno@clisp.org>
33722
33723         * lib/stdio_.h: Include <stddef.h>.
33724
33725 2007-03-05  Bruno Haible  <bruno@clisp.org>
33726
33727         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
33728
33729 2007-03-05  Bruno Haible  <bruno@clisp.org>
33730
33731         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
33732         NetBSD 4, from Ralf Wildenhues.
33733
33734 2007-03-04  Bruno Haible  <bruno@clisp.org>
33735
33736         * lib/vasprintf.h: Update #if logic for the case when the functions
33737         exist but are overridden.
33738
33739 2007-03-04  Bruno Haible  <bruno@clisp.org>
33740
33741         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
33742         implementations: glibc-2.4 and MacOS X 10.3.
33743         * tests/test-vasnprintf-posix.c (test_function): Test also the case
33744         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
33745         * tests/test-vasprintf-posix.c (test_function): Likewise.
33746
33747 2007-03-04  Bruno Haible  <bruno@clisp.org>
33748
33749         * modules/vasprintf-posix-tests: New file.
33750         * tests/test-vasprintf-posix.c: New file.
33751
33752         * modules/vasprintf-posix: New file.
33753         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
33754         defined.
33755         * m4/vasprintf-posix.m4: New file.
33756         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
33757         gl_FUNC_VASPRINTF.
33758         (gl_FUNC_VASPRINTF): Invoke it.
33759         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
33760         here.
33761         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
33762
33763 2007-03-04  Bruno Haible  <bruno@clisp.org>
33764
33765         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
33766         REPLACE_GETTIMEOFDAY.
33767         * modules/sys_time (Makefile.am): Likewise.
33768         * m4/sys_time_h.m4: Likewise.
33769         * m4/gettimeofday.m4: Likewise.
33770
33771 2007-03-04  Bruno Haible  <bruno@clisp.org>
33772
33773         * modules/vasnprintf-posix-tests: New file.
33774         * tests/test-vasnprintf-posix.c: New file.
33775
33776         * modules/vasnprintf-posix: New file.
33777         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
33778         printf-frexpl.h.
33779         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
33780         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
33781         REPLACE_VASNPRINTF is defined.
33782         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
33783         gl_FUNC_VASNPRINTF.
33784         (gl_FUNC_VASNPRINTF): Invoke it.
33785         * m4/vasnprintf-posix.m4: New file.
33786         * m4/printf.m4: New file.
33787
33788 2007-03-04  Bruno Haible  <bruno@clisp.org>
33789
33790         Compile progreloc.c only if --enable-relocatable is specified.
33791         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
33792         if --enable-relocatable was specified.
33793         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
33794         lib_SOURCES.
33795
33796 2007-03-04  Jim Meyering  <jim@meyering.net>
33797
33798         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
33799         Use it consistently, rather than enumerating errno constants.
33800
33801 2007-03-04  Bruno Haible  <bruno@clisp.org>
33802
33803         * modules/xvasprintf-tests: New file.
33804         * tests/test-xvasprintf.c: New file.
33805
33806         * modules/vasprintf-tests: New file.
33807         * tests/test-vasprintf.c: New file.
33808
33809         * modules/vasnprintf-tests: New file.
33810         * tests/test-vasnprintf.c: New file.
33811
33812         * modules/vsnprintf-tests: New file.
33813         * tests/test-vsnprintf.c: New file.
33814
33815         * modules/snprintf-tests: New file.
33816         * tests/test-snprintf.c: New file.
33817
33818 2007-03-04  Bruno Haible  <bruno@clisp.org>
33819
33820         Compile relocatable.c only if --enable-relocatable is specified.
33821         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
33822         gl_RELOCATABLE_LIBRARY.
33823         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
33824         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
33825         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
33826         gl_RELOCATABLE_LIBRARY.
33827         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
33828         (Makefile.am): Remove lib_SOURCES.
33829         * modules/relocatable-lib-lgpl (configure.ac): Invoke
33830         gl_RELOCATABLE_LIBRARY.
33831         (Makefile.am): Remove lib_SOURCES.
33832         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
33833         always.
33834         * modules/relocatable-prog-wrapper (configure.ac): Invoke
33835         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
33836
33837 2007-03-04  Bruno Haible  <bruno@clisp.org>
33838
33839         * modules/argmatch-tests: New file.
33840         * tests/test-argmatch.c: New file.
33841
33842         * tests/test-allocsa.c (main): Halve the number of loop runs.
33843
33844         * modules/alloca-opt-tests: New file.
33845         * tests/test-alloca-opt.c: New file.
33846
33847 2007-03-04  Jim Meyering  <jim@meyering.net>
33848
33849         Work around difference between Linux ACLs and Solaris 10 ZFS.
33850         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
33851         for EINVAL.
33852
33853 2007-03-03  Bruno Haible  <bruno@clisp.org>
33854
33855         * modules/relocatable-prog (Depends-on): Add back progreloc's
33856         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
33857
33858 2007-03-03  Bruno Haible  <bruno@clisp.org>
33859
33860         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
33861         * modules/relocatable-lib: New file.
33862
33863 2007-03-03  Bruno Haible  <bruno@clisp.org>
33864
33865         * modules/relocatable-prog: Renamed from modules/relocatable.
33866         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
33867
33868 2007-03-03  Bruno Haible  <bruno@clisp.org>
33869
33870         * modules/relocatable-script (Files): Add doc/relocatable.texi,
33871         m4/relocatable-lib.m4.
33872         (Depends-on): Remove 'relocatable'.
33873         (configure.ac): Add gl_RELOCATABLE_NOP.
33874
33875 2007-03-03  Bruno Haible  <bruno@clisp.org>
33876
33877         * modules/relocatable-prog-wrapper: New file.
33878         * modules/relocatable (Depends-on): Add it. Remove all other
33879         dependencies except progname.
33880         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
33881
33882         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
33883         (gl_FUNC_STRERROR): Nop.
33884         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
33885
33886         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
33887         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
33888
33889         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
33890         (gl_FUNC_READLINK): Update.
33891
33892         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
33893
33894 2007-03-03  Bruno Haible  <bruno@clisp.org>
33895
33896         * lib/xreadlink.c: Include <unistd.h> unconditionally.
33897         * modules/xreadlink (Depends-on): Add unistd.
33898         * modules/xreadlink-with-size (Depends-on): Likewise.
33899
33900 2007-03-03  Bruno Haible  <bruno@clisp.org>
33901
33902         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
33903         extracted from gt_FUNC_SETENV.
33904         (gt_FUNC_SETENV): Remove macro.
33905         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
33906         remove gt_FUNC_SETENV.
33907
33908 2007-03-03  Bruno Haible  <bruno@clisp.org>
33909
33910         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
33911         ENABLE_RELOCATABLE here.
33912         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
33913
33914 2007-03-03  Bruno Haible  <bruno@clisp.org>
33915
33916         * modules/rbtreehash-list-tests (Depends-on): Add progname.
33917         * tests/test-rbtreehash_list.c: Include progname.h.
33918         (main): Call set_program_name.
33919
33920         * modules/rbtree-oset-tests (Depends-on): Add progname.
33921         * tests/test-rbtree_oset.c: Include progname.h.
33922         (main): Call set_program_name.
33923
33924         * modules/rbtree-list-tests (Depends-on): Add progname.
33925         * tests/test-rbtree_list.c: Include progname.h.
33926         (main): Call set_program_name.
33927
33928         * modules/linked-list-tests (Depends-on): Add progname.
33929         * tests/test-linked_list.c: Include progname.h.
33930         (main): Call set_program_name.
33931
33932 2007-03-03  Bruno Haible  <bruno@clisp.org>
33933
33934         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
33935         All uses of __restrict changed to _Restrict_.
33936         * lib/glob_.h (__restrict): Remove macro.
33937
33938 2007-03-02  Bruno Haible  <bruno@clisp.org>
33939
33940         * modules/gettext (configure.ac): Require gettext infrastructure
33941         from version 0.16.1.
33942
33943 2007-03-02  Bruno Haible  <bruno@clisp.org>
33944
33945         * modules/linkedhash-list-tests (Depends-on): Add progname.
33946         * tests/test-linkedhash_list.c: Include progname.h.
33947         (main): Call set_program_name.
33948
33949         * modules/carray-list-tests (Depends-on): Add progname.
33950         * tests/test-carray_list.c: Include progname.h.
33951         (main): Call set_program_name.
33952
33953         * modules/avltreehash-list-tests (Depends-on): Add progname.
33954         * tests/test-avltreehash_list.c: Include progname.h.
33955         (main): Call set_program_name.
33956
33957         * modules/avltree-oset-tests (Depends-on): Add progname.
33958         * tests/test-avltree_oset.c: Include progname.h.
33959         (main): Call set_program_name.
33960
33961         * modules/avltree-list-tests (Depends-on): Add progname.
33962         * tests/test-avltree_list.c: Include progname.h.
33963         (main): Call set_program_name.
33964
33965         * modules/array-oset-tests (Depends-on): Add progname.
33966         * tests/test-array_oset.c: Include progname.h.
33967         (main): Call set_program_name.
33968
33969         * modules/array-list-tests (Depends-on): Add progname.
33970         * tests/test-array_list.c: Include progname.h.
33971         (main): Call set_program_name.
33972
33973         * modules/argp-tests (Depends-on): Add progname.
33974         * tests/test-argp.c: Include argp.h first. Include progname.h.
33975         (main): Call set_program_name.
33976
33977 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
33978
33979         * doc/gnulib-tool.texi (Initial import): Reword description of
33980         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
33981         limited effect even if defined after the first system include.
33982
33983 2007-03-01  Bruno Haible  <bruno@clisp.org>
33984
33985         * build-aux/config.libpath: Update to libtool-1.5.22.
33986         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33987
33988 2007-03-01  Bruno Haible  <bruno@clisp.org>
33989
33990         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
33991         foo_CFLAGS.
33992         Reported by Ralf Wildenhues.
33993
33994 2007-03-01  Bruno Haible  <bruno@clisp.org>
33995
33996         * build-aux/install-reloc: Remove object files left over by some
33997         compilers.
33998         Reported by Ralf Wildenhues.
33999
34000 2007-03-01  Bruno Haible  <bruno@clisp.org>
34001
34002         * build-aux/install-reloc: Break long lines.
34003
34004 2007-03-01  Bruno Haible  <bruno@clisp.org>
34005
34006         * doc/relocatable.texi: Document that it may not work on OpenBSD.
34007         Reported by Ralf Wildenhues.
34008
34009 2007-03-01  Bruno Haible  <bruno@clisp.org>
34010
34011         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
34012         include ordering constraints.
34013
34014 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
34015
34016         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
34017         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
34018         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
34019         as another example.
34020         * lib/time_.h: Fix misspelling.
34021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
34022         Require gl_HEADER_TIME_H_DEFAULTS.
34023         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
34024         * m4/time_r.m4 (gl_TIME_R): Likewise.
34025         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
34026
34027 2007-03-01  Bruno Haible  <bruno@clisp.org>
34028
34029         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
34030         * m4/utimens.m4 (gl_UTIMENS): Likewise.
34031
34032 2007-03-01  Jim Meyering  <jim@meyering.net>
34033
34034         * modules/xreadlink (Maintainer): Add my name.
34035         * modules/xreadlink-with-size (Depends-on): Alphabetize.
34036
34037 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
34038             Bruno Haible  <bruno@clisp.org>
34039
34040         * build-aux/install-reloc: Compile also c-ctype.c.
34041         * build-aux/relocatable.sh.in: New file.
34042         * doc/relocatable.texi: New file.
34043         * doc/relocatable-maint.texi: New file.
34044         * doc/gnulib.texi: Include relocatable-maint.texi.
34045         * lib/progreloc.c: Include unistd.h unconditionally.
34046         * lib/relocwrapper.c: Include unistd.h unconditionally.
34047         Include c-ctype.h.
34048         (add_dotbin): Use c_tolower.
34049         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
34050         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
34051         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
34052         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
34053         to m4/relocatable-lib.m4.
34054         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
34055         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
34056         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
34057         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
34058         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
34059         * modules/relocatable: New file.
34060         * modules/relocatable-lib: New file.
34061         * modules/relocatable-script: New file.
34062
34063 2007-02-28  Bruno Haible  <bruno@clisp.org>
34064
34065         Import --enable-relocatable infrastructure.
34066         * build-aux/config.libpath: New file, from GNU gettext.
34067         * build-aux/install-reloc: New file, from GNU gettext.
34068         * build-aux/reloc-ldflags: New file, from GNU gettext.
34069         * lib/relocatable.h: New file, from GNU gettext.
34070         * lib/relocatable.c: New file, from GNU gettext.
34071         * lib/relocwrapper.c: New file, from GNU gettext.
34072         * m4/relocatable.m4: New file, from GNU gettext.
34073
34074 2007-02-28  Bruno Haible  <bruno@clisp.org>
34075
34076         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
34077
34078         * modules/xreadlink: New file, from GNU gettext with modifications.
34079         * lib/xreadlink.c: New file, from GNU gettext.
34080         * lib/xreadlink.h: Add comments.
34081         (xreadlink): New declaration.
34082
34083         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
34084         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
34085         lib/xreadlink-with-size.c.
34086         (configure.ac): Remove gl_XREADLINK invocation.
34087         (Makefile.am): Augment lib_SOURCES.
34088         * m4/xreadlink.m4: Remove file.
34089         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
34090         (xreadlink_with_size): Renamed from xreadink.
34091         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
34092         * modules/canonicalize (Depends-on): Replace xreadlink with
34093         xreadlink-with-size.
34094         * lib/canonicalize.c (canonicalize_filename_mode): Update.
34095
34096 2007-02-25  Jim Meyering  <jim@meyering.net>
34097
34098         * build-aux/announce-gen: When complaining about excess arguments,
34099         list them.
34100
34101 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34102
34103         * README: Document signed integer overflow situation more
34104         accurately.
34105
34106 2007-02-25  Bruno Haible  <bruno@clisp.org>
34107
34108         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
34109         'a' or 'A' conversion.
34110
34111 2007-02-25  Bruno Haible  <bruno@clisp.org>
34112
34113         * modules/filename: Renamed from modules/pathname.
34114         (Files): Replace lib/pathname.h with lib/filename.h. Replace
34115         lib/concatpath.c with lib/concat-filename.c.
34116         (Makefile.am): Update.
34117         (Include): Replace pathname.h with filename.h.
34118         * lib/filename.h: Renamed from lib/pathname.h.
34119         (concatenated_filename): Renamed from concatenated_pathname.
34120         * lib/concat-filename.c: Renamed from lib/concatpath.c.
34121         (concatenated_filename): Renamed from concatenated_pathname.
34122         * lib/findprog.c: Include filename.h instead of pathname.h.
34123         (find_in_path): Update.
34124         * lib/javacomp.c: Include filename.h instead of pathname.h.
34125         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34126         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34127         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34128         is_oldgcj_14_13_usable, is_javac_usable): Update.
34129         * lib/javaexec.c: Include filename.h instead of pathname.h.
34130         (execute_java_class): Update.
34131         * modules/findprog: Update.
34132         * modules/javacomp: Update.
34133         * modules/javaexec: Update.
34134         * MODULES.html.sh (File system functions): Add 'filename', remove
34135         'pathname'.
34136
34137 2007-02-25  Bruno Haible  <bruno@clisp.org>
34138
34139         * modules/printf-frexpl-tests: New file.
34140         * tests/test-printf-frexpl.c: New file.
34141
34142         * modules/printf-frexpl: New file.
34143         * lib/printf-frexpl.h: New file.
34144         * lib/printf-frexpl.c: New file.
34145         * m4/printf-frexpl.m4: New file.
34146
34147 2007-02-25  Bruno Haible  <bruno@clisp.org>
34148
34149         * modules/printf-frexp-tests: New file.
34150         * tests/test-printf-frexp.c: New file.
34151
34152         * modules/printf-frexp: New file.
34153         * lib/printf-frexp.h: New file.
34154         * lib/printf-frexp.c: New file.
34155         * m4/printf-frexp.m4: New file.
34156
34157 2007-02-25  Bruno Haible  <bruno@clisp.org>
34158
34159         Assume automake >= 1.10 for the tests.
34160         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
34161         * modules/arctwo-tests: Likewise.
34162         * modules/argp-tests: Likewise.
34163         * modules/avltree-list-tests: Likewise.
34164         * modules/avltree-oset-tests: Likewise.
34165         * modules/avltreehash-list-tests: Likewise.
34166         * modules/carray-list-tests: Likewise.
34167         * modules/crc-tests: Likewise.
34168         * modules/des-tests: Likewise.
34169         * modules/gc-arcfour-tests: Likewise.
34170         * modules/gc-arctwo-tests: Likewise.
34171         * modules/gc-des-tests: Likewise.
34172         * modules/gc-hmac-md5-tests: Likewise.
34173         * modules/gc-hmac-sha1-tests: Likewise.
34174         * modules/gc-md2-tests: Likewise.
34175         * modules/gc-md4-tests: Likewise.
34176         * modules/gc-md5-tests: Likewise.
34177         * modules/gc-pbkdf2-sha1-tests: Likewise.
34178         * modules/gc-rijndael-tests: Likewise.
34179         * modules/gc-sha1-tests: Likewise.
34180         * modules/gc-tests: Likewise.
34181         * modules/getaddrinfo-tests: Likewise.
34182         * modules/hmac-md5-tests: Likewise.
34183         * modules/hmac-sha1-tests: Likewise.
34184         * modules/linked-list-tests: Likewise.
34185         * modules/linkedhash-list-tests: Likewise.
34186         * modules/lock-tests: Likewise.
34187         * modules/md2-tests: Likewise.
34188         * modules/md4-tests: Likewise.
34189         * modules/md5-tests: Likewise.
34190         * modules/rbtree-list-tests: Likewise.
34191         * modules/rbtree-oset-tests: Likewise.
34192         * modules/rbtreehash-list-tests: Likewise.
34193         * modules/read-file-tests: Likewise.
34194         * modules/rijndael-tests: Likewise.
34195         * modules/stdint-tests: Likewise.
34196         * modules/tls-tests: Likewise.
34197
34198 2007-02-24  Bruno Haible  <bruno@clisp.org>
34199
34200         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
34201         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
34202         function; instead check whether isnan with a double argument links.
34203         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
34204         function; instead check whether isnan with a 'long double' argument
34205         links.
34206         Reported by Eric Blake <ebb9@byu.net>.
34207
34208 2007-02-24  Bruno Haible  <bruno@clisp.org>
34209
34210         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
34211         defined.
34212         * lib/isnanl.c: Remove all code. Just include isnan.c.
34213         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
34214
34215 2007-02-25  Jim Meyering  <jim@meyering.net>
34216
34217         Avoid conflicting types for 'unsetenv' on FreeBSD.
34218         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
34219         conflicting with FreeBSD's (5.0 and 6.1) function declaration
34220         in stdlib.h.
34221
34222 2007-02-24  Bruno Haible  <bruno@clisp.org>
34223
34224         * modules/isnanl-nolibm-tests: New file.
34225         * tests/test-isnanl.c: New file.
34226
34227         * modules/isnanl-nolibm: New file.
34228         * lib/isnanl.h: New file.
34229         * lib/isnanl.c: New file.
34230         * m4/isnanl.m4: New file.
34231
34232 2007-02-24  Bruno Haible  <bruno@clisp.org>
34233
34234         * modules/isnan-nolibm-tests: New file.
34235         * tests/test-isnan.c: New file.
34236
34237         * modules/isnan-nolibm: New file.
34238         * lib/isnan.h: New file.
34239         * lib/isnan.c: New file.
34240         * m4/isnan.m4: New file.
34241
34242 2007-02-24  Bruno Haible  <bruno@clisp.org>
34243
34244         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
34245         assume that an exponent fits in 20 bits.
34246
34247 2007-02-24  Jim Meyering  <jim@meyering.net>
34248
34249         * m4/regex.m4: Update the description of the configure-time option,
34250         --without-included-regex, to state accurately what the defaults are,
34251         and perhaps to give people an idea why using this option is risky.
34252
34253 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
34254
34255         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
34256         loops on small arguments.  This attempts to avoid the problem
34257         Bruno Haible reported for AIX 4.3.2 in
34258         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
34259
34260 2007-02-23  Bruno Haible  <bruno@clisp.org>
34261
34262         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
34263         Needed for help2man.
34264
34265 2007-02-23  Karl Berry  <karl@gnu.org>
34266
34267         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
34268         exists, foo.h should be cvs-ignored, not committed.
34269
34270 2007-02-23  Eric Blake  <ebb9@byu.net>
34271
34272         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
34273         * lib/stat-time.h (includes): Likewise.
34274         * lib/utimecmp.c (includes): Likewise.
34275         * lib/utimens.h (includes): Likewise.
34276         * lib/getdate.y (includes): Also include "timespec.h" for use
34277         internal to the module.
34278         * modules/utimens (Depends-on): Revert yesterday's patch.
34279         * modules/nanosleep (Depends-on): Add missing dependency.
34280
34281 2007-02-22  Bruno Haible  <bruno@clisp.org>
34282
34283         * lib/glob.c: Don't include getlogin_r.h.
34284
34285 2007-02-22  Jim Meyering  <jim@meyering.net>
34286
34287         * modules/utimens (Depends-on): Add timespec, required for
34288         utimens.h's inclusion of timespec.h.
34289
34290 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
34291
34292         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
34293         long unreadable paths in GNU/Linux.  Problem reported by Andreas
34294         Schwab in
34295         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
34296         I'll try to think of a better way to fix the Solaris problem.
34297
34298         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
34299         like glibc; on Solaris 10, it fails with errno == EINVAL.
34300         POSIX says the behavior is unspecified if the first argument is NULL,
34301         so play it safe and never pass NULL to the system getcwd.
34302
34303 2007-02-21  Jim Meyering  <jim@meyering.net>
34304
34305         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
34306         of gettimeofday.  It would conflict with the one now always
34307         provided via sys_time_.h.  Reported by Matthew Woehlke, as
34308         an IRIX 6.5 build failure.
34309
34310 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34311
34312         Minor fixups to port to Solaris 10 with Sun C 5.8.
34313         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
34314         * modules/getcwd (Depends-on): Add dirfd.
34315         * lib/putenv.c (putenv): #undef it.
34316         (rpl_putenv): New decl.
34317         (malloc, free): Include <stdlib.h> rather than prototyping separately.
34318
34319 2007-02-20  Bruno Haible  <bruno@clisp.org>
34320
34321         * modules/stdio-tests: New file.
34322         * tests/test-stdio.c: New file.
34323
34324         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
34325         (Depends-on): Add stdio.
34326         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34327         (Include): Use <stdio.h> instead of vsnprintf.h.
34328         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34329         HAVE_DECL_VSNPRINTF.
34330         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
34331
34332         * modules/snprintf (Files): Remove lib/snprintf.h.
34333         (Depends-on): Add stdio.
34334         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34335         (Include): Use <stdio.h> instead of snprintf.h.
34336         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34337         HAVE_DECL_SNPRINTF.
34338         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
34339         * lib/getaddrinfo.c: Likewise.
34340
34341         * modules/stdio: New file.
34342         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
34343         * lib/snprintf.h: Remove file.
34344         * lib/vsnprintf.h: Remove file.
34345         * lib/.cppi-disable: Remove snprintf.h.
34346         * m4/stdio_h.m4: New file.
34347         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
34348
34349 2007-02-20  Jim Meyering  <jim@meyering.net>
34350
34351         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
34352         used by e.g., mingw.  From Bruno Haible.
34353
34354 2007-02-19  Bruno Haible  <bruno@clisp.org>
34355
34356         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
34357         warnings.
34358         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34359
34360 2007-02-19  Bruno Haible  <bruno@clisp.org>
34361
34362         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
34363         from mingw users.
34364
34365 2007-02-19  Bruno Haible  <bruno@clisp.org>
34366
34367         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
34368         warnings.
34369         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
34370
34371 2007-02-19  Jim Meyering  <jim@meyering.net>
34372
34373         Don't use FD after a successful "fdopendir (fd)".
34374         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
34375         Reset it by calling dirfd on the just-obtained DIR*.
34376
34377         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
34378         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
34379
34380 2007-02-18  Bruno Haible  <bruno@clisp.org>
34381
34382         * lib/readlink.c: Include <unistd.h>.
34383         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
34384         HAVE_READLINK.
34385         * modules/readlink (Depends-on): Add unistd.
34386         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34387         (Include): Add <unistd.h>.
34388
34389         * lib/getlogin_r.h: Remove file.
34390         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
34391         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
34392         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
34393         HAVE_DECL_GETLOGIN_R.
34394         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
34395         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34396         (Include): Use <unistd.h> instead of getlogin_r.h.
34397
34398         * lib/getcwd.h: Remove file.
34399         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
34400         * lib/xgetcwd.c: Likewise.
34401         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
34402         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
34403         * modules/getcwd (Files): Remove lib/getcwd.h.
34404         (Depends-on): Add unistd.
34405         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34406         (Include): Use <unistd.h> instad of getcwd.h.
34407
34408         * lib/ftruncate.c: Include <unistd.h> first.
34409         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
34410         Set HAVE_FTRUNCATE.
34411         * modules/ftruncate (Depends-on): Add unistd.
34412         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34413
34414         * lib/fchdir.c: Include <unistd.h> first.
34415         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
34416         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
34417         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
34418         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34419         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
34420
34421         * lib/dup2.c: Include <unistd.h> first.
34422         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
34423         HAVE_DUP2.
34424         * modules/dup2 (Depends-on): Add unistd.
34425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34426
34427         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
34428         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
34429         REPLACE_CHOWN. Don't define chown as a macro here.
34430         * modules/chown (Depends-on): Add unistd.
34431         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34432
34433         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
34434         Add definition for GL_LINK_WARNING.
34435         (chown, dup2): New declarations.
34436         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
34437         link warning.
34438         (ftruncate): New declaration.
34439         (getcwd): New declaration, taken from old getcwd.h.
34440         (getlogin_r): New declaration, taken from old getlogin_r.h.
34441         (readlink): New declaration.
34442         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
34443         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
34444         (gl_PREREQ_UNISTD): Remove macro.
34445         (gl_UNISTD_MODULE_INDICATOR): New macro.
34446         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
34447         many new variables. Don't set UNISTD_H.
34448         * modules/unistd (Description): Change.
34449         (Depends-on): Add link-warning.
34450         (configure.ac): Update.
34451         (Makefile.am): Create unistd.h always. Substitute many new variables
34452         into it.
34453
34454 2007-02-18  Bruno Haible  <bruno@clisp.org>
34455
34456         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
34457         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
34458         HAVE_GETSUBOPT.
34459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
34460         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
34461         * lib/getsubopt.h: Remove file.
34462         * modules/getsubopt (Files): Remove lib/getsubopt.h.
34463         (Depends-on): Add stdlib.
34464         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34465         (Includes): Use <stdlib.h> instead of getsubopt.h.
34466         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
34467         Set HAVE_GETSUBOPT.
34468         * lib/getsubopt.c: Don't include getsubopt.h.
34469
34470 2007-02-18  Bruno Haible  <bruno@clisp.org>
34471
34472         * modules/fchdir (Depends-on): Add dup2.
34473
34474 2007-02-18  Bruno Haible  <bruno@clisp.org>
34475
34476         * lib/stdlib_.h: Handle glibc's special invocation convention
34477         specially.
34478
34479 2007-02-18  Bruno Haible  <bruno@clisp.org>
34480
34481         * modules/stdlib-tests: New file.
34482         * tests/test-stdlib.c: New file.
34483
34484         * modules/mkstemp (Files): Remove lib/mkstemp.h.
34485         (Depends-on): Add stdlib.
34486         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34487         (Includes): Use <stdlib.h> instead of mkstemp.h.
34488         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34489         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
34490         * lib/mkstemp.c: Don't include mkstemp.h.
34491         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
34492         * lib/stdlib--.h: Don't include mkstemp.h.
34493
34494         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
34495         (Depends-on): Add stdlib.
34496         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34497         (Includes): Use <stdlib.h> instead of mkdtemp.h.
34498         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34499         HAVE_MKDTEMP.
34500         * lib/mkdtemp.c: Don't include mkdtemp.h.
34501         * lib/clean-temp.c: Don't include mkdtemp.h.
34502
34503         * modules/exit (Files): Remove lib/exit.h.
34504         (Depends-on): Add stdlib.
34505         (Makefile.am): Remove lib_SOURCES.
34506         (Include): Use <stdlib.h> instead of exit.h.
34507         * lib/argmatch.c: Don't include exit.h.
34508         * lib/execute.c: Likewise.
34509         * lib/pagealign_alloc.c: Likewise.
34510         * lib/pipe.c: Likewise.
34511         * lib/wait-process.c: Likewise.
34512         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
34513         * lib/exitfail.c: Likewise.
34514         * lib/savewd.c: Likewise.
34515         * lib/xsetenv.c: Likewise.
34516
34517         * modules/stdlib: New file.
34518         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
34519         and extra comments about mkstemp().
34520         * lib/exit.h: Remove file.
34521         * lib/mkdtemp.h: Remove file.
34522         * lib/mkstemp.h: Remove file.
34523         * m4/stdlib_h.m4: New file.
34524         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
34525
34526 2007-02-18  Bruno Haible  <bruno@clisp.org>
34527
34528         * modules/math-tests: New file.
34529         * tests/test-math.c: New file.
34530
34531         * modules/math: New file.
34532         * modules/mathl (Files): Remove lib/mathl.h.
34533         (Depends-on): Add math.
34534         (Makefile.am): Don't mention mathl.h.
34535         (Include): Use <math.h> instead of mathl.h.
34536         * lib/math_.h: New file.
34537         * lib/mathl.h: Remove file.
34538         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
34539         mathl.h.
34540         * lib/asinl.c: Likewise.
34541         * lib/atanl.c: Likewise.
34542         * lib/ceill.c: Likewise.
34543         * lib/cosl.c: Likewise.
34544         * lib/expl.c: Likewise.
34545         * lib/floorl.c: Likewise.
34546         * lib/frexpl.c: Likewise.
34547         * lib/ldexpl.c: Likewise.
34548         * lib/logl.c: Likewise.
34549         * lib/sincosl.c: Likewise.
34550         * lib/sinl.c: Likewise.
34551         * lib/sqrtl.c: Likewise.
34552         * lib/tanl.c: Likewise.
34553         * lib/trigl.c: Likewise.
34554         * m4/math_h.m4: New file.
34555         * MODULES.html.sh (Mathematics): Add math.
34556
34557 2007-02-17  Bruno Haible  <bruno@clisp.org>
34558
34559         * modules/wctype-tests: New file.
34560         * tests/test-wctype.c: New file.
34561
34562         * modules/wchar-tests: New file.
34563         * tests/test-wchar.c: New file.
34564
34565         * modules/unistd-tests: New file.
34566         * tests/test-unistd.c: New file.
34567
34568         * modules/time-tests: New file.
34569         * tests/test-time.c: New file.
34570
34571         * modules/sysexits-tests: New file.
34572         * tests/test-sysexits.c: New file.
34573
34574         * modules/sys_time-tests: New file.
34575         * tests/test-sys_time.c: New file.
34576
34577         * modules/sys_stat-tests: New file.
34578         * tests/test-sys_stat.c: New file.
34579
34580         * modules/sys_socket-tests: New file.
34581         * tests/test-sys_socket.c: New file.
34582
34583         * modules/sys_select-tests: New file.
34584         * tests/test-sys_select.c: New file.
34585
34586         * modules/string-tests: New file.
34587         * tests/test-string.c: New file.
34588
34589         * modules/stdbool-tests: New file.
34590         * tests/test-stdbool.c: New file.
34591
34592         * modules/netinet_in-tests: New file.
34593         * tests/test-netinet_in.c: New file.
34594
34595         * modules/inttypes-tests: New file.
34596         * tests/test-inttypes.c: New file.
34597
34598         * modules/fcntl-tests: New file.
34599         * tests/test-fcntl.c: New file.
34600
34601         * modules/byteswap-tests: New file.
34602         * tests/test-byteswap.c: New file.
34603
34604         * modules/arpa_inet-tests: New file.
34605         * tests/test-arpa_inet.c: New file.
34606
34607 2007-02-17  Bruno Haible  <bruno@clisp.org>
34608
34609         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
34610         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
34611         if the corresponding module is not enabled. Emit link warnings if
34612         the function is used nevertheless.
34613         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
34614         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
34615         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
34616         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
34617         * modules/inttypes (Depends-on): Add link-warning.
34618         (Makefile.am): Copy the contents of build-aux/link-warning.h into
34619         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
34620         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
34621         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
34622         * modules/imaxdiv (configure.ac): Likewise.
34623         * modules/strtoimax (configure.ac): Likewise.
34624         * modules/strtoumax (configure.ac): Likewise.
34625
34626 2007-02-17  Bruno Haible  <bruno@clisp.org>
34627
34628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
34629         gl_STRING_MODULE_INDICATOR_DEFAULTS.
34630         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
34631         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
34632
34633 2007-02-17  Bruno Haible  <bruno@clisp.org>
34634
34635         * modules/link-warning: New file.
34636         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
34637         * lib/string_.h (GL_LINK_WARNING): Remove definition.
34638         * modules/string (Depends-on): Add link-warning.
34639         (Makefile.am): Copy the contents of build-aux/link-warning.h into
34640         string.h.
34641         * MODULES.html.sh (Support for building libraries and executables): Add
34642         link-warning.
34643
34644 2007-02-17  Bruno Haible  <bruno@clisp.org>
34645
34646         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
34647         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
34648         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
34649         long lines.
34650
34651 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
34652             Bruno Haible  <bruno@clisp.org>
34653
34654         * modules/tmpfile: New file.
34655         * lib/tmpfile.c: New file.
34656         * m4/tmpfile.m4: New file.
34657         * MODULES.html.sh (func_all_modules): New section "Input/output".
34658
34659 2007-02-15  Bruno Haible  <bruno@clisp.org>
34660
34661         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
34662         (supports_delete_on_close): New function.
34663         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
34664
34665 2007-02-14  Bruno Haible  <bruno@clisp.org>
34666
34667         * modules/mbspcasecmp-tests: New file.
34668         * tests/test-mbspcasecmp.sh: New file.
34669         * tests/test-mbspcasecmp.c: New file.
34670
34671         New module mbspcasecmp.
34672         * modules/mbspcasecmp: New file.
34673         * lib/mbspcasecmp.c: New file.
34674         * lib/string_.h (strncasecmp): Change warning message.
34675         (mbspcasecmp): New declaration.
34676         * m4/mbspcasecmp.m4: New file.
34677         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34678         GNULIB_MBSPCASECMP.
34679         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
34680         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
34681
34682 2007-02-14  Bruno Haible  <bruno@clisp.org>
34683
34684         * modules/mbsncasecmp-tests: New file.
34685         * tests/test-mbsncasecmp.sh: New file.
34686         * tests/test-mbsncasecmp.c: New file.
34687
34688         New module mbsncasecmp.
34689         * modules/mbsncasecmp: New file.
34690         * lib/mbsncasecmp.c: New file.
34691         * lib/string_.h (mbsncasecmp): New declaration.
34692         * m4/mbsncasecmp.m4: New file.
34693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34694         GNULIB_MBSNCASECMP.
34695         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
34696         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
34697
34698 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34699
34700         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
34701         Verify that it doesn't overlap with our flags.
34702         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
34703         do not have the desired effect in multibyte locales; instead, use
34704         mbscasecmp.
34705         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
34706         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
34707         we don't require GNU fnmatch ourselves (if our users require it, they
34708         should do so explicitly).
34709
34710         Fix regex code so it doesn't rely on strcasecmp.
34711         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
34712         Otherwise, include gnulib's langinfo.h.
34713         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
34714         undesirable behavior in non-C locales.  Instead, rely on localecharset.
34715         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
34716         * modules/regex (FILES): Remove m4/codeset.m4.
34717         (Depends-on): Add localcharset.  Remove strcase.
34718
34719 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34720
34721         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
34722         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
34723
34724 2007-02-13  Bruno Haible  <bruno@clisp.org>
34725
34726         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
34727         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34728
34729 2007-02-12  Bruno Haible  <bruno@clisp.org>
34730
34731         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
34732         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
34733         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
34734         time warning rather than a link error.
34735
34736 2007-02-12  Bruno Haible  <bruno@clisp.org>
34737
34738         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
34739         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34740         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34741
34742 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34743
34744         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
34745         args, not 2.
34746
34747 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34748
34749         New module 'time', so that apps can include <time.h> as per
34750         POSIX and GNU instead of separate include files like time_r.h
34751         and timegm.h.  This implementation tries out a simpler approach
34752         for replacing decls in standard include files (as compared to
34753         the string module), somewhat as an experiment.
34754
34755         * config/srclist.txt: Comment out mktime.c for now.
34756         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
34757         since it doesn't apply any more.  Use generic wording instead.
34758         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
34759         'time'.
34760         * lib/time_.h, m4/time_h.m4, modules/time: New files.
34761         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
34762         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
34763         Don't include <sys/types.h>; no longer needed since we assume C89.
34764         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
34765         * lib/strftime.c: Likewise.
34766         * lib/time_r.c: Likewise.
34767         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
34768         * lib/nanosleep.c: Include <time.h> first, to check interface.
34769         * lib/strptime.c: Likewise.
34770         * lib/time_r.c: Likewise.
34771         * lib/timegm.c: Likewise.
34772         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
34773         needed.
34774         * lib/timegm.c: Don't include timegm.h; no longer needed.
34775         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
34776         time.h now handles any problems in that area.
34777         (struct timespec, nanosleep): Remove; time.h now arranges for these.
34778         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
34779         that time.h defines struct timespec.
34780         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
34781         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
34782         handles that.
34783         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
34784         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
34785         needed.  Set REPLACE_LOCALTIME.
34786         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
34787         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
34788         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
34789         nanosleep; time_h.m4 now does that.  Don't require
34790         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
34791         module handles this now.
34792         * modules/getdate (Depends-on): Remove timespec.  Add time.
34793         * modules/nanosleep (Depends-on): Likewise.
34794         * modules/stat-time (Depends-on): Likewise.
34795         * modules/nanosleep (Include): Include time.h, not timespec.h.
34796         * modules/strptime (Files): Remove lib/strptime.h.
34797         (Depends-on): Add extensions, time.
34798         (Include): Include time.h, not strptime.h.
34799         * modules/time_r (Files): Remove lib/time_r.h.
34800         (Depends-on): Add time.
34801         (Include): Include time.h, not time_r.h.
34802         * modules/timegm: Likewise.
34803         * modules/timespec (Description): Now does timespec-related decls
34804         of our own, instead of struct timespec itself.
34805         (Depends-on): Add time; remove extensions.
34806         (Maintainer): Add self.
34807         * modules/utimecmp (Depends-on): Add time; remove timespec.
34808         * modules/utimens (Depends-on): Likewise.
34809         * modules/xnanosleep (Depends-on): Likewise.
34810
34811 2007-02-11  Bruno Haible  <bruno@clisp.org>
34812
34813         * lib/c-strstr.c: Include allocsa.h.
34814         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34815         * lib/c-strcasestr.c: Include allocsa.h.
34816         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34817         * lib/strcasestr.c: Include allocsa.h.
34818         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34819         * lib/mbsstr.c: Include allocsa.h.
34820         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34821         allocsa/freesa instead of malloc/free.
34822         * lib/mbscasestr.c: Include allocsa.h.
34823         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34824         allocsa/freesa instead of malloc/free.
34825         * modules/c-strstr (Depends-on): Add allocsa.
34826         * modules/c-strcasestr (Depends-on): Likewise.
34827         * modules/strcasestr (Depends-on): Likewise.
34828         * modules/mbsstr (Depends-on): Likewise.
34829         * modules/mbscasestr (Depends-on): Likewise.
34830
34831 2007-02-11  Bruno Haible  <bruno@clisp.org>
34832
34833         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
34834
34835         * modules/mbsspn-tests: New file.
34836         * tests/test-mbsspn.sh: New file.
34837         * tests/test-mbsspn.c: New file.
34838
34839 2007-02-11  Bruno Haible  <bruno@clisp.org>
34840
34841         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
34842
34843         * modules/mbspbrk-tests: New file.
34844         * tests/test-mbspbrk.sh: New file.
34845         * tests/test-mbspbrk.c: New file.
34846
34847 2007-02-11  Bruno Haible  <bruno@clisp.org>
34848
34849         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
34850         unneeded cast.
34851
34852         * modules/mbscspn-tests: New file.
34853         * tests/test-mbscspn.sh: New file.
34854         * tests/test-mbscspn.c: New file.
34855
34856 2007-02-11  Bruno Haible  <bruno@clisp.org>
34857
34858         * modules/mbscasecmp-tests: New file.
34859         * tests/test-mbscasecmp.sh: New file.
34860         * tests/test-mbscasecmp.c: New file.
34861
34862 2007-02-11  Bruno Haible  <bruno@clisp.org>
34863
34864         Ensure O(n) worst-case complexity of mbscasestr.
34865         * lib/mbscasestr.c: Include stdbool.h.
34866         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34867         functions.
34868         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
34869         the bookkeeping indicates that it's worth it.
34870         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
34871
34872         * modules/mbscasestr-tests: New file.
34873         * tests/test-mbscasestr1.c: New file.
34874         * tests/test-mbscasestr2.sh: New file.
34875         * tests/test-mbscasestr2.c: New file.
34876         * tests/test-mbscasestr3.sh: New file.
34877         * tests/test-mbscasestr3.c: New file.
34878         * tests/test-mbscasestr4.sh: New file.
34879         * tests/test-mbscasestr4.c: New file.
34880         * m4/locale-tr.m4: New file.
34881
34882 2007-02-11  Bruno Haible  <bruno@clisp.org>
34883
34884         Ensure O(n) worst-case complexity of mbsstr.
34885         * lib/mbsstr.c: Include stdbool.h.
34886         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34887         functions.
34888         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
34889         bookkeeping indicates that it's worth it.
34890         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
34891
34892         * modules/mbsstr-tests: New file.
34893         * tests/test-mbsstr1.c: New file.
34894         * tests/test-mbsstr2.sh: New file.
34895         * tests/test-mbsstr2.c: New file.
34896         * tests/test-mbsstr3.sh: New file.
34897         * tests/test-mbsstr3.c: New file.
34898         * m4/locale-fr.m4: New file.
34899
34900 2007-02-11  Bruno Haible  <bruno@clisp.org>
34901
34902         * lib/mbsrchr.c (mbsrchr): Fix bug.
34903
34904         * modules/mbsrchr-tests: New file.
34905         * tests/test-mbsrchr.sh: New file.
34906         * tests/test-mbsrchr.c: New file.
34907
34908 2007-02-11  Bruno Haible  <bruno@clisp.org>
34909
34910         * lib/mbschr.c (mbschr): Fix bug.
34911
34912         * modules/mbschr-tests: New file.
34913         * tests/test-mbschr.sh: New file.
34914         * tests/test-mbschr.c: New file.
34915         * m4/locale-zh.m4: New file.
34916
34917 2007-02-11  Bruno Haible  <bruno@clisp.org>
34918
34919         Support for copying multibyte string iterators.
34920         * lib/mbiter.h: Include <string.h>.
34921         (mbiter_multi_copy): New function.
34922         (mbi_copy): New macro.
34923         * lib/mbuiter.h: Include <string.h>.
34924         (mbuiter_multi_copy): New function.
34925         (mbui_copy): New macro.
34926
34927 2007-02-11  Bruno Haible  <bruno@clisp.org>
34928
34929         New module mbslen.
34930         * modules/mbslen: New file.
34931         * lib/mbslen.c: New file.
34932         * lib/string_.h (mbslen): New declaration.
34933         * m4/mbslen.m4: New file.
34934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34935         GNULIB_MBSLEN.
34936         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
34937         * MODULES.html.sh (Internationalization functions): Add mbslen.
34938
34939 2007-02-11  Bruno Haible  <bruno@clisp.org>
34940
34941         Ensure O(n) worst-case complexity of strcasestr substitute.
34942         * lib/strcasestr.c: Include stdbool.h.
34943         (knuth_morris_pratt): New function.
34944         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
34945         bookkeeping indicates that it's worth it.
34946         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
34947
34948         * modules/strcasestr-tests: New file.
34949         * tests/test-strcasestr.c: New file.
34950
34951 2007-02-11  Bruno Haible  <bruno@clisp.org>
34952
34953         Ensure O(n) worst-case complexity of c_strcasestr.
34954         * lib/c-strcasestr.c: Include stdbool.h, string.h.
34955         (knuth_morris_pratt): New function.
34956         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
34957         the bookkeeping indicates that it's worth it.
34958         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
34959
34960         * modules/c-strcasestr-tests: New file.
34961         * tests/test-c-strcasestr.c: New file.
34962
34963 2007-02-11  Bruno Haible  <bruno@clisp.org>
34964
34965         Ensure O(n) worst-case complexity of c_strstr.
34966         * lib/c-strstr.c: Include stdbool.h, string.h.
34967         (knuth_morris_pratt): New function.
34968         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
34969         bookkeeping indicates that it's worth it.
34970         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
34971
34972         * lib/c-strstr.c: Complete rewrite for maintainability.
34973
34974         * modules/c-strstr-tests: New file.
34975         * tests/test-c-strstr.c: New file.
34976
34977 2007-02-11  Bruno Haible  <bruno@clisp.org>
34978
34979         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
34980         5.2.1 and earlier, whereby \055 was treated just like the range
34981         delimiter '-'.
34982         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34983
34984 2007-02-08  Bruno Haible  <bruno@clisp.org>
34985
34986         * modules/regex (Depends-on): Add stdbool.
34987         Reported by Dalibor Topic <robilad@kaffe.org>.
34988
34989 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
34990
34991         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
34992         Prefer returning from main to exiting from it.
34993         Remove unnecessary parens after sizeof.
34994
34995 2007-02-05  Bruno Haible  <bruno@clisp.org>
34996
34997         New module mbssep.
34998         * modules/mbssep: New file.
34999         * lib/mbssep.c: New file.
35000         * lib/string_.h (strsep): Add a conditional link warning.
35001         (mbssep): New declaration.
35002         * m4/mbssep.m4: New file.
35003         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35004         GNULIB_MBSSEP.
35005         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
35006         * MODULES.html.sh (Internationalization functions): Add mbssep.
35007
35008 2007-02-05  Bruno Haible  <bruno@clisp.org>
35009
35010         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
35011         Optimize search in case of 1 delimiter.
35012
35013 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
35014
35015         * lib/acl.h: Include sys/types.h before sys/acl.h.
35016
35017 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
35018
35019         Merge upstream fix for glibc bugzilla #3957:
35020
35021         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
35022
35023         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
35024         bit for RE_HAT_LISTS_NOT_NEWLINE.
35025         (build_charclass_op): Remove bogus comment.
35026
35027 2007-02-05  Simon Josefsson  <simon@josefsson.org>
35028
35029         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
35030
35031 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35032
35033         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
35034         * lib/memmem.c [!defined _LIBC]: Include config.h.
35035
35036 2007-02-04  Bruno Haible  <bruno@clisp.org>
35037
35038         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
35039         warning message.
35040
35041 2007-02-04  Bruno Haible  <bruno@clisp.org>
35042
35043         New module mbstok_r.
35044         * modules/mbstok_r: New file.
35045         * lib/mbstok_r.c: New file.
35046         * lib/string_.h (strtok_r): Change argument names to match the
35047         comments. Add a conditional link warning.
35048         (mbstok_r): New declaration.
35049         * m4/mbstok_r.m4: New file.
35050         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35051         GNULIB_MBSTOK_R.
35052         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
35053         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
35054
35055 2007-02-04  Bruno Haible  <bruno@clisp.org>
35056
35057         New module mbsspn.
35058         * modules/mbsspn: New file.
35059         * lib/mbsspn.c: New file.
35060         * lib/string_.h (strspn): Add a conditional link warning.
35061         (mbsspn): New declaration.
35062         * m4/mbsspn.m4: New file.
35063         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35064         GNULIB_MBSSPN.
35065         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
35066         * MODULES.html.sh (Internationalization functions): Add mbsspn.
35067
35068 2007-02-04  Bruno Haible  <bruno@clisp.org>
35069
35070         New module mbspbrk.
35071         * modules/mbspbrk: New file.
35072         * lib/mbspbrk.c: New file.
35073         * lib/string_.h (strpbrk): Add a conditional link warning.
35074         (mbspbrk): New declaration.
35075         * m4/mbspbrk.m4: New file.
35076         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35077         GNULIB_MBSPBRK.
35078         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
35079         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
35080
35081 2007-02-04  Bruno Haible  <bruno@clisp.org>
35082
35083         New module mbscspn.
35084         * modules/mbscspn: New file.
35085         * lib/mbscspn.c: New file.
35086         * lib/string_.h (strcspn): Add a conditional link warning.
35087         (mbscspn): New declaration.
35088         * m4/mbscspn.m4: New file.
35089         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35090         GNULIB_MBSCSPN.
35091         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
35092         * MODULES.html.sh (Internationalization functions): Add mbscspn.
35093
35094 2007-02-04  Bruno Haible  <bruno@clisp.org>
35095
35096         New module mbscasestr, reduced goal of strcasestr.
35097         * modules/mbscasestr: New file.
35098         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
35099         (mbscasestr): Renamed from strcasestr.
35100         * lib/strcasestr.c: Don't include mbuiter.h.
35101         (strcasestr): Remove support for multibyte locales.
35102         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
35103         Change the conditional link warning.
35104         (mbscasestr): New declaration.
35105         * m4/mbscasestr.m4: New file.
35106         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
35107         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
35108         REPLACE_STRCASESTR.
35109         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
35110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35111         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35112         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
35113         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
35114         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35115         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
35116         (Depends-on): Remove mbuiter.
35117         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
35118
35119 2007-02-04  Bruno Haible  <bruno@clisp.org>
35120
35121         Simplify handling of strncasecmp.
35122         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
35123         the conditional link warning.
35124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35125         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
35126         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
35127         * modules/strcase (configure.ac): Don't invoke
35128         gl_STRING_MODULE_INDICATOR.
35129         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
35130
35131 2007-02-04  Bruno Haible  <bruno@clisp.org>
35132
35133         New module mbscasecmp, reduced goal of strcasecmp.
35134         * modules/mbscasecmp: New file.
35135         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
35136         (mbscasecmp): Renamed from strcasecmp.
35137         * lib/strcasecmp.c: Don't include mbuiter.h.
35138         (strcasecmp): Remove support for multibyte locales.
35139         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
35140         Change the conditional link warning.
35141         (mbscasecmp): New declaration.
35142         * m4/mbscasecmp.m4: New file.
35143         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
35144         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
35145         REPLACE_STRCASECMP.
35146         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
35147         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35148         GNULIB_MBSCASECMP.
35149         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
35150         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
35151         * modules/strcase (Files): Remove m4/mbrtowc.m4.
35152         (Depends-on): Remove mbuiter.
35153         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
35154
35155 2007-02-04  Bruno Haible  <bruno@clisp.org>
35156
35157         New module mbsstr. Remove module strstr.
35158         * modules/mbsstr: New file.
35159         * modules/strstr: Remove file.
35160         * lib/mbsstr.c: Renamed from lib/strstr.c.
35161         (mbsstr): Renamed from strstr.
35162         * lib/string_.h (strstr): Remove declaration. Change the conditional
35163         link warning.
35164         (mbsstr): New declaration.
35165         * m4/mbsstr.m4: New file.
35166         * m4/strstr.m4: Remove file.
35167         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35168         REPLACE_STRSTR.
35169         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
35170         Don't initialize GNULIB_STRSTR.
35171         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
35172         substitute GNULIB_STRSTR and REPLACE_STRSTR.
35173         * MODULES.html.sh (Internationalization functions): Add mbsstr.
35174         (Support for systems lacking ANSI C 89): Remove strstr.
35175
35176 2007-02-04  Bruno Haible  <bruno@clisp.org>
35177
35178         New module mbsrchr.
35179         * modules/mbsrchr: New file.
35180         * lib/mbsrchr.c: New file.
35181         * lib/string_.h (strrchr): Add a conditional link warning.
35182         (mbsrchr): New declaration.
35183         * m4/mbsrchr.m4: New file.
35184         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35185         GNULIB_MBSRCHR.
35186         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
35187         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
35188
35189 2007-02-04  Bruno Haible  <bruno@clisp.org>
35190
35191         New module mbschr.
35192         * modules/mbschr: New file.
35193         * lib/mbschr.c: New file.
35194         * lib/string_.h (strchr): Add a conditional link warning.
35195         (mbschr): New declaration.
35196         * m4/mbschr.m4: New file.
35197         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35198         GNULIB_MBSCHR.
35199         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
35200         * MODULES.html.sh (Internationalization functions): Add mbschr.
35201
35202 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35203
35204         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
35205
35206         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
35207
35208 2007-02-04  Bruno Haible  <bruno@clisp.org>
35209
35210         New module description section 'configure.ac-early'.
35211         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
35212         (func_get_autoconf_early_snippet): New function.
35213         (func_import, func_create_testdir): Use it. Remove special cases for
35214         modules 'extensions' and 'lock'.
35215         * modules/extensions (configure.ac-early): Require
35216         gl_USE_SYSTEM_EXTENSIONS.
35217         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
35218
35219 2007-02-04  Bruno Haible  <bruno@clisp.org>
35220
35221         Make use of gcj-4.3's -fsource and -ftarget option.
35222         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
35223         and if so try the options -fsource and -ftarget.
35224         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
35225         source_version, ftarget_option, target_version arguments.
35226         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
35227         (is_envjavac_oldgcj_14_14_usable): Renamed from
35228         is_envjavac_gcj_14_14_usable.
35229         (is_envjavac_oldgcj_14_13_usable): Renamed from
35230         is_envjavac_gcj_14_13_usable.
35231         (is_gcj_present): Update.
35232         (is_gcj_43, is_gcj43_usable): New functions.
35233         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
35234         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
35235         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
35236         try the options -fsource and -ftarget.
35237
35238 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35239
35240         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
35241         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
35242         larger value.
35243
35244 2007-02-03  Jim Meyering  <jim@meyering.net>
35245
35246         Give tools a better chance to allocate space for very large buffers.
35247         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
35248
35249         Make pwd and readlink work also when run with an unreadable parent dir
35250         on systems with openat support.
35251         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
35252         provided getcwd function, even when we have openat support.
35253         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
35254
35255 2007-02-02  Bruno Haible  <bruno@clisp.org>
35256
35257         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
35258         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
35259         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
35260         portability problems if one of these functions is only used on specific
35261         platforms.
35262         Reported by Paul Eggert.
35263
35264 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
35265
35266         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
35267         is causing more trouble than it's curing.
35268         * lib/regex_internal.h (__mempcpy): Remove.
35269         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
35270         (and make the code a tad smaller to boot).
35271         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
35272
35273 2007-02-02  Jim Meyering  <jim@meyering.net>
35274
35275         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
35276         section, not in the Makefile.am: one.
35277
35278 2007-02-02  Eric Blake  <ebb9@byu.net>
35279
35280         * lib/strchrnul.c: Always include config.h first.
35281
35282         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
35283         gnulib strstr is not necessary here.
35284
35285 2007-02-02  Simon Josefsson  <simon@josefsson.org>
35286
35287         * m4/socklen.m4: Fix typo.
35288
35289 2007-02-02  Eric Blake  <ebb9@byu.net>
35290
35291         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
35292         * modules/netinet_in (Makefile.am): Likewise.
35293
35294 2007-02-01  Bruno Haible  <bruno@clisp.org>
35295
35296         * lib/string_.h (GL_LINK_WARNING): New macro.
35297         (strcasecmp, strstr, strcasestr): If provided by the system,
35298         conditionally define as a macro that leads to a warning instead of to
35299         an error.
35300         (strncasecmp): Conditionally define as a macro that leads to a warning.
35301
35302 2007-02-01  Karl Berry  <karl@gnu.org>
35303
35304         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
35305
35306 2007-02-01  Bruno Haible  <bruno@clisp.org>
35307
35308         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
35309         renamings.
35310
35311 2007-02-01  Eric Blake  <ebb9@byu.net>
35312
35313         * modules/regex (Depends-on): Revert dependence on mempcpy.
35314         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
35315         module's definition of mempcpy.
35316         Reported by Paul Eggert.
35317
35318 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
35319
35320         * lib/string_.h: If the gnulib module XYZ is not present, undefine
35321         the symbol XYZ before redefining it.  This fixes a problem with
35322         programs that don't use XYZ, when compiled on systems that define
35323         XYZ to something else.
35324
35325 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35326
35327         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
35328         occurs when "mkdir -m foo" creates a setgid directory that is (1)
35329         writeable to group or other and (2) is intended to have a special
35330         mode bit that is set or cleared.  In such a case, the directory
35331         should be neither group- nor other-writeable until the special
35332         mode bits are right.
35333
35334 2007-01-31  Eric Blake  <ebb9@byu.net>
35335
35336         * modules/mountlist (Depends-on): Add strstr.
35337
35338         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
35339         bug.
35340         * modules/string (Makefile.am): Remove redundant replacement.
35341         * modules/regex (Depends-on): Add mempcpy.
35342
35343 2007-01-31  Bruno Haible  <bruno@clisp.org>
35344
35345         New module description field 'Link'.
35346         * gnulib-tool (func_usage): Document --extract-link-directive.
35347         (sed_extract_prog): Recognize 'Link' directive.
35348         (func_get_link_directive): New function.
35349         (func_import): Show summary of link directives.
35350         Handle --extract-link-directive option.
35351         * modules/acl (Link): New section.
35352         * modules/clock-time (Link): New section.
35353         * modules/euidaccess (Link): New section.
35354         * modules/gettext (Link): New section.
35355         * modules/iconv (Link): New section.
35356         * modules/lock (Link): New section.
35357         * modules/nanosleep (Link): New section.
35358         * modules/readline (Link): New section.
35359
35360 2007-01-27  Bruno Haible  <bruno@clisp.org>
35361
35362         Enforce the use of gnulib modules for unportable <string.h> functions.
35363         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
35364         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
35365         (gl_HEADER_STRING_H_BODY): Require it.
35366         * lib/string_.h: If the gnulib module XYZ is not present, redefine
35367         the symbol XYZ to one that gives a link error.
35368         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
35369         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
35370         * modules/mempcpy (configure.ac): Likewise.
35371         * modules/memrchr (configure.ac): Likewise.
35372         * modules/stpcpy (configure.ac): Likewise.
35373         * modules/stpncpy (configure.ac): Likewise.
35374         * modules/strcase (configure.ac): Likewise.
35375         * modules/strcasestr (configure.ac): Likewise.
35376         * modules/strchrnul (configure.ac): Likewise.
35377         * modules/strdup (configure.ac): Likewise.
35378         * modules/strndup (configure.ac): Likewise.
35379         * modules/strnlen (configure.ac): Likewise.
35380         * modules/strpbrk (configure.ac): Likewise.
35381         * modules/strsep (configure.ac): Likewise.
35382         * modules/strstr (configure.ac): Likewise.
35383         * modules/strtok_r (configure.ac): Likewise.
35384
35385 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
35386
35387         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
35388
35389 2007-01-30  Jim Meyering  <jim@meyering.net>
35390
35391         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
35392
35393 2007-01-29  Bruno Haible  <bruno@clisp.org>
35394
35395         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
35396         * lib/execute.c: Likewise.
35397         * lib/pipe.c: Likewise.
35398         * lib/printf-args.h: Likewise.
35399         * lib/printf-args.c: Likewise.
35400         * lib/printf-parse.c: Likewise.
35401         * lib/vasnprintf.c: Likewise.
35402
35403 2007-01-29  Eric Blake  <ebb9@byu.net>
35404
35405         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
35406         declaration.
35407
35408 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35409
35410         * lib/strptime.h (strptime): Use 'restrict' for args where
35411         POSIX requires this.
35412         * lib/strptime.c (strptime): Likewise.
35413         Change license notice from LGPL to GPL, since gnulib-tool will
35414         change this as needed.
35415         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
35416         defined.
35417         Include "strptime.h" first, to check interface.
35418         Do not #undef _LIBC and _NL_CURRENT.
35419         Do not include <stdlib.h>; no longer needed.
35420         Include "time_r.h" and declare ptime_locale_status
35421         only if _LIBC is not defined.
35422         (__P): Remove unused macro.
35423         (match_string): Bring back glibc version, but use it only if _LIBC
35424         is defined.
35425         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
35426         Remove unnecessary assertion and abort() call.
35427         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
35428         * m4/strptime.m4: Fix serial number comment.
35429         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
35430         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
35431         (Depends-on): Add time_r.
35432
35433 2007-01-29  Bruno Haible  <bruno@clisp.org>
35434
35435         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35436         strptime.
35437         * modules/strptime (Depends-on): Add stdbool.
35438         * lib/strptime.h: Include <time.h> always. Add comments.
35439
35440 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35441
35442         * modules/strptime: New file.
35443         * lib/strptime.h: New file.
35444         * lib/strptime.c: New file.
35445         * m4/strptime.m4: New file.
35446
35447 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
35448
35449         * MODULES.html.sh: New module mpsort.
35450         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
35451
35452         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
35453         a circularity problem with HP-UX ia64 reported by Bob Proulx in
35454         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
35455         All uses changed.
35456         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
35457         All uses changed.
35458         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
35459         to _Restrict_.
35460         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
35461         the parameter matches the prototype.
35462
35463 2007-01-28  Jim Meyering  <jim@meyering.net>
35464
35465         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
35466         sys/time.h here, reverting that part of the previous patch:
35467         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
35468
35469 2007-01-28  Bruno Haible  <bruno@clisp.org>
35470
35471         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
35472         value of $(SYS_TIME_H).
35473         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
35474         remove it conditionally, too. [added by Jim Meyering]
35475         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
35476         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
35477         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
35478         GETTIMEOFDAY_REPLACEMENT to 1.
35479
35480 2007-01-28  Bruno Haible  <bruno@clisp.org>
35481
35482         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
35483         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
35484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
35485         Set UNISTD_H instead of UNISTD_H2.
35486         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
35487
35488 2007-01-28  Bruno Haible  <bruno@clisp.org>
35489
35490         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
35491         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
35492
35493 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35494
35495         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
35496         (func_create_testdir): Ensure C locale for `grep' and `tr'
35497         character ranges.
35498         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
35499         ACLOCAL_AMFLAGS parsing state machine.
35500
35501 2007-01-27  Bruno Haible  <bruno@clisp.org>
35502
35503         * modules/unistr/base: Update.
35504
35505 2007-01-27  Bruno Haible  <bruno@clisp.org>
35506
35507         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
35508         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
35509         * modules/unistr/u32-mbtouc-unsafe: Renamed from
35510         modules/unistr/u32-mbtouc.
35511         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
35512         * lib/unistr.h: Update.
35513         * lib/linebreak.c: Update.
35514         * modules/unistr/u32-mbtouc: Renamed from
35515         modules/unistr/u32-mbtouc-safe.
35516         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
35517         * lib/unistr.h: Update.
35518         * lib/unistr/u32-to-u8.c: Update.
35519         * lib/unistr/u32-to-u16.c: Update.
35520
35521 2007-01-27  Bruno Haible  <bruno@clisp.org>
35522
35523         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
35524         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
35525         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
35526         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
35527         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
35528         * modules/unistr/u16-mbtouc-unsafe: Renamed from
35529         modules/unistr/u16-mbtouc.
35530         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
35531         * lib/unistr.h: Update.
35532         * lib/linebreak.c: Update.
35533         * modules/linebreak: Update.
35534         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
35535         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
35536         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
35537         * modules/unistr/u16-mbtouc: Renamed from
35538         modules/unistr/u16-mbtouc-safe.
35539         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
35540         * lib/unistr.h: Update.
35541         * lib/unistr/u16-to-u8.c: Update.
35542         * modules/unistr/u16-to-u8: Update.
35543         * lib/unistr/u16-to-u32.c: Update.
35544         * modules/unistr/u16-to-u32: Update.
35545
35546 2007-01-27  Bruno Haible  <bruno@clisp.org>
35547
35548         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
35549         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
35550         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
35551         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
35552         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
35553         * modules/unistr/u8-mbtouc-unsafe: Renamed from
35554         modules/unistr/u8-mbtouc.
35555         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
35556         * lib/unistr.h: Update.
35557         * lib/striconveh.c: Update.
35558         * modules/striconveh: Update.
35559         * lib/linebreak.c: Update.
35560         * modules/linebreak: Update.
35561         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
35562         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
35563         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
35564         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
35565         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
35566         * lib/unistr.h: Update.
35567         * lib/striconveh.c: Update.
35568         * modules/striconveh: Update.
35569         * lib/unistr/u8-to-u16.c: Update.
35570         * modules/unistr/u8-to-u16: Update.
35571         * lib/unistr/u8-to-u32.c: Update.
35572         * modules/unistr/u8-to-u32: Update.
35573
35574 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35575
35576         Sync from Libtool.
35577         * lib/argz.c: Do not include strings.h nor memory.h, include
35578         string.h unconditionally.  Patch by Simon Josefsson.
35579
35580 2007-01-27  Bruno Haible  <bruno@clisp.org>
35581
35582         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
35583         from gl_HEADER_STRING_H_BODY.
35584         (gl_HEADER_STRING_H_BODY): Require it.
35585         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
35586         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35587         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35588         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35589         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35590         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
35591         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35592         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35593         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
35594         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35595         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35596         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
35597         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35598         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35599         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35600
35601 2007-01-27  Bruno Haible  <bruno@clisp.org>
35602
35603         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
35604         check_PROGRAMS into noinst_PROGRAMS.
35605         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
35606         check_PROGRAMS in this case.
35607         (func_import): Set for_test to false.
35608         (func_create_testdir): Set for_test to true.
35609
35610 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35611             Bruno Haible  <bruno@clisp.org>
35612
35613         * modules/strcasestr (Files): Remove lib/strcasestr.h.
35614         (Depends-on): Add string.
35615         (Includes): Use <string.h> instead of strcasestr.h.
35616         * modules/string (Makefile.am): Also substitute the value of
35617         REPLACE_STRCASESTR.
35618         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
35619         assume strcasestr is declared in <string.h> not <strings.h>. Also
35620         set REPLACE_STRCASESTR.
35621         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
35622         REPLACE_STRCASESTR.
35623         * lib/strcasestr.h: Remove file.
35624         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
35625         * lib/string_.h (strcasestr): New declaration.
35626
35627 2007-01-27  Bruno Haible  <bruno@clisp.org>
35628
35629         * lib/string_.h: Use 'extern'.
35630
35631 2007-01-27  Jim Meyering  <jim@meyering.net>
35632
35633         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
35634         of set-but-not-used local, "q".
35635
35636         * lib/mempcpy.c: Include <config.h> before <string.h>.
35637         This fixes a compilation error on HP-UX, due to the system's
35638         "restrict"-using mempcpy prototype.
35639
35640 2007-01-26  Bruno Haible  <bruno@clisp.org>
35641
35642         Small optimization.
35643         * lib/javacomp.c: Include c-strstr.h.
35644          (is_envjavac_gcj): Use c_strstr instead of strstr.
35645         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
35646
35647 2007-01-26  Bruno Haible  <bruno@clisp.org>
35648
35649         * MODULES.html.sh (Unicode string functions): Add the new modules.
35650
35651         * modules/uniconv/u32-strconv-to-locale: New file.
35652         * lib/uniconv/u32-strconv-to-locale.c: New file.
35653
35654         * modules/uniconv/u16-strconv-to-locale: New file.
35655         * lib/uniconv/u16-strconv-to-locale.c: New file.
35656
35657         * modules/uniconv/u8-strconv-to-locale: New file.
35658         * lib/uniconv/u8-strconv-to-locale.c: New file.
35659
35660         * modules/uniconv/u32-strconv-from-locale: New file.
35661         * lib/uniconv/u32-strconv-from-locale.c: New file.
35662
35663         * modules/uniconv/u16-strconv-from-locale: New file.
35664         * lib/uniconv/u16-strconv-from-locale.c: New file.
35665
35666         * modules/uniconv/u8-strconv-from-locale: New file.
35667         * lib/uniconv/u8-strconv-from-locale.c: New file.
35668
35669         * modules/uniconv/u32-strconv-to-enc: New file.
35670         * lib/uniconv/u32-strconv-to-enc.c: New file.
35671         * modules/uniconv/u32-strconv-to-enc-tests: New file.
35672         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
35673
35674         * modules/uniconv/u16-strconv-to-enc: New file.
35675         * lib/uniconv/u16-strconv-to-enc.c: New file.
35676         * lib/uniconv/u-strconv-to-enc.h: New file.
35677         * modules/uniconv/u16-strconv-to-enc-tests: New file.
35678         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
35679
35680         * modules/uniconv/u8-strconv-to-enc: New file.
35681         * lib/uniconv/u8-strconv-to-enc.c: New file.
35682         * modules/uniconv/u8-strconv-to-enc-tests: New file.
35683         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
35684
35685         * modules/uniconv/u32-strconv-from-enc: New file.
35686         * lib/uniconv/u32-strconv-from-enc.c: New file.
35687         * modules/uniconv/u32-strconv-from-enc-tests: New file.
35688         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
35689
35690         * modules/uniconv/u16-strconv-from-enc: New file.
35691         * lib/uniconv/u16-strconv-from-enc.c: New file.
35692         * modules/uniconv/u16-strconv-from-enc-tests: New file.
35693         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
35694
35695         * modules/uniconv/u8-strconv-from-enc: New file.
35696         * lib/uniconv/u8-strconv-from-enc.c: New file.
35697         * lib/uniconv/u-strconv-from-enc.h: New file.
35698         * modules/uniconv/u8-strconv-from-enc-tests: New file.
35699         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
35700
35701         * modules/uniconv/u32-conv-from-enc: New file.
35702         * lib/uniconv/u32-conv-from-enc.c: New file.
35703         * modules/uniconv/u32-conv-from-enc-tests: New file.
35704         * tests/uniconv/test-u32-conv-from-enc.c: New file.
35705
35706         * modules/uniconv/u16-conv-from-enc: New file.
35707         * lib/uniconv/u16-conv-from-enc.c: New file.
35708         * lib/uniconv/u-conv-from-enc.h: New file.
35709         * modules/uniconv/u16-conv-from-enc-tests: New file.
35710         * tests/uniconv/test-u16-conv-from-enc.c: New file.
35711
35712         * modules/uniconv/u8-conv-from-enc: New file.
35713         * lib/uniconv/u8-conv-from-enc.c: New file.
35714         * modules/uniconv/u8-conv-from-enc-tests: New file.
35715         * tests/uniconv/test-u8-conv-from-enc.c: New file.
35716
35717         * modules/uniconv/base: New file.
35718         * lib/uniconv.h: New file.
35719
35720 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
35721
35722         * doc/gnulib-tool.texi (Initial import): Update to match current
35723         behavior with strdup module.
35724         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
35725         * lib/memmem.h: Remove; all uses removed.  This is now done
35726         by <string.h>.
35727         * lib/mempcpy.h: Likewise.
35728         * lib/memrchr.h: Likewise.
35729         * lib/stpcpy.h: Likewise.
35730         * lib/stpncpy.h: Likewise.
35731         * lib/strcase.h: Likewise.
35732         * lib/strchrnul.h: Likewise.
35733         * lib/strdup.h: Likewise.
35734         * lib/strndup.h: Likewise.
35735         * lib/strnlen.h: Likewise.
35736         * lib/strpbrk.h: Likewise.
35737         * lib/strsep.h: Likewise.
35738         * lib/strstr.h: Likewise.
35739         * lib/strtok_r.h: Likewise.
35740         * lib/string_.h: New file.
35741         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
35742         Rely on <string.h> instead.
35743         * lib/canon-host.c: Likewise.
35744         * lib/chdir-long.c: Likewise.
35745         * lib/concatpath.c: Likewise.
35746         * lib/exclude.c: Likewise.
35747         * lib/fchdir.c: Likewise.
35748         * lib/getaddrinfo.c: Likewise.
35749         * lib/getcwd.c: Likewise.
35750         * lib/getsubopt.c: Likewise.
35751         * lib/glob.c: Likewise.
35752         * lib/hard-locale.c: Likewise.
35753         * lib/iconvme.c: Likewise.
35754         * lib/javacomp.c: Likewise.
35755         * lib/mempcpy.c: Likewise.
35756         * lib/memrchr.c: Likewise.
35757         * lib/regex_internal.h: Likewise.
35758         * lib/stpncpy.c: Likewise.
35759         * lib/strcasecmp.c: Likewise.
35760         * lib/strchrnul.c: Likewise.
35761         * lib/strdup.c: Likewise.
35762         * lib/striconv.c: Likewise.
35763         * lib/striconveh.c: Likewise.
35764         * lib/striconveha.c: Likewise.
35765         * lib/strncasecmp.c: Likewise.
35766         * lib/strndup.c: Likewise.
35767         * lib/strnlen.c: Likewise.
35768         * lib/strsep.c: Likewise.
35769         * lib/strstr.c: Likewise.
35770         * lib/strtok_r.c: Likewise.
35771         * lib/userspec.c: Likewise.
35772         * lib/w32spawn.h: Likewise.
35773         * lib/xstrndup.c: Likewise.
35774         * lib/mountlist.c (strstr): Remove decl.
35775         * m4/string_h.m4: New file.
35776         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
35777         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
35778         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
35779         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
35780         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
35781         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
35782         Set REPLACE_STRCASECMP if necessary.
35783         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
35784         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
35785         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
35786         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
35787         HAVE_DECL_STRDUP if necessary.
35788         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
35789         since gl_FUNC_STRNDUP does that now.
35790         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
35791         Check for decl here...
35792         (gl_PREREQ_STRNLEN): ... not here.
35793         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
35794         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
35795         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
35796         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
35797         necessary.
35798         * modules/string: New file.
35799         * modules/memmem (Files): Remove special-purpose include file.
35800         (Depends-on): Add string.
35801         (Include): Include <string.h>, not the removed file.
35802         * modules/mempcpy: Likewise.
35803         * modules/memrchr: Likewise.
35804         * modules/stpcpy: Likewise.
35805         * modules/stpncpy: Likewise.
35806         * modules/strcase: Likewise.
35807         * modules/strchrnul: Likewise.
35808         * modules/strdup: Likewise.
35809         * modules/strndup: Likewise.
35810         * modules/strnlen: Likewise.
35811         * modules/strpbrk: Likewise.
35812         * modules/strsep: Likewise.
35813         * modules/strstr: Likewise.
35814         * modules/strtok_r: Likewise.
35815         * tests/test-dirname.c: Don't include "strdup.h", since
35816         <string.h> now suffices.
35817         * tests/test-memmem.c: Don't include "memmem.h", since
35818         <string.h> now suffices.
35819
35820 2007-01-25  Bruno Haible  <bruno@clisp.org>
35821
35822         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
35823         *resultp is 0.
35824
35825         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
35826         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
35827         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
35828         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
35829
35830         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
35831         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
35832         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
35833         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
35834         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
35835         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
35836
35837 2007-01-24  Bruno Haible  <bruno@clisp.org>
35838
35839         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
35840         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
35841         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
35842         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
35843         gl_FUNC_FTS_CORE.
35844         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
35845         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
35846         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35847         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
35848         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
35849         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
35850         gl_FUNC_FCHOWNAT.
35851         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
35852         gl_FUNC_STRFTIME.
35853         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
35854         Reported by Ralf Wildenhues.
35855
35856 2007-01-24  Bruno Haible  <bruno@clisp.org>
35857
35858         Drop AC_REQUIRE calls that are redundant with the module dependencies.
35859         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
35860         gl_GETADDRINFO.
35861         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
35862         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
35863         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
35864
35865 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
35866
35867         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
35868         Don't use 'exit'; just return from 'main'.
35869         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
35870
35871         * lib/fnmatch_.h: Readjust white space and comments to match
35872         glibc, to avoid spurious diffs.
35873
35874 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35875
35876         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
35877         2004-12-01 change by Jakub Jelinek, since this code won't compile
35878         if !LIBC.  Problem reported by Bob Proulx.
35879
35880 2007-01-23  Bruno Haible  <bruno@clisp.org>
35881
35882         * lib/striconveh.c: Include c-strcaseeq.h.
35883         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
35884         * modules/striconveh (Depends-on): Add c-strcaseeq.
35885
35886 2007-01-23  Bruno Haible  <bruno@clisp.org>
35887
35888         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
35889
35890         * modules/c-strcaseeq: New file.
35891         * lib/c-strcaseeq.h: New file.
35892
35893         * modules/streq: New file.
35894         * lib/streq.h: New file.
35895
35896 2007-01-23  Bruno Haible  <bruno@clisp.org>
35897
35898         * modules/striconveha-tests: New file.
35899         * tests/test-striconveha.c: New file.
35900
35901         * lib/striconveha.h: Include <stdbool.h>.
35902         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
35903         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
35904         (mem_iconveha_notranslit): Renamed from mem_iconveha.
35905         (mem_iconveha): New function.
35906         (str_iconveha_notranslit): Renamed from str_iconveha.
35907         (str_iconveha): New function.
35908         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
35909         c-strcase.
35910
35911 2007-01-23  Bruno Haible  <bruno@clisp.org>
35912
35913         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
35914         encodings without forgiving before trying any encoding with handler.
35915         (str_iconveha): Try all encodings without forgiving before trying any
35916         encoding with handler.
35917
35918 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35919
35920         Import the following changes from libc.
35921
35922         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
35923
35924         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
35925
35926         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
35927
35928         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
35929         normal_bracket label.
35930
35931         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
35932
35933         [BZ #361]
35934         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
35935         to normal_bracket after fetching the next character.
35936
35937 2007-01-22  Bruno Haible  <bruno@clisp.org>
35938
35939         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
35940         argument.
35941         * lib/striconveh.c (iconv_carefully_1): New function.
35942         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
35943         argument.
35944         (str_cd_iconveh): Update.
35945         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
35946         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
35947         * tests/test-striconveh.c (MAGIC): New macro.
35948         (new_offsets): New function.
35949         (main): Test call with and without offsets.
35950
35951 2007-01-22  Bruno Haible  <bruno@clisp.org>
35952
35953         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
35954         * modules/sys_select (Makefile.am): Likewise.
35955         * modules/sys_socket (Makefile.am): Likewise.
35956         * modules/sys_time (Makefile.am): Likewise.
35957
35958 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35959
35960         * modules/gettimeofday (License): Change from GPL to LGPL, since
35961         gettimeofday is a library function.
35962
35963 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35964
35965         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
35966
35967 2007-01-21  Bruno Haible  <bruno@clisp.org>
35968
35969         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
35970
35971 2007-01-21  Bruno Haible  <bruno@clisp.org>
35972
35973         * modules/striconveha: New file.
35974         * lib/striconveha.h: New file.
35975         * lib/striconveha.c: New file.
35976         * MODULES.html.sh (Internationalization functions): Add striconveha.
35977         * lib/striconv.c (str_iconv): Optimize the case of an empty input
35978         string.
35979         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
35980
35981 2007-01-21  Bruno Haible  <bruno@clisp.org>
35982
35983         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
35984         * lib/striconveh.c (str_iconveh): Likewise.
35985
35986 2007-01-21  Bruno Haible  <bruno@clisp.org>
35987
35988         * lib/striconveh.h (mem_iconveh): New declaration.
35989         * lib/striconveh.c (mem_iconveh): New function.
35990         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
35991
35992 2007-01-21  Bruno Haible  <bruno@clisp.org>
35993
35994         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
35995
35996         * lib/striconveh.h (mem_cd_iconveh): Change specification.
35997         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
35998         original result buffer.
35999         (str_cd_iconveh): Update.
36000         * tests/test-striconveh.c (main): Update.
36001
36002         * lib/striconv.h (mem_cd_iconv): Change specification.
36003         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
36004         result buffer.
36005         (str_cd_iconv): Update.
36006         * tests/test-striconv.c (main): Update.
36007
36008 2007-01-21  Bruno Haible  <bruno@clisp.org>
36009
36010         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
36011
36012 2007-01-20  Jim Meyering  <jim@meyering.net>
36013
36014         * lib/userspec.c (parse_with_separator): If a user or group string
36015         starts with "+", skip the corresponding name-to-ID look-up, since
36016         such a look-up must fail: user and group names may not include "+".
36017
36018 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
36019
36020         * lib/poll.c: Include sys/time.h and time.h unconditionally,
36021         since we now assume the sys_time module.
36022         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
36023         check for sys/time.h; no longer needed.
36024         * modules/poll (Depends-on): Depend on sys_time.
36025
36026 2007-01-18  Bruno Haible  <bruno@clisp.org>
36027
36028         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
36029         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36030
36031         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
36032         gettimeofday.
36033
36034         * tests/test-gettimeofday.c: Include <time.h>.
36035         (dummy): Remove variable.
36036
36037         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
36038         gl_HEADER_SYS_TIME_H.
36039         (gl_HEADER_SYS_TIME_H): New macro.
36040
36041         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
36042         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36043         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
36044         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
36045         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36046         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
36047         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
36048         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36049         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
36050         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
36051         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36052
36053         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
36054         last change; it caused a compilation error when cross-compiling to
36055         Cygwin.
36056
36057 2007-01-18  Jim Meyering  <jim@meyering.net>
36058
36059         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
36060         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
36061         than the race-prone "test -d sys || mkdir sys".
36062         (configure.ac): Use AC_PROG_MKDIR_P.
36063         * modules/sys_select: Likewise.
36064         * modules/sys_socket: Likewise.
36065         * modules/sys_time: Likewise.
36066
36067 2007-01-18  Eric Blake  <ebb9@byu.net>
36068
36069         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
36070         replace gettimeofday.
36071         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
36072         name, to avoid infinite recursion.
36073
36074 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
36075
36076         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
36077         module sys_time.
36078         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
36079         assume timespec.h defines struct timeval.
36080         * lib/settime.c: Likewise.
36081         * lib/utimens.c: Likewise.
36082         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
36083         since we now assume the gettimeofday module.
36084         * lib/tempname.c (__gen_tempname): Likewise.
36085         * lib/gettimeofday.h: Remove.
36086         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
36087         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
36088         Include <time.h>, for 'time()'.
36089         (localtime_buffer_addr): Also use this workaround if
36090         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
36091         to simplify the uses.  All uses changed.
36092         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
36093         that #undef is inside {}, and 'const' follows type name consistently.
36094         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
36095         (gettimeofday): Do not use the maximum possible value for
36096         tv->tv_usec, since that might break usages other than ls.c.
36097         Instead, we'll leave ls.c alone.  This undoes today's patch
36098         by Bruno.  Add a compile-time warning for 1s-clock resolution;
36099         we've never observed the problem but might as well keep the
36100         canary.
36101         * lib/nanosleep.c: Include timespec.h first, for interface check.
36102         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
36103         now assume the sys_time module.
36104         * lib/tempname.c: Likewise.
36105         * lib/timespec.h: Likewise.
36106         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
36107         needed.
36108         * lib/strftime.c: Likewise.
36109         * lib/timespec.h: Likewise.
36110         * lib/posixtm.c: Include posixtm.h first, for interface check.
36111         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
36112         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
36113         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
36114         * lib/sys_time_.h: New file.
36115         * lib/timespec.h (struct timespec): Use long int, not long.
36116         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
36117         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
36118         Remove obsolescent call to AC_HEADER_TIME.
36119         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
36120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36121         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36122         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
36123         Likewise.
36124         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
36125         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
36126         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
36127         into the sys_time module.  Check for gettimeofday just once.
36128         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
36129         for gettimeofday signature to just check the signature.  Merely
36130         compile it, since linking doesn't test signature.  Improve test for
36131         whether gettimeofday.o is actually needed.
36132         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
36133         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
36134         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
36135         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36136         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
36137         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
36138         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
36139         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
36140         than worrying about sys/time.h.
36141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36142         Don't bother worrying about TIME_WITH_SYS_TIME.
36143         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36144         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
36145         * m4/sys_time_h.m4: New file.
36146         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
36147         Don't include sys/time.h.  Return from main rather than exiting.
36148         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
36149         all uses changed.
36150         * modules/gethrxtime (Depends-on): Add sys_time.
36151         * modules/gettime (Depends-on): Likewise.
36152         * modules/gettimeofday (Depends-on): Likewise.
36153         * modules/nanosleep (Depends-on): Likewise.
36154         * modules/settime (Depends-on): Likewise.
36155         * modules/tempname (Depends-on): Likewise.
36156         * modules/utimens (Depends-on): Likewise.
36157         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
36158         (Include:) Change back to <sys/time.h>.
36159         (Maintainer:) Add self.
36160         * modules/sys_time: New file.
36161         * modules/tempname (Depends-on): Add gettimeofday.
36162         * tests/test-gettimeofday.c: Include <sys/time.h>
36163         rather than gettimeofday.h.
36164
36165 2007-01-17  Bruno Haible  <bruno@clisp.org>
36166
36167         * gnulib-tool (func_get_license): Revert last patch. Instead, let
36168         the license default to GPL.
36169         (func_create_testdir): Don't complain if a module is LGPL and its
36170         tests module depends on GPLed modules.
36171
36172 2007-01-17  Bruno Haible  <bruno@clisp.org>
36173
36174         * lib/gettimeofday.c (gettimeofday): Add code for the case
36175         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
36176         maximum possible value for tv->tv_usec, rather than the minimum one.
36177
36178 2005-10-08  Martin Lambers  <marlam@marlam.de>
36179 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36180 2007-01-16  Bruno Haible  <bruno@clisp.org>
36181
36182         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
36183         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
36184         gl_FUNC_GETTIMEOFDAY.
36185         (Include): Add gettimeofday.h.
36186         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
36187         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
36188         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
36189         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
36190         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
36191         * lib/gettimeofday.h: New file.
36192         * lib/gettimeofday.c: Include <sys/timeb.h>.
36193         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
36194         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36195         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
36196         fall back on time().
36197
36198         * tests/test-gettimeofday.c: New file.
36199         * modules/gettimeofday-tests: New file.
36200
36201 2007-01-16  Eric Blake  <ebb9@byu.net>
36202
36203         * modules/fnmatch (Depends-on): Depend on wchar.
36204         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
36205         * m4/fnmatch.m4: Likewise.
36206         * modules/mbchar (Makefile.am): Assume <wchar.h>.
36207         * m4/mbchar.m4: Likewise.
36208         * modules/mbswidth (Depends-on): Depend on wchar.
36209         * lib/mbswidth.c: Assume <wchar.h>.
36210         * m4/mbswidth.m4: Likewise.
36211         * modules/quotearg (Depends-on): Depend on wchar.
36212         * lib/quotearg.c: Assume <wchar.h>.
36213         * m4/quotearg.m4: Likewise.
36214         * modules/regex (Depends-on): Depend on wchar.
36215         * lib/regex_internal.h: Assume <wchar.h>.
36216         * m4/regex.m4: Likewise.
36217         * modules/stdint (Depends-on): Depend on wchar.
36218         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
36219         * m4/stdint.m4: Likewise.
36220         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
36221         * modules/strftime (Depends-on): Depend on wchar.
36222         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
36223         * modules/strtol (Depends-on): Depend on wchar.
36224         * lib/strtol.c: Assume <wchar.h>.
36225         * modules/wcwidth (Depends-on): Depend on wchar.
36226         * lib/wcwidth.h: Assume <wchar.h>.
36227         * m4/wcwidth.m4: Likewise.
36228
36229 2007-01-16  Bruno Haible  <bruno@clisp.org>
36230
36231         * modules/csharpexec-script: New, created from...
36232         * modules/csharpexec: ... this.
36233
36234 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
36235
36236         * modules/javaexec-script: New, created from...
36237         * modules/javaexec: ... this.
36238
36239 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36240
36241         * modules/poll (Dependencies): Add sys_select.
36242
36243 2007-01-15  Jim Meyering  <jim@meyering.net>
36244
36245         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
36246         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
36247         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
36248         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
36249
36250 2007-01-15  Bruno Haible  <bruno@clisp.org>
36251
36252         * modules/striconveh: New file.
36253         * lib/striconveh.h: New file.
36254         * lib/striconveh.c: New file.
36255         * MODULES.html.sh (Internationalization functions): Add striconveh.
36256
36257         * modules/striconveh-tests: New file.
36258         * tests/test-striconveh.c: New file.
36259
36260 2007-01-15  Bruno Haible  <bruno@clisp.org>
36261
36262         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
36263         not from GNU libiconv or GNU libc.
36264
36265 2007-01-15  Bruno Haible  <bruno@clisp.org>
36266
36267         * doc/gnulib-intro.texi (Copyright): Explain the different license
36268         terms for module descriptions, autoconf macros, tests, documentation.
36269
36270 2007-01-14  Bruno Haible  <bruno@clisp.org>
36271
36272         * modules/striconv-tests: New file.
36273         * tests/test-striconv.c: New file.
36274
36275 2007-01-14  Bruno Haible  <bruno@clisp.org>
36276
36277         * modules/iconv-tests: New file.
36278         * tests/test-iconv.c: New file.
36279
36280 2007-01-14  Bruno Haible  <bruno@clisp.org>
36281
36282         * gnulib-tool (func_get_license): For test modules, use the license of
36283         the main module.
36284
36285 2007-01-14  Bruno Haible  <bruno@clisp.org>
36286
36287         * modules/iconv (Include): Clarify that <iconv.h> can only be included
36288         if iconv is found to exist.
36289
36290 2007-01-14  Bruno Haible  <bruno@clisp.org>
36291
36292         * modules/c-ctype-tests: New file.
36293         * tests/test-c-ctype.c: New file.
36294
36295 2007-01-14  Bruno Haible  <bruno@clisp.org>
36296
36297         * modules/binary-io-tests: New file.
36298         * tests/test-binary-io.sh: New file.
36299         * tests/test-binary-io.c: New file.
36300
36301 2007-01-14  Bruno Haible  <bruno@clisp.org>
36302
36303         * modules/array-oset-tests: New file.
36304         * tests/test-array_oset.c: New file.
36305
36306 2007-01-14  Bruno Haible  <bruno@clisp.org>
36307
36308         * modules/array-list-tests: New file.
36309         * tests/test-array_list.c: New file.
36310
36311 2007-01-14  Bruno Haible  <bruno@clisp.org>
36312
36313         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
36314         and make.
36315         Reported by Simon Josefsson in
36316         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
36317
36318 2007-01-14  Bruno Haible  <bruno@clisp.org>
36319
36320         * modules/allocsa-tests: New file.
36321         * tests/test-allocsa.c: New file.
36322
36323 2007-01-14  Bruno Haible  <bruno@clisp.org>
36324
36325         * modules/fchdir (Depends-on): Add absolute-header.
36326         * modules/unistd (Depends-on): Likewise.
36327
36328 2006-12-30  Bruno Haible  <bruno@clisp.org>
36329
36330         * modules/fchdir: New file.
36331         * modules/unistd (Files): Add lib/unistd_.h.
36332         (Makefile.am): Generate unistd.h from unistd_.h.
36333         * lib/fchdir.c: New file.
36334         * lib/dirent_.h: New file.
36335         * lib/unistd_.h: New file.
36336         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
36337         * m4/fchdir.m4: New file.
36338         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
36339         (gl_HEADER_UNISTD): Invoke it.
36340         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
36341         function.
36342         * lib/backupfile.c (opendir, closedir): Undefine.
36343         * lib/chown.c (open, close): Undefine.
36344         * lib/clean-temp.c (open, close): Undefine.
36345         * lib/copy-file.c (open, close): Undefine.
36346         * lib/execute.c (open, close): Undefine.
36347         * lib/fsusage.c (open, close): Undefine.
36348         * lib/gc-gnulib.c (open, close): Undefine.
36349         * lib/getcwd.c (opendir, closedir): Undefine.
36350         * lib/glob.c (opendir, closedir): Undefine.
36351         * lib/javacomp.c (open, close): Undefine.
36352         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
36353         * lib/openat-proc.c (open, close): Undefine.
36354         * lib/pagealign_alloc.c (open, close): Undefine.
36355         * lib/pipe.c (open, close): Undefine.
36356         * lib/progreloc.c (open, close): Undefine.
36357         * lib/savedir.c (opendir, closedir): Undefine.
36358         * lib/utime.c (open, close): Undefine.
36359         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
36360
36361 2007-01-10  Bruno Haible  <bruno@clisp.org>
36362
36363         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
36364
36365 2007-01-12  Eric Blake  <ebb9@byu.net>
36366
36367         Provide a robust <wchar.h>.  Further simplifications are now
36368         possible in other modules, but not included here.
36369         * modules/wchar: New module.
36370         * m4/wchar.m4: New file.
36371         * lib/wchar_.h: Likewise.
36372         * modules/mbchar (Depends-on): Depend on wchar, as the first use
36373         of the new module.
36374         * MODULES.html.sh (Extended multibyte and wide character utilities):
36375         New section.
36376
36377 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36378
36379         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
36380         to a reasonable default for memory allocation.
36381         (xreadlink): Don't allocate a huge buffer, to work around a buggy
36382         file system that reports garbage st_size values for symlinks.
36383         Problem reported by Liyang Hu.
36384
36385 2007-01-11  Simon Josefsson  <simon@josefsson.org>
36386
36387         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
36388         Emacs .#* auto-save files).
36389
36390 2007-01-11  Bruno Haible  <bruno@clisp.org>
36391
36392         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
36393         directory.
36394
36395 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36396
36397         Use @...@ consistently in lib/wctype_.h.
36398         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
36399         on it being set to 1 or 0.
36400         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
36401         go back to AC_SUBSTing it.
36402         * modules/wctype (Makefile.am): Undo previous change.
36403
36404 2007-01-10  Eric Blake  <ebb9@byu.net>
36405
36406         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
36407         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
36408         * modules/wctype (Makefile.am): Likewise.
36409         Reported by Chris McGuire.
36410
36411 2007-01-10  Jim Meyering  <jim@meyering.net>
36412
36413         fts.c: a small readability/maintainability improvement
36414         * lib/fts.c (fts_read): Make this code slightly more readable and
36415         maintainable by hoisting the "sp->fts_cur = p" assignments to
36416         immediately follow the statements that set P.  Derived from
36417         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
36418
36419 2007-01-10  Eric Blake  <ebb9@byu.net>
36420
36421         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
36422         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
36423         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36424         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36425         Reported by Chris McGuire.
36426
36427 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36428
36429         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
36430         in sed script.
36431
36432 2007-01-09  Bruno Haible  <bruno@clisp.org>
36433
36434         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
36435         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
36436         variables.
36437         (func_module): Use them.
36438
36439 2007-01-09  Bruno Haible  <bruno@clisp.org>
36440
36441         * modules/unistr/base: New file.
36442         * lib/unistr.h: New file.
36443
36444         * modules/unistr/u8-to-u16: New file.
36445         * lib/unistr/u8-to-u16.c: New file.
36446
36447         * modules/unistr/u8-to-u32: New file.
36448         * lib/unistr/u8-to-u32.c: New file.
36449
36450         * modules/unistr/u16-to-u8: New file.
36451         * lib/unistr/u16-to-u8.c: New file.
36452
36453         * modules/unistr/u16-to-u32: New file.
36454         * lib/unistr/u16-to-u32.c: New file.
36455
36456         * modules/unistr/u32-to-u8: New file.
36457         * lib/unistr/u32-to-u8.c: New file.
36458
36459         * modules/unistr/u32-to-u16: New file.
36460         * lib/unistr/u32-to-u16.c: New file.
36461
36462         * modules/unistr/u8-check: New file.
36463         * modules/unistr/u16-check: New file.
36464         * modules/unistr/u32-check: New file.
36465         * lib/unistr/u8-check.c: New file.
36466         * lib/unistr/u16-check.c: New file.
36467         * lib/unistr/u32-check.c: New file.
36468
36469         * modules/unistr/u8-chr: New file.
36470         * modules/unistr/u16-chr: New file.
36471         * modules/unistr/u32-chr: New file.
36472         * lib/unistr/u8-chr.c: New file.
36473         * lib/unistr/u16-chr.c: New file.
36474         * lib/unistr/u32-chr.c: New file.
36475
36476         * modules/unistr/u8-cmp: New file.
36477         * modules/unistr/u16-cmp: New file.
36478         * modules/unistr/u32-cmp: New file.
36479         * lib/unistr/u8-cmp.c: New file.
36480         * lib/unistr/u16-cmp.c: New file.
36481         * lib/unistr/u32-cmp.c: New file.
36482
36483         * modules/unistr/u8-cpy: New file.
36484         * modules/unistr/u16-cpy: New file.
36485         * modules/unistr/u32-cpy: New file.
36486         * lib/unistr/u8-cpy.c: New file.
36487         * lib/unistr/u16-cpy.c: New file.
36488         * lib/unistr/u32-cpy.c: New file.
36489         * lib/unistr/u-cpy.h: New file.
36490
36491         * modules/unistr/u8-cpy-alloc: New file.
36492         * modules/unistr/u16-cpy-alloc: New file.
36493         * modules/unistr/u32-cpy-alloc: New file.
36494         * lib/unistr/u8-cpy-alloc.c: New file.
36495         * lib/unistr/u16-cpy-alloc.c: New file.
36496         * lib/unistr/u32-cpy-alloc.c: New file.
36497         * lib/unistr/u-cpy-alloc.h: New file.
36498
36499         * modules/unistr/u8-endswith: New file.
36500         * modules/unistr/u16-endswith: New file.
36501         * modules/unistr/u32-endswith: New file.
36502         * lib/unistr/u8-endswith.c: New file.
36503         * lib/unistr/u16-endswith.c: New file.
36504         * lib/unistr/u32-endswith.c: New file.
36505         * lib/unistr/u-endswith.h: New file.
36506
36507         * modules/unistr/u8-mblen: New file.
36508         * modules/unistr/u16-mblen: New file.
36509         * modules/unistr/u32-mblen: New file.
36510         * lib/unistr/u8-mblen.c: New file.
36511         * lib/unistr/u16-mblen.c: New file.
36512         * lib/unistr/u32-mblen.c: New file.
36513
36514         * modules/unistr/u8-mbtouc: New file.
36515         * modules/unistr/u16-mbtouc: New file.
36516         * modules/unistr/u32-mbtouc: New file.
36517         * lib/unistr/u8-mbtouc.c: New file.
36518         * lib/unistr/u16-mbtouc.c: New file.
36519         * lib/unistr/u32-mbtouc.c: New file.
36520
36521         * modules/unistr/u8-mbtouc-safe: New file.
36522         * modules/unistr/u16-mbtouc-safe: New file.
36523         * modules/unistr/u32-mbtouc-safe: New file.
36524         * lib/unistr/u8-mbtouc-safe.c: New file.
36525         * lib/unistr/u16-mbtouc-safe.c: New file.
36526         * lib/unistr/u32-mbtouc-safe.c: New file.
36527
36528         * modules/unistr/u8-move: New file.
36529         * modules/unistr/u16-move: New file.
36530         * modules/unistr/u32-move: New file.
36531         * lib/unistr/u8-move.c: New file.
36532         * lib/unistr/u16-move.c: New file.
36533         * lib/unistr/u32-move.c: New file.
36534         * lib/unistr/u-move.h: New file.
36535
36536         * modules/unistr/u8-next: New file.
36537         * modules/unistr/u16-next: New file.
36538         * modules/unistr/u32-next: New file.
36539         * lib/unistr/u8-next.c: New file.
36540         * lib/unistr/u16-next.c: New file.
36541         * lib/unistr/u32-next.c: New file.
36542
36543         * modules/unistr/u8-prev: New file.
36544         * modules/unistr/u16-prev: New file.
36545         * modules/unistr/u32-prev: New file.
36546         * lib/unistr/u8-prev.c: New file.
36547         * lib/unistr/u16-prev.c: New file.
36548         * lib/unistr/u32-prev.c: New file.
36549
36550         * modules/unistr/u8-set: New file.
36551         * modules/unistr/u16-set: New file.
36552         * modules/unistr/u32-set: New file.
36553         * lib/unistr/u8-set.c: New file.
36554         * lib/unistr/u16-set.c: New file.
36555         * lib/unistr/u32-set.c: New file.
36556         * lib/unistr/u-set.h: New file.
36557
36558         * modules/unistr/u8-startswith: New file.
36559         * modules/unistr/u16-startswith: New file.
36560         * modules/unistr/u32-startswith: New file.
36561         * lib/unistr/u8-startswith.c: New file.
36562         * lib/unistr/u16-startswith.c: New file.
36563         * lib/unistr/u32-startswith.c: New file.
36564         * lib/unistr/u-startswith.h: New file.
36565
36566         * modules/unistr/u8-stpcpy: New file.
36567         * modules/unistr/u16-stpcpy: New file.
36568         * modules/unistr/u32-stpcpy: New file.
36569         * lib/unistr/u8-stpcpy.c: New file.
36570         * lib/unistr/u16-stpcpy.c: New file.
36571         * lib/unistr/u32-stpcpy.c: New file.
36572         * lib/unistr/u-stpcpy.h: New file.
36573
36574         * modules/unistr/u8-stpncpy: New file.
36575         * modules/unistr/u16-stpncpy: New file.
36576         * modules/unistr/u32-stpncpy: New file.
36577         * lib/unistr/u8-stpncpy.c: New file.
36578         * lib/unistr/u16-stpncpy.c: New file.
36579         * lib/unistr/u32-stpncpy.c: New file.
36580         * lib/unistr/u-stpncpy.h: New file.
36581
36582         * modules/unistr/u8-strcat: New file.
36583         * modules/unistr/u16-strcat: New file.
36584         * modules/unistr/u32-strcat: New file.
36585         * lib/unistr/u8-strcat.c: New file.
36586         * lib/unistr/u16-strcat.c: New file.
36587         * lib/unistr/u32-strcat.c: New file.
36588         * lib/unistr/u-strcat.h: New file.
36589
36590         * modules/unistr/u8-strchr: New file.
36591         * modules/unistr/u16-strchr: New file.
36592         * modules/unistr/u32-strchr: New file.
36593         * lib/unistr/u8-strchr.c: New file.
36594         * lib/unistr/u16-strchr.c: New file.
36595         * lib/unistr/u32-strchr.c: New file.
36596
36597         * modules/unistr/u8-strcmp: New file.
36598         * modules/unistr/u16-strcmp: New file.
36599         * modules/unistr/u32-strcmp: New file.
36600         * lib/unistr/u8-strcmp.c: New file.
36601         * lib/unistr/u16-strcmp.c: New file.
36602         * lib/unistr/u32-strcmp.c: New file.
36603
36604         * modules/unistr/u8-strcpy: New file.
36605         * modules/unistr/u16-strcpy: New file.
36606         * modules/unistr/u32-strcpy: New file.
36607         * lib/unistr/u8-strcpy.c: New file.
36608         * lib/unistr/u16-strcpy.c: New file.
36609         * lib/unistr/u32-strcpy.c: New file.
36610         * lib/unistr/u-strcpy.h: New file.
36611
36612         * modules/unistr/u8-strcspn: New file.
36613         * modules/unistr/u16-strcspn: New file.
36614         * modules/unistr/u32-strcspn: New file.
36615         * lib/unistr/u8-strcspn.c: New file.
36616         * lib/unistr/u16-strcspn.c: New file.
36617         * lib/unistr/u32-strcspn.c: New file.
36618         * lib/unistr/u-strcspn.h: New file.
36619
36620         * modules/unistr/u8-strdup: New file.
36621         * modules/unistr/u16-strdup: New file.
36622         * modules/unistr/u32-strdup: New file.
36623         * lib/unistr/u8-strdup.c: New file.
36624         * lib/unistr/u16-strdup.c: New file.
36625         * lib/unistr/u32-strdup.c: New file.
36626         * lib/unistr/u-strdup.h: New file.
36627
36628         * modules/unistr/u8-strlen: New file.
36629         * modules/unistr/u16-strlen: New file.
36630         * modules/unistr/u32-strlen: New file.
36631         * lib/unistr/u8-strlen.c: New file.
36632         * lib/unistr/u16-strlen.c: New file.
36633         * lib/unistr/u32-strlen.c: New file.
36634         * lib/unistr/u-strlen.h: New file.
36635
36636         * modules/unistr/u8-strmblen: New file.
36637         * modules/unistr/u16-strmblen: New file.
36638         * modules/unistr/u32-strmblen: New file.
36639         * lib/unistr/u8-strmblen.c: New file.
36640         * lib/unistr/u16-strmblen.c: New file.
36641         * lib/unistr/u32-strmblen.c: New file.
36642
36643         * modules/unistr/u8-strmbtouc: New file.
36644         * modules/unistr/u16-strmbtouc: New file.
36645         * modules/unistr/u32-strmbtouc: New file.
36646         * lib/unistr/u8-strmbtouc.c: New file.
36647         * lib/unistr/u16-strmbtouc.c: New file.
36648         * lib/unistr/u32-strmbtouc.c: New file.
36649
36650         * modules/unistr/u8-strncat: New file.
36651         * modules/unistr/u16-strncat: New file.
36652         * modules/unistr/u32-strncat: New file.
36653         * lib/unistr/u8-strncat.c: New file.
36654         * lib/unistr/u16-strncat.c: New file.
36655         * lib/unistr/u32-strncat.c: New file.
36656         * lib/unistr/u-strncat.h: New file.
36657
36658         * modules/unistr/u8-strncmp: New file.
36659         * modules/unistr/u16-strncmp: New file.
36660         * modules/unistr/u32-strncmp: New file.
36661         * lib/unistr/u8-strncmp.c: New file.
36662         * lib/unistr/u16-strncmp.c: New file.
36663         * lib/unistr/u32-strncmp.c: New file.
36664
36665         * modules/unistr/u8-strncpy: New file.
36666         * modules/unistr/u16-strncpy: New file.
36667         * modules/unistr/u32-strncpy: New file.
36668         * lib/unistr/u8-strncpy.c: New file.
36669         * lib/unistr/u16-strncpy.c: New file.
36670         * lib/unistr/u32-strncpy.c: New file.
36671         * lib/unistr/u-strncpy.h: New file.
36672
36673         * modules/unistr/u8-strnlen: New file.
36674         * modules/unistr/u16-strnlen: New file.
36675         * modules/unistr/u32-strnlen: New file.
36676         * lib/unistr/u8-strnlen.c: New file.
36677         * lib/unistr/u16-strnlen.c: New file.
36678         * lib/unistr/u32-strnlen.c: New file.
36679         * lib/unistr/u-strnlen.h: New file.
36680
36681         * modules/unistr/u8-strpbrk: New file.
36682         * modules/unistr/u16-strpbrk: New file.
36683         * modules/unistr/u32-strpbrk: New file.
36684         * lib/unistr/u8-strpbrk.c: New file.
36685         * lib/unistr/u16-strpbrk.c: New file.
36686         * lib/unistr/u32-strpbrk.c: New file.
36687         * lib/unistr/u-strpbrk.h: New file.
36688
36689         * modules/unistr/u8-strrchr: New file.
36690         * modules/unistr/u16-strrchr: New file.
36691         * modules/unistr/u32-strrchr: New file.
36692         * lib/unistr/u8-strrchr.c: New file.
36693         * lib/unistr/u16-strrchr.c: New file.
36694         * lib/unistr/u32-strrchr.c: New file.
36695
36696         * modules/unistr/u8-strspn: New file.
36697         * modules/unistr/u16-strspn: New file.
36698         * modules/unistr/u32-strspn: New file.
36699         * lib/unistr/u8-strspn.c: New file.
36700         * lib/unistr/u16-strspn.c: New file.
36701         * lib/unistr/u32-strspn.c: New file.
36702         * lib/unistr/u-strspn.h: New file.
36703
36704         * modules/unistr/u8-strstr: New file.
36705         * modules/unistr/u16-strstr: New file.
36706         * modules/unistr/u32-strstr: New file.
36707         * lib/unistr/u8-strstr.c: New file.
36708         * lib/unistr/u16-strstr.c: New file.
36709         * lib/unistr/u32-strstr.c: New file.
36710         * lib/unistr/u-strstr.h: New file.
36711
36712         * modules/unistr/u8-strtok: New file.
36713         * modules/unistr/u16-strtok: New file.
36714         * modules/unistr/u32-strtok: New file.
36715         * lib/unistr/u8-strtok.c: New file.
36716         * lib/unistr/u16-strtok.c: New file.
36717         * lib/unistr/u32-strtok.c: New file.
36718         * lib/unistr/u-strtok.h: New file.
36719
36720         * modules/unistr/u8-uctomb: New file.
36721         * modules/unistr/u16-uctomb: New file.
36722         * modules/unistr/u32-uctomb: New file.
36723         * lib/unistr/u8-uctomb.c: New file.
36724         * lib/unistr/u16-uctomb.c: New file.
36725         * lib/unistr/u32-uctomb.c: New file.
36726
36727         * MODULES.html.sh (Unicode string functions): Add the new modules.
36728
36729 2007-01-08  Bruno Haible  <bruno@clisp.org>
36730
36731         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
36732         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
36733         subdirectories.
36734
36735 2007-01-08  Karl Berry  <karl@gnu.org>
36736
36737         * doc/error.texi: mention that main() fns must set program_name
36738         when progname is used.
36739
36740 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
36741
36742         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
36743         WCTYPE_H is empty, for the benefit of builds from non-distclean
36744         directories.  Problem reported by Eric Blake in
36745         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
36746
36747 2007-01-08  Bruno Haible  <bruno@clisp.org>
36748
36749         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
36750         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
36751         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
36752         PROVIDE_CANONICALIZE_FILENAME_MODE.
36753         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
36754
36755 2007-01-08  Bruno Haible  <bruno@clisp.org>
36756
36757         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
36758         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
36759         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
36760         * lib/fts.c: Likewise.
36761         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
36762
36763 2006-12-25  Bruno Haible  <bruno@clisp.org>
36764
36765         * modules/utf8-ucs4-safe: New file.
36766         * lib/utf8-ucs4-safe.h: New file.
36767         * lib/unistr/utf8-ucs4-safe.c: New file.
36768
36769         * modules/utf16-ucs4-safe: New file.
36770         * lib/utf16-ucs4-safe.h: New file.
36771         * lib/unistr/utf16-ucs4-safe.c: New file.
36772
36773         * MODULES.html.sh (Unicode string functions): Add the new modules.
36774
36775 2007-01-08  Bruno Haible  <bruno@clisp.org>
36776
36777         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
36778         (Depends-on): Add unitypes.
36779         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36780         (u8_mbtouc_aux): Move out to separate file.
36781         (u8_mbtouc): Use ucs4_t, uint8_t types.
36782         * lib/unistr/utf8-ucs4.c: New file.
36783
36784         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
36785         (Depends-on): Add unitypes.
36786         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36787         (u16_mbtouc_aux): Move out to separate file.
36788         (u16_mbtouc): Use ucs4_t, uint16_t types.
36789         * lib/unistr/utf16-ucs4.c: New file.
36790
36791         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
36792         (Depends-on): Add unitypes.
36793         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
36794         (u8_uctomb_aux): Move out to separate file.
36795         (u8_uctomb): Use ucs4_t, uint8_t types.
36796         * lib/unistr/ucs4-utf8.c: New file.
36797
36798         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
36799         (Depends-on): Add unitypes.
36800         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
36801         (u16_uctomb_aux): Move out to separate file.
36802         (u16_uctomb): Use ucs4_t, uint16_t types.
36803         * lib/unistr/ucs4-utf16.c: New file.
36804
36805 2006-12-25  Bruno Haible  <bruno@clisp.org>
36806
36807         * modules/unitypes: New file.
36808         * lib/unitypes.h: New file.
36809         * MODULES.html.sh (func_all_modules): New section "Unicode string
36810         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
36811         this section. Add unitypes.
36812
36813 2007-01-08  Bruno Haible  <bruno@clisp.org>
36814
36815         Avoid variable names that conflict with those from libtool.
36816         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
36817         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
36818         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
36819         library_names_spec to acl_library_names_spec, hardcode_* to
36820         acl_hardcode_*.
36821         Reported by Ralf Wildenhues.
36822
36823 2007-01-08  Bruno Haible  <bruno@clisp.org>
36824
36825         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
36826         definition.
36827         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
36828         definition.
36829         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
36830         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
36831         definition.
36832         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
36833         definition.
36834         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
36835         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
36836         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
36837         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
36838         definition.
36839         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
36840         definition.
36841         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
36842         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
36843         GC_USE_<algorithm>.
36844         * lib/gc-libgcrypt.c: Likewise.
36845         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
36846         * modules/gc-arctwo (configure.ac): Likewise.
36847         * modules/gc-des (configure.ac): Likewise.
36848         * modules/gc-hmac-md5 (configure.ac): Likewise.
36849         * modules/gc-hmac-sha1 (configure.ac): Likewise.
36850         * modules/gc-md2 (configure.ac): Likewise.
36851         * modules/gc-md4 (configure.ac): Likewise.
36852         * modules/gc-md5 (configure.ac): Likewise.
36853         * modules/gc-random (configure.ac): Likewise.
36854         * modules/gc-rijndael (configure.ac): Likewise.
36855         * modules/gc-sha1 (configure.ac): Likewise.
36856
36857 2007-01-08  Bruno Haible  <bruno@clisp.org>
36858
36859         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
36860         macro definition.
36861         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
36862         definition.
36863         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
36864         definition.
36865         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
36866         * modules/fcntl-safer (configure.ac): Likewise.
36867         * modules/fopen-safer (configure.ac): Likewise.
36868         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
36869         GNULIB_FWRITEERROR macro definition.
36870
36871 2007-01-08  Bruno Haible  <bruno@clisp.org>
36872
36873         * m4/gnulib-common.m4: New file.
36874         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
36875         (func_get_filelist): Add m4/gnulib-common.m4.
36876
36877 2007-01-08  Bruno Haible  <bruno@clisp.org>
36878
36879         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
36880         command.
36881
36882 2007-01-08  Jim Meyering  <jim@meyering.net>
36883
36884         Use a more robust test for a "can't happen" condition.
36885         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
36886         narrowed the st_size value.  Presuming the "can't happen" condition
36887         is true, that narrowing could conceivably convert an invalid st_size
36888         value into a valid one.  Instead, use a change based on Matthew
36889         Woehlke's original patch.
36890
36891         Slight readability improvement: use an assert-like macro
36892         in place of literal "abort ()" uses.
36893         * lib/fts.c (fts_assert): Define.
36894         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
36895         Use this macro instead of a bare 'abort'.
36896
36897 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36898
36899         Don't worry about using IRIX 5.3's wctype.h broken definitions;
36900         simply work around them.
36901         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
36902         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
36903         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
36904         declaring.
36905         Don't bother to define as macros, since the standard doesn't require it.
36906         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
36907         longer worry about IRIX 5.3.
36908         (HAVE_WCTYPE_CTMP_BUG): Remove.
36909
36910 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36911
36912         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
36913         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
36914         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36915         Problems reported by Georg Schwarz for IRIX 5.3.
36916
36917         * gnulib-tool (autoconf_minversion): Take the maximum version number
36918         found, not the minimum.  Problem reported by James Youngman.
36919
36920 2007-01-03  Karl Berry  <karl@gnu.org>
36921
36922         * doc/error.texi: new file, explaining interaction with progname.
36923         * doc/gnulib.texi: include it.  Update copyright.
36924
36925 2007-01-03  Simon Josefsson  <simon@josefsson.org>
36926
36927         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
36928         AC_CANONICAL_HOST, to improve autobuild outputs.
36929
36930 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
36931             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36932
36933         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
36934         sockets, server sockets, and other file descriptors.  Count errors
36935         to compute the return value.  Reorder the code a bit to be easier
36936         to follow.  Don't set event bits that were not requested (except
36937         POLLERR and POLLHUP).
36938
36939 2007-01-01  Bruno Haible  <bruno@clisp.org>
36940
36941         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
36942
36943 2007-01-03  Jim Meyering  <jim@meyering.net>
36944
36945         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
36946
36947 2007-01-02  Bruno Haible  <bruno@clisp.org>
36948
36949         * modules/settime (Include): Require timespec.h.
36950         * modules/nanosleep (Include): Likewise.
36951
36952 2007-01-01  Bruno Haible  <bruno@clisp.org>
36953
36954         * gnulib-tool (func_emit_copyright_notice): Bump year.
36955         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
36956
36957 2007-01-01  Bruno Haible  <bruno@clisp.org>
36958
36959         Improve support for OpenBSD.
36960         * build-aux/config.rpath (libname_spec): Export.
36961         (library_names_spec): New variable. Export.
36962         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
36963         library_names_spec from the config.rpath output. Locate shared library
36964         through the name pattern in library_names_spec.
36965
36966 2007-01-01  Eric Blake  <ebb9@byu.net>
36967
36968         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
36969
36970 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
36971
36972         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
36973         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
36974         assume the C locale, and avoid an "eval" that could cause trouble.
36975         Problem with SORT reported by Bob Proulx.
36976
36977         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
36978         Define.  Trivial patch from Henning Nielsen Lund, originally
36979         sent to bug-grep@gnu.org today.
36980
36981 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36982
36983         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
36984         struct stat.  Problem reported by Henning Nielsen Lund.
36985         * lib/acl.c: Include acl.h first, to check interface.  Don't
36986         bother to include sys/types.h and sys/stat.h again.
36987
36988 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
36989
36990         Import the following change from libc; problem reported by
36991         Sven Verdoolaege.
36992
36993         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
36994
36995         [BZ #1373]
36996         * lib/argp.h: Remove __NTH for __argp_usage inline function.
36997
36998 2006-12-28  Jim Meyering  <jim@meyering.net>
36999
37000         * build-aux/announce-gen: Do not assume that the package
37001         builds any of tar.gz, tar.bz2, and .xdelta files.
37002         Suggestion from Simon Josefsson.
37003
37004 2006-12-28  Simon Josefsson  <simon@josefsson.org>
37005
37006         * modules/announce-gen: New file.
37007
37008 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
37009
37010         * lib/mbchar.h: Just include <wctype.h>; the wctype module
37011         handles its gotchas now.
37012         * lib/mbswidth.c: Likewise.
37013         * lib/wcwidth.h: Likewise.
37014         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
37015         and iswcntrl; the wctype module does this stuff now.
37016         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37017         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37018         * modules/mbchar (Depends-on): Add wctype.
37019         * modules/mbswidth (Depends-on): Likewise.
37020         * modules/wcwidth (Depends-on): Likewise.
37021
37022 2006-12-27  Eric Blake  <ebb9@byu.net>
37023
37024         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
37025         module uses more than what <wctype.h> is required to provide.
37026
37027 2006-12-26  Eric Blake  <ebb9@byu.net>
37028
37029         * gnulib-tool (sed_extract_prog): Avoid space-tab.
37030
37031 2006-12-26  Eric Blake  <ebb9@byu.net>
37032
37033         * modules/absolute-header: New module.
37034         * modules/fcntl (Depends-on): Depend on it.
37035         * modules/inttypes (Depends-on): Likewise.
37036         * modules/stdint (Depends-on): Likewise.
37037         * modules/sys_stat (Depends-on): Likewise.
37038         * modules/wctype (Depends-on): Likewise.
37039         * MODULES.html.sh (Support for building libraries and
37040         executables): Document it.
37041
37042 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37043
37044         * gnulib-tool (SED): Remove, undoing previous change.
37045         The problem was that it broke coreutils on Solaris, because
37046         "sed --posix" leaked into a makefile.
37047         (sed): New alias, if 'alias' and GNU sed.
37048
37049 2006-12-24  Jim Meyering  <jim@meyering.net>
37050
37051         Work around an fchownat bug in glibc-2.4:
37052         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
37053         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
37054         in spite of the -P option.
37055         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
37056         New macros.
37057         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
37058         * modules/openat (Files): Add lib/fchownat.c.
37059         * lib/openat.c (fchownat): Don't define here.  Move to...
37060         * lib/fchownat.c: ...this new file.
37061
37062 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
37063
37064         Fix bug reported by Bruno Haible in
37065         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
37066         where quotearg.c didn't compile on Mac OS X 10.2 because it
37067         lacks <wchar.h> and wint_t.
37068         * lib/wctype_.h (__wctype_wint_t): New type.
37069         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
37070         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
37071         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
37072         Arg is now of type __wctype_wint_t, not wint_t.
37073         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
37074         substitute HAVE_WINT_T.
37075         * modules/wctype (Files): Add m4/wint_t.m4.
37076         (wctype.h): Substitute HAVE_WINT_T.
37077
37078 2006-12-23  Bruno Haible  <bruno@clisp.org>
37079
37080         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
37081
37082 2006-12-23  Bruno Haible  <bruno@clisp.org>
37083
37084         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
37085         S_ISLNK.
37086         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
37087         mingw.
37088
37089 2006-12-22  Bruno Haible  <bruno@clisp.org>
37090
37091         * lib/copy-file.c: Include acl.h.
37092         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
37093         Close the file descriptors only after being done with copy_acl.
37094         * modules/copy-file (Depends-on): Add acl.
37095
37096 2006-12-22  Bruno Haible  <bruno@clisp.org>
37097
37098         * gnulib-tool (SED): New variable.
37099         Use $SED instead of sed everywhere.
37100
37101 2006-12-22  Bruno Haible  <bruno@clisp.org>
37102
37103         * modules/no-c++: New file.
37104         * m4/no-c++.m4: New file.
37105         * MODULES.html.sh (Support for building libraries and executables):
37106         Add no-c++.
37107
37108 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
37109
37110         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
37111         Include <limits.h>, and use its INT_MAX to rewrite the
37112         j loop so that it does not overflow 'int'.  Problem reported by
37113         Ralf Wildenhues in
37114         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
37115         Play it safe by shifting left by 1 rather than multiplying by 2,
37116         as GCC is less likely to optimize this away when the value
37117         is signed (when it assumes overflow leads to undefined behavior).
37118         Also, don't assume time_t uses two's complement.
37119
37120 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
37121
37122         * MODULES.html.sh: New module wctype.
37123         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
37124         * lib/fnmatch.c: Don't bother to include <wchar.h> before
37125         <wctype.h>, since the new wctype module should fix this.
37126         * lib/quotearg.c: Include <wctype.h> unconditionally, since
37127         the wctype module should arrange for it.
37128         * lib/regex_internal.h: Likewise.
37129         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
37130         since the wctype module should handle this now.
37131         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
37132         * modules/fnmatch (Depends-on): Add wctype.
37133         * modules/quotearg (Depends-on): Likewise.
37134         * modules/regex (Depends-on): Likewise.
37135
37136 2006-12-19  Bruno Haible  <bruno@clisp.org>
37137
37138         * lib/strdup.h [C++]: Wrap definitions in extern "C".
37139         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
37140
37141 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37142
37143         * modules/savewd (Depends-on): Fix dependency on fcntl.
37144
37145 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37146
37147         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
37148         conforms to C99, rather than relying on the user's environment
37149         setting of STDINT_H.
37150
37151 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37152         and Eric Blake  <ebb9@byu.net>
37153
37154         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
37155         This is more consistent with the other defines here.
37156         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
37157         Port to z/OS.  Problem reported by Paul Gilmartin.
37158         Change local vars to use gl_ prefix rather than ac_.
37159         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
37160         with other defines.
37161         * modules/double-slash-root: New module.
37162         * modules/dirname (Files): Remove m4/double-slash-root.m4.
37163         (Depends-on): Add double-slash-root.
37164         * MODULES.html.sh (File system functions): Mention new module.
37165
37166 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
37167
37168         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
37169         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
37170         This is for the benefit of gzip, which doesn't do i18n.
37171
37172 2006-12-12  Jim Meyering  <jim@meyering.net>
37173
37174         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
37175         Reported by Andreas Schwab <schwab@suse.de>.
37176
37177 2006-12-12  Bruno Haible  <bruno@clisp.org>
37178
37179         Merge these changes.
37180         2006-09-05  Bruno Haible  <bruno@clisp.org>
37181         * lib/iconvme.c (iconv_string): No need to save and restore errno when
37182         iconv_alloc succeeded.
37183         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
37184         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
37185         test for " && dest " at the end - dest is always != NULL there. Call
37186         iconv with 4xNULL arguments initially, to reset the state. Call iconv
37187         with 2xNULL arguments, also to flush the state storage. Handle the
37188         IRIX iconv behaviour. Realloc the final result, to throw away unused
37189         memory.
37190
37191 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
37192
37193         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
37194         and fchmodat unconditionally, since glibc 2.4 has them.
37195         Problem reported by Arkadiusz Miskiewicz.
37196
37197 2006-12-10  Bruno Haible  <bruno@clisp.org>
37198
37199         * gnulib-tool (func_import): Show the include files only for those
37200         modules that are copied and specified.
37201         Reported by Karl Berry.
37202
37203 2006-12-08  Jim Meyering  <jim@meyering.net>
37204
37205         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
37206         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
37207
37208         * build-aux/announce-gen: Add two new options, both optional:
37209         --bootstrap-tools=TOOL_LIST
37210               a comma-separated list of tools, e.g.,
37211               autoconf,automake,bison,gnulib
37212         --gnulib-snapshot-date=DATE
37213               if gnulib is in the bootstrap tool list,
37214               then report this as the snapshot date.
37215               If not specified, use the current date/time.
37216               If you specify a date here, be sure it's UTC.
37217
37218 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37219
37220         * tests/test-argp-2.sh: Fix test to match actual output.
37221         (func_compare): Fix sed script to be portable.
37222
37223 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
37224
37225         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
37226         workaround for this case.  It is not autoconfigured now; offhand
37227         it's hard to see how to autoconfigure it.
37228
37229 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
37230
37231         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
37232         a directory that is about to be chowned.  Such a directory's
37233         initial file permissions should permit the owner only and this
37234         should not be changed until after the chown, since the group and
37235         other bits would be incorrect if they granted permission before
37236         the chown.
37237
37238         Fix porting problem for iswctype reported by Georg Schwarz in:
37239         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
37240         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
37241         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
37242         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
37243         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37244
37245 2006-12-03  Jim Meyering  <jim@meyering.net>
37246
37247         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
37248         p->fts_statp may not yet be defined.
37249         (fts_read): Instead, set it in the caller, once p->fts_statp is
37250         sure to be defined, and corresponds to a top-level directory.
37251         This bug made du -x fail.  Here's the coreutils test case:
37252         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
37253         Reported by Mike Frysinger.
37254
37255 2006-12-01  Jim Meyering  <jim@meyering.net>
37256
37257         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
37258         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
37259         Reported by Simon Josefsson.
37260
37261 2006-11-30  Jim Meyering  <jim@meyering.net>
37262
37263         * m4/warning.m4: Use the all-permissive copyright notice
37264         recommended by RMS (rather than LGPL).
37265         * m4/vararrays.m4: Likewise.
37266         * m4/flexmember.m4: Likewise.
37267
37268 2006-11-29  Bruno Haible  <bruno@clisp.org>
37269
37270         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37271         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
37272         using +=.
37273         Reported by Simon Josefsson <simon@josefsson.org>.
37274
37275 2006-11-28  James Youngman <jay@gnu.org>
37276
37277         * README: Advise users that they might find the bug-gnulib@gnu.org
37278         and autotools-announce@gnu.org mailing lists useful.
37279
37280 2006-11-28  Bruno Haible  <bruno@clisp.org>
37281
37282         * m4/ptrdiff_max.m4: Remove file.
37283
37284 2006-11-21  Bruno Haible  <bruno@clisp.org>
37285
37286         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
37287         _AC_COMPUTE_INT.
37288         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37289         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
37290         _AC_COMPUTE_INT.
37291         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37292         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
37293         _AC_COMPUTE_INT.
37294         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37295
37296 2006-11-28  Jim Meyering  <jim@meyering.net>
37297
37298         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
37299         warning from "gcc -Wshadow" about shadowing the builtin.
37300
37301 2006-11-27  Bruno Haible  <bruno@clisp.org>
37302
37303         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
37304         _AC_COMPUTE_INT.
37305         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37306
37307 2006-11-27  Bruno Haible  <bruno@clisp.org>
37308             Paul Eggert  <eggert@cs.ucla.edu>
37309
37310         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
37311
37312 2006-11-26  Bruno Haible  <bruno@clisp.org>
37313
37314         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37315         noinst_LTLIBRARIES.
37316
37317 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
37318             Bruno Haible  <bruno@clisp.org>
37319
37320         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
37321         if compiling with "gcc -ansi".
37322
37323 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
37324
37325         Fix some incompatibilities with gcc -ansi -pedantic.
37326         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
37327         if compiling pedantically with GCC, unless it's C99 or later.
37328         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
37329         it mishandles gcc -ansi -pedantic as well.
37330         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
37331         if gcc -pedantic.
37332         * lib/regexec.c (check_node_accept_bytes): Don't use auto
37333         initializers for struct if -pedantic, unless it's C99 or later.
37334
37335 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
37336
37337         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
37338         Don't close an fd more than once. Identical atimes indicate
37339         success, not failure.
37340
37341 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
37342
37343         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
37344
37345 2006-11-23  Jim Meyering  <jim@meyering.net>
37346
37347         * build-aux/announce-gen: New file.  From coreutils.
37348
37349 2006-11-22  Jim Meyering  <jim@meyering.net>
37350
37351         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
37352         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
37353         (fts_read): Use a temporary to narrow the overused st_size member
37354         before using it in a switch statement.  Reported by Matthew Woehlke.
37355
37356         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
37357         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37358
37359 2006-11-20  Bruno Haible  <bruno@clisp.org>
37360
37361         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
37362         changequote instead of pairs of brackets.
37363         Reported by Andreas Schwab <schwab@suse.de>.
37364
37365 2006-11-21  Jim Meyering  <jim@meyering.net>
37366
37367         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
37368         so as to remain compatible with older compilers.
37369         Patch from Michael Deutschmann.
37370
37371 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
37372
37373         * MODULES.html.sh (File system functions): Add openat.
37374
37375         * lib/openat.h (rpl_fstatat): New macro, if
37376         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
37377         (fstatat): Define to rpl_fstatat under the same conditions,
37378         unless COMPILING_FSTATAT.
37379         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
37380         seems to have the bug.
37381         * lib/fstatat.c: New file.
37382         * modules/openat (Files): Add it.
37383
37384 2006-11-20  Bruno Haible  <bruno@clisp.org>
37385
37386         * Makefile: New file.
37387
37388 2006-11-20  Jim Meyering  <jim@meyering.net>
37389
37390         The beginnings of syntax-related checks for gnulib.
37391         * lib/Makefile: New file.
37392         * lib/t-idcache: New script.  Ensure that the two halves of
37393         idcache.c stay in sync.
37394
37395         * lib/idcache.c: Adjust comments in user- and group- portions to
37396         be more accurate, and to be consistent with one another.
37397
37398 2006-11-20  Jim Meyering  <jim@meyering.net>
37399
37400         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
37401         continue using the flexible array member (thus, this module performs
37402         half as many malloc calls), with the addition that...
37403         (getgroup, getuser): Consistently record a non-match via an empty
37404         "name" string, and map an empty string match to a NULL return value.
37405         * modules/idcache (Depends-on): Re-add flexmember.
37406
37407         * lib/idcache.c (getuser): Remove all uses of the register keyword.
37408         (getuidbyname, getgroup, getgidbyname): Likewise.
37409
37410         Use cleaner syntax: NULL rather than 0.
37411         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
37412
37413 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
37414
37415         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
37416         It mishandled the case where the group was missing.
37417         Problem reported by Greg Schafer.
37418         * modules/idcache: Likewise.
37419
37420 2006-11-18  Jim Meyering  <jim@meyering.net>
37421
37422         * check-module (%exempt_header): Add exception for some
37423         conditionally-included headers.
37424
37425         * modules/i-ring (Depends-on): Add verify.
37426         (License): Change to LGPL.
37427
37428 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37429
37430         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
37431         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
37432         and inttostr.h.  Use snprintf rather than uinttostr, so that
37433         LGPLed code doesn't depend on GPLed.
37434
37435 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
37436
37437         * modules/inline (License): Change from GPL to LGPL.
37438
37439 2006-11-17  Jim Meyering  <jim@meyering.net>
37440
37441         * modules/d-type (License): Switch to LGPL.
37442
37443 2006-11-15  Bruno Haible  <bruno@clisp.org>
37444
37445         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
37446
37447 2006-11-15  Eric Blake  <ebb9@byu.net>
37448
37449         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
37450         the module dependency.
37451
37452 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37453             Bruno Haible  <bruno@clisp.org>
37454
37455         * gnulib-tool (func_create_testdir): Add license consistency check.
37456
37457 2006-11-15  Eric Blake  <ebb9@byu.net>
37458
37459         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
37460         random "(cached)" in configure output.
37461
37462 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37463
37464         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
37465         test for conforming inttypes.h is both announced and cached.
37466
37467         * MODULES.html.sh (seen_modules, seen_files): New variables.
37468         (func_module): Rewrite to use a few less gnulib-tool and sed
37469         invocations.  Avoid a couple of quadratic algorithms for ...
37470         (missed_modules, missed_files): ... these, with ...
37471         (func_append, func_tmpdir): ... these new functions, from
37472         gnulib-tool.  Analogously, install traps for cleanup.
37473
37474         * tests/test-gc.c (main): Remove unused variables.
37475         * tests/test-read-file.c: Include stdlib.h, for 'free'.
37476
37477 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
37478
37479         * modules/inttostr (License): Change to LGPL.
37480
37481 2006-11-14  Eric Blake  <ebb9@byu.net>
37482
37483         * modules/tempname (License): Change to LGPL.
37484
37485 2006-11-14  Eric Blake  <ebb9@byu.net>
37486
37487         * doc/functions.texi (Function Portability): *printf functions on
37488         Cygwin now understand all POSIX size specifiers.
37489
37490 2006-11-14  Bruno Haible  <bruno@clisp.org>
37491
37492         * modules/c-ctype (License): Change to LGPL.
37493
37494 2006-11-12  Bruno Haible  <bruno@clisp.org>
37495
37496         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37497         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
37498         for GNOME libraries, for which the include files are installed in
37499         subdirectories of $prefix/include.
37500
37501 2006-11-12  Bruno Haible  <bruno@clisp.org>
37502
37503         * m4/lib-link.m4: Require at least autoconf-2.54.
37504         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
37505         name to underscores for the --with option.
37506
37507 2006-11-13  Bruno Haible  <bruno@clisp.org>
37508
37509         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
37510         the tests directory.
37511         Reported by Ralf Wildenhues.
37512
37513 2006-11-13  Bruno Haible  <bruno@clisp.org>
37514
37515         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
37516         (func_emit_initmacro_end): Undo the override here.
37517         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
37518         Works around the famous automake error in coreutils.
37519
37520 2006-11-13  Eric Blake  <ebb9@byu.net>
37521
37522         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
37523         element, not its node.
37524
37525 2006-11-12  Bruno Haible  <bruno@clisp.org>
37526
37527         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
37528         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
37529
37530 2006-11-12  Bruno Haible  <bruno@clisp.org>
37531
37532         * gnulib-tool: New option --local-symlink.
37533         (func_usage): Document it.
37534         (lsymbolic): New variable.
37535         (func_import, func_create_testdir): If --symlink was not specified,
37536         test whether --local-symlink was specified and the file comes from
37537         the local_gnulib_dir.
37538
37539 2006-11-12  Bruno Haible  <bruno@clisp.org>
37540
37541         * gnulib-tool (func_ln): New function.
37542         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
37543
37544 2006-11-12  Bruno Haible  <bruno@clisp.org>
37545
37546         Finish support for source files in subdirectories.
37547         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
37548         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
37549         AUTOMAKE_OPTIONS.
37550         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
37551
37552 2006-11-12  Bruno Haible  <bruno@clisp.org>
37553
37554         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37555         EXTRA_lib_SOURCES augmentation.
37556         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
37557
37558 2006-11-12  Jim Meyering  <jim@meyering.net>
37559
37560         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
37561         file descriptors.  This also averts a failure on systems with
37562         native openat support when a traversed directory lacks "x" access.
37563         * lib/fts_.h: Include "i-ring.h"
37564         (struct FTS) [fts_fd_ring]: New member.
37565         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
37566         (FCHDIR): Add parentheses.
37567         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
37568         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
37569         When descending, rather than simply closing the previous
37570         fts_cwd_fd value, push that file descriptor onto the ring.
37571         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
37572         (fts_open): Initialize the new fd_ring member.
37573         (fts_close): Clear the ring.
37574         (fts_safe_changedir): When possible, use our new fd_ring to skip
37575         the diropen and fstat and dev/ino comparison that would normally
37576         accompany a virtual `chdir ("..")'.
37577
37578         * modules/fts (Depends-on): Add i-ring.
37579         * modules/i-ring: New module.
37580         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
37581         * m4/i-ring.m4: New file.
37582
37583 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37584
37585         * gnulib-tool (func_create_testdir): Fix replacement of
37586         `build-aux' in configure.ac.  Run autotools in gltests
37587         subdirectory.
37588         (func_create_testdir, func_create_megatestdir, test): There is
37589         no need for '--force' in most autotool invocations in a new
37590         tree.  Actually fail the whole test if any of the tools, or the
37591         configure or make stages fail.
37592
37593         Sync from Automake.
37594         * build-aux/gnupload: Revert last change.  Add pointer to upload
37595         instructions of the GNU Maintenance Instructions.
37596         Suggestion by Karl Berry.
37597
37598 2006-11-10  Jim Meyering  <jim@meyering.net>
37599
37600         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
37601
37602 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37603
37604         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
37605         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
37606         (bind_textdomain_codeset) [! ENABLE_NLS]:
37607         Evaluate all the arguments.  That way, callers get compatible behavior
37608         if the arguments have side effects.  Also, it avoids some GCC
37609         diagnostics in some cases; Joel E. Denny reported problems when Bison
37610         was configured with --enable-gcc-warnigs.
37611
37612 2006-11-10  Jim Meyering  <jim@meyering.net>
37613
37614         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
37615         relevant options in CFLAGS (like -O, -fno-inline) are taken into
37616         account.
37617
37618 2006-11-10  Jim Meyering  <jim@meyering.net>
37619
37620         * modules/inline: New file/module.
37621         * modules/xalloc (Files): Remove m4/inline.m4.
37622         (Depends-on): Add inline, instead.
37623         * modules/oset: Likewise.
37624         * modules/list: Likewise.
37625
37626 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37627
37628         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
37629         Problem reported by Matthew Woehlke.
37630
37631 2006-11-09  Bruno Haible  <bruno@clisp.org>
37632
37633         * lib/tempname.c (gen_tempname): Remove variant that invokes
37634         __gen_tempname.
37635         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
37636         __gen_tempname.
37637
37638 2006-11-08  Bruno Haible  <bruno@clisp.org>
37639
37640         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
37641         to 'yes' instead of 'cross-compiling'.
37642
37643 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37644
37645         * lib/quotearg.h (quotearg_free): New decl.
37646         * lib/quotearg.c (quotearg_free): New function.
37647         (slot0, nslots, slotvec0, slotvec):
37648         Now file-scope so that quotearg_free can get at them.
37649
37650 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37651
37652         Sync from Automake.
37653         * build-aux/gnupload: Add missing 'gnu' to example URL.
37654         Report by Karl Berry.
37655
37656 2006-11-08  Bruno Haible  <bruno@clisp.org>
37657
37658         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
37659         Suggested by Paul Eggert.
37660
37661 2006-11-08  Jim Meyering  <jim@meyering.net>
37662
37663         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
37664         It's already included if !_LIBC.
37665         (fts_safe_changedir): Add a comment.
37666
37667 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37668
37669         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
37670         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
37671         Matthew Woehlke.
37672
37673         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
37674         definitions up, to avoid colliding with change below.
37675         (static_inline) [HAVE_INLINE]: New macro.
37676         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37677         Provide extern decls when !HAVE_INLINE.  Do not define unless
37678         static_inline is defined, either by us or by xmalloc.c.  Use
37679         static_inline rather than static inline.
37680         (XCALLOC): Optimize sizeof(T) = 1 case.
37681         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
37682
37683 2006-11-07  Bruno Haible  <bruno@clisp.org>
37684
37685         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
37686         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
37687         AC_C_INLINE.
37688         * modules/xalloc (Files): Add m4/inline.m4.
37689
37690 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37691
37692         * README: Fix typo.
37693         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
37694         (Miscellanous Notes): ...from this.
37695
37696 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37697
37698         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
37699         Mention that offsetof should be used instead of sizeof.
37700         From Bruno Haible.
37701
37702 2006-11-07  Bruno Haible  <bruno@clisp.org>
37703
37704         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
37705
37706 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37707
37708         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37709         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
37710         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37711         (gl_tree_add_before, gl_tree_add_after):
37712         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
37713         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
37714         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37715         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
37716         (gl_linked_add_after, gl_linked_add_at): Likewise.
37717         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
37718         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37719         (gl_tree_add_before, gl_tree_add_after): Likewise.
37720         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
37721         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
37722         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37723
37724 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37725
37726         * lib/gl_oset.h: Use C comment style, not C++ comment style.
37727
37728 2006-11-06  Bruno Haible  <bruno@clisp.org>
37729
37730         * m4/inline.m4: New file.
37731         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
37732         * modules/list (Files): Add m4/inline.m4.
37733         * modules/oset (Files): Likewise.
37734
37735 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37736
37737         * lib/idcache.c: Include <stddef.h>, for offsetof.
37738         (struct userid.name): Change from char * to a flexible array member.
37739         All uses changed.
37740         * modules/idcache (Depends-on): Add flexmember.
37741
37742         * MODULES.html.sh (Core language properties): New module flexmember.
37743         * modules/flexmember, m4/flexmember.m4: New files.
37744
37745         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
37746         inline functions that are identical with the old xnmalloc_inline,
37747         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
37748         that we can avoid some unnecessary integer multiplications and
37749         divisions in the common case where the element size is known at
37750         compile time.
37751         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
37752         needed.
37753         (xnboundedmalloc): Remove.
37754         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
37755         arguments, for consistency with rest of this header.
37756         (xcharalloc): Rewrite using XNMALLOC.
37757         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
37758         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
37759         versions have been moved to lib/xalloc.h and renamed to be the
37760         non-*_inline versions.
37761         (xmalloc, xrealloc): Implement without reference to the xnmalloc
37762         and xnrealloc functions, since those functions are now inline and
37763         now call us.
37764         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
37765         renaming described above.
37766         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
37767         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
37768         captures the dependency in AC_C_INLINE.
37769
37770         New module canonicalize-lgpl, proposed by Charles Wilson in
37771         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
37772         with a few small changes afterwards.
37773         * MODULES.html.sh (File system functions): New module
37774         canonicalize-lgpl.
37775         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
37776         and canonicalize_file_name.
37777         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
37778         * modules/canonicalize-lgpl: New files.
37779
37780 2006-11-05  Bruno Haible  <bruno@clisp.org>
37781
37782         * gnulib-tool (func_import, func_create_testdir): Create directories
37783         also for files in subdirectories of lib/.
37784
37785 2006-11-05  Bruno Haible  <bruno@clisp.org>
37786
37787         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
37788         ANSI C compliant.
37789
37790 2006-11-03  Bruno Haible  <bruno@clisp.org>
37791
37792         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37793         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
37794         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
37795         (xnboundedmalloc): New inline function.
37796         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
37797         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
37798         xmalloc.
37799         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
37800         xmalloc.
37801         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
37802         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
37803         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
37804         xmalloc.
37805         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37806         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
37807         xmalloc.
37808         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
37809         gl_tree_add_after): Use XMALLOC instead of xmalloc.
37810         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
37811         xmalloc.
37812         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37813         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
37814         gl_tree_add_after): Use XMALLOC instead of xmalloc.
37815         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
37816         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
37817         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
37818         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
37819
37820 2006-11-03  Bruno Haible  <bruno@clisp.org>
37821
37822         * lib/c-ctype.h [C++]: Define functions without name mangling.
37823         * lib/fwriteerror.h [C++]: Likewise.
37824         * lib/gcd.h [C++]: Likewise.
37825         * lib/linebreak.h [C++]: Likewise.
37826
37827 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
37828
37829         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
37830         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
37831         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
37832         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
37833         Check for functions and headers just once.
37834         Check for declaration of canonicalize_file_name.
37835         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
37836
37837 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
37838
37839         * gnulib-tool (func_import): Fix typo in actioncmd.
37840
37841 2006-11-02  Bruno Haible  <bruno@clisp.org>
37842
37843         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
37844         newline sequence in the Makefile.am snippet as a space, like "make"
37845         does.
37846         Reported by Roger Persson <perrog@gmail.com>.
37847
37848 2006-11-01  Bruno Haible  <bruno@clisp.org>
37849
37850         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
37851         already declared in <string.h>.
37852         * lib/strcase.h (strncasecmp): Don't declare it if yes.
37853
37854 2006-11-01  Bruno Haible  <bruno@clisp.org>
37855
37856         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
37857         * lib/strcase.h: Include <string.h>.
37858         (strcasecmp): Define to rpl_strcasecmp here.
37859
37860 2006-11-01  Bruno Haible  <bruno@clisp.org>
37861
37862         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
37863
37864 2006-11-01  Eric Blake  <ebb9@byu.net>
37865
37866         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
37867
37868         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
37869
37870 2006-10-29  Bruno Haible  <bruno@clisp.org>
37871
37872         Make it compile in C++ mode.
37873         * lib/full-write.c (full_rw): Add a cast.
37874
37875 2006-11-01  Bruno Haible  <bruno@clisp.org>
37876
37877         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
37878         be POSIX compliant.
37879         Reported by Roger Persson <perrog@gmail.com>.
37880
37881 2006-11-01  Eric Blake  <ebb9@byu.net>
37882
37883         * lib/getopt_.h: Fix comments.
37884
37885 2006-10-31  Eric Blake  <ebb9@byu.net>
37886
37887         * modules/tmpdir (Depends-on): Add sys_stat.
37888         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
37889         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
37890         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
37891         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
37892         tempname.
37893
37894 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
37895
37896         Avoid some C++ diagnostics reported by Bruno Haible.
37897         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
37898         xmalloc.
37899         (quotearg_alloc): Use xcharalloc rather than xmalloc.
37900         (struct slotvec): Move to top level.
37901         (quotearg_n_options): Rewrite to avoid xmalloc.
37902         * lib/xalloc.h (xcharalloc): New function.
37903         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
37904         [defined __cplusplus]: Add function template that provides result
37905         type propagation.  This part of the change is from Bruno Haible.
37906
37907 2006-10-29  Bruno Haible  <bruno@clisp.org>
37908
37909         Make it compile in C++ mode.
37910         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
37911         * lib/strnlen1.c (strnlen1): Cast memchr result.
37912         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
37913         * lib/clean-temp.c (string_equals, string_hash): Add casts.
37914         (create_temp_dir): Rename local variable 'template'.
37915         (compile_csharp_using_sscli): Add cast.
37916         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
37917         * lib/findprog.c (find_in_path): Likewise.
37918         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
37919         * lib/wait-process.c (register_slave_subprocess): Likewise.
37920
37921 2006-10-22  Bruno Haible  <bruno@clisp.org>
37922
37923         * modules/tsearch: New file.
37924         * lib/tsearch.h: New file.
37925         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
37926         * m4/tsearch.m4: New file.
37927         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
37928
37929 2006-10-29  Eric Blake  <ebb9@byu.net>
37930
37931         * lib/arcfour.c: Assume config.h.
37932         * lib/arctwo.c: Likewise.
37933         * lib/base64.c: Likewise.
37934         * lib/check-version.c: Likewise.
37935         * lib/crc.c: Likewise.
37936         * lib/des.c: Likewise.
37937         * lib/gc-gnulib.c: Likewise.
37938         * lib/gc-libgcrypt.c: Likewise.
37939         * lib/gc-pbkdf2-sha1.c: Likewise.
37940         * lib/getaddrinfo.c: Likewise.
37941         * lib/getdelim.c: Likewise.
37942         * lib/getline.c: Likewise.
37943         * lib/hmac-md5.c: Likewise.
37944         * lib/hmac-sha1.c: Likewise.
37945         * lib/iconvme.c: Likewise.
37946         * lib/md2.c: Likewise.
37947         * lib/md4.c: Likewise.
37948         * lib/memxor.c: Likewise.
37949         * lib/read-file.c: Likewise.
37950         * lib/readline.c: Likewise.
37951         * lib/rijndael-alg-fst.c: Likewise.
37952         * lib/rijndael-api-fst.c: Likewise.
37953         * lib/xgetdomainname.c: Likewise.
37954
37955 2006-10-28  Eric Blake  <ebb9@byu.net>
37956
37957         * lib/xstrndup.c: Assume config.h.
37958
37959 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
37960
37961         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
37962         stat-macros.h is now for our own macros, whereas stat_h is for
37963         macros in the <sys/stat.h> name space.
37964         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
37965         (STAT_MACROS_H): Remove.
37966         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
37967         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
37968         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
37969         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
37970         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
37971         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
37972         Move these macros to ...
37973         * lib/stat_.h: here.  Don't include stat-macros.h.
37974         * lib/canonicalize.c: Don't include stat-macros.h.
37975         * lib/chown.c: Likewise.
37976         * lib/euidaccess.c: Likewise.
37977         * lib/file-type.c: Likewise.
37978         * lib/filemode.c: Likewise.
37979         * lib/glob.c: Likewise.
37980         * lib/isapipe.c: Likewise.
37981         * lib/lchown.c: Likewise.
37982         * lib/lstat.c: Likewise.
37983         * lib/mkdir-p.c: Likewise.
37984         * lib/rmdir.c: Likewise.
37985         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
37986         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
37987         unless mkdir isn't declared, to speed up 'configure'.
37988         Always create sys/stat.h, since it's unlikely any real sys/stat.h
37989         would define all the S_* symbols.
37990         * modules/canonicalize (Depends-on):
37991         Depend on sys_stat, not stat-macros.
37992         * modules/chown: Likewise.
37993         * modules/euidaccess: Likewise.
37994         * modules/filemode: Likewise.
37995         * modules/file-type: Likewise.
37996         * modules/glob: Likewise.
37997         * modules/isapipe: Likewise.
37998         * modules/lchown: Likewise.
37999         * modules/lstat: Likewise.
38000         * modules/mkancesdirs: Likewise.
38001         * modules/rmdir: Likewise.
38002         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
38003         * modules/modechange: Likewise.
38004         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
38005         (configure.ac): Remove gl_STAT_MACROS.
38006         * modules/sys_stat (Depends-on): Remove stat-macros.
38007
38008 2006-10-27  Bruno Haible  <bruno@clisp.org>
38009
38010         * m4/signed.m4: Remove file.
38011         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
38012         invocation.
38013         * modules/vasnprintf (Files): Remove m4/signed.m4.
38014
38015 2006-10-27  Bruno Haible  <bruno@clisp.org>
38016
38017         Update to GNU gettext 0.16.
38018         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
38019         m4/inttypes-h.m4, m4/signed.m4.
38020         * m4/gettext.m4: Update to GNU gettext 0.16.
38021         * m4/intl.m4: New file, from GNU gettext.
38022         * m4/intldir.m4: New file, from GNU gettext.
38023         * config/srclist.txt: Update
38024
38025 2006-10-27  Eric Blake  <ebb9@byu.net>
38026
38027         * MODULES.html.sh: Document tempname.
38028         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
38029         dependencies.
38030         (Files): Move lib/tempname.c...
38031         * modules/tempname: ...to this new module.
38032         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
38033         (gl_PREREQ_TEMPNAME): Move...
38034         * m4/tempname.m4: ...to this new file.
38035         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
38036         * modules/sys_stat (Depends-on): Add stat-macros.
38037         * lib/stat_.h (includes): Pick up stat macros.
38038         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
38039         if stat macros are broken.
38040         * lib/tempname.c (includes): No need to include "stat-macros.h".
38041         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
38042         (direxists, __path_search) [!_LIBC]: Don't compile these in
38043         gnulib; the tmpdir module covers that.
38044         * lib/tempname.h: New file.
38045
38046 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
38047
38048         * COPYING: Explain how gnulib-tool converts licence headers.
38049         Almost all wording by Eric Blake.
38050
38051 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
38052
38053         * lib/mbchar.h (is_basic_table): Make read-only.
38054         * lib/mbchar.c (is_basic_table): Likewise.
38055         Reported by John Darrington.
38056
38057 2006-10-25  Bruno Haible  <bruno@clisp.org>
38058
38059         * lib/progname.h (set_program_name): Undefine before defining.
38060
38061 2006-10-25  Bruno Haible  <bruno@clisp.org>
38062
38063         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
38064         false for non-gcc C++ compilers.
38065         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38066
38067 2006-10-24  Bruno Haible  <bruno@clisp.org>
38068
38069         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
38070         iconv implementations like Irix iconv.
38071
38072 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38073
38074         * modules/vararrays: New file.
38075         * m4/vararrays.m4: New file, taken from diffutils.
38076         * MODULES.html.sh: New module vararrays.
38077
38078 2006-10-24  Karl Berry  <karl@gnu.org>
38079
38080         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
38081         Don't call GNU Unix.
38082
38083 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38084
38085         * users.txt: Add Libtool.
38086
38087         Sync from Libtool:
38088
38089         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38090
38091         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
38092         to gnulib's policy of including config.h unconditionally.
38093
38094 2006-10-24  Bruno Haible  <bruno@clisp.org>
38095
38096         * modules/wcwidth (Files): Add m4/wint_t.m4.
38097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
38098         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
38099
38100 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38101
38102         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
38103         to pacify GCC with some -W flags enabled.  Problem reported by
38104         Bruno Haible.
38105
38106 2006-10-24  Jim Meyering  <jim@meyering.net>
38107
38108         * MODULES.html.sh: Remove uinttostr.  It's not a module.
38109         Reported by Karl Berry.
38110
38111 2006-10-23  Bruno Haible  <bruno@clisp.org>
38112
38113         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
38114
38115 2006-10-24  Bruno Haible  <bruno@clisp.org>
38116
38117         * lib/gl_list.h: Use C comment style, not C++ comment style.
38118
38119 2006-10-23  Eric Blake  <ebb9@byu.net>
38120
38121         * lib/getaddrinfo.c (includes): Add missing include.
38122
38123 2006-10-23  Bruno Haible  <bruno@clisp.org>
38124             Paul Eggert  <eggert@cs.ucla.edu>
38125
38126         Ability to rename obstack_free.
38127         * lib/obstack.h (__obstack_free): New macro. Declare instead of
38128         obstack_free.
38129         (obstack_free): Invoke the __obstack_free macro.
38130         * lib/obstack.c (obstack_free): Use __obstack_free macro.
38131
38132 2006-10-23  Bruno Haible  <bruno@clisp.org>
38133             Paul Eggert  <eggert@cs.ucla.edu>
38134
38135         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
38136         __argc, __argv from the declaration. (They are defined as macros on
38137         mingw.)
38138
38139 2006-10-22  Bruno Haible  <bruno@clisp.org>
38140
38141         * doc/gnulib-intro.texi: New file.
38142         * doc/gnulib.texi: Include it.
38143
38144 2006-10-21  Bruno Haible  <bruno@clisp.org>
38145
38146         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
38147         "Introduction", "Miscellanous Notes", "Particular Modules".
38148
38149 2006-10-21  Bruno Haible  <bruno@clisp.org>
38150
38151         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38152         Change mostlyclean-local rule to avoid sh syntax error from bash
38153         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
38154
38155 2006-10-23  Jim Meyering  <jim@meyering.net>
38156
38157         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
38158         in place of snprintf.
38159
38160         * modules/inttostr (Files): Add lib/uinttostr.c.
38161         * lib/uinttostr.c (inttostr): New file/function.
38162         * lib/inttostr.h (uinttostr): Declare.
38163         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
38164         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
38165         Add uinttostr.
38166         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
38167
38168 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
38169
38170         * lib/canonicalize.c (ELOOP): Define if not already defined.
38171         Problem reported by Bruno Haible in
38172         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
38173
38174 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
38175
38176         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
38177         Problem reported by Perry Smith and Ville Laurikari.
38178
38179         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
38180         uses.
38181
38182 2006-10-19  Bruno Haible  <bruno@clisp.org>
38183
38184         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
38185         for mingw.
38186
38187 2006-10-19  Bruno Haible  <bruno@clisp.org>
38188
38189         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
38190         Needed for mingw.
38191
38192 2006-10-19  Bruno Haible  <bruno@clisp.org>
38193
38194         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
38195
38196 2006-10-19  Bruno Haible  <bruno@clisp.org>
38197
38198         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
38199         it.
38200
38201 2006-10-19  Bruno Haible  <bruno@clisp.org>
38202
38203         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
38204         invocation.
38205
38206 2006-10-19  Bruno Haible  <bruno@clisp.org>
38207
38208         * gnulib-tool (func_create_testdir): Don't include ftruncate and
38209         mountlist by default.
38210
38211 2006-10-16  Bruno Haible  <bruno@clisp.org>
38212
38213         * lib/c-strstr.c: Include c-strstr.h.
38214
38215 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
38216
38217         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
38218         in a slash.
38219
38220 2006-10-18  Bruno Haible  <bruno@clisp.org>
38221
38222         * lib/lock.h [C++]: Wrap definitions in extern "C".
38223
38224 2006-10-18  Bruno Haible  <bruno@clisp.org>
38225
38226         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
38227         gl_LIBOBJS list.
38228
38229 2006-10-18  Bruno Haible  <bruno@clisp.org>
38230
38231         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
38232
38233 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
38234
38235         * lib/xstrtol.h: Include gettext.h.
38236         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
38237         Problem reported by Eric Blake.
38238         * modules/xstrtol (Depends-on): Add gettext-h.
38239
38240 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
38241
38242         * lib/strftime.c (advance): New macro.
38243         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
38244         incomplete type, so you can't add 0 to it.  Problem and patch
38245         reported by Eelco Dolstra for dietlibc.
38246
38247 2006-10-18  Jim Meyering  <jim@meyering.net>
38248
38249         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
38250         type for a local, and rename it: s/up/user_proc/.
38251
38252 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
38253
38254         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
38255         READ_UTMP_USER_PROCESS.
38256         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
38257
38258 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
38259
38260         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
38261         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
38262
38263 2006-10-17  Eric Blake  <ebb9@byu.net>
38264
38265         * lib/sigprocmask.c (sigprocmask): Fix typo.
38266
38267         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
38268
38269         * modules/clean-temp (Makefile.am): Don't add to make output...
38270         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
38271         config.h.
38272
38273 2006-10-17  Bruno Haible  <bruno@clisp.org>
38274
38275         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
38276         differently if DEFAULT_TEXT_DOMAIN is set.
38277
38278 2006-10-16  Bruno Haible  <bruno@clisp.org>
38279
38280         * lib/clean-temp.c: Include fwriteerror.h.
38281
38282 2006-10-16  Bruno Haible  <bruno@clisp.org>
38283
38284         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
38285
38286 2006-10-16  Bruno Haible  <bruno@clisp.org>
38287
38288         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
38289         * lib/sigprocmask.h: Include <sys/types.h>.
38290         (sigset_t): Use the system's definition if present.
38291
38292 2006-10-17  Eric Blake  <ebb9@byu.net>
38293
38294         * lib/xvasprintf.c (includes): Assume config.h.
38295         * lib/xasprintf.c (includes): Likewise.
38296
38297 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38298
38299         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
38300         at least as wide as intmax_t.
38301
38302 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
38303
38304         (Imported from Automake.)
38305         * build-aux/gnupload: Update to version 1.1 of directive file.
38306
38307 2006-10-16  Eric Blake  <ebb9@byu.net>
38308
38309         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
38310         match Automake 1.10a.
38311
38312 2006-10-14  Bruno Haible  <bruno@clisp.org>
38313
38314         * modules/sigprocmask: New file.
38315         * lib/sigprocmask.h: New file.
38316         * lib/sigprocmask.c: New file.
38317         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
38318         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
38319         request sigprocmask.o.
38320         (gl_PREREQ_SIGPROCMASK): New macro.
38321         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
38322         (Depends-on): Add sigprocmask.
38323         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
38324         gt_SIGNALBLOCKING. Test for 'raise' only once.
38325         * lib/fatal-signal.c: Include sigprocmask.h.
38326         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
38327         unblock_fatal_signals): Define always.
38328         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38329         sigprocmask.
38330
38331 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38332
38333         Sync from Automake.
38334         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
38335         which incorrectly sets the mode of an existing destination
38336         directory.  In some cases the unpatched install-sh could do the
38337         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
38338         system.  We hope this is rare in practice, but it's clearly worth
38339         fixing.  Problem reported by Alex Unleashed in
38340         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
38341         Also, don't bother to check for -m bugs unless we're using -m;
38342         suggested by Stepan Kasal.
38343
38344 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38345
38346         Sync from Automake.
38347         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
38348         `-c' flag, so they appear at the same position as in %FASTDEP%
38349         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
38350         which ignores unknown options only after the first non-option.
38351         Bug report against M4 by Nelson H. F. Beebe.
38352
38353 2006-10-13  Jim Meyering  <jim@meyering.net>
38354
38355         Fix a bug in yesterday's change.
38356         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
38357         p->fts_statp->st_dev would be used uninitialized.
38358         Ensures that we always call fts_stat on the very first entry.
38359         Miklos Szeredi reported that find -xdev stopped working.
38360
38361 2006-10-12  Bruno Haible  <bruno@clisp.org>
38362
38363         * gnulib-tool (func_get_automake_snippet): Append an automatically
38364         computed EXTRA_DIST augmentation.
38365         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
38366         * modules/alloca-opt (Makefile.am): Likewise.
38367         * modules/allocsa (Makefile.am): Likewise.
38368         * modules/arcfour (Makefile.am): Likewise.
38369         * modules/arctwo (Makefile.am): Likewise.
38370         * modules/argmatch (Makefile.am): Likewise.
38371         * modules/argz (Makefile.am): Likewise.
38372         * modules/atexit (Makefile.am): Likewise.
38373         * modules/backupfile (Makefile.am): Likewise.
38374         * modules/byteswap (Makefile.am): Likewise.
38375         * modules/c-strtod (Makefile.am): Likewise.
38376         * modules/c-strtold (Makefile.am): Likewise.
38377         * modules/calloc (Makefile.am): Likewise.
38378         * modules/canon-host (Makefile.am): Likewise.
38379         * modules/canonicalize (Makefile.am): Likewise.
38380         * modules/chdir-long (Makefile.am): Likewise.
38381         * modules/chdir-safer (Makefile.am): Likewise.
38382         * modules/check-version (Makefile.am): Likewise.
38383         * modules/chown (Makefile.am): Likewise.
38384         * modules/cloexec (Makefile.am): Likewise.
38385         * modules/close-stream (Makefile.am): Likewise.
38386         * modules/closeout (Makefile.am): Likewise.
38387         * modules/crc (Makefile.am): Likewise.
38388         * modules/csharpexec (Makefile.am): Likewise.
38389         * modules/cycle-check (Makefile.am): Likewise.
38390         * modules/des (Makefile.am): Likewise.
38391         * modules/dev-ino (Makefile.am): Likewise.
38392         * modules/dirfd (Makefile.am): Likewise.
38393         * modules/dirname (Makefile.am): Likewise.
38394         * modules/dup2 (Makefile.am): Likewise.
38395         * modules/eealloc (Makefile.am): Likewise.
38396         * modules/error (Makefile.am): Likewise.
38397         * modules/euidaccess (Makefile.am): Likewise.
38398         * modules/exclude (Makefile.am): Likewise.
38399         * modules/exitfail (Makefile.am): Likewise.
38400         * modules/fcntl-safer (Makefile.am): Likewise.
38401         * modules/fcntl (Makefile.am): Likewise.
38402         * modules/file-type (Makefile.am): Likewise.
38403         * modules/fileblocks (Makefile.am): Likewise.
38404         * modules/filemode (Makefile.am): Likewise.
38405         * modules/filenamecat (Makefile.am): Likewise.
38406         * modules/fnmatch (Makefile.am): Likewise.
38407         * modules/fopen-safer (Makefile.am): Likewise.
38408         * modules/fpending (Makefile.am): Likewise.
38409         * modules/fprintftime (Makefile.am): Likewise.
38410         * modules/free (Makefile.am): Likewise.
38411         * modules/fsusage (Makefile.am): Likewise.
38412         * modules/ftruncate (Makefile.am): Likewise.
38413         * modules/fts (Makefile.am): Likewise.
38414         * modules/gc-arcfour (Makefile.am): Likewise.
38415         * modules/gc-des (Makefile.am): Likewise.
38416         * modules/gc-hmac-md5 (Makefile.am): Likewise.
38417         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
38418         * modules/gc-md4 (Makefile.am): Likewise.
38419         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38420         * modules/gc-sha1 (Makefile.am): Likewise.
38421         * modules/gc (Makefile.am): Likewise.
38422         * modules/getaddrinfo (Makefile.am): Likewise.
38423         * modules/getcwd (Makefile.am): Likewise.
38424         * modules/getdelim (Makefile.am): Likewise.
38425         * modules/getdomainname (Makefile.am): Likewise.
38426         * modules/getgroups (Makefile.am): Likewise.
38427         * modules/gethostname (Makefile.am): Likewise.
38428         * modules/gethrxtime (Makefile.am): Likewise.
38429         * modules/getline (Makefile.am): Likewise.
38430         * modules/getloadavg (Makefile.am): Likewise.
38431         * modules/getlogin_r (Makefile.am): Likewise.
38432         * modules/getndelim2 (Makefile.am): Likewise.
38433         * modules/getopt (Makefile.am): Likewise.
38434         * modules/getpagesize (Makefile.am): Likewise.
38435         * modules/getpass-gnu (Makefile.am): Likewise.
38436         * modules/getpass (Makefile.am): Likewise.
38437         * modules/getsubopt (Makefile.am): Likewise.
38438         * modules/gettime (Makefile.am): Likewise.
38439         * modules/gettimeofday (Makefile.am): Likewise.
38440         * modules/getugroups (Makefile.am): Likewise.
38441         * modules/getusershell (Makefile.am): Likewise.
38442         * modules/glob (Makefile.am): Likewise.
38443         * modules/group-member (Makefile.am): Likewise.
38444         * modules/hard-locale (Makefile.am): Likewise.
38445         * modules/hash (Makefile.am): Likewise.
38446         * modules/hmac-md5 (Makefile.am): Likewise.
38447         * modules/hmac-sha1 (Makefile.am): Likewise.
38448         * modules/human (Makefile.am): Likewise.
38449         * modules/idcache (Makefile.am): Likewise.
38450         * modules/imaxabs (Makefile.am): Likewise.
38451         * modules/imaxdiv (Makefile.am): Likewise.
38452         * modules/inet_ntop (Makefile.am): Likewise.
38453         * modules/inet_pton (Makefile.am): Likewise.
38454         * modules/intprops (Makefile.am): Likewise.
38455         * modules/inttostr (Makefile.am): Likewise.
38456         * modules/inttypes (Makefile.am): Likewise.
38457         * modules/isapipe (Makefile.am): Likewise.
38458         * modules/javaversion (Makefile.am): Likewise.
38459         * modules/lchmod (Makefile.am): Likewise.
38460         * modules/lchown (Makefile.am): Likewise.
38461         * modules/localcharset (Makefile.am): Likewise.
38462         * modules/long-options (Makefile.am): Likewise.
38463         * modules/lstat (Makefile.am): Likewise.
38464         * modules/malloc (Makefile.am): Likewise.
38465         * modules/mathl (Makefile.am): Likewise.
38466         * modules/mbchar (Makefile.am): Likewise.
38467         * modules/md2 (Makefile.am): Likewise.
38468         * modules/md4 (Makefile.am): Likewise.
38469         * modules/md5 (Makefile.am): Likewise.
38470         * modules/memcasecmp (Makefile.am): Likewise.
38471         * modules/memchr (Makefile.am): Likewise.
38472         * modules/memcmp (Makefile.am): Likewise.
38473         * modules/memcoll (Makefile.am): Likewise.
38474         * modules/memcpy (Makefile.am): Likewise.
38475         * modules/memmem (Makefile.am): Likewise.
38476         * modules/memmove (Makefile.am): Likewise.
38477         * modules/mempcpy (Makefile.am): Likewise.
38478         * modules/memrchr (Makefile.am): Likewise.
38479         * modules/memset (Makefile.am): Likewise.
38480         * modules/memxor (Makefile.am): Likewise.
38481         * modules/mkancesdirs (Makefile.am): Likewise.
38482         * modules/mkdir-p (Makefile.am): Likewise.
38483         * modules/mkdir (Makefile.am): Likewise.
38484         * modules/mkdtemp (Makefile.am): Likewise.
38485         * modules/mkstemp (Makefile.am): Likewise.
38486         * modules/mktime (Makefile.am): Likewise.
38487         * modules/modechange (Makefile.am): Likewise.
38488         * modules/mountlist (Makefile.am): Likewise.
38489         * modules/nanosleep (Makefile.am): Likewise.
38490         * modules/obstack (Makefile.am): Likewise.
38491         * modules/openat (Makefile.am): Likewise.
38492         * modules/pagealign_alloc (Makefile.am): Likewise.
38493         * modules/pathmax (Makefile.am): Likewise.
38494         * modules/physmem (Makefile.am): Likewise.
38495         * modules/poll (Makefile.am): Likewise.
38496         * modules/posixtm (Makefile.am): Likewise.
38497         * modules/posixver (Makefile.am): Likewise.
38498         * modules/putenv (Makefile.am): Likewise.
38499         * modules/quote (Makefile.am): Likewise.
38500         * modules/quotearg (Makefile.am): Likewise.
38501         * modules/raise (Makefile.am): Likewise.
38502         * modules/read-file (Makefile.am): Likewise.
38503         * modules/readline (Makefile.am): Likewise.
38504         * modules/readlink (Makefile.am): Likewise.
38505         * modules/readtokens (Makefile.am): Likewise.
38506         * modules/readutmp (Makefile.am): Likewise.
38507         * modules/realloc (Makefile.am): Likewise.
38508         * modules/regex (Makefile.am): Likewise.
38509         * modules/rename-dest-slash (Makefile.am): Likewise.
38510         * modules/rename (Makefile.am): Likewise.
38511         * modules/rijndael (Makefile.am): Likewise.
38512         * modules/rmdir (Makefile.am): Likewise.
38513         * modules/rpmatch (Makefile.am): Likewise.
38514         * modules/safe-read (Makefile.am): Likewise.
38515         * modules/safe-write (Makefile.am): Likewise.
38516         * modules/same-inode (Makefile.am): Likewise.
38517         * modules/same (Makefile.am): Likewise.
38518         * modules/save-cwd (Makefile.am): Likewise.
38519         * modules/savedir (Makefile.am): Likewise.
38520         * modules/setenv (Makefile.am): Likewise.
38521         * modules/settime (Makefile.am): Likewise.
38522         * modules/sha1 (Makefile.am): Likewise.
38523         * modules/sig2str (Makefile.am): Likewise.
38524         * modules/snprintf (Makefile.am): Likewise.
38525         * modules/stat-macros (Makefile.am): Likewise.
38526         * modules/stat-time (Makefile.am): Likewise.
38527         * modules/stdbool (Makefile.am): Likewise.
38528         * modules/stdint (Makefile.am): Likewise.
38529         * modules/stdlib-safer (Makefile.am): Likewise.
38530         * modules/stpcpy (Makefile.am): Likewise.
38531         * modules/stpncpy (Makefile.am): Likewise.
38532         * modules/strcase (Makefile.am): Likewise.
38533         * modules/strcasestr (Makefile.am): Likewise.
38534         * modules/strchrnul (Makefile.am): Likewise.
38535         * modules/strcspn (Makefile.am): Likewise.
38536         * modules/strdup (Makefile.am): Likewise.
38537         * modules/strerror (Makefile.am): Likewise.
38538         * modules/strftime (Makefile.am): Likewise.
38539         * modules/strndup (Makefile.am): Likewise.
38540         * modules/strnlen (Makefile.am): Likewise.
38541         * modules/strpbrk (Makefile.am): Likewise.
38542         * modules/strsep (Makefile.am): Likewise.
38543         * modules/strstr (Makefile.am): Likewise.
38544         * modules/strtod (Makefile.am): Likewise.
38545         * modules/strtoimax (Makefile.am): Likewise.
38546         * modules/strtok_r (Makefile.am): Likewise.
38547         * modules/strtol (Makefile.am): Likewise.
38548         * modules/strtoll (Makefile.am): Likewise.
38549         * modules/strtoul (Makefile.am): Likewise.
38550         * modules/strtoull (Makefile.am): Likewise.
38551         * modules/strtoumax (Makefile.am): Likewise.
38552         * modules/strverscmp (Makefile.am): Likewise.
38553         * modules/sys_socket (Makefile.am): Likewise.
38554         * modules/sys_stat (Makefile.am): Likewise.
38555         * modules/sysexits (Makefile.am): Likewise.
38556         * modules/time_r (Makefile.am): Likewise.
38557         * modules/timegm (Makefile.am): Likewise.
38558         * modules/timespec (Makefile.am): Likewise.
38559         * modules/tmpfile-safer (Makefile.am): Likewise.
38560         * modules/trim (Makefile.am): Likewise.
38561         * modules/unistd-safer (Makefile.am): Likewise.
38562         * modules/unlinkdir (Makefile.am): Likewise.
38563         * modules/unlocked-io (Makefile.am): Likewise.
38564         * modules/userspec (Makefile.am): Likewise.
38565         * modules/utime (Makefile.am): Likewise.
38566         * modules/utimecmp (Makefile.am): Likewise.
38567         * modules/utimens (Makefile.am): Likewise.
38568         * modules/vasnprintf (Makefile.am): Likewise.
38569         * modules/vasprintf (Makefile.am): Likewise.
38570         * modules/vsnprintf (Makefile.am): Likewise.
38571         * modules/xalloc (Makefile.am): Likewise.
38572         * modules/xgetcwd (Makefile.am): Likewise.
38573         * modules/xnanosleep (Makefile.am): Likewise.
38574         * modules/xreadlink (Makefile.am): Likewise.
38575         * modules/xstrtod (Makefile.am): Likewise.
38576         * modules/xstrtol (Makefile.am): Likewise.
38577         * modules/xstrtold (Makefile.am): Likewise.
38578         * modules/yesno (Makefile.am): Likewise.
38579         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
38580
38581 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38582
38583         * modules/error (Makefile.am): Distribute files through
38584         EXTRA_DIST, not lib_SOURCES.
38585
38586 2006-10-12  Eric Blake  <ebb9@byu.net>
38587
38588         * modules/error (Makefile.am): Distribute files in /lib.
38589         * modules/obstack (Makefile.am): Likewise.
38590
38591 2006-10-12  Bruno Haible  <bruno@clisp.org>
38592
38593         * modules/acl (Makefile.am): Distribute all files in lib/ through
38594         EXTRA_DIST.
38595         * modules/arcfour (Makefile.am): Likewise.
38596         * modules/arctwo (Makefile.am): Likewise.
38597         * modules/argmatch (Makefile.am): Likewise.
38598         * modules/argz (Makefile.am): Likewise.
38599         * modules/atexit (Makefile.am): Likewise.
38600         * modules/backupfile (Makefile.am): Likewise.
38601         * modules/c-strtod (Makefile.am): Likewise.
38602         * modules/c-strtold (Makefile.am): Likewise.
38603         * modules/calloc (Makefile.am): Likewise.
38604         * modules/canon-host (Makefile.am): Likewise.
38605         * modules/canonicalize (Makefile.am): Likewise.
38606         * modules/chdir-long (Makefile.am): Likewise.
38607         * modules/chdir-safer (Makefile.am): Likewise.
38608         * modules/check-version (Makefile.am): Likewise.
38609         * modules/chown (Makefile.am): Likewise.
38610         * modules/cloexec (Makefile.am): Likewise.
38611         * modules/close-stream (Makefile.am): Likewise.
38612         * modules/closeout (Makefile.am): Likewise.
38613         * modules/crc (Makefile.am): Likewise.
38614         * modules/cycle-check (Makefile.am): Likewise.
38615         * modules/des (Makefile.am): Likewise.
38616         * modules/dirfd (Makefile.am): Likewise.
38617         * modules/dirname (Makefile.am): Likewise.
38618         * modules/dup2 (Makefile.am): Likewise.
38619         * modules/euidaccess (Makefile.am): Likewise.
38620         * modules/exclude (Makefile.am): Likewise.
38621         * modules/exitfail (Makefile.am): Likewise.
38622         * modules/fcntl-safer (Makefile.am): Likewise.
38623         * modules/file-type (Makefile.am): Likewise.
38624         * modules/fileblocks (Makefile.am): Likewise.
38625         * modules/filemode (Makefile.am): Likewise.
38626         * modules/filenamecat (Makefile.am): Likewise.
38627         * modules/fnmatch (Makefile.am): Likewise.
38628         * modules/fopen-safer (Makefile.am): Likewise.
38629         * modules/fpending (Makefile.am): Likewise.
38630         * modules/fprintftime (Makefile.am): Likewise.
38631         * modules/free (Makefile.am): Likewise.
38632         * modules/fsusage (Makefile.am): Likewise.
38633         * modules/ftruncate (Makefile.am): Likewise.
38634         * modules/fts (Makefile.am): Likewise.
38635         * modules/gc (Makefile.am): Likewise.
38636         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38637         * modules/getaddrinfo (Makefile.am): Likewise.
38638         * modules/getcwd (Makefile.am): Likewise.
38639         * modules/getdelim (Makefile.am): Likewise.
38640         * modules/getdomainname (Makefile.am): Likewise.
38641         * modules/getgroups (Makefile.am): Likewise.
38642         * modules/gethostname (Makefile.am): Likewise.
38643         * modules/gethrxtime (Makefile.am): Likewise.
38644         * modules/getline (Makefile.am): Likewise.
38645         * modules/getloadavg (Makefile.am): Likewise.
38646         * modules/getlogin_r (Makefile.am): Likewise.
38647         * modules/getopt (Makefile.am): Likewise.
38648         * modules/getpass (Makefile.am): Likewise.
38649         * modules/getpass-gnu (Makefile.am): Likewise.
38650         * modules/getsubopt (Makefile.am): Likewise.
38651         * modules/gettime (Makefile.am): Likewise.
38652         * modules/gettimeofday (Makefile.am): Likewise.
38653         * modules/getugroups (Makefile.am): Likewise.
38654         * modules/getusershell (Makefile.am): Likewise.
38655         * modules/glob (Makefile.am): Likewise.
38656         * modules/group-member (Makefile.am): Likewise.
38657         * modules/hard-locale (Makefile.am): Likewise.
38658         * modules/hash (Makefile.am): Likewise.
38659         * modules/hmac-md5 (Makefile.am): Likewise.
38660         * modules/hmac-sha1 (Makefile.am): Likewise.
38661         * modules/human (Makefile.am): Likewise.
38662         * modules/idcache (Makefile.am): Likewise.
38663         * modules/imaxabs (Makefile.am): Likewise.
38664         * modules/imaxdiv (Makefile.am): Likewise.
38665         * modules/inet_ntop (Makefile.am): Likewise.
38666         * modules/inet_pton (Makefile.am): Likewise.
38667         * modules/inttostr (Makefile.am): Likewise.
38668         * modules/isapipe (Makefile.am): Likewise.
38669         * modules/lchown (Makefile.am): Likewise.
38670         * modules/long-options (Makefile.am): Likewise.
38671         * modules/lstat (Makefile.am): Likewise.
38672         * modules/malloc (Makefile.am): Likewise.
38673         * modules/mathl (Makefile.am): Likewise.
38674         * modules/mbchar (Makefile.am): Likewise.
38675         * modules/md2 (Makefile.am): Likewise.
38676         * modules/md4 (Makefile.am): Likewise.
38677         * modules/md5 (Makefile.am): Likewise.
38678         * modules/memcasecmp (Makefile.am): Likewise.
38679         * modules/memchr (Makefile.am): Likewise.
38680         * modules/memcmp (Makefile.am): Likewise.
38681         * modules/memcoll (Makefile.am): Likewise.
38682         * modules/memcpy (Makefile.am): Likewise.
38683         * modules/memmem (Makefile.am): Likewise.
38684         * modules/memmove (Makefile.am): Likewise.
38685         * modules/mempcpy (Makefile.am): Likewise.
38686         * modules/memrchr (Makefile.am): Likewise.
38687         * modules/memset (Makefile.am): Likewise.
38688         * modules/memxor (Makefile.am): Likewise.
38689         * modules/mkancesdirs (Makefile.am): Likewise.
38690         * modules/mkdir (Makefile.am): Likewise.
38691         * modules/mkdir-p (Makefile.am): Likewise.
38692         * modules/mkdtemp (Makefile.am): Likewise.
38693         * modules/mkstemp (Makefile.am): Likewise.
38694         * modules/mktime (Makefile.am): Likewise.
38695         * modules/modechange (Makefile.am): Likewise.
38696         * modules/mountlist (Makefile.am): Likewise.
38697         * modules/nanosleep (Makefile.am): Likewise.
38698         * modules/openat (Makefile.am): Likewise.
38699         * modules/pagealign_alloc (Makefile.am): Likewise.
38700         * modules/physmem (Makefile.am): Likewise.
38701         * modules/poll (Makefile.am): Likewise.
38702         * modules/posixtm (Makefile.am): Likewise.
38703         * modules/posixver (Makefile.am): Likewise.
38704         * modules/putenv (Makefile.am): Likewise.
38705         * modules/quote (Makefile.am): Likewise.
38706         * modules/quotearg (Makefile.am): Likewise.
38707         * modules/raise (Makefile.am): Likewise.
38708         * modules/read-file (Makefile.am): Likewise.
38709         * modules/readline (Makefile.am): Likewise.
38710         * modules/readlink (Makefile.am): Likewise.
38711         * modules/readtokens (Makefile.am): Likewise.
38712         * modules/readutmp (Makefile.am): Likewise.
38713         * modules/realloc (Makefile.am): Likewise.
38714         * modules/regex (Makefile.am): Likewise.
38715         * modules/rename (Makefile.am): Likewise.
38716         * modules/rename-dest-slash (Makefile.am): Likewise.
38717         * modules/rijndael (Makefile.am): Likewise.
38718         * modules/rmdir (Makefile.am): Likewise.
38719         * modules/rpmatch (Makefile.am): Likewise.
38720         * modules/safe-read (Makefile.am): Likewise.
38721         * modules/safe-write (Makefile.am): Likewise.
38722         * modules/same (Makefile.am): Likewise.
38723         * modules/save-cwd (Makefile.am): Likewise.
38724         * modules/savedir (Makefile.am): Likewise.
38725         * modules/setenv (Makefile.am): Likewise.
38726         * modules/settime (Makefile.am): Likewise.
38727         * modules/sha1 (Makefile.am): Likewise.
38728         * modules/sig2str (Makefile.am): Likewise.
38729         * modules/snprintf (Makefile.am): Likewise.
38730         * modules/stdlib-safer (Makefile.am): Likewise.
38731         * modules/stpcpy (Makefile.am): Likewise.
38732         * modules/stpncpy (Makefile.am): Likewise.
38733         * modules/strcase (Makefile.am): Likewise.
38734         * modules/strcasestr (Makefile.am): Likewise.
38735         * modules/strchrnul (Makefile.am): Likewise.
38736         * modules/strcspn (Makefile.am): Likewise.
38737         * modules/strdup (Makefile.am): Likewise.
38738         * modules/strerror (Makefile.am): Likewise.
38739         * modules/strftime (Makefile.am): Likewise.
38740         * modules/strndup (Makefile.am): Likewise.
38741         * modules/strnlen (Makefile.am): Likewise.
38742         * modules/strpbrk (Makefile.am): Likewise.
38743         * modules/strsep (Makefile.am): Likewise.
38744         * modules/strstr (Makefile.am): Likewise.
38745         * modules/strtod (Makefile.am): Likewise.
38746         * modules/strtoimax (Makefile.am): Likewise.
38747         * modules/strtok_r (Makefile.am): Likewise.
38748         * modules/strtol (Makefile.am): Likewise.
38749         * modules/strtoll (Makefile.am): Likewise.
38750         * modules/strtoul (Makefile.am): Likewise.
38751         * modules/strtoull (Makefile.am): Likewise.
38752         * modules/strtoumax (Makefile.am): Likewise.
38753         * modules/strverscmp (Makefile.am): Likewise.
38754         * modules/time_r (Makefile.am): Likewise.
38755         * modules/timegm (Makefile.am): Likewise.
38756         * modules/tmpfile-safer (Makefile.am): Likewise.
38757         * modules/unistd-safer (Makefile.am): Likewise.
38758         * modules/unlinkdir (Makefile.am): Likewise.
38759         * modules/userspec (Makefile.am): Likewise.
38760         * modules/utime (Makefile.am): Likewise.
38761         * modules/utimecmp (Makefile.am): Likewise.
38762         * modules/utimens (Makefile.am): Likewise.
38763         * modules/vasnprintf (Makefile.am): Likewise.
38764         * modules/vasprintf (Makefile.am): Likewise.
38765         * modules/vsnprintf (Makefile.am): Likewise.
38766         * modules/xalloc (Makefile.am): Likewise.
38767         * modules/xgetcwd (Makefile.am): Likewise.
38768         * modules/xnanosleep (Makefile.am): Likewise.
38769         * modules/xreadlink (Makefile.am): Likewise.
38770         * modules/xstrtod (Makefile.am): Likewise.
38771         * modules/xstrtol (Makefile.am): Likewise.
38772         * modules/xstrtold (Makefile.am): Likewise.
38773         * modules/yesno (Makefile.am): Likewise.
38774
38775 2006-10-12  Jim Meyering  <jim@meyering.net>
38776
38777         * m4/getloadavg.m4: Revert the change below.
38778
38779         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
38780         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
38781         fail with a symlink, which is what coreutils' ./bootstrap now
38782         creates by default.
38783
38784 2006-10-12  Bruno Haible  <bruno@clisp.org>
38785
38786         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
38787         mingw.
38788         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
38789         MSVC and mingw explicitly.
38790
38791 2006-10-11  Simon Josefsson  <jas@extundo.com>
38792             Bruno Haible  <bruno@clisp.org>
38793
38794         Add support for multiple gnulib-tool invocations in the scope of a
38795         single configure.ac file.
38796         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
38797         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
38798         with the same contents as the _LIBADD variable.
38799         (func_emit_initmacro_start, func_emit_initmacro_end,
38800         func_emit_initmacro_done): New functions.
38801         (func_import, func_create_testdir): Invoke them. Allow the identifiers
38802         gl_LIBOBJS and gl_LTLIBOBJS.
38803
38804 2006-10-11  Bruno Haible  <bruno@clisp.org>
38805
38806         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
38807         (func_create_testdir): Don't create po/Makefile.am, don't invoke
38808         autoreconf. Instead, invoke autopoint explicitly but move back the
38809         *.m4 files from gnulib.
38810
38811 2006-10-11  Bruno Haible  <bruno@clisp.org>
38812
38813         * gnulib-tool (func_usage): Make module names after --create-testdir
38814         optional.
38815         (func_create_testdir): If no module was specified, use nearly all
38816         modules.
38817
38818 2006-10-12  Jim Meyering  <jim@meyering.net>
38819
38820         Big performance improvement for fts-based tools that use FTS_NOSTAT.
38821         Avoid spurious inode-mismatch problems on non-POSIX file systems.
38822         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
38823         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
38824         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
38825         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
38826         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
38827         (fts_set_stat_required): New function.
38828         (fts_open): Defer the calls to fts_stat, if possible or requested.
38829         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
38830         into fts_stat itself.
38831         (fts_read): Perform any required (deferred) fts_stat call.
38832         (fts_build): Likewise, for the directory we're about to open and read.
38833         In the readdir loop, carefully decide whether each entry will require
38834         an eventual call to fts_stat, using dirent.d_type info if available.
38835         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
38836         a command line argument into this function.  Update all callers.
38837         Map a return value of FTS_DOT to FTS_D for a command line argument.
38838         * modules/fts (Depends-on): Add d-type.  Alphabetize.
38839         Thanks to Miklos Szeredi for his tenacity and for the initial
38840         bug report about "find" failing on a FUSE-based file system.
38841
38842         * lib/fts.c (fts_open): Use consistent indentation.
38843
38844 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38845
38846         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
38847         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
38848         reported by Jim Meyering.  All uses of cache variables renamed
38849         to match Autoconf's.
38850         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
38851         the other one.
38852
38853         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38854         Fix misspelling in diagnostic.
38855
38856 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38857
38858         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
38859         defined.  Problem reported by Matthew Woehlke.
38860
38861         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
38862         Add support for Tandem NonStop R series.
38863         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
38864         Use new macro.
38865
38866         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
38867         (has_trailing_slash): Omit size arg; all callers changed.
38868         Omit 'inline', since it doesn't help performance and we'd
38869         need to configure it.
38870         Don't count //, ///, etc. as having a trailing slash.
38871         As a side effect, this removes a C99ism reported by Matthew Woehlke.
38872         (rpl_rename_dest_slash): On failure, use rename's errno rather
38873         than (in some cases) an incorrect or junk errno.
38874         Simplify code by removing need to compute length; this does
38875         cause it to make two passes instead of one over the file name,
38876         but it's worth it.
38877
38878         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
38879         change, since Autoconf's version may no longer be appropriate now
38880         that we are using CVS Autoconf's version.  Add support for Tandem.
38881
38882 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38883             Bruno Haible  <bruno@clisp.org>
38884
38885         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
38886         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
38887         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
38888         gl_AC_TYPE_LONG_LONG.
38889
38890         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
38891         instead of HAVE_LONG_LONG.
38892         * lib/printf-args.c (printf_fetchargs): Likewise.
38893         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
38894         * lib/vasnprintf.c (VASNPRINTF): Likewise.
38895         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
38896         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
38897         gl_AC_TYPE_LONG_LONG.
38898
38899 2006-10-11  Bruno Haible  <bruno@clisp.org>
38900
38901         * m4/longlong.m4: Add comments.
38902         * m4/ulonglong.m4: Likewise.
38903
38904 2006-10-10  Bruno Haible  <bruno@clisp.org>
38905
38906         Make it possible to #define stpcpy, strdup to aliases.
38907         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
38908         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
38909
38910 2006-10-10  Bruno Haible  <bruno@clisp.org>
38911
38912         Make it possible to #define gcd to an alias.
38913         * lib/gcd.c: Include config.h.
38914
38915 2006-10-10  Bruno Haible  <bruno@clisp.org>
38916
38917         Make it possible to #define c_isascii to an alias.
38918         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
38919         defined. Undefine the macros before defining them, to avoid gcc
38920         warnings.
38921         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
38922         define NO_C_CTYPE_MACROS early.
38923
38924 2006-10-10  Bruno Haible  <bruno@clisp.org>
38925
38926         Make it possible to #define set_program_name to an alias.
38927         * lib/progname.c: Don't undefine set_program_name; instead, undefine
38928         ENABLE_RELOCATABLE early.
38929
38930 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
38931
38932         Port to Tandem NSK OSS, which has 64-bit signed int but at most
38933         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
38934         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
38935         More generally, don't assume that 64-bit signed int is available
38936         if unsigned int is, and vice versa.
38937         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
38938         unsigned symbols, not on their signed counterparts.
38939         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
38940         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
38941         (UINT64_C, UINTMAX_C):
38942         Likewise.
38943         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
38944         unsigned counterparts.
38945         (Have_long_long, Unsigned): New macros.
38946         (Int): Renamed from INT.
38947         (strtoimax): Use the new macros.
38948         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
38949         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
38950         * modules/inttypes (inttypes.h): Substitute
38951         HAVE_UNSIGNED_LONG_LONG_INT.
38952         * modules/stdint (stdint.h): Likewise.
38953         (Files): Add m4/ulonglong.m4.
38954
38955 2006-10-10  Bruno Haible  <bruno@clisp.org>
38956
38957         Fix a gcc -Wshadow warning.
38958         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
38959         to 'bucket'.
38960         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
38961         gl_linked_indexof_from_to): Likewise.
38962         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
38963         Likewise.
38964         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
38965         Likewise.
38966         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
38967         Reported by Eric Blake.
38968
38969 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
38970
38971         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
38972         for NetBSD.  Problem reported by Bruno Haible.
38973
38974 2006-10-09  Jim Meyering  <jim@meyering.net>
38975
38976         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
38977         Patch from Bruno Haible.
38978
38979 2006-10-09  Jim Meyering  <jim@meyering.net>
38980
38981         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
38982         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
38983         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
38984
38985 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38986
38987         Don't include <config.h> twice; this doesn't work in some cases,
38988         e.g., when config.h has "#define intmax_t long long int" and
38989         we include <config.h>, <inttypes.h>, <config.h> in that order.
38990         Problem reported by Matthew Woehlke in:
38991         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
38992         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
38993         * lib/fts-cycle.c: Don't include config.h.
38994         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
38995         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
38996         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
38997         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
38998         inttypes.h.
38999         * lib/xstrtoumax.c: Likewise.
39000         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
39001         __strtol and the like, so that this module is more like its siblings.
39002         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
39003         Remove; no longer needed now that we assume gnulib inttypes.h.
39004
39005 2006-10-08  Bruno Haible  <bruno@clisp.org>
39006
39007         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
39008         option.
39009
39010 2006-10-07  Jim Meyering  <jim@meyering.net>
39011
39012         * modules/inttypes (inttypes.h): Revert what seems to have been
39013         an inadvertent part of today's change: use "|", not "/" in the
39014         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
39015
39016 2006-10-07  Bruno Haible  <bruno@clisp.org>
39017
39018         * modules/sublist: New file.
39019
39020 2006-10-07  Bruno Haible  <bruno@clisp.org>
39021
39022         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
39023         * modules/argz (argz.h): Likewise.
39024         * modules/arpa_inet (arpa/inet.h): Likewise.
39025         * modules/byteswap (byteswap.h): Likewise.
39026         * modules/configmake (configmake.h): Likewise.
39027         * modules/fcntl (fcntl.h): Likewise.
39028         * modules/fnmatch (fnmatch.h): Likewise.
39029         * modules/getopt (getopt.h): Likewise.
39030         * modules/glob (glob.h): Likewise.
39031         * modules/inttypes (inttypes.h): Likewise.
39032         * modules/netinet_in (netinet/in.h): Likewise.
39033         * modules/poll (poll.h): Likewise.
39034         * modules/stdbool (stdbool.h): Likewise.
39035         * modules/stdint (stdint.h): Likewise.
39036         * modules/sys_select (sys/select.h): Likewise.
39037         * modules/sys_socket (sys/socket.h): Likewise.
39038         * modules/sys_stat (sys/stat.h): Likewise.
39039         * modules/sysexits (sysexits.h): Likewise.
39040         * modules/unistd (unistd.h): Likewise.
39041         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39042         Add a "DO NOT EDIT" comment to the generated file.
39043         (func_import): Likewise for gnulib-comp.m4.
39044
39045 2006-10-07  Bruno Haible  <bruno@clisp.org>
39046
39047         * lib/gl_sublist.h: New file.
39048         * lib/gl_sublist.c: New file.
39049
39050 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
39051
39052         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
39053         name (relative to the original working directory) and the file
39054         name component (relative to the temporary working directory).  All
39055         callers changed.
39056         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
39057         * lib/mkdir-p.c (make_dir_parents): Likewise.
39058         * lib/mkdir-p.h (make_dir_parents): Likewise.
39059
39060 2006-10-06  Eric Blake  <ebb9@byu.net>
39061
39062         Define several macros for use by the clean-temp module.
39063         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
39064         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
39065         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
39066
39067         * lib/clean-temp.h (close_stream_temp): New declaration.
39068         * lib/clean-temp.c (includes): Pull in headers according to what
39069         other modules are in use.
39070         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
39071
39072 2006-10-06  Bruno Haible  <bruno@clisp.org>
39073
39074         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
39075         instead of fopen, fwriteerror.
39076
39077 2006-10-06  Bruno Haible  <bruno@clisp.org>
39078
39079         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
39080         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
39081         int.
39082         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
39083         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
39084         Return an error indicator.
39085         Suggested by Eric Blake.
39086
39087 2006-10-06  Bruno Haible  <bruno@clisp.org>
39088
39089         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
39090         Reported by Eric Blake.
39091
39092 2006-10-06  Bruno Haible  <bruno@clisp.org>
39093
39094         * modules/closeout (Description): Mention stderr too.
39095
39096 2006-10-06  Bruno Haible  <bruno@clisp.org>
39097         and Paul Eggert  <eggert@cs.ucla.edu>
39098
39099         * lib/closeout.c (close_stdout): Also close stderr.
39100         * lib/closeout.h: Update comment.
39101
39102 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
39103
39104         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
39105         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
39106         * lib/dirchownmod.c: Include lchown.h.
39107         * lib/lchown.c: Don't include files that lchown.h now includes.
39108         Don't declare chown, since lchown.h now does that.
39109         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
39110         (lchown): Define to rpl_chown if lchown is declared but
39111         does not exist.  Declare using a prototype if lchown is not
39112         declared.  Add a copyright notice.
39113         * lib/mkstemp.h: Include <unistd.h>.
39114         * lib/openat.c: Include lchown.h.
39115
39116         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
39117         we now test for that separately.
39118         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
39119         rather than O_NOFOLLOW, when testing whether it's possible to
39120         avoid a race condition reliably.
39121         * lib/savewd.c (savewd_chdir): Likewise.
39122
39123         Remove macros that are no longer needed now that stdint.h is
39124         reliable.
39125         * lib/fsusage.c (UINTMAX_MAX): Remove.
39126         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
39127         * lib/utimecmp.c (SIZE_MAX): Remove.
39128
39129         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
39130
39131         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
39132         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
39133         O_NOATIME works.
39134
39135 2006-10-05  Bruno Haible  <bruno@clisp.org>
39136
39137         * lib/gl_list.h (gl_sortedlist_search_from_to,
39138         gl_sortedlist_indexof_from_to): New declarations.
39139         (gl_list_implementation): New fields sortedlist_search_from_to,
39140         sortedlist_indexof_from_to.
39141         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
39142         inline functions.
39143         * lib/gl_list.c (gl_sortedlist_search_from_to,
39144         gl_sortedlist_indexof_from_to): New functions.
39145         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
39146         function.
39147         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
39148         (gl_array_sortedlist_search_from_to): New function.
39149         (gl_array_list_implementation): Update.
39150         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
39151         function.
39152         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
39153         (gl_carray_sortedlist_search_from_to): New function.
39154         (gl_carray_list_implementation): Update.
39155         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
39156         gl_linked_sortedlist_indexof_from_to): New functions.
39157         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39158         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39159         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
39160         gl_tree_sortedlist_indexof_from_to): New functions.
39161         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39162         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39163         Update.
39164         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39165         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
39166         Update.
39167
39168 2006-10-05  Bruno Haible  <bruno@clisp.org>
39169
39170         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
39171         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
39172         (struct gl_list_implementation): Add fields search_from_to,
39173         indexof_from_to. Remove fields search, indexof.
39174         (gl_list_search): Use the search_from_to method.
39175         (gl_list_search_from, gl_list_search_from_to): New functions.
39176         (gl_list_indexof): Use the indexof_from_to method.
39177         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39178         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
39179         (gl_list_search_from, gl_list_search_from_to): New functions.
39180         (gl_list_indexof): Use the indexof_from_to method.
39181         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39182         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
39183         gl_array_indexof. Add start_index, end_index arguments.
39184         (gl_array_search_from_to): Renamed from gl_array_search. Add
39185         start_index, end_index arguments.
39186         (gl_array_remove, gl_array_list_implementation): Update.
39187         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
39188         gl_carray_indexof. Add start_index, end_index arguments.
39189         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
39190         start_index, end_index arguments.
39191         (gl_carray_remove, gl_carray_list_implementation): Update.
39192         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
39193         gl_linked_search. Add start_index, end_index arguments.
39194         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
39195         start_index, end_index arguments.
39196         (gl_linked_remove): Update.
39197         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39198         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39199         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
39200         field to 'size_t'.
39201         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
39202         gl_tree_search. Add start_index, end_index arguments.
39203         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39204         start_index, end_index arguments.
39205         (gl_tree_remove): Update.
39206         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39207         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39208         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
39209         function.
39210         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
39211         gl_tree_search. Add start_index, end_index arguments.
39212         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39213         start_index, end_index arguments.
39214         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39215         Update.
39216         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39217
39218 2006-10-05  Bruno Haible  <bruno@clisp.org>
39219
39220         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
39221
39222         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
39223         fwriteerror_temp): New declarations.
39224         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
39225         (descriptors): New variable.
39226         (cleanup): First, close the descriptors.
39227         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
39228         fclose_temp, fwriteerror_temp): New functions.
39229
39230 2006-10-04  Jim Meyering  <jim@meyering.net>
39231
39232         * lib/fts.c (fts_open): Tiny comment change.
39233
39234 2006-10-04  Bruno Haible  <bruno@clisp.org>
39235
39236         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
39237         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
39238         gl_LOCK_BODY.
39239         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
39240         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
39241         gl_LOCK_EARLY_BODY.
39242         (gl_LOCK): Require gl_LOCK_BODY.
39243
39244 2006-10-04  Bruno Haible  <bruno@clisp.org>
39245
39246         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
39247         (gl_oset_search_atleast): New declaration.
39248         (struct gl_oset_implementation): Add field 'search_atleast'.
39249         (gl_oset_search_atleast): New inline function.
39250         * lib/gl_oset.c (gl_oset_search_atleast): New function.
39251         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
39252         (gl_array_oset_implementation): Update.
39253         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
39254         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
39255         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
39256
39257 2006-10-04  Bruno Haible  <bruno@clisp.org>
39258
39259         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
39260
39261 2006-10-03  Bruno Haible  <bruno@clisp.org>
39262
39263         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
39264         from gl_avltreehash_list_implementation.
39265
39266 2006-10-03  Bruno Haible  <bruno@clisp.org>
39267
39268         * lib/gl_oset.c (gl_oset_add): Fix return type.
39269
39270 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
39271
39272         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
39273
39274 2006-10-02  Eric Blake  <ebb9@byu.net>
39275
39276         * modules/strnlen (Depends-on): Add extensions.
39277
39278 2006-10-02  Eric Blake  <ebb9@byu.net>
39279
39280         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
39281         definition in 2.60+.
39282
39283 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
39284
39285         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
39286         checks.
39287
39288 2006-10-02  Bruno Haible  <bruno@clisp.org>
39289
39290         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
39291         to the AUTOMAKE_OPTIONS.
39292         Reported by Jim Meyering.
39293
39294 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
39295
39296         Work around bug in Solaris 10 /proc file system:
39297         /proc/self/fd/NNN/.. isn't the parent directory of
39298         the directory whose file descriptor is NNN.  This needs to
39299         be worked around at run time, not compile time, since a
39300         program might be built on Solaris 8, where things work, and
39301         run on Solaris 10.
39302         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
39303         to use the following interface instead:
39304         (OPENAT_BUFFER_SIZE): New macro.
39305         (openat_proc_name): New function.
39306         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
39307         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
39308         Likewise.
39309         * lib/openat-proc.c: New file.
39310         * modules/openat (Files): Add lib/openat-proc.c.
39311         (Depends-on): Add same-inode, stdbool.
39312         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
39313
39314 2006-09-29  Bruno Haible  <bruno@clisp.org>
39315
39316         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
39317         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
39318         argument. Set stdout_closed before testing for ferror, not after.
39319         (fwriteerror, fwriteerror_no_ebadf): New functions.
39320
39321 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39322
39323         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
39324
39325 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
39326
39327         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
39328         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
39329
39330 2006-09-28  Jim Meyering  <jim@meyering.net>
39331
39332         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
39333         Include <unistd.h>.
39334
39335 2006-09-28  Bruno Haible  <bruno@clisp.org>
39336
39337         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
39338         * modules/linkedhash-list (Depends-on): Likewise.
39339         * modules/rbtreehash-list (Depends-on): Likewise.
39340
39341 2006-09-28  Bruno Haible  <bruno@clisp.org>
39342
39343         * lib/strndup.h: Simplify the redefinition of strndup.
39344         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
39345         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
39346
39347 2006-09-28  Bruno Haible  <bruno@clisp.org>
39348
39349         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
39350         * lib/gl_linkedhash_list.c: Likewise.
39351         * lib/gl_rbtreehash_list.c: Likewise.
39352
39353 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
39354
39355         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
39356         getaddrinfo.
39357
39358         * lib/__fpending.h: Don't include <stdio_ext.h> unless
39359         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
39360         it causes <stdio_ext.h> to cause a compile-time error.
39361         Problem reported by Nelson H. F. Beebe.
39362         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
39363         of HAVE_DECL___PENDING.
39364
39365         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
39366         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
39367         declaration.
39368
39369 2006-09-27  Jim Meyering  <jim@meyering.net>
39370
39371         This file could end up with a definition for a function
39372         named __strndup, rather than rpl_strndup on a system with
39373         incomplete weak_alias support.
39374         * lib/strndup.c (strndup): Rename from __strndup.
39375         Remove #defines that used to map __strndup to strndup.
39376         Don't use K&R prototypes.
39377         Remove LIBC-related code, since this file is not sync'd with glibc.
39378         * lib/strndup.h: Revamp, accordingly.
39379         * m4/strndup.m4: Modernize.
39380
39381 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
39382
39383         * modules/savewd (Depends-on): Add 'raise'.
39384         * lib/savewd.c: Include <signal.h>, for 'raise'.
39385
39386 2006-09-26  Jim Meyering  <jim@meyering.net>
39387
39388         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
39389         when we detect Darwin 8.7.0's acl_get_file bug.
39390         Rearrange to perform the new (below) run-test while $LIBS
39391         contains any acl-related library.  Set USE_ACL at the end.
39392         (gl_ACL_GET_FILE): New function.
39393
39394 2006-09-26  Eric Blake  <ebb9@byu.net>
39395
39396         * lib/verror.c: Include <config.h> unconditionally.
39397
39398 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
39399
39400         * modules/clock-time (Maintainer): Add self.
39401         * modules/getlogin_r (Depends-on): Add extensions.
39402
39403 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39404
39405         * modules/clock-time: New module.
39406         * modules/nanosleep (Depends-on): Add clock-time.
39407         * modules/gethrxtime (Depends-on): Likewise.
39408         * modules/gettime (Depends-on): Likewise.
39409         * modules/settime (Depends-on): Likewise.
39410
39411         * modules/fts-lgpl: Depend on openat.
39412         * modules/mkancesdirs: Depend on savewd.
39413         * modules/mkdir-p: Likewise.
39414
39415 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39416
39417         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
39418
39419         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
39420         `gl_have_arbitrary_file_name_length_limit' to
39421         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
39422         actually works between configure runs.
39423
39424 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39425             Bruno Haible  <bruno@clisp.org>
39426
39427         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
39428
39429 2006-09-25  Jim Meyering  <jim@meyering.net>
39430
39431         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
39432         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
39433
39434 2006-09-25  Eric Blake  <ebb9@byu.net>
39435
39436         * gnulib-tool (func_import, func_create_testdir): Fix typos in
39437         exec's in 2006-09-18 patch when shuffling fds.
39438
39439 2006-09-25  Bruno Haible  <bruno@clisp.org>
39440
39441         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
39442         Reported by Jim Meyering.
39443
39444 2006-09-24  Jim Meyering  <jim@meyering.net>
39445
39446         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
39447         compare a pointer against a literal "0".  That caused failures with
39448         at least HP-UX's hpcc.
39449
39450 2006-09-22  Simon Josefsson  <jas@extundo.com>
39451
39452         * modules/gc-sha1:
39453         * modules/gc-md4:
39454         * modules/gc-hmac-sha1:
39455         * modules/gc-hmac-md5:
39456         * modules/gc-des:
39457         * modules/gc-arcfour: Distribute more files.
39458
39459 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39460
39461         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
39462         (gl_linked_iterator_from_to): Initialize struct completely.
39463         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
39464         (gl_tree_iterator_from_to): Likewise
39465         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
39466         * lib/gl_array_list.c [lint] (gl_array_iterator)
39467         (gl_array_iterator_from_to): Likewise.
39468         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
39469         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
39470         (gl_carray_iterator_from_to): Likewise.
39471
39472         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
39473         * lib/md4.c (md4_process_block): Remove unused variable.
39474         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
39475         parentheses for clarity.
39476
39477 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39478
39479         * modules/bison-i18n (Depends-on): Add gettext.
39480
39481 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39482
39483         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
39484         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39485         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
39486         also add missing comma that caused broken test.
39487         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
39488         stdlib.h, for `abort'.
39489         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
39490         variables.
39491         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
39492         include unistd.h if present, for `rmdir'.
39493         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
39494         variables.
39495         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
39496         in the process include standard headers for prototypes.
39497         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
39498         gets declared on GNU/Linux.
39499         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
39500         unistd.h, for `rmdir'.
39501         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
39502
39503         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
39504         always true.
39505         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
39506
39507         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
39508
39509 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39510
39511         * gnulib-tool (func_version): Create output all at once.  This
39512         may help avoid triggering unnecessary SIGPIPEs, and at any
39513         rate it doesn't hurt.
39514
39515 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39516             Bruno Haible  <bruno@clisp.org>
39517
39518         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
39519         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39520         * m4/signed.m4 (bh_C_SIGNED): Likewise.
39521
39522         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
39523         (gl_FUNC_VASPRINTF): Invoke it.
39524
39525 2006-09-22  Bruno Haible  <bruno@clisp.org>
39526
39527         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
39528         getloadavg.c as first argument.
39529
39530 2006-09-22  Bruno Haible  <bruno@clisp.org>
39531
39532         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
39533         at the beginning of the gl_INIT macro.
39534         * modules/getloadavg (configure.ac): Pass $gl_source_base to
39535         gl_GETLOADAVG.
39536
39537 2006-09-22  Bruno Haible  <bruno@clisp.org>
39538
39539         * gnulib-tool (func_create_megatestdir): Don't include the config-h
39540         module.
39541         Suggested by Ralf Wildenhues.
39542
39543 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39544
39545         Import this patch from libc:
39546
39547         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
39548
39549         * lib/regex_internal.c (re_string_reconstruct): Handle
39550         offset < pstr->valid_raw_len && pstr->offsets_needed case.
39551         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
39552         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
39553         re_string_context_at.
39554
39555         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
39556         now requires it.
39557         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
39558         gl_REGEX now does it for us.
39559         (gl_REGEX): Add test taken from
39560         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
39561
39562         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
39563         Check that large offsets work.  Modernize Autoconf usages.
39564         Prefer "yes" to mean a good thing rather than a bad.
39565         Don't put "#define mkstemp" in config.h, as this might interfere
39566         with standard system headers that "#define mkstemp mkstemp64".
39567
39568         * modules/mkstemp (Depends-on): Add extensions, so that
39569         mkstemp is visible on some platforms.
39570         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
39571         (Include): Change to "mkstemp.h" from <stdlib.h>.
39572         (Files): Add mkstemp.h.
39573
39574         * lib/mkstemp.h: New file, since some standard headers
39575         #define mkstemp.
39576         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
39577         Include "mkstemp.h".
39578         Make the _LIBC code resemble glibc original more,
39579         e.g., use K&R style.
39580         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
39581         (mkstemp): Remove, since mkstemp.h does this for us.
39582         * lib/stdlib--.h: Include mkstemp.h.
39583
39584         Import this patch from libc:
39585
39586         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
39587
39588         * lib/tempname.c (__gen_tempname): Change attempts_min
39589         into a macro.  Use preprocessor to decide how to initialize
39590         attempts [Coverity CID 67].
39591
39592 2006-09-20  Bruno Haible  <bruno@clisp.org>
39593
39594         * lib/mkdtemp.c: Import from libc.
39595         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
39596                 * sysdeps/posix/tempname.c (__gen_tempname): Change
39597                 attempts_min into a macro.  Use preprocessor to decide how to
39598                 initialize attempts [Coverity CID 67].
39599         2001-11-27  Paul Eggert  <eggert@twinsun.com>
39600                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
39601                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
39602
39603 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39604
39605         * gnulib-tool (func_exit): New function, to allow to pass the
39606         exit status portably through the trap.  Use everywhere.
39607         (--help, --version): Signal a write error.
39608         (trap): catch SIGPIPE, for write errors.
39609         Exit at the end of the trap, with the correct exit status.
39610
39611 2006-09-19  Karl Berry  <karl@gnu.org>
39612
39613         * doc/gnulib.texi: note about the license texinfo files.
39614
39615 2006-09-19  Eric Blake  <ebb9@byu.net>
39616
39617         * gnulib-tool: Avoid space-tab.
39618
39619 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
39620
39621         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
39622         that prevented coreutils 6.1 from building.  Problem reported
39623         by Petter Reinholdtsen.
39624
39625 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
39626
39627         * gnulib-tool (avoidlist): Fix typo that broke options like
39628         --avoid=lock that are used by coreutils bootstrap.
39629
39630 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
39631
39632         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
39633         more systematically.
39634
39635 2006-09-18  Jim Meyering  <jim@meyering.net>
39636
39637         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
39638
39639 2006-09-18  Bruno Haible  <bruno@clisp.org>
39640
39641         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
39642
39643 2006-09-18  Bruno Haible  <bruno@clisp.org>
39644
39645         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
39646         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
39647         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
39648         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
39649         * m4/gettext.m4: Require autoconf >= 2.52.
39650         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
39651         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
39652         of gl_cv_header_inttypes_h.
39653
39654 2006-09-18  Bruno Haible  <bruno@clisp.org>
39655
39656         * lib/javaversion.c: Include configmake.h.
39657
39658 2006-09-18  Bruno Haible  <bruno@clisp.org>
39659
39660         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
39661         avoid that the while loops be executed in a subshell.
39662
39663 2006-09-18  Bruno Haible  <bruno@clisp.org>
39664
39665         * MODULES.html.sh (func_module): Break long lines.
39666         Suggested by Bruce Korb <bkorb@gnu.org>.
39667
39668 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39669
39670         Speed up by a factor of 1.12.
39671         * gnulib-tool (nl): New variable.
39672         (func_import): Rewrite include directive extraction to only read each
39673         directive once.
39674
39675 2006-09-17  Bruno Haible  <bruno@clisp.org>
39676
39677         * modules/javaversion (Makefile.am): Remove DEFS setting.
39678         (Depends-on): Add configmake, for PKGDATADIR definition.
39679
39680 2006-09-17  Bruno Haible  <bruno@clisp.org>
39681
39682         * gnulib-tool (func_create_testdir): Rewrite all files at once.
39683
39684 2006-09-17  Bruno Haible  <bruno@clisp.org>
39685
39686         * gnulib-tool (func_append): New function, stolen from libtool.m4.
39687         (func_modules_transitive_closure, func_modules_add_dummy,
39688         func_modules_to_filelist, func_import, func_create_testdir,
39689         func_create_megatestdir, ...): Use it wherever possible.
39690         Suggested by Ralf Wildenhues.
39691
39692 2006-09-16  Karl Berry  <karl@gnu.org>
39693
39694         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
39695         to avoid sectioning errors.
39696         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
39697         [ifinfo]: blank line after @center-ed titles.
39698         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
39699         Spell FSF address consistently with others.
39700         (These changes approved by rms.)
39701
39702 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39703
39704         Speed up by a factor of 1.61.
39705         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
39706         already checked module names again.
39707
39708 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39709
39710         Speed up by a factor of 1.13.
39711         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
39712         for new_files, and the input to func_add_or_update.
39713
39714 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39715
39716         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
39717         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
39718
39719 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39720
39721         * modules/mkancesdirs (Depends-on): Add fcntl.
39722         * modules/savewd: New file.
39723         * MODULES.html.sh (File system functions): Add savewd.
39724
39725         * modules/configmake (Makefile.am): Add support for the
39726         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
39727
39728 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39729
39730         * m4/savewd.m4: New file.
39731
39732 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39733
39734         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
39735         (dirchownmod): New arg FD.  All callers changed.
39736         Use FD rather than opening the directory ourself, as opening is
39737         now the caller's responsibility.
39738         * lib/dirchownmod.h: Likewise.
39739         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
39740         hosts that require <sys/types.h> before <sys/stat.h>.  Include
39741         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
39742         (test_dir): Remove.
39743         (mkancesdirs): Return length of prefix of FILE that has already
39744         been made, or -2 if there is a child doing the work.  Redo
39745         algorithm so that it is O(N) rather than O(N**2).  Optimize away
39746         ".", and treat ".." specially since it might stray back into
39747         already-created areas.  Use a subprocess if necessary.  New arg
39748         WD; all users changed.  MAKE_DIR function should now return 1
39749         if it creates a directory that is not readable.  Return -2 if
39750         a child process is spun off.
39751         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
39752         Adjust signature to match code.
39753         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
39754         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
39755         all users changed.
39756         * lib/savewd.c, lib/savewd.h: New files.
39757
39758 2006-09-15  Jim Meyering  <jim@meyering.net>
39759
39760         * modules/rename-dest-slash: New module.
39761         * MODULES.html.sh (posix_compat): Add it here.
39762
39763         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
39764
39765 2006-09-15  Jim Meyering  <jim@meyering.net>
39766
39767         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
39768         file.
39769
39770         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
39771
39772 2006-09-15  Jim Meyering  <jim@meyering.net>
39773
39774         * lib/rename-dest-slash.c (has_trailing_slash): Use
39775         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
39776         (rpl_rename_dest_slash): Perform the cheaper trailing slash
39777         test before testing whether SRC is a directory.
39778         Suggestions from Bruno Haible.
39779
39780         Avoid a warning about an unused variable.
39781         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
39782         into the #ifdef block where it's used.
39783
39784         * lib/rename-dest-slash.c: New file.
39785
39786 2006-09-14  Bruno Haible  <bruno@clisp.org>
39787
39788         * lib/allocsa.c: Include <config.h> unconditionally.
39789         * lib/asnprintf.c: Likewise.
39790         * lib/asprintf.c: Likewise.
39791         * lib/c-strcasecmp.c: Likewise.
39792         * lib/c-strcasestr.c: Likewise.
39793         * lib/c-strncasecmp.c: Likewise.
39794         * lib/c-strstr.c: Likewise.
39795         * lib/classpath.c: Likewise.
39796         * lib/clean-temp.c: Likewise.
39797         * lib/concatpath.c: Likewise.
39798         * lib/copy-file.c: Likewise.
39799         * lib/csharpcomp.c: Likewise.
39800         * lib/csharpexec.c: Likewise.
39801         * lib/execute.c: Likewise.
39802         * lib/fatal-signal.c: Likewise.
39803         * lib/findprog.c: Likewise.
39804         * lib/fwriteerror.c: Likewise.
39805         * lib/gl_array_list.c: Likewise.
39806         * lib/gl_array_oset.c: Likewise.
39807         * lib/gl_avltree_list.c: Likewise.
39808         * lib/gl_avltree_oset.c: Likewise.
39809         * lib/gl_avltreehash_list.c: Likewise.
39810         * lib/gl_carray_list.c: Likewise.
39811         * lib/gl_linked_list.c: Likewise.
39812         * lib/gl_linkedhash_list.c: Likewise.
39813         * lib/gl_list.c: Likewise.
39814         * lib/gl_oset.c: Likewise.
39815         * lib/gl_rbtree_list.c: Likewise.
39816         * lib/gl_rbtree_oset.c: Likewise.
39817         * lib/gl_rbtreehash_list.c: Likewise.
39818         * lib/imaxabs.c: Likewise.
39819         * lib/imaxdiv.c: Likewise.
39820         * lib/javacomp.c: Likewise.
39821         * lib/javaexec.c: Likewise.
39822         * lib/javaversion.c: Likewise.
39823         * lib/linebreak.c: Likewise.
39824         * lib/localcharset.c: Likewise.
39825         * lib/lock.c: Likewise.
39826         * lib/mbchar.c: Likewise.
39827         * lib/mbswidth.c: Likewise.
39828         * lib/mkdtemp.c: Likewise.
39829         * lib/pipe.c: Likewise.
39830         * lib/printf-args.c: Likewise.
39831         * lib/printf-parse.c: Likewise.
39832         * lib/progname.c: Likewise.
39833         * lib/progreloc.c: Likewise.
39834         * lib/readlink.c: Likewise.
39835         * lib/sh-quote.c: Likewise.
39836         * lib/stpcpy.c: Likewise.
39837         * lib/stpncpy.c: Likewise.
39838         * lib/strcasecmp.c: Likewise.
39839         * lib/strcasestr.c: Likewise.
39840         * lib/strcspn.c: Likewise.
39841         * lib/striconv.c: Likewise.
39842         * lib/strncasecmp.c: Likewise.
39843         * lib/strnlen1.c: Likewise.
39844         * lib/strstr.c: Likewise.
39845         * lib/strtok_r.c: Likewise.
39846         * lib/tls.c: Likewise.
39847         * lib/tmpdir.c: Likewise.
39848         * lib/unicodeio.c: Likewise.
39849         * lib/unsetenv.c: Likewise.
39850         * lib/vasnprintf.c: Likewise.
39851         * lib/vasprintf.c: Likewise.
39852         * lib/wait-process.c: Likewise.
39853         * lib/xallocsa.c: Likewise.
39854         * lib/xsetenv.c: Likewise.
39855         * lib/xstriconv.c: Likewise.
39856
39857 2006-09-13  Simon Josefsson  <jas@extundo.com>
39858
39859         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
39860         that internally, suggested by Ralf Wildenhues
39861         <Ralf.Wildenhues@gmx.de>.
39862
39863 2006-09-13  Simon Josefsson  <jas@extundo.com>
39864
39865         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
39866         @LIBOBJS@.
39867         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39868
39869 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
39870
39871         * lib/_fpending.c: Include <config.h> unconditionally, since we no
39872         longer worry about uses that don't define HAVE_CONFIG_H.
39873         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
39874         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
39875         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
39876         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
39877         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
39878         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
39879         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
39880         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
39881         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
39882         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
39883         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
39884         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
39885         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
39886         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
39887         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
39888         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
39889         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
39890         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
39891         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
39892         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
39893         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
39894         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
39895         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
39896         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
39897         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
39898         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
39899         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
39900         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
39901         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
39902         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
39903         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
39904         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
39905         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
39906         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
39907         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
39908         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
39909         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
39910         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
39911         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
39912         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
39913         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
39914         Likewise.
39915
39916 2006-09-13  Eric Blake  <ebb9@byu.net>
39917
39918         * lib/getopt.c: Fix typo in last commit.
39919
39920 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39921
39922         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
39923         dgettext.
39924
39925 2006-09-12  Jim Meyering  <jim@meyering.net>
39926
39927         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
39928         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
39929         Reported by Nelson H. F. Beebe.
39930
39931 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39932
39933         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
39934         program_invocation_name and program_invocation_short_name are
39935         initialized.
39936         * lib/argp-namefrob.h: Move declarations of program_invocation_name
39937         and program_invocation_short_name to argp.h, so they are visible
39938         to user programs.
39939         * lib/argp.h: Likewise
39940
39941 2006-09-10  Bruno Haible  <bruno@clisp.org>
39942
39943         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
39944         m4/inttypes_h.m4, m4/uintmax_t.m4.
39945
39946 2006-09-10  Bruno Haible  <bruno@clisp.org>
39947
39948         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
39949         gl_AC_TYPE_UINTMAX_T.
39950
39951 2006-09-10  Bruno Haible  <bruno@clisp.org>
39952
39953         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
39954
39955 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39956
39957         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
39958         convention.  Text proposed by Bruno Haible.
39959         (struct argp_option): Document the use of N_() wrappers.
39960
39961         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
39962         '\v', and translate the two parts separately, instead of feeding
39963         the whole string to gettext.  This allows to exclude
39964         '\v' from the strings visible to the translator by writing doc
39965         strings as N_("..") "\v" N_("..").
39966
39967 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
39968
39969         * config/srclist.txt: Undo latest change; the bug was fixed.
39970
39971 2006-09-09  Bruno Haible  <bruno@clisp.org>
39972
39973         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
39974         assignments if building a library without libtool.
39975         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
39976         in func_emit_lib_Makefile_am.
39977         (func_import): When building a static library libfoo.a, arrange to
39978         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
39979         (func_create_testdir): Likewise.
39980         * modules/gc (configure.ac, Makefile.am): If building statically,
39981         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
39982         * modules/iconvme (configure.ac, Makefile.am): Likewise.
39983         * modules/striconv (configure.ac, Makefile.am): Likewise.
39984         Based on a suggestion by Ralf Wildenhues.
39985
39986 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39987
39988         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39989         Check for unistd.h too, since Autoconf doesn't assume POSIX.
39990         Also:
39991
39992         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39993         Add year_2050_test to catch glibc bug 2821
39994         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
39995
39996         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39997         Prefer #ifdef to #if.
39998
39999         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
40000         Return from 'main' instead of calling 'exit'.
40001
40002 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40003
40004         * lib/mktime.c (guess_time_tm): Fix bug where mktime
40005         returned the maximum time_t value rather than (time_t) -1.
40006         Problem originally reported by William Bardwell
40007         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40008
40009         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40010         Moved to here ...
40011         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40012         ... from here.
40013
40014 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40015
40016         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
40017         2821 is fixed.
40018
40019 2006-09-08  Jim Meyering  <jim@meyering.net>
40020
40021         Don't make generated files read-only.  That would bother too many
40022         people.  However, do retain the ability to work when targets are
40023         read-only: remove the destination and temporary files before writing
40024         them (when generated via sed or echo), or by using the -f option for
40025         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
40026         * modules/alloca-opt, modules/argz, modules/arpa_inet:
40027         * modules/byteswap, modules/configmake, modules/fcntl:
40028         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40029         * modules/localcharset, modules/netinet_in, modules/poll:
40030         * modules/stdbool, modules/stdint, modules/sys_select:
40031         * modules/sys_socket, modules/sys_stat, modules/sysexits:
40032
40033 2006-09-08  Jim Meyering  <jim@meyering.net>
40034
40035         Avoid new build failure on FreeBSD 6.0.
40036         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
40037         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
40038         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
40039
40040 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40041
40042         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
40043
40044 2006-09-07  Jim Meyering  <jim@meyering.net>
40045
40046         Fix global typo in last change: use chmod u-w, not chmod u-x.
40047         Spotted by Paul Eggert and Bruce Korb.
40048         * modules/alloca-opt, modules/argz, modules/arpa_inet:
40049         * modules/byteswap, modules/configmake, modules/fcntl:
40050         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40051         * modules/localcharset, modules/netinet_in, modules/poll:
40052         * modules/stdbool, modules/stdint, modules/sys_select:
40053         * modules/sys_socket, modules/sys_stat, modules/sysexits:
40054
40055 2006-09-06  Jim Meyering  <jim@meyering.net>
40056
40057         Make generated files be read-only.
40058         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
40059         Ensure that each generated file is now read-only.
40060         * modules/argz: Likewise.
40061         * modules/arpa_inet: Likewise.
40062         * modules/byteswap: Likewise.
40063         * modules/configmake: Likewise.
40064         * modules/fcntl: Likewise.
40065         * modules/fnmatch: Likewise.
40066         * modules/getopt: Likewise.
40067         * modules/glob: Likewise.
40068         * modules/inttypes: Likewise.
40069         * modules/netinet_in: Likewise.
40070         * modules/poll: Likewise.
40071         * modules/stdbool: Likewise.
40072         * modules/stdint: Likewise.
40073         * modules/sys_select: Likewise.
40074         * modules/sys_socket: Likewise.
40075         * modules/sys_stat: Likewise.
40076         * modules/sysexits: Likewise.
40077         * modules/localcharset: Same as above, but continue using temporary
40078         file named "t-$@" (why different?) rather than the "$@-t" used
40079         everywhere else.
40080
40081         * modules/sysexits (Makefile.am): Replace literal occurrences
40082         of "sysexit.h" more readable, and more consistent, "$@".
40083
40084 2006-09-06  Bruno Haible  <bruno@clisp.org>
40085
40086         * modules/striconv: New file.
40087         * modules/xstriconv: New file.
40088         * MODULES.html.sh (Internationalization functions): Add striconv,
40089         xstriconv.
40090
40091 2006-09-06  Bruno Haible  <bruno@clisp.org>
40092
40093         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
40094         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
40095         not using libtool correctly.
40096
40097 2006-09-06  Bruno Haible  <bruno@clisp.org>
40098
40099         * lib/striconv.h: New file.
40100         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
40101         iconvstring.c.
40102         * lib/xstriconv.h: New file.
40103         * lib/xstriconv.c: New file.
40104
40105 2006-09-06  Bruno Haible  <bruno@clisp.org>
40106
40107         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40108         lib_..._LDFLAGS.
40109
40110 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40111
40112         * lib/argz_.h: Sync from Libtool.
40113
40114         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
40115                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40116
40117         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
40118
40119 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
40120
40121         * modules/trim: New file.
40122
40123 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
40124
40125         * lib/trim.h: New file.
40126         * lib/trim.c: New file.
40127
40128 2006-09-05  Bruno Haible  <bruno@clisp.org>
40129
40130         * MODULES.html.sh (String handling): Add trim.
40131
40132 2006-09-04  Karl Berry  <karl@gnu.org>
40133
40134         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
40135         until next release.
40136
40137 2006-09-03  Bruno Haible  <bruno@clisp.org>
40138
40139         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
40140         correctly.
40141
40142 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40143
40144         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
40145         not gl_GETLOADAVG.  Omit unneeded semicolons.
40146         Problems reported by Ralf Wildenhues in
40147         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40148         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
40149         at the end, which is the usual gnulib style.
40150
40151         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
40152         of doing all the work ourselves.
40153         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
40154         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
40155
40156 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40157
40158         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
40159         Problem reported by Ralf Wildenhues in
40160         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40161
40162         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
40163         HAVE_STRUCT_STATFS_F_FSTYPENAME.
40164
40165 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40166
40167         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
40168         yesterday's patch by changing test -n to test -z.
40169
40170 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40171
40172         * modules/getloadavg (Files): Add m4/getloadavg.m4.
40173         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
40174         the former is now obsolescent.
40175
40176         * modules/chdir-long (Depends-on): Add fcntl.
40177
40178 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40179
40180         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
40181         obsolescent, and programs should use gnulib instead.
40182         * m4/getloadavg.m4: New file, with contents taken from Autoconf
40183         but with prefixes changed.
40184
40185 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40186
40187         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
40188         or stdbool.h, because they might not exist while configuring.
40189
40190         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
40191         Don't include unistd.h or limits.h; not needed, since chdir-long.h
40192         does that for us.
40193         (O_DIRECTORY): Remove.
40194
40195 2006-08-31  Eric Blake  <ebb9@byu.net>
40196
40197         * gnulib-tool: Don't let emacs change spaces to TAB.
40198
40199 2006-08-31  Bruno Haible  <bruno@clisp.org>
40200
40201         * gnulib-tool: When calling func_import more than once, do it in a
40202         subshell.
40203         Reported by Eric Blake <ebb9@byu.net>.
40204
40205 2006-08-31  Bruno Haible  <bruno@clisp.org>
40206
40207         * gnulib-tool (nl): Remove variable.
40208         (sed_transform_lib_file): Use more robust test for config-h module.
40209         (func_import): Fix typo in 2006-08-25 patch.
40210
40211 2006-08-31  Bruno Haible  <bruno@clisp.org>
40212
40213         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
40214         specified, augment Makefile.am variables instead of assigning them.
40215
40216 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40217
40218         Work around a bug in both the Linux and SunOS 64-bit kernels:
40219         nanosleep mishandles sleeps for longer than 2**31 seconds.
40220         Problem reported by Frank v Waveren in
40221         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40222         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
40223         Check for nanosleep bug.
40224         (LIB_NANOSLEEP): Append clock_gettime library if needed.
40225
40226 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40227
40228         Work around a bug in both the Linux and SunOS 64-bit kernels:
40229         nanosleep mishandles sleeps for longer than 2**31 seconds.
40230         Problem reported by Frank v Waveren in
40231         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40232         * lib/nanosleep.c (BILLION): New constant.
40233         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
40234         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
40235         implementation.
40236
40237 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40238
40239         * modules/nanosleep (Depends-on): Add gettime.
40240
40241 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40242         and Simon Josefsson  <jas@extundo.com>
40243         and Oskar Liljeblad  <oskar@osk.mine.nu>
40244
40245         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
40246         * gnulib-tool (func_import): New license type 'unmodifiable license
40247         text'.
40248         * modules/fdl: Use it.  Longer description.
40249         * module/gpl, module/lgpl: New files.
40250
40251 2006-08-30  Jim Meyering  <jim@meyering.net>
40252
40253         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
40254         shadowing the parameter.
40255
40256 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40257
40258         Sync from Libtool:
40259
40260         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40261
40262         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
40263         sharing with gnulib.  Report by Eric Blake.
40264
40265 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40266
40267         * modules/isapipe: New file.
40268         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
40269
40270 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40271
40272         * modules/configmake (Makefile.am): Add a comment, and omit
40273         the CONFIGMAKE_ prefix from generated macro names.  Suggested
40274         by Bruno Haible.
40275
40276 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40277
40278         * m4/isapipe.m4: New file.
40279
40280 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40281
40282         * lib/isapipe.c, lib/isapipe.h: New files.
40283
40284 2006-08-29  Jim Meyering  <jim@meyering.net>
40285
40286         * modules/configmake (Makefile.am): Make configmake.h depend on
40287         Makefile.  Otherwise, a stale configmake.h could hang around.
40288
40289 2006-08-29  Eric Blake  <ebb9@byu.net>
40290
40291         * lib/error.c (error_at_line, print_errno_message): Match libc, after
40292         resolution of upstream bug 3044.
40293
40294 2006-08-29  Bruno Haible  <bruno@clisp.org>
40295
40296         * modules/localcharset (Depends-on): Add configmake.
40297         (Makefile.am): Remove setting of LIBDIR through DEFS.
40298
40299 2006-08-29  Bruno Haible  <bruno@clisp.org>
40300
40301         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
40302         defined.
40303
40304 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40305
40306         * modules/fcntl: New file.
40307         * modules/chdir-safer (Depends-on): Add fcntl.
40308         * modules/fts: Likewise.
40309         * modules/mkdir-p: Likewise.
40310
40311         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
40312         This undoes the most recent change, since we're now addressing the
40313         problem in a different way.
40314
40315         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
40316         into output, since the output might be called Makefile.am even
40317         if $makefile_name is something different.
40318         (func_import): Use $makefile_am rather than
40319         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
40320         empty.
40321
40322         * modules/inttypes (Files): Add m4/inttypes-h.m4.
40323
40324 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40325
40326         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
40327         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
40328         recent change to stdint.m4, since we're now addressing the problem in a
40329         different way.
40330
40331 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40332
40333         * m4/fcntl_h.m4: New file.
40334
40335 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40336
40337         * lib/fcntl_.h: New file.
40338         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
40339         the fcntl module.
40340         * lib/dirchownmod.c: Likewise.
40341         * lib/fts.c: Likewise.
40342
40343         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
40344         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
40345         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
40346         just before including <inttypes.h>, to avoid circular inclusion.
40347
40348 2006-08-28  Jim Meyering  <jim@meyering.net>
40349
40350         * doc/visibility.texi: Actually read and correct the grammar of the
40351         sentence affected by yesterday's change.
40352
40353 2006-08-28  Eric Blake  <ebb9@byu.net>
40354
40355         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
40356         needs wrapper.
40357
40358 2006-08-28  Eric Blake  <ebb9@byu.net>
40359
40360         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
40361
40362 2006-08-28  Eric Blake  <ebb9@byu.net>
40363
40364         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
40365
40366 2006-08-28  Bruno Haible  <bruno@clisp.org>
40367
40368         * modules/c-strstr: New file, from GNU gettext.
40369         * MODULES.html.sh (String handling): Add c-strstr.
40370
40371 2006-08-28  Bruno Haible  <bruno@clisp.org>
40372
40373         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
40374         macros.
40375         Reported by Eric Blake.
40376
40377 2006-08-28  Bruno Haible  <bruno@clisp.org>
40378
40379         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
40380         (VASNPRINTF): Return a string of length > INT_MAX without failing.
40381         * lib/vasprintf.c: Include errno.h, limits.h.
40382         (EOVERFLOW): New fallback definition.
40383         (vasprintf): Test here whether the string length is > INT_MAX.
40384         * lib/vsnprintf.c: Include errno.h, limits.h.
40385         (EOVERFLOW): New fallback definition.
40386         (vsnprintf): Fix bug when generated string was too long for the buffer.
40387         Test here whether the string length is > INT_MAX.
40388
40389 2006-08-28  Bruno Haible  <bruno@clisp.org>
40390
40391         * lib/inttypes_.h (SCNX*): Remove definitions.
40392         Reported by Eric Blake.
40393
40394 2006-08-28  Bruno Haible  <bruno@clisp.org>
40395
40396         * lib/c-strstr.h: New file, from GNU gettext.
40397         * lib/c-strstr.c: New file, from GNU gettext.
40398
40399 2006-08-28  Bruno Haible  <bruno@clisp.org>
40400
40401         * gnulib-tool: Reorder some statements.
40402
40403 2006-08-28  Bruno Haible  <bruno@clisp.org>
40404
40405         * gnulib-tool: New option --makefile-name.
40406         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
40407         $makefile_name.
40408         (func_import): Write $makefile_name to the cache file, and read it from
40409         there unless explicitly specified. Use $makefile_name as file name
40410         instead of Makefile.am. Adjust the recommendations accordingly.
40411
40412 2006-08-28  Bruno Haible  <bruno@clisp.org>
40413
40414         * gnulib-tool (func_verify_module): Check against misapplying patch.
40415
40416 2006-08-28  Bruno Haible  <bruno@clisp.org>
40417
40418         * gnulib-tool (func_relativize, func_relconcat): New functions.
40419         Give an error if --local-dir is given with --update.
40420         Remove trailing slashes from $local_gnulib_dir.
40421         (func_import): Store the relativized $local_gnulib_dir in
40422         gnulib-cache.m4, and read it from there if not specified explicitly.
40423
40424 2006-08-28  Bruno Haible  <bruno@clisp.org>
40425
40426         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
40427         is the current directory. Respect also $local_gnulib_dir.
40428
40429 2006-08-28  Bruno Haible  <bruno@clisp.org>
40430             Simon Josefsson  <jas@extundo.com>
40431
40432         BeOS portability.
40433         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
40434
40435 2006-08-27  Jim Meyering  <jim@meyering.net>
40436
40437         * doc/visibility.texi: Remove duplicate word: "pointer".
40438
40439 2006-08-26  Bruno Haible  <bruno@clisp.org>
40440
40441         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
40442         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
40443         (Makefile.am): Create inttypes.h from inttypes_.h.
40444         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
40445
40446         * modules/imaxabs: New file.
40447
40448         * modules/imaxdiv: New file.
40449
40450 2006-08-26  Bruno Haible  <bruno@clisp.org>
40451
40452         * m4/inttypes.m4: New file.
40453         * m4/_inttypes_h.m4: Remove file.
40454         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
40455         PRI_MACROS_BROKEN.
40456         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
40457
40458         * m4/imaxabs.m4: New file.
40459
40460         * m4/imaxdiv.m4: New file.
40461
40462 2006-08-26  Bruno Haible  <bruno@clisp.org>
40463
40464         * lib/inttypes_.h: New file.
40465         * lib/inttypes.h: Remove file.
40466         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
40467
40468         * lib/imaxabs.c: New file.
40469
40470         * lib/imaxdiv.c: New file.
40471
40472 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40473
40474         New config-h module, so that "make" output needn't be cluttered
40475         by -DHAVE_CONFIG_H.
40476         * MODULES.html.sh (Support for building libraries and executables):
40477         Add config-h.
40478         * modules/config-h: New file.
40479         * gnulib-tool (nl, sed_transform_lib_file): New vars.
40480         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
40481         the config-h module is used.
40482
40483         New configmake module, so that "make" output needn't be cluttered
40484         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
40485         * MODULES.html.sh (Support for building libraries and executables):
40486         Add configmake.
40487         * modules/configmake: New file.
40488
40489 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40490
40491         * m4/config-h.m4: New file.
40492
40493 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40494
40495         * config/srclist.txt: Add elisp-comp.
40496
40497 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40498
40499         * MODULES.html.sh (Support for building libraries and executables):
40500         Add elisp-comp.
40501         * build-aux/elisp-comp: New file.
40502         * modules/elisp-comp: New file.
40503
40504 2006-08-24  Bruno Haible  <bruno@clisp.org>
40505
40506         * gnulib-tool (func_create_testdir): Use non-default values of
40507         sourcebase and m4base.
40508
40509 2006-08-24  Bruno Haible  <bruno@clisp.org>
40510
40511         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
40512         HTML structure.
40513
40514 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40515
40516         * modules/openat (Depends-on): Add lchown.
40517
40518 2006-08-23  Bruno Haible  <bruno@clisp.org>
40519
40520         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
40521         of gl_LOCK_EARLY instead of gl_LOCK.
40522
40523 2006-08-23  Bruno Haible  <bruno@clisp.org>
40524
40525         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
40526         on OSF/1 to no.
40527         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
40528
40529 2006-08-23  Bruno Haible  <bruno@clisp.org>
40530
40531         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
40532         as unusable.
40533
40534         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
40535         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
40536         (gl_LOCK): New macro.
40537
40538 2006-08-22  Simon Josefsson  <jas@extundo.com>
40539
40540         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
40541         to md5 module.
40542
40543 2006-08-22  Simon Josefsson  <jas@extundo.com>
40544
40545         * MODULES.html.sh: Add "Support for maintaining and release
40546         projects".
40547
40548         * build-aux/gnupload: New file, from coreutils.
40549
40550 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40551
40552         Avoid the need for AC_LIBSOURCES in m4 macros.
40553         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
40554         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
40555         * modules/check-version (EXTRA_DIST): Add check-version.h.
40556         * modules/crc (EXTRA_DIST): Add crc.h.
40557         * modules/des (EXTRA_DIST): Add des.h.
40558         * modules/gc (EXTRA_DIST): Add gc.h.
40559         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
40560         * modules/getline (EXTRA_DIST): Add getline.h.
40561         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
40562         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
40563         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
40564         * modules/md2 (EXTRA_DIST): Add md2.h.
40565         * modules/md4 (EXTRA_DIST): Add md4.h.
40566         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
40567         * modules/read-file (EXTRA_DIST): Add read-file.h.
40568         * modules/readline (EXTRA_DIST): Add readline.h.
40569         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
40570         rijndael-api-fst.h.
40571
40572 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40573
40574         * m4/rijndael.m4 (gl_ARCFOUR):
40575         * m4/arctwo.m4 (gl_ARCTWO):
40576         * m4/check-version.m4 (gl_CHECK_VERSION):
40577         * m4/crc.m4 (gl_CRC):
40578         * m4/des.m4 (gl_DES):
40579         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
40580         * m4/gc.m4 (gl_GC):
40581         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
40582         * m4/getline.m4 (gl_FUNC_GETLINE):
40583         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
40584         * m4/hmac-md5.m4 (gl_HMAC_MD5):
40585         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
40586         * m4/md2.m4 (gl_MD2):
40587         * m4/md4.m4 (gl_MD4):
40588         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
40589         * m4/read-file.m4 (gl_FUNC_READ_FILE):
40590         * m4/readline.m4 (gl_FUNC_READLINE):
40591         * m4/rijndael.m4 (gl_RIJNDAEL):
40592         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40593         to get the necessary .h files and whatnot.
40594
40595 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40596
40597         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
40598         gnulib rather than the other way around.
40599         * config/srclistvars.sh (COREUTILS): Remove.
40600
40601 2006-08-22  Jim Meyering  <jim@meyering.net>
40602
40603         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
40604
40605         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
40606
40607 2006-08-22  Eric Blake  <ebb9@byu.net>
40608
40609         * modules/regexprops-generic: New file.
40610         * MODULES.html.sh (Support for building documentation): List it.
40611
40612 2006-08-22  Eric Blake  <ebb9@byu.net>
40613
40614         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
40615         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40616         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
40617         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
40618
40619 2006-08-22  Bruno Haible  <bruno@clisp.org>
40620
40621         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
40622         and lib_LTLIBRARIES like the other lib_* variables.
40623
40624 2006-08-22  Bruno Haible  <bruno@clisp.org>
40625
40626         * build-aux/x-to-1.in: New file, from GNU gettext.
40627
40628 2006-08-22  Bruno Haible  <bruno@clisp.org>
40629
40630         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
40631         <utmpx.h> exists.
40632
40633 2006-08-22  Bruno Haible  <bruno@clisp.org>
40634
40635         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
40636         <utmpx.h> exists.
40637
40638 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40639
40640         BeOS portability.
40641         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
40642         exist.
40643         Problem reported by Bruno Haible.
40644
40645 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40646
40647         Avoid the need for AC_LIBSOURCES in m4 macros.
40648         * modules/acl (EXTRA_DIST): Add acl.h.
40649         * modules/argmatch (Files): Add m4/argmatch.m4.
40650         (configure.ac): Add gl_ARGMATCH.
40651         (EXTRA_DIST): Renamed from lib_SOURCES, for
40652         consistency with the other modules.  Remove argmatch.c.
40653         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
40654         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
40655         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
40656         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
40657         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
40658         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
40659         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
40660         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
40661         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
40662         * modules/closeout (EXTRA_DIST): Add closeout.h.
40663         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
40664         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
40665         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
40666         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
40667         dirname.h; remove basename.c and stripslash.c.
40668         * modules/exclude (EXTRA_DIST): Add exclude.h.
40669         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
40670         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
40671         * modules/file-type (EXTRA_DIST): Add file-type.h.
40672         * modules/filemode (EXTRA_DIST): Add filemode.h.
40673         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
40674         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40675         * modules/fpending (EXTRA_DIST): Add __fpending.h.
40676         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
40677         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
40678         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
40679         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
40680         * modules/getdate (EXTRA_DIST): Add getdate.c.
40681         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
40682         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
40683         * modules/getpass (EXTRA_DIST): Add getpass.h.
40684         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
40685         * modules/group-member (EXTRA_DIST): Add group-member.h.
40686         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
40687         * modules/hash (EXTRA_DIST): Add hash.h.
40688         * modules/human (EXTRA_DIST): Add human.h.
40689         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
40690         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
40691         * modules/lchown (EXTRA_DIST): Add lchown.h.
40692         * modules/long-options (EXTRA_DIST): Add long-options.h.
40693         * modules/lstat (EXTRA_DIST): Add lstat.h.
40694         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
40695         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
40696         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
40697         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
40698         * modules/memxor (EXTRA_DIST): Add memxor.h.
40699         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
40700         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
40701         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
40702         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
40703         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
40704         * modules/physmem (EXTRA_DIST): Add physmem.h.
40705         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
40706         * modules/posixver (EXTRA_DIST): Add posixver.h.
40707         * modules/quote (EXTRA_DIST): Add quote.h.
40708         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
40709         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
40710         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
40711         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
40712         regex_internal.h regexec.c.
40713         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
40714         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
40715         * modules/same (EXTRA_DIST): Add same.h.
40716         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
40717         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
40718         * modules/savedir (EXTRA_DIST): Add savedir.h.
40719         * modules/sha1 (EXTRA_DIST): Add sha1.h.
40720         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
40721         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
40722         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
40723         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
40724         * modules/strdup (EXTRA_DIST): Add strdup.h.
40725         * modules/strftime (EXTRA_DIST): Add strftime.h.
40726         * modules/strndup (EXTRA_DIST): Add strndup.h.
40727         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
40728         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
40729         * modules/time_r (EXTRA_DIST): Add time_r.h.
40730         * modules/timespec (EXTRA_DIST): Add timespec.h.
40731         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40732         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
40733         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
40734         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
40735         * modules/userspec (EXTRA_DIST): Add userspec.h.
40736         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
40737         * modules/utimens (EXTRA_DIST): Add utimens.h.
40738         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
40739         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
40740         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
40741         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
40742         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
40743         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
40744         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
40745         * modules/yesno (EXTRA_DIST): Add yesno.h.
40746
40747 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40748
40749         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
40750
40751         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
40752         * m4/dev-ino.m4, same-inode.m4: Remove.
40753
40754         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
40755         * m4/acl.m4 (AC_FUNC_ACL):
40756         * m4/backupfile.m4 (gl_BACKUPFILE):
40757         * m4/c-strtod.m4 (gl_C99_STRTOLD):
40758         * m4/canon-host.m4 (gl_CANON_HOST):
40759         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40760         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
40761         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
40762         * m4/cloexec.m4 (gl_CLOEXEC):
40763         * m4/close-stream.m4 (gl_CLOSE_STREAM):
40764         * m4/closeout.m4 (gl_CLOSEOUT):
40765         * m4/dirfd.m4 (gl_FUNC_DIRFD):
40766         * m4/dirname.m4 (gl_DIRNAME):
40767         * m4/exclude.m4 (gl_EXCLUDE):
40768         * m4/exitfail.m4 (gl_EXITFAIL):
40769         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
40770         * m4/file-type.m4 (gl_FILE_TYPE):
40771         * m4/filemode.m4 (gl_FILEMODE):
40772         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
40773         * m4/fpending.m4 (gl_FUNC_FPENDING):
40774         * m4/fprintftime.m4 (gl_FPRINTFTIME):
40775         * m4/fts.m4 (gl_FUNC_FTS):
40776         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
40777         * m4/getdate.m4 (gl_GETDATE):
40778         * m4/gethrxtime.m4 (gl_GETHRXTIME):
40779         * m4/getpagesize.m4 (gl_GETPAGESIZE):
40780         * m4/getpass.m4 (gl_FUNC_GETPASS):
40781         * m4/gettime.m4 (gl_GETTIME):
40782         * m4/getugroups.m4 (gl_GETUGROUPS):
40783         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
40784         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
40785         * m4/hard-locale.m4 (gl_HARD_LOCALE):
40786         * m4/hash.m4 (gl_HASH):
40787         * m4/idcache.m4 (gl_IDCACHE):
40788         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
40789         * m4/lchown.m4 (gl_FUNC_LCHOWN):
40790         * m4/long-options.m4 (gl_LONG_OPTIONS):
40791         * m4/lstat.m4 (gl_FUNC_LSTAT):
40792         * m4/md5.m4 (gl_MD5):
40793         * m4/memcasecmp.m4 (gl_MEMCASECMP):
40794         * m4/memcoll.m4 (gl_MEMCOLL):
40795         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
40796         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
40797         * m4/memxor.m4 (gl_MEMXOR):
40798         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
40799         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
40800         * m4/modechange.m4 (gl_MODECHANGE):
40801         * m4/mountlist.m4 (gl_MOUNTLIST):
40802         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40803         * m4/openat.m4 (gl_FUNC_OPENAT):
40804         * m4/pathmax.m4 (gl_PATHMAX):
40805         * m4/physmem.m4 (gl_PHYSMEM):
40806         * m4/posixtm.m4 (gl_POSIXTM):
40807         * m4/posixver.m4 (gl_POSIXVER):
40808         * m4/quote.m4 (gl_QUOTE):
40809         * m4/quotearg.m4 (gl_QUOTEARG):
40810         * m4/readtokens.m4 (gl_READTOKENS):
40811         * m4/readutmp.m4 (gl_READUTMP):
40812         * m4/regex.m4 (gl_REGEX):
40813         * m4/safe-read.m4 (gl_SAFE_READ):
40814         * m4/safe-write.m4 (gl_SAFE_WRITE):
40815         * m4/same.m4 (gl_SAME):
40816         * m4/save-cwd.m4 (gl_SAVE_CWD):
40817         * m4/savedir.m4 (gl_SAVEDIR):
40818         * m4/settime.m4 (gl_SETTIME):
40819         * m4/sha1.m4 (gl_SHA1):
40820         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
40821         * m4/stat-macros.m4 (gl_STAT_MACROS):
40822         * m4/stat-time.m4 (gl_STAT_TIME):
40823         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
40824         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
40825         * m4/strdup.m4 (gl_FUNC_STRDUP):
40826         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
40827         * m4/strndup.m4 (gl_FUNC_STRNDUP):
40828         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
40829         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
40830         * m4/time_r.m4 (gl_TIME_R):
40831         * m4/timespec.m4 (gl_TIMESPEC):
40832         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
40833         * m4/unlinkdir.m4 (gl_UNLINKDIR):
40834         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
40835         * m4/userspec.m4 (gl_USERSPEC):
40836         * m4/utimecmp.m4 (gl_UTIMECMP):
40837         * m4/utimens.m4 (gl_UTIMENS):
40838         * m4/xalloc.m4 (gl_XALLOC):
40839         * m4/xgetcwd.m4 (gl_XGETCWD):
40840         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
40841         * m4/xreadlink.m4 (gl_XREADLINK):
40842         * m4/xstrtod.m4 (gl_XSTRTOD):
40843         * m4/yesno.m4 (gl_YESNO):
40844         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40845         to get the necessary .h files and whatnot.
40846
40847 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
40848             Bruno Haible  <bruno@clisp.org>
40849
40850         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
40851         /bin/sh understanding of '!' conditional negation.
40852
40853 2006-08-21  Jim Meyering  <jim@meyering.net>
40854
40855         * modules/openat (Depends-on): Really alphabetize.
40856
40857         * modules/acl (Depends-on): Add error and quote.
40858
40859         * check-module (find_included_lib_files): Add at-func.c to the
40860         ok-to-include-more-than-once white list.
40861
40862         * modules/openat (Depends-on): Add lstat.  Alphabetize.
40863
40864 2006-08-21  Bruno Haible  <bruno@clisp.org>
40865
40866         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40867         Emit a pkgdata_DATA variable only if some snippets add contents to it.
40868         Reported by Martin Lambers <marlam@marlam.de>.
40869
40870 2006-08-21  Bruno Haible  <bruno@clisp.org>
40871
40872         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
40873         specify an installation location, don't emit a noinst_LIBRARIES or
40874         noinst_LTLIBRARIES assignment.
40875
40876 2006-08-21  Bruno Haible  <bruno@clisp.org>
40877
40878         BeOS portability.
40879         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
40880         BeOS has mbrtowc() but no <wctype.h>.
40881
40882 2006-08-21  Bruno Haible  <bruno@clisp.org>
40883
40884         BeOS portability.
40885         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
40886         exist.
40887
40888 2006-08-21  Bruno Haible  <bruno@clisp.org>
40889
40890         BeOS portability.
40891         * lib/mbchar.h: Include <wctype.h> only if it exists.
40892
40893 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40894
40895         Remove files that are no longer needed by their respective modules.
40896         * m4/obstack.m4: Remove.
40897         * m4/strerror_r.m4: Remove.
40898         * m4/uint32_t.m4: Remove.
40899         * m4/uintptr_t.m4: Remove.
40900         * m4/ullong_max.m4: Remove.
40901         * m4/xstrtoimax.m4: Remove.
40902         * m4/xstrtoumax.m4: Remove.
40903
40904         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
40905         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
40906         dependencies now capture this.
40907
40908         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
40909         Do not use AC_LIBSOURCES, since gnulib modules now do this.
40910         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
40911         * m4/human.m4 (gl_HUMAN): Likewise.
40912         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
40913         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
40914
40915         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
40916
40917         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
40918         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
40919         stdint.
40920         * m4/human.m4 (gl_HUMAN): Likewise.
40921         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
40922         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
40923         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
40924         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
40925         * m4/xstrtol (gl_XSTRTOL): Likewise.
40926
40927         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
40928         AC_TYPE_LONG_LONG_INT.
40929         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
40930         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
40931         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
40932         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
40933
40934         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
40935         on stdbool.
40936
40937         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
40938         (gl_PREREQ_XSTRTOUL): Remove.
40939
40940         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
40941
40942         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
40943         mode.
40944
40945 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40946
40947         Add and change modules to make it easier for coreutils to use
40948         gnulib-tool.
40949         * modules/backupfile (Files): Remove m4/d-ino.m4.
40950         (Depends-on): Add d-ino.
40951         * modules/cycle-check (Depends-on): Add stdint.
40952         (lib_SOURCES): Add cycle-check.h.
40953         * modules/d-ino: New module.
40954         * modules/d-type: New module.
40955         * modules/error (Files): Remove m4/strerror_r.m4.
40956         * modules/filemode (Files): Add m4/st_dm_mode.m4.
40957         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40958         m4/inttypes_h.m4, m4/uintmax_t.m4.
40959         (Depends-on): Add stdint.
40960         (lib_SOURCES): Add fsusage.h.
40961         * modules/getcwd (Files): Remove d-ino.m4.
40962         (Depends-on): Add d-ino.
40963         * modules/getndelim2 (Depends-on): Add stdint.
40964         * modules/glob (Files): Remove m4/d-type.m4.
40965         (Depends-on): Add d-type.
40966         * modules/host-os: New module.
40967         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
40968         m4/inttypes_h.m4, m4/uintmax_t.m4.
40969         * Depends-on: Add stdint.
40970         (lib_SOURCES): Add human.h.
40971         * modules/inttostr (Files): Remove m4/intmax_t.m4,
40972         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
40973         m4/uintmax_t.m4, m4/ulonglong.m4.
40974         (Depends-on): Add stdint.
40975         (EXTRA_DIST): Add inttostr.h.
40976         * modules/lchmod: New module.
40977         * modules/link-follow: New module.
40978         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
40979         (Depends-on): Add lchmod.
40980         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
40981         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
40982         (Depends-on): Add stdint.
40983         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
40984         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
40985         (Depends-on): Add stdint.
40986         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
40987         * modules/perl: New module.
40988         * modules/regex (Depends-on): Add stdint.
40989         * modules/rmdir-errno: New module.
40990         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
40991         m4/intmax_t.m4.
40992         (Depends-on): Add stdint.
40993         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
40994         m4/uintmax_t.m4.
40995         (Depends-on): Add stdint.
40996         * modules/unlink-busy: New module.
40997         * modules/utimecmp (Depends-on): Add stdint.
40998         * modules/uptime: New module.
40999         * modules/winsz-ioctl: New module.
41000         * modules/winsz-termios: New module.
41001         * modules/xnanosleep (Depends-on): Add nanosleep.
41002         * modules/ullong_max: Remove.
41003         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
41004         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
41005         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
41006         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
41007         (Depends-on): Add inttypes.
41008         (lib_SOURCES): Add xstrtol.h.
41009         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
41010         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
41011         * MODULES.html.sh: Move 'assert' into the assert section.
41012         Move 'dummy' into the linking section.
41013         Remove ullong_max.
41014         Add section for compatibility checks for POSIX:2001 functions,
41015         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
41016         winsz-ioctl, and winsz-termios into it.
41017         Add lchmod.
41018         Add top-level Misc section and put host-os, perl, and uptime
41019         into it.
41020
41021 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41022
41023         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
41024         now assume the stdint module.  Do not include inttypes.h.
41025         * lib/fsusage.h: Likewise.
41026         * lib/getndelim2.c: Likewise.
41027         * lib/human.h: Likewise.
41028         * lib/inttostr.h: Likewise.
41029         * lib/obstack.c: Likewise.
41030         * lib/regex_internal.h: Likewise.
41031         * lib/tempname.c: Likewise.
41032         * lib/utimecmp.c: Likewise.
41033         * lib/xstrtol.h: Likewise.
41034
41035         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
41036
41037         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
41038         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
41039         * lib/xtime.h: Likewise.
41040
41041 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41042
41043         * modules/openat (Files): Add lib/fchmodat.c.
41044         Fixes problem reported by Jay Youngman.
41045
41046 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41047
41048         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
41049         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
41050
41051 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
41052             Bruno Haible  <bruno@clisp.org>
41053
41054         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
41055         and is a script that invokes bison. Tighten the code. Add comments.
41056
41057 2006-08-18  Jim Meyering  <jim@meyering.net>
41058
41059         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
41060         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
41061         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
41062         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
41063
41064 2006-08-18  Bruno Haible  <bruno@clisp.org>
41065
41066         * modules/bison-i18n: New file.
41067         * MODULES.html.sh (Internationalization functions): Add it.
41068
41069 2006-08-18  Bruno Haible  <bruno@clisp.org>
41070
41071         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
41072         sys/statvfs.h. When getmntinfo was found, check its declaration and
41073         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
41074
41075 2006-08-18  Bruno Haible  <bruno@clisp.org>
41076
41077         * m4/bison-i18n.m4: New file, from bison.
41078
41079 2006-08-18  Bruno Haible  <bruno@clisp.org>
41080
41081         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
41082         (ME_DUMMY): Treat "kernfs" as a dummy.
41083         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
41084
41085 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
41086
41087         Update from coreutils.
41088
41089         2006-08-15  Jim Meyering  <jim@meyering.net>
41090
41091         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
41092
41093         2006-01-17  Jim Meyering  <jim@meyering.net>
41094
41095         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
41096
41097         2006-01-11  Jim Meyering  <jim@meyering.net>
41098
41099         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
41100         Check for the lchmod function.
41101
41102 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
41103
41104         Update from coreutils.
41105
41106         * lib/__fpending.h: Add copyright notice.
41107         * lib/fprintftime.h: Likewise.
41108         * lib/savedir.c: Use (C) in copyright notice.
41109         * lib/savedir.h: Likewise.
41110
41111         2006-08-15  Jim Meyering  <jim@meyering.net>
41112
41113         * lib/at-func.c: New file, with the logic of all emulated at-functions.
41114         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
41115         in support of the EXPECTED_ERRNO macro.
41116         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
41117         definitions.  Instead, define the appropriate symbols and include
41118         "at-func.c".
41119         * lib/mkdirat.c (mkdirat): Likewise.
41120         * lib/fchmodat.c (fchmodat): Likewise.
41121         (ENOSYS): Remove definition.
41122         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
41123         it.  Don't include "unistd--.h" -- it wasn't ever used.
41124
41125         2006-01-17  Jim Meyering  <jim@meyering.net>
41126
41127         Rewrite fts.c not to change the current working directory,
41128         by using openat, fstatat, fdopendir, etc..
41129
41130         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
41131         (HAVE_OPENAT_SUPPORT): Define.
41132         [_LIBC] (fchdir): Don't undef or define; no longer used.
41133         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
41134         Now, this `function' always succeeds, and consumes its file descriptor
41135         parameter -- so callers must not close such FDs.  Update callers.
41136         (diropen_fd, opendirat, cwd_advance_fd): New functions.
41137         (diropen): Add parameter, SP.  Adjust all callers.
41138         Implement using diropen_fd, rather than open.
41139         (fts_open): Initialize new member, fts_cwd_fd.
41140         Remove fts_rft-setting code.
41141         (fts_close): Close fts_cwd_fd, if necessary.
41142         (__opendir2): Define in terms of opendir or opendirat,
41143         depending on whether the FST_NOCHDIR flag is set.
41144         (fts_build): Since fts_safe_changedir consumes its FD, and since
41145         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
41146         and close the dup'd file descriptor upon failure.
41147         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
41148         (fts_safe_changedir): Tweak semantics to reflect that this function
41149         now calls cwd_advance_fd and hence consumes its FD argument.
41150         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
41151         [struct FTS] (fts_rft): Remove now-unused member.
41152         [struct FTS] (fts_cycle.state): Improve comment.
41153
41154         * lib/openat.c (openat_needs_fchdir): New function.
41155         * lib/openat.h (openat_needs_fchdir): Declare it.
41156
41157 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
41158
41159         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
41160         Problem and fix reported by Pádraig Brady in
41161         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
41162
41163 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41164
41165         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
41166
41167 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41168
41169         * lib/memcoll.c (memcoll): Optimize for the common case where the
41170         arguments are bytewise equal.
41171
41172 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41173
41174         * doc/regexprops-generic.texi: Add a copyright notice.
41175
41176 2006-08-15  Bruno Haible  <bruno@clisp.org>
41177
41178         * modules/tmpdir (License): Change to LGPL.
41179
41180 2006-08-15  Bruno Haible  <bruno@clisp.org>
41181
41182         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
41183         module.
41184
41185 2006-08-14  Simon Josefsson  <jas@extundo.com>
41186
41187         * config/srclist.txt: Add gnupload.
41188
41189 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41190
41191         Change copyright notice from LGPL 2 to GPL 2, since that's the
41192         standard form used in the gnulib repository.
41193         * tests/test-lock.c: Likewise.
41194         * tests/test-stdint.c: Likewise.
41195         * tests/test-tls.c: Likewise.
41196
41197         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
41198         prelude-manager.  User shorter URLs for GNU projects, without '?'.
41199         Add copyright notice.
41200
41201         * check-module: Add copyright notice.  Output a copyright
41202         notice if "--version" is specified.
41203         * modules/COPYING: New file.
41204         * tests/test-getaddrinfo.c: Add copyright notice.
41205         * tests/test-verify.c: Likewise.
41206
41207 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41208
41209         Change copyright notice from LGPL 2 to GPL 2, since that's the
41210         standard form used in the gnulib repository.
41211         * lib/lock.c: LGPL -> GPL.
41212         * lib/lock.h: Likewise.
41213         * lib/strnlen1.c: Likewise.
41214         * lib/strnlen1.h: Likewise.
41215         * lib/tls.c: Likewise.
41216         * lib/tls.h: Likewise.
41217         * lib/tmpdir.c: Likewise.
41218
41219         * lib/TODO: Remove; this belongs only in coreutils.
41220
41221 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41222
41223         Add copyright notices to long-enough files that lack them, since
41224         otherwise the files aren't clearly free.  Use the same notice that
41225         getdate.texi already uses.
41226         * doc/alloca-opt.texi: Add copyright notice.
41227         * doc/alloca.texi: Likewise.
41228         * doc/ctime.texi: Likewise.
41229         * doc/functions.texi: Likewise.
41230         * doc/gcd.texi: Likewise.
41231         * doc/gnulib-tool.texi: Likewise.
41232         * doc/inet_ntoa.texi: Likewise.
41233         * doc/visibility.texi: Likewise.
41234
41235         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
41236         * doc/quote.texi: Add copyright notice.
41237
41238         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
41239         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
41240         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
41241         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
41242         is now obsolete, and give a pointer to the Sun list.
41243         Add copyright notice.
41244
41245 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41246
41247         * config/srclistvars.sh: Add copyright notice.
41248
41249 2006-08-14  Eric Blake  <ebb9@byu.net>
41250
41251         Import the following change from libc:
41252
41253         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
41254
41255         Upstream bug 2997.
41256         * lib/misc/error.c: Add space between program name and message if file
41257         name is missing.
41258
41259 2006-08-12  Karl Berry  <karl@gnu.org>
41260
41261         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
41262         remove, these originate in gnulib now.
41263
41264 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41265
41266         * doc/Makefile (standards.info standards.html standards.dvi):
41267         Also depend on make-stds.texi.
41268
41269 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
41270
41271         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
41272         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
41273
41274         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
41275         in wchar_t.  Problem reported by Eric Blake.
41276
41277         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
41278         LEN is smaller than SIZE.  Suggested by Bruno Haible.
41279         Also, help the compiler to keep LEN in a register.
41280
41281 2006-08-11  Eric Blake  <ebb9@byu.net>
41282
41283         * users.txt: Sort.  Add tar.
41284
41285 2006-08-11  Bruno Haible  <bruno@clisp.org>
41286
41287         * users.txt: New file.
41288
41289 2006-08-11  Bruno Haible  <bruno@clisp.org>
41290
41291         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
41292         before <wchar.h>. Needed for OSF/1 and BSD/OS.
41293
41294 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41295
41296         * modules/snprintf (Depends-on): Remove minmax.
41297         (Maintainer): Add self and Bruno.
41298
41299 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41300
41301         * lib/.cppi-disable: Add snprintf.h, socket_.h.
41302         * lib/snprintf.c: Include <errno.h> and <limits.h>.
41303         (EOVERFLOW): Define if the system does not.
41304         Do not include "minmax.h"; it wasn't used.
41305         (snprintf): Don't assume size_t promotes to an unsigned type.
41306         Fix bug when generated string was too long for the buffer: the
41307         buffer's contents are supposed to be the initial prefix of the
41308         output.  Don't assume vasnprintf returns EOVERFLOW if the size
41309         exceeds INT_MAX; do the check ourselves.
41310
41311         Import the following changes from libc:
41312
41313         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
41314
41315         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
41316         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
41317         set wc to the byte which couldn't be converted.
41318         (re_string_reconstruct): Don't clear valid_raw_len before calling
41319         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
41320         tip_context using re_string_context_at.
41321
41322         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
41323
41324         * lib/posix/regex.h: g++ still cannot handled [restrict].
41325
41326         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
41327
41328         * lib/posix/regex.h: Remove special handling for VMS.
41329
41330 2006-08-10  Jim Meyering  <jim@meyering.net>
41331
41332         * modules/same-inode: New module.
41333         * modules/dev-ino: New module.
41334         * modules/cycle-check: Depend on these modules, rather than simply
41335         including their .h files.
41336         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
41337         required via m4/cycle-check.m4.
41338         * modules/same: Depend on new same-inode module, rather than
41339         including same-inode.h.
41340         * modules/chdir-safer: New file.
41341
41342         * modules/chown (Depends-on): Add stat-macros.
41343
41344 2006-08-10  Jim Meyering  <jim@meyering.net>
41345
41346         * m4/cycle-check.m4: New file.
41347         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
41348         * m4/dev-ino.m4, m4/same-inode.m4: New files.
41349
41350 2006-08-10  Eric Blake  <ebb9@byu.net>
41351
41352         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
41353         in from original proposal.
41354
41355 2006-08-10  Eric Blake  <ebb9@byu.net>
41356         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41357
41358         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
41359         namespace.
41360
41361 2006-08-10  Bruno Haible  <bruno@clisp.org>
41362
41363         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
41364         as well.
41365
41366 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41367
41368         Sync from coreutils.
41369
41370         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
41371
41372         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
41373         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
41374
41375 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41376
41377         * modules/restrict: Remove; no longer needed now that we assume
41378         Autoconf 2.59 or later.
41379         * MODULES.html.sh: Remove 'restrict'.
41380         * modules/argp (Depends-on): Remove 'restrict'.
41381         * modules/base64 (Depends-on): Likewise.
41382         * modules/gc (Depends-on): Likewise.
41383         * modules/getaddrinfo (Depends-on): Likewise.
41384         * modules/glob (Depends-on): Likewise.
41385         * modules/inet_ntop (Depends-on): Likewise.
41386         * modules/inet_pton (Depends-on): Likewise.
41387         * modules/memxor (Depends-on): Likewise.
41388         * modules/regex (Depends-on): Likewise.
41389         * modules/strtok_r (Depends-on): Likewise.
41390         * modules/time_r (Depends-on): Likewise.
41391
41392 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41393
41394         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
41395         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
41396         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41397         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
41398         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
41399         * m4/memxor.m4 (gl_MEMXOR): Likewise.
41400         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
41401         gl_C_RESTRICT replaced by AC_C_RESTRICT.
41402
41403         Merge from coreutils.
41404         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
41405         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
41406         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41407         * m4/time_r.m4 (gl_TIME_R): Likewise.
41408
41409 2006-08-09  Karl Berry  <karl@gnu.org>
41410
41411         * config/srclist.txt: no more gettext-tools, per Bruno.
41412
41413 2006-08-08  Eric Blake  <ebb9@byu.net>
41414
41415         * modules/verror: New module.
41416         * MODULES.html.sh: Document it.
41417
41418 2006-08-08  Eric Blake  <ebb9@byu.net>
41419
41420         * lib/verror.h, lib/verror.c: New files.
41421
41422 2006-08-08  Eric Blake  <ebb9@byu.net>
41423
41424         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
41425         verror_at_line output complies with GNU Coding Standards even when
41426         file is NULL.
41427
41428 2006-08-07  Bruno Haible  <bruno@clisp.org>
41429
41430         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
41431         versions of AIX.
41432         Reported by Ralf Wildenhues.
41433
41434 2006-08-07  Bruno Haible  <bruno@clisp.org>
41435
41436         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
41437         in an AC_DEFUN. Needed so that the autoconf snippets can use
41438         AC_REQUIRE.
41439
41440 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41441
41442         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41443         Initialize pkgdata_DATA.
41444         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
41445         overriding it.
41446
41447 2006-08-06  Eric Blake  <ebb9@byu.net>
41448
41449         * lib/error.h: Fold in some upstream changes from glibc.
41450         * lib/error.c: Likewise.
41451
41452 2006-08-04  Bruno Haible  <bruno@clisp.org>
41453
41454         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41455         Make the mostlyclean-local rule depend on mostlyclean-generic.
41456         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
41457
41458 2006-07-31  Bruno Haible  <bruno@clisp.org>
41459
41460         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
41461         <stdlib.h>, <string.h>.
41462
41463 2006-07-30  Bruno Haible  <bruno@clisp.org>
41464
41465         * modules/readlink (License): Change to LGPL.
41466
41467 2006-07-30  Bruno Haible  <bruno@clisp.org>
41468
41469         * modules/javaversion (Makefile.am): Distribute javaversion.java and
41470         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
41471         set PKGDATADIR to point to it.
41472
41473 2006-07-30  Bruno Haible  <bruno@clisp.org>
41474
41475         * modules/csharpexec (configure.ac): Comment out macro invocation.
41476         * modules/javaexec (configure.ac): Likewise.
41477         * modules/javacomp-script (configure.ac): Likewise.
41478
41479         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
41480
41481 2006-07-30  Bruno Haible  <bruno@clisp.org>
41482
41483         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
41484         linked-list.
41485
41486 2006-07-30  Bruno Haible  <bruno@clisp.org>
41487
41488         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
41489
41490 2006-07-30  Bruno Haible  <bruno@clisp.org>
41491
41492         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41493         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
41494         get removed.
41495
41496 2006-07-29  Bruno Haible  <bruno@clisp.org>
41497
41498         Make it possible for gnulib-tool to work with locally modified or
41499         augmented gnulib repositories.
41500         * gnulib-tool (func_usage): Document --local-dir option.
41501         (local_gnulib_dir): New variable.
41502         Handle --local-dir option.
41503         (func_lookup_file): New function.
41504         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
41505         (func_get_description, func_get_filelist, func_get_description,
41506         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
41507         func_get_automake_snippet, func_get_include_directive,
41508         func_get_license, func_get_maintainer): Use func_lookup_file.
41509         (func_import, func_create_testdir): Use func_lookup_file.
41510
41511 2006-07-29  Bruno Haible  <bruno@clisp.org>
41512
41513         * modules/setenv (Depends-on): Add unistd.
41514
41515 2006-07-29  Bruno Haible  <bruno@clisp.org>
41516
41517         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
41518
41519 2006-07-29  Bruno Haible  <bruno@clisp.org>
41520
41521         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
41522
41523 2006-07-29  Bruno Haible  <bruno@clisp.org>
41524
41525         * gnulib-tool (import, update): If there is no Makefile.am, look at
41526         aclocal.m4, instead of bailing out.
41527
41528 2006-07-29  Bruno Haible  <bruno@clisp.org>
41529
41530         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
41531         Categorize the options by when they are useful.
41532
41533 2006-07-29  Bruno Haible  <bruno@clisp.org>
41534
41535         * gnulib-tool (func_usage): Document option --no-libtool.
41536         Handle option --no-libtool.
41537         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
41538         for changed semantics of $libtool variable.
41539         (func_import): Likewise. If libtool is not used, show this through
41540         an option --no-libtool.
41541         (func_create_testdir): Update.
41542
41543 2006-07-29  Bruno Haible  <bruno@clisp.org>
41544
41545         * gnulib-tool (func_import): Extend error message about missing
41546         --doc-base.
41547
41548 2006-07-29  Bruno Haible  <bruno@clisp.org>
41549
41550         * gnulib-tool (func_import): Don't create the $docbase directory if
41551         there is no file to store there.
41552
41553 2006-07-29  Bruno Haible  <bruno@clisp.org>
41554
41555         * gnulib-tool (autoconf_minversion): If a --dir option is given and
41556         relevant, look for configure.ac there, not in the current directory.
41557         Also use a simple search for AC_PREREQ, not "autoconf --trace".
41558
41559 2006-07-29  Bruno Haible  <bruno@clisp.org>
41560
41561         * gnulib-tool (SORT): New variable.
41562         (func_usage): Undocument --assume-autoconf option.
41563         Remove --assume-autoconf option handling.
41564         (autoconf_minversion): Determine from the contents of configure.ac.
41565         (func_import): Remove autoconf_minversion handling.
41566         Suggested by Eric Blake.
41567
41568 2006-07-29  Bruno Haible  <bruno@clisp.org>
41569
41570         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
41571
41572 2006-07-29  Bruno Haible  <bruno@clisp.org>
41573
41574         * config/srclist.txt (*setenv.[ch]): Remove rules.
41575
41576 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41577
41578         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
41579
41580 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41581
41582         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
41583         arpa/inet.h.
41584
41585 2006-07-28  Simon Josefsson  <jas@extundo.com>
41586
41587         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
41588         * modules/inet_pton (Depends-on): Likewise.
41589
41590 2006-07-28  Simon Josefsson  <jas@extundo.com>
41591
41592         * m4/netinet_in_h.m4: New file.
41593
41594 2006-07-28  Simon Josefsson  <jas@extundo.com>
41595
41596         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
41597         #include's.
41598
41599 2006-07-28  Simon Josefsson  <jas@extundo.com>
41600
41601         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
41602         #include's.
41603
41604 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
41605
41606         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
41607         setgid on directories only if they set these bits.
41608         * lib/modechange.h: Remove obsolete comment about masks.
41609
41610 2006-07-28  Eric Blake  <ebb9@byu.net>
41611
41612         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
41613         macro expansion.
41614
41615 2006-07-28  Bruno Haible  <bruno@clisp.org>
41616
41617         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
41618
41619 2006-07-28  Bruno Haible  <bruno@clisp.org>
41620
41621         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
41622
41623 2006-07-28  Bruno Haible  <bruno@clisp.org>
41624
41625         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41626         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41627         Define fallbacks.
41628         Avoids link error on FreeBSD 4.x.
41629         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41630
41631         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
41632         encoding.
41633         * lib/mbswidth.c (iswcntrl): Likewise.
41634
41635 2006-07-27  Bruno Haible  <bruno@clisp.org>
41636
41637         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
41638         test.
41639
41640 2006-07-27  Bruno Haible  <bruno@clisp.org>
41641
41642         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
41643         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
41644         defined.
41645
41646 2006-07-26  Eric Blake  <ebb9@byu.net>
41647
41648         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
41649
41650 2006-07-26  Eric Blake  <ebb9@byu.net>
41651
41652         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
41653         like mingw that lack mkstemp.
41654         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
41655         avoid compilation warning on mingw.
41656
41657 2006-07-26  Bruno Haible  <bruno@clisp.org>
41658
41659         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
41660         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
41661         INT_FAST*_MIN, INTPTR_MIN.
41662
41663 2006-07-25  Bruno Haible  <bruno@clisp.org>
41664
41665         * modules/version-etc (Depends-on): Add stdarg.
41666
41667 2006-07-25  Bruno Haible  <bruno@clisp.org>
41668
41669         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
41670         complex commands.
41671
41672 2006-07-25  Bruno Haible  <bruno@clisp.org>
41673
41674         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
41675         defined in <stdarg.h> or config.h.
41676
41677 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41678
41679         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
41680         (gl_STDIO_SAFER): Remove.
41681
41682 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41683
41684         * MODULES.html.sh (File stream based Input/Output):
41685         Add fopen-safer, tmpfile-safer; remove stdio-safer.
41686         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
41687         * modules/fopen-safer, modules/tmpfile-safer: New files.
41688         * modules/stdio-safer: Remove.
41689
41690 2006-07-24  Bruno Haible  <bruno@clisp.org>
41691
41692         * modules/tmpdir: New file.
41693         * MODULES.html.sh (File system functions): Add it.
41694
41695 2006-07-24  Bruno Haible  <bruno@clisp.org>
41696
41697         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
41698         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
41699
41700 2006-07-24  Bruno Haible  <bruno@clisp.org>
41701
41702         * modules/clean-temp: New file.
41703
41704 2006-07-24  Bruno Haible  <bruno@clisp.org>
41705
41706         * m4/tmpdir.m4: New file, from GNU gettext.
41707
41708 2006-07-24  Bruno Haible  <bruno@clisp.org>
41709
41710         * lib/tmpdir.h: New file, from GNU gettext.
41711         * lib/tmpdir.c: New file, from GNU gettext.
41712
41713 2006-07-24  Bruno Haible  <bruno@clisp.org>
41714
41715         * lib/clean-temp.h: New file, from GNU gettext.
41716         * lib/clean-temp.c: New file, from GNU gettext.
41717
41718 2006-07-23  Eric Blake  <ebb9@byu.net>
41719
41720         * modules/stdio-safer (Files): Add tmpfile-safer.c.
41721         (Depends-on): Add binary-io.
41722
41723 2006-07-23  Eric Blake  <ebb9@byu.net>
41724
41725         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
41726
41727 2006-07-23  Eric Blake  <ebb9@byu.net>
41728
41729         * lib/tmpfile-safer.c: New file.
41730         * lib/stdio-safer.h (fopen_safer): Add prototype.
41731         * lib/stdio--.h (tmpfile): Make safer.
41732
41733 2006-07-23  Bruno Haible  <bruno@clisp.org>
41734
41735         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
41736         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
41737         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
41738         gl_linked_remove_at): Use it.
41739
41740 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41741         and Simon Josefsson <jas@extundo.com>
41742
41743         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
41744
41745         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
41746
41747 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41748
41749         * modules/close-stream: New file.
41750         * modules/closeout (Description): Make it clear that it exits
41751         with a diagnostic on error.
41752         (Depends-on): Add close-stream.  Remove fpending, stdbool.
41753         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
41754
41755 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41756
41757         * m4/close-stream.m4: New file.
41758
41759 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41760
41761         * lib/close-stream.c, lib/close-stream.h: New files.
41762
41763 2006-07-22  Bruno Haible  <bruno@clisp.org>
41764
41765         Merge from GNU gettext 0.15.
41766
41767         2006-05-01  Bruno Haible  <bruno@clisp.org>
41768
41769                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
41770
41771         2006-07-22  Bruno Haible  <bruno@clisp.org>
41772
41773                 * modules/javaversion: New file.
41774                 * MODULES.html.sh (Java): Add javaversion.
41775
41776         2006-03-12  Bruno Haible  <bruno@clisp.org>
41777
41778                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
41779
41780         2005-12-04  Bruno Haible  <bruno@clisp.org>
41781
41782                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
41783                 (untested).
41784
41785         2006-06-21  Bruno Haible  <bruno@clisp.org>
41786
41787                 Avoid warnings from recent versions of mcs.
41788                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
41789                 -o, -L, -r any more. Use options documented since mcs-1.0
41790                 instead. Similarly for -g.
41791
41792         2005-12-04  Bruno Haible  <bruno@clisp.org>
41793
41794                 * build-aux/csharpcomp.sh.in: Suffix for resources is
41795                 .resources, not .resource.
41796
41797         2005-07-09  Bruno Haible  <bruno@clisp.org>
41798
41799                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
41800                 add a .dll suffix.
41801                 Reported by Mark Junker <mjscod@gmx.de>.
41802
41803         2006-07-22  Bruno Haible  <bruno@clisp.org>
41804
41805                 * modules/gettext: Upgrade to gettext-0.15.
41806                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
41807                 m4/visibility.m4.
41808                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
41809
41810 2006-07-22  Bruno Haible  <bruno@clisp.org>
41811
41812         Merge from GNU gettext 0.15.
41813
41814         2006-03-25  Bruno Haible  <bruno@clisp.org>
41815
41816                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
41817
41818         2006-07-21  Bruno Haible  <bruno@clisp.org>
41819
41820                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
41821                 "1.1".
41822
41823         2006-05-09  Bruno Haible  <bruno@clisp.org>
41824
41825                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
41826                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
41827                 for the conftestver execution.
41828
41829         2006-05-01  Bruno Haible  <bruno@clisp.org>
41830
41831                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
41832                 optional target-version argument. Verify that the compiler
41833                 groks source of the specified source-version, or add -source
41834                 option as necessary. Verify that the compiler produces
41835                 bytecode in the specified target-version, or add -target and
41836                 -source options as necessary. Make the result of the test
41837                 available as variable CONF_JAVAC. Also log error output in
41838                 config.log.
41839
41840         2006-03-11  Bruno Haible  <bruno@clisp.org>
41841
41842                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
41843
41844         2006-05-09  Bruno Haible  <bruno@clisp.org>
41845
41846                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
41847                 CLASSPATH_SEPARATOR to a semicolon.
41848
41849         2006-03-12  Bruno Haible  <bruno@clisp.org>
41850
41851                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
41852                 available as variable CONF_JAVA, for subsequent autoconf
41853                 tests. Also log error output in config.log.
41854
41855         2006-07-19  Bruno Haible  <bruno@clisp.org>
41856
41857                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
41858                 that getline works on glibc2 systems. Needed to avoid trouble
41859                 in relocatable.c.
41860                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
41861
41862         2005-12-04  Bruno Haible  <bruno@clisp.org>
41863
41864                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
41865                 launcher (untested).
41866
41867         2005-12-04  Bruno Haible  <bruno@clisp.org>
41868
41869                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
41870
41871         2006-07-22  Bruno Haible  <bruno@clisp.org>
41872
41873                 * gettext.m4: Update from GNU gettext-0.15.
41874                 * nls.m4: Likewise.
41875                 * po.m4: Likewise.
41876                 * inttypes-pri.m4: Likewise.
41877                 * inttypes-h.m4: Renamed from inttypes.m4.
41878                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
41879
41880 2006-07-22  Bruno Haible  <bruno@clisp.org>
41881
41882         Merge from GNU gettext 0.15.
41883
41884         2005-07-05  Bruno Haible  <bruno@clisp.org>
41885
41886                 * printf-args.c (printf_fetchargs): Work around broken
41887                 definition of wint_t on mingw.
41888
41889         2005-02-12  Bruno Haible  <bruno@clisp.org>
41890
41891                 * xallocsa.h: Add extern "C" for C++.
41892
41893         2006-05-17  Bruno Haible  <bruno@clisp.org>
41894
41895                 Cygwin portability.
41896                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
41897
41898         2006-04-30  Bruno Haible  <bruno@clisp.org>
41899
41900                 * progreloc.c: Include <mach-o/dyld.h> if available.
41901                 (find_executable): Use _NSGetExecutablePath when possible.
41902
41903         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41904
41905                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
41906                 function.
41907
41908         2005-12-29  Bruno Haible  <bruno@clisp.org>
41909
41910                 * progreloc.c (set_program_name_and_installdir): Fix
41911                 compilation error.
41912
41913         2005-12-04  Bruno Haible  <bruno@clisp.org>
41914
41915                 Cygwin portability.
41916                 * progreloc.c: Include <windows.h> also on Cygwin.
41917                 (find_executable): Add support for Cygwin.
41918                 (set_program_name_and_installdir): Handle also platforms with
41919                 nonempty EXEEXT.
41920
41921         2006-07-11  Bruno Haible  <bruno@clisp.org>
41922
41923                 * javacomp.c: Fix a comment.
41924                 Reported by Jim Meyering.
41925
41926         2006-04-30  Bruno Haible  <bruno@clisp.org>
41927
41928                 * javacomp.h (compile_java_class): Add source_version,
41929                 target_version arguments.
41930                 * javacomp.c: Rewritten to choose only a compiler that
41931                 respects the specified source_version and target_version.
41932
41933         2006-06-27  Bruno Haible  <bruno@clisp.org>
41934
41935                 Assume correct S_ISDIR macro.
41936                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
41937
41938         2006-07-22  Bruno Haible  <bruno@clisp.org>
41939
41940                 * javaversion.h: New file, from GNU gettext.
41941                 * javaversion.c: New file, from GNU gettext.
41942                 * javaversion.java: New file, from GNU gettext.
41943                 * javaversion.class: New file, from GNU gettext.
41944
41945         2006-05-17  Bruno Haible  <bruno@clisp.org>
41946
41947                 Cygwin portability.
41948                 * javaexec.c (execute_java_class): Test for jview program
41949                 also on Cygwin.
41950
41951         2006-04-09  Bruno Haible  <bruno@clisp.org>
41952
41953                 * fatal-signal.c: Don't include string.h.
41954                 (at_fatal_signal): Use a copying loop instead of memcpy.
41955
41956         2005-12-04  Bruno Haible  <bruno@clisp.org>
41957
41958                 * csharpexec.c: Add support for 'clix' launcher (untested).
41959                 (execute_csharp_using_sscli): New function.
41960                 (execute_csharp_program): Call it.
41961
41962         2006-06-21  Bruno Haible  <bruno@clisp.org>
41963
41964                 Avoid warnings from recent versions of mcs.
41965                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
41966                 -o, -L, -r any more. Use options documented since mcs-1.0
41967                 instead. Similarly for -g.
41968
41969         2005-07-09  Bruno Haible  <bruno@clisp.org>
41970
41971                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
41972                 add a .dll suffix.
41973                 Reported by Mark Junker <mjscod@gmx.de>.
41974
41975         2006-06-17  Bruno Haible  <bruno@clisp.org>
41976
41977                 * config.charset: Update for NetBSD 3.0.
41978
41979         2006-05-17  Bruno Haible  <bruno@clisp.org>
41980
41981                 Cygwin portability.
41982                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
41983
41984         2006-05-16  Bruno Haible  <bruno@clisp.org>
41985
41986                 * localcharset.c [CYGWIN]: Include <windows.h>.
41987                 (get_charset_aliases): For Cygwin, return the same CPxxx
41988                 aliases list as under WIN32.
41989                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
41990                 the environment variables. Fall back to GetACP().
41991
41992         2006-04-05  Bruno Haible  <bruno@clisp.org>
41993
41994                 * config.charset: Update Juan Manuel Guerrero's address.
41995
41996         2005-02-12  Bruno Haible  <bruno@clisp.org>
41997
41998                 * allocsa.h: Add extern "C" for C++.
41999
42000         2005-02-10  Bruno Haible  <bruno@clisp.org>
42001
42002                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
42003                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
42004
42005         2006-07-22  Bruno Haible  <bruno@clisp.org>
42006
42007                 * gettext.h: Update to GNU gettext-0.15.
42008
42009 2006-07-22  Bruno Haible  <bruno@clisp.org>
42010
42011         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
42012         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
42013         lib-prefix.m4, longdouble.m4, ssize_t.m4.
42014
42015 2006-07-21  Eric Blake  <ebb9@byu.net>
42016
42017         * modules/stdlib-safer: New file.
42018         * MODULES.html.sh (File stream based Input/Output): Add
42019         stdlib-safer.
42020
42021 2006-07-21  Eric Blake  <ebb9@byu.net>
42022
42023         * lib/stdlib-safer.h: New file from coreutils, required by
42024         stdlib--.h.
42025
42026 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
42027
42028         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
42029
42030 2006-07-20  Bruno Haible  <bruno@clisp.org>
42031
42032         * gnulib-tool: Recognize new option --assume-autoconf.
42033         (autoconf_minversion): New variable.
42034         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
42035
42036 2006-07-20  Bruno Haible  <bruno@clisp.org>
42037
42038         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
42039
42040 2006-07-19  Derek R. Price  <derek@ximbiot.com>
42041
42042         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
42043         Reindent and repaginate.
42044
42045 2006-07-19  Derek Price  <derek@ximbiot.com>
42046
42047         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
42048         Correct grammar.
42049
42050 2006-07-17  Bruno Haible  <bruno@clisp.org>
42051
42052         * modules/list: New file.
42053         * modules/array-list: New file.
42054         * modules/carray-list, modules/carray-list-tests: New files.
42055         * modules/linked-list, modules/linked-list-tests: New files.
42056         * modules/avltree-list, modules/avltree-list-tests: New files.
42057         * modules/rbtree-list, modules/rbtree-list-tests: New files.
42058         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
42059         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
42060         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
42061         * modules/oset: New file.
42062         * modules/array-oset: New file.
42063         * modules/avltree-oset, modules/avltree-oset-tests: New files.
42064         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
42065         * tests/test-carray_list.c: New file.
42066         * tests/test-linked_list.c: New file.
42067         * tests/test-avltree_list.c: New file.
42068         * tests/test-rbtree_list.c: New file.
42069         * tests/test-linkedhash_list.c: New file.
42070         * tests/test-avltreehash_list.c: New file.
42071         * tests/test-rbtreehash_list.c: New file.
42072         * tests/test-avltree_oset.c: New file.
42073         * tests/test-rbtree_oset.c: New file.
42074         * MODULES.html.sh (Container data structures): New section.
42075
42076 2006-07-17  Bruno Haible  <bruno@clisp.org>
42077
42078         * m4/gl_list.m4: New file.
42079
42080 2006-07-17  Bruno Haible  <bruno@clisp.org>
42081
42082         * lib/gl_list.h: New file.
42083         * lib/gl_list.c: New file.
42084         * lib/gl_array_list.h: New file.
42085         * lib/gl_array_list.c: New file.
42086         * lib/gl_carray_list.h: New file.
42087         * lib/gl_carray_list.c: New file.
42088         * lib/gl_linked_list.h: New file.
42089         * lib/gl_linked_list.c: New file.
42090         * lib/gl_anylinked_list1.h: New file.
42091         * lib/gl_anylinked_list2.h: New file.
42092         * lib/gl_avltree_list.h: New file.
42093         * lib/gl_avltree_list.c: New file.
42094         * lib/gl_anyavltree_list1.h: New file.
42095         * lib/gl_anyavltree_list2.h: New file.
42096         * lib/gl_rbtree_list.h: New file.
42097         * lib/gl_rbtree_list.c: New file.
42098         * lib/gl_anyrbtree_list1.h: New file.
42099         * lib/gl_anyrbtree_list2.h: New file.
42100         * lib/gl_anytree_list1.h: New file.
42101         * lib/gl_anytree_list2.h: New file.
42102         * lib/gl_linkedhash_list.h: New file.
42103         * lib/gl_linkedhash_list.c: New file.
42104         * lib/gl_anyhash_list1.h: New file.
42105         * lib/gl_anyhash_list2.h: New file.
42106         * lib/gl_avltreehash_list.h: New file.
42107         * lib/gl_avltreehash_list.c: New file.
42108         * lib/gl_rbtreehash_list.h: New file.
42109         * lib/gl_rbtreehash_list.c: New file.
42110         * lib/gl_anytreehash_list1.h: New file.
42111         * lib/gl_anytreehash_list2.h: New file.
42112
42113         * lib/gl_oset.h: New file.
42114         * lib/gl_oset.c: New file.
42115         * lib/gl_array_oset.h: New file.
42116         * lib/gl_array_oset.c: New file.
42117         * lib/gl_avltree_oset.h: New file.
42118         * lib/gl_avltree_oset.c: New file.
42119         * lib/gl_rbtree_oset.h: New file.
42120         * lib/gl_rbtree_oset.c: New file.
42121         * lib/gl_anytree_oset.h: New file.
42122
42123 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42124
42125         * m4/mkancesdirs.m4: New file.
42126         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
42127         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
42128         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
42129         it.
42130
42131 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42132
42133         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
42134         * lib/mkancesdirs.h: New files.
42135         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
42136         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
42137         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
42138         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
42139         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
42140         callers changed.  Revamp internals significantly, by not
42141         attempting to create directories that are temporarily more
42142         permissive than the final results.  Do not attempt to use
42143         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
42144         This removes some race conditions, fixes some bugs, and simplifies
42145         things.  Use new dirchownmod function to do owner and mode changes.
42146         * lib/mkdir-p.h: Likewise.
42147         * lib/modechange.c (octal_to_mode): New function.
42148         (struct mode_change): New member mentioned.
42149         (make_node_op_equals): New arg mentioned.  All callers changed.
42150         (mode_compile): Keep track of which mode bits the user has explicitly
42151         mentioned.
42152         (mode_adjust): New arg DIR, so that we implement the X op correctly.
42153         New arg PMODE_BITS, to keep track of which mode bits the user
42154         mentioned; it treats S_ISUID and S_ISGID speciall.
42155         All callers changed.
42156         * lib/modechange.h: Likewise.
42157
42158 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42159
42160         * MODULES.html.sh: Add mkancestors.
42161         * modules/mkancesdirs: New module.
42162         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
42163         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
42164         The chdir-safer and afs files are now orphans; I'll remove them
42165         unless someone speaks up.
42166         Add lib/dirchownmod.c, lib/dirchownmod.h.
42167         (Depends-on): Remove alloca, chown, save-cwd, dirname.
42168         Add lchown, mkancesdirs.
42169         (Maintainer): Add self.
42170
42171 2006-07-15  Karl Berry  <karl@gnu.org>
42172
42173         * gnulib-tool: help message wording/arrangement.
42174
42175 2006-07-14  Simon Josefsson  <jas@extundo.com>
42176
42177         * doc/gnulib.texi (Libtool and Windows): New section.
42178
42179 2006-07-12  Simon Josefsson  <jas@extundo.com>
42180
42181         * modules/gendocs (License): Fix license, approved by Karl.
42182
42183 2006-07-12  Eric Blake  <ebb9@byu.net>
42184
42185         * MODULES.html.sh: Add gendocs.
42186
42187 2006-07-11  Eric Blake  <ebb9@byu.net>
42188
42189         * modules/fdl: New module, to install doc/fdl.texi.
42190         * MODULES.html.sh: Add new section for documentation modules.
42191         * gnulib-tool: Avoid space-tab.
42192         (--doc-base): New option, to manage files from doc.
42193
42194 2006-07-11  Eric Blake  <ebb9@byu.net>
42195
42196         * m4/absolute-header.m4: Fix comments to match recent change.
42197
42198 2006-07-11  Eric Blake  <ebb9@byu.net>
42199
42200         * gnulib-tool: List --doc-base before --tests-base.
42201
42202 2006-07-11  Derek R. Price  <derek@ximbiot.com>
42203
42204         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
42205
42206 2006-07-11  Bruno Haible  <bruno@clisp.org>
42207
42208         * README: Mention where to put documentation.
42209
42210 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42211
42212         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
42213
42214 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
42215
42216         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
42217         to stdint.m4.
42218
42219 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
42220
42221         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
42222         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
42223         "no/such/file/stdint.h" when there is no such file, so that
42224         the resulting C code can be parsed by dodgy compilers.
42225         Problems reported by Bob Proulx.
42226
42227 2006-07-10  Derek R. Price  <derek@ximbiot.com>
42228
42229         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
42230         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
42231         macros into the GNU _D_EXACT_NAMLEN.
42232         * lib/savedir.c:  Likewise.
42233         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
42234
42235 2006-07-10  Derek R. Price  <derek@ximbiot.com>
42236         and Paul Eggert  <eggert@cs.ucla.edu>
42237
42238         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
42239         * m4/savedir.m4:
42240         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
42241         macros into the GNU _D_EXACT_NAMLEN.
42242
42243 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42244
42245         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
42246         around the absolute name, to work around a problem with the HP-UX
42247         11.23 native C compiler, reported by Bob Proulx.
42248
42249 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42250
42251         * doc/maintain.texi, make-stds.texi: Sync from
42252         <http://savannah.gnu.org/projects/gnustandards>.
42253
42254 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42255
42256         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
42257
42258 2006-07-09  Jim Meyering  <jim@meyering.net>
42259
42260         * m4/glob.m4: Remove a doubled word in a comment.
42261
42262 2006-07-09  Jim Meyering  <jim@meyering.net>
42263
42264         * lib/argp-pv.c: Remove a doubled word in a comment.
42265         * lib/check-version.c (check_version): Likewise.
42266         * lib/javacomp.c (compile_java_class): Likewise.
42267
42268 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
42269
42270         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
42271         for the benefit of people using Autoconf 2.60.  If you want to
42272         support older Autoconf versions you can copy m4/onceonly_2_57.m4
42273         (or m4/onceonly.m4, if pre-2.57) manually.
42274
42275 2006-07-08  Jim Meyering  <jim@meyering.net>
42276
42277         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
42278         comment.
42279         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
42280         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
42281         comment.
42282
42283 2006-07-08  Jim Meyering  <jim@meyering.net>
42284
42285         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
42286
42287 2006-07-07  Simon Josefsson  <jas@extundo.com>
42288
42289         * tests/test-crc.c: Change expected crc value, the test vector
42290         were probably computed using the old broken crc.c?
42291
42292 2006-07-06  Simon Josefsson  <jas@extundo.com>
42293
42294         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
42295         now the canonical place for the M4 file).
42296
42297         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
42298         from the sys_socket dependency now.
42299
42300         * modules/inet_pton (Files): Ditto.
42301
42302         * modules/inet_ntop (Files): Ditto.
42303
42304 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
42305
42306         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
42307         not gl_PREREQ_GETUSERSHELL.
42308
42309 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42310
42311         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
42312         with only one argument, for Autoconf 2.60.
42313         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
42314         expand to nothing, so add a shell command to avoid syntax error.
42315         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
42316
42317 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42318
42319         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
42320
42321 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42322
42323         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
42324         no longer needed.  Check for isblank decl.
42325         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
42326         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
42327         of existence.
42328
42329 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42330
42331         * lib/getloadavg.c: Use __VMS, not VMS.
42332         * lib/getopt.c: Likewise.
42333         * lib/getpagesize.h: Likewise.
42334         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
42335         and probably does not work.
42336
42337 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42338
42339         * lib/.cppi-disable: Add wcwidth.
42340         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
42341         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
42342         (ISGRAPH): Remove.  All uses changed to isgraph.
42343         (FOLD) [!defined _LIBC]: Remove special case.
42344         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
42345         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
42346         HAVE_ISBLANK.
42347         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
42348         case.
42349
42350 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
42351
42352         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
42353         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
42354         brackets.  Other minor changes to suppress some compiler
42355         warnings.
42356
42357 2006-07-06  Derek R. Price  <derek@ximbiot.com>
42358         and Paul Eggert  <eggert@cs.ucla.edu>
42359
42360         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
42361         of invoking obsolescent AC_HEADER_DIRENT macro.
42362         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
42363         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
42364         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42365         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
42366         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
42367         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42368         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
42369         * m4/readdir.m4: Remove; no longer needed.
42370
42371 2006-07-06  Derek R. Price  <derek@ximbiot.com>
42372         and Paul Eggert  <eggert@cs.ucla.edu>
42373
42374         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
42375         Don't worry about this obsolete case any more.
42376         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
42377         directories.
42378         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
42379         worry about this obsolete case any more.
42380         * lib/fts.c: Likewise.
42381         * lib/getcwd.c: Likewise.
42382         * lib/glob.h: Likewise.
42383         * lib/savedir.c: Likewise.
42384
42385 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42386
42387         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
42388         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
42389         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
42390         needed.
42391         All uses removed.
42392         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42393         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42394         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
42395         needed.
42396         * m4/getdate.m4 (gl_GETDATE): Likewise.
42397         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42398         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42399         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42400         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42401         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42402         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42403         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
42404         needed.
42405
42406 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42407
42408         * lib/memcasecmp.c: Include <limits.h>.
42409         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
42410         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
42411         Don't assume isdigit succeeds only on '0' through '9'.
42412
42413 2006-07-05  Eric Blake  <ebb9@byu.net>
42414
42415         * modules/getaddrinfo (Depends-on): Add snprintf.
42416
42417 2006-07-05  Eric Blake  <ebb9@byu.net>
42418
42419         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
42420         to avoid 'header present but could not be compiled' on cygwin.
42421
42422 2006-07-05  Eric Blake  <ebb9@byu.net>
42423
42424         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
42425         missing from netdb.h.
42426         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
42427
42428 2006-07-05  Derek R. Price  <derek@ximbiot.com>
42429
42430         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
42431         no longer needed.
42432         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
42433         * m4/getdate.m4 (gl_GETDATE): Likewise.
42434         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42435         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42436         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42437         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42438         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42439
42440 2006-07-05  Derek R. Price  <derek@ximbiot.com>
42441
42442         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
42443         All uses of is_space replaced by isspace.
42444         * lib/exit.h: Don't talk about STDC_HEADERS.
42445         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
42446         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
42447         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
42448         replaced by isprint etc.
42449         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
42450         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42451         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
42452         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
42453         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
42454         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42455
42456 2006-07-05  Bruno Haible  <bruno@clisp.org>
42457
42458         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
42459         the function exists, before testing against AIX.
42460         Reported by Martin Lambers <marlam@marlam.de>.
42461
42462 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
42463
42464         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
42465         From Mark D. Baushke.
42466
42467 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
42468
42469         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
42470         to the absolute name, not just one, to bypass Sun C 5.8's
42471         "warning: #include of /usr/include/... may be non-portable".
42472
42473 2006-07-04  Eric Blake  <ebb9@byu.net>
42474
42475         * modules/dirname-tests: New test module.
42476         * tests/test-dirname.c: New file, replacing dirname.c
42477         TEST_DIRNAME section that was recently deleted.
42478
42479 2006-07-04  Bruno Haible  <bruno@clisp.org>
42480
42481         Assume ANSI C header files and <ctype.h> functions.
42482         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
42483         (mbsnwidth): Use isprint, iscntrl instead.
42484
42485 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42486
42487         Merge from coreutils.
42488         * MODULES.html.sh: Add xstrtold.
42489         * modules/xstrtold: New file.
42490         * modules/cycle-check (Files): Add lib/same-inode.h.
42491         * modules/dirname (Files): Add m4/double-slash-root.m4.
42492         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
42493         * modules/mkdir-p (Files): Add lib/same-inode.h.
42494         * modules/same (Files): Add lib/same-inode.h.
42495
42496 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42497
42498         * m4/absolute-header.m4: Renamed from full-header-path.m4.
42499         This is to keep the terminology clean; POSIX talks about
42500         "absolute pathnames", not "full pathnames", but the GNU
42501         Coding Standards say to use "path" for something else;
42502         so use "absolute" to keep both sides happy.
42503         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
42504         Set gl_absolute_header, not gl_full_header_path.
42505         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
42506         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
42507         All uses changed.
42508
42509         Merge from coreutils.
42510
42511         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
42512
42513         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
42514         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
42515         want to require the building of c-strtod.o.
42516         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
42517         needs -lm directly.
42518         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
42519
42520         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
42521
42522         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
42523         --as-needed option if available.  Problem reported by Albert Chin in
42524         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
42525         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
42526         cc merely issues a bunch of annoying warnings for --as-needed
42527         (this problem was reported by Bob Proulx).  Also, try linking with
42528         -lm to detect a bug in binutils 2.16 (this problem was reported
42529         by Ralf Wildenhues).
42530
42531         2006-06-18  Jim Meyering  <jim@meyering.net>
42532
42533         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
42534         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
42535         macro.
42536         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
42537         also check for glibc-2.4's abort-inducing bug.
42538
42539         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
42540         Low-probability clean-up should be to use rmdir to get rid of
42541         the just-created directory, not unlink.
42542
42543         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
42544         configure fail, and request a bug report to inform us about it.
42545         Add a comment that, barring reports to the contrary, in 2007 we'll
42546         assume ftruncate is universally available.
42547
42548         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
42549
42550         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
42551
42552         2006-03-12  Jim Meyering  <jim@meyering.net>
42553
42554         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
42555         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
42556         * m4/same.m4 (gl_SAME): Likewise.
42557         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
42558
42559         2006-03-11  Eric Blake  <ebb9@byu.net>
42560
42561         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
42562         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
42563         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
42564         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
42565
42566 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42567
42568         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
42569         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
42570         reported by Mark D. Baushke, one in
42571         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
42572
42573         Merge from coreutils.
42574
42575         * lib/.cppi-disable: Add stdint_.h.
42576         * lib/.cvsignore: Add stdint.h.
42577
42578         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
42579
42580         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
42581         both double and long double versions.
42582         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
42583         * lib/xstrtold.c: New file.
42584         * lib/xstrtod.h (xstrtold): New decl.
42585
42586         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
42587
42588         * lib/filemode.c (setst): Remove.
42589         (strmode): Rewrite to avoid setst.  This makes the code shorter,
42590         (arguably) clearer, and the generated code is a bit smaller on my
42591         Debian GNU/Linux stable x86 host.
42592
42593         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
42594
42595         * lib/filemode.c: Include "filemode.h" first, to test the interface.
42596         Assume that filemode.h includes sys/types.h and sys/stat.h.
42597         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
42598         (ftypelet): Reorder to put common cases first, for efficiency.
42599         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
42600         to do 'M'.
42601         (strmode): Renamed from mode_string, and now stores 12 bytes instead
42602         of 10, for compatibility with FreeBSD.  All callers changed.
42603         (filemodestring): Now stores 12 bytes instead of 10, and sets file
42604         types that can't be deduced solely from st_mode.  First arg is now a
42605         const pointer.
42606         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
42607         (strmode): Renamed from mode_string.
42608         (filemodestring): New decl.
42609         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
42610         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
42611         needed.
42612         (S_ISPORT, S_ISWHT): New macros, if not already defined.
42613
42614         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
42615
42616         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
42617         fsusage.h now does that.  Include fsusage.h first, to test interface.
42618         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
42619         at most one method (the old code could have generated decls that
42620         didn't conform to C89, not that this was ever exercised).
42621         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
42622
42623         2006-03-19  Jim Meyering  <jim@meyering.net>
42624
42625         Work even in a chroot where d_ino values for entries in "/"
42626         don't match the stat.st_ino values for the same names.
42627         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
42628         number, iterate through all entries again, using lstat instead.
42629         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
42630         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
42631
42632         * lib/getcwd.c (__getcwd): Clarify a comment.
42633         Use memcpy in place of a call to strcpy.
42634
42635         2006-03-12  Jim Meyering  <jim@meyering.net>
42636
42637         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
42638         matches that of the current directory (which we're about to chdir ".."
42639         out of), then save the dev-ino of the parent, instead.
42640
42641         * lib/same-inode.h (SAME_INODE): New file/macro.
42642         * lib/chdir-safer.c (SAME_INODE): Remove definition.
42643         Include "same-inode.h", instead.
42644         * lib/same.c: Likewise.
42645         * lib/cycle-check.h: Include "same-inode.h".
42646         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
42647         * lib/cycle-check.c (SAME_INODE): Remove definition.
42648         * lib/root-dev-ino.h: Include "same-inode.h".
42649
42650         2006-03-11  Eric Blake  <ebb9@byu.net>
42651
42652         * lib/same.c (same_name): s/base_name/last_component/
42653         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
42654         * lib/filenamecat.c (file_name_concat): Likewise.
42655
42656         2006-03-11  Eric Blake  <ebb9@byu.net>,
42657                     Paul Eggert  <eggert@cs.ucla.edu>
42658
42659         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
42660         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
42661         drive prefix.
42662         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
42663         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
42664         (last_component): New method.
42665         * lib/dirname.c (dir_len): Determine when drive letters need a
42666         subsequent slash.  Preserve // when it is special.
42667         (dir_name): Don't append dot when drive letter is absolute.
42668         [TEST_DIRNAME]: Move into a full-blown gnulib test.
42669         * lib/basename.c (base_name): New semantics - malloc the result.
42670         Preserve // when it is special.  Preserve relative files that look
42671         like drive letters.
42672         (base_len): Preserve // when it is special.
42673         (last_component): New method, similar to old base_name semantics.
42674         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
42675         base_name.  Strip redundant slashes from ///.
42676
42677 2006-07-03  Jim Meyering  <jim@meyering.net>
42678
42679         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
42680         macro is used before the first cycle_check call.
42681
42682 2006-07-03  Eric Blake  <ebb9@byu.net>
42683
42684         * modules/dirname (Depends-on): Add xstrndup.
42685
42686 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42687
42688         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
42689         test cases, so that config.log is a bit easier to follow.
42690
42691 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42692
42693         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
42694         both are 64 bits, since this seems to be the tradition, and this
42695         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
42696         we ever run into a host that prefers long long to long in this
42697         case, we'll need another configure-time test.  Problem reported by
42698         Jim Meyering.
42699
42700 2006-07-02  Eric Blake  <ebb9@byu.net>
42701
42702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
42703
42704 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42705
42706         * modules/inttypes (Depends-on): No longer depends on stdint.
42707         * modules/stdint (Description): Say more about assumptions.
42708         Say that the fast types might differ.  Say macros are used.
42709         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
42710         (Makefile.am): Revise list of substituted symbols to match
42711         new stdint.m4.
42712         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
42713         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
42714         * tests/test-stdint.c (verify_same_types)
42715         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
42716         the code conforms to C99/C89.
42717         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
42718         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
42719
42720 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42721
42722         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
42723         but fix a bug, by requiring at least 64 bits.
42724         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42725         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
42726         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
42727         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
42728
42729         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
42730         changes.  Make 2.59 a prerequisite.  Check and substitute for
42731         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
42732         inttypes.h.  Do not use special include files; just use the
42733         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
42734         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
42735         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
42736         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
42737         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
42738         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
42739         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
42740         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
42741         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
42742         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
42743         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
42744         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
42745         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
42746         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
42747         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
42748         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
42749         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
42750         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
42751         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
42752         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
42753         WINT_MAX.  Check for C99 conformance more strictly, by detecting
42754         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
42755         not check for things that C99 does not require, e.g., int8_t.  If
42756         a test isn't needed unless <stdint.h> isn't working, and is
42757         unlikely to be needed for any other reason, then don't do it
42758         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
42759         size_t, since we assume C89 freestanding at least.  Do not check
42760         for sig_atomic_t, wchar_t, or wint_t, since the code now does
42761         the right thing even if the types are not defined.  Instead use:
42762         (gl_STDINT_TYPE_PROPERTIES): New macro.
42763         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
42764         testing whether <sys/types.h> clashes, as Autoconf does this for
42765         us now.  All uses removed.
42766         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
42767         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
42768         (gl_CHECK_TYPE_SAME):
42769         Remove; no longer needed.
42770         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
42771         exists, since we'll return 0 anyway in that case.
42772         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
42773
42774 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42775
42776         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
42777         possible collision with system files.
42778         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
42779         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
42780         WCHAR_MIN and WCHAR_MAX in this case.
42781         (<stddef.h>): Do not include; no longer needed.
42782         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
42783         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
42784         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
42785         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
42786         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
42787         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
42788         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
42789         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
42790         !defined(__c99))]: Include in this case too, since it's harmless
42791         now.
42792         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
42793         dangerous to do so.
42794         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
42795         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
42796         (_STDINT_MIN, _STDINT_MAX): New macros.
42797         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
42798         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
42799         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
42800         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
42801         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
42802         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
42803         macros, not typedefs; this simplifies things quite a bit.
42804         Use long int for all types narrower than int64_t.
42805         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
42806         Define in terms of long long int or int64_t or long int,
42807         not int64_t or int32_t.  This saves some compile-time testing.
42808         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
42809         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
42810         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
42811         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
42812         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
42813         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
42814         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
42815         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
42816         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
42817         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
42818         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42819         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42820         undef any previous version and define our own version, for
42821         simplicity and consistency with the new macros for types.
42822         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42823         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42824         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
42825         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
42826         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
42827         @WINT_T_SUFFIX@ to keep things simple here.
42828         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
42829         Simplify by assuming typical 8/16/32/64 host, since we're
42830         already doing that elsewhere anyway.
42831         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
42832         and assume long long int is 64 bits if available.  This
42833         speeds up 'configure'.
42834
42835 2006-07-01  Eric Blake  <ebb9@byu.net>
42836
42837         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
42838         Reported by Andreas Buening.
42839
42840 2006-07-01  Eric Blake  <ebb9@byu.net>
42841
42842         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
42843
42844 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
42845
42846         * lib/getaddrinfo.c: fixed typo
42847
42848 2006-06-29  Jim Meyering  <jim@meyering.net>
42849
42850         * modules/strftime (Maintainer): Add my name, since with the
42851         FPRINTFTIME changes strftime.c has forked from glibc.
42852
42853 2006-06-29  Eric Blake  <ebb9@byu.net>
42854
42855         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
42856
42857 2006-06-29  Eric Blake  <ebb9@byu.net>
42858
42859         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
42860
42861 2006-06-29  Eric Blake  <ebb9@byu.net>
42862
42863         * lib/stat_.h: New file.
42864
42865 2006-06-29  Eric Blake  <ebb9@byu.net>
42866
42867         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
42868         unused static function.
42869
42870 2006-06-29  Eric Blake  <ebb9@byu.net>
42871
42872         * doc/functions.texi (Function Portability): Document missing lstat
42873         on mingw.
42874
42875 2006-06-29  Eric Blake  <ebb9@byu.net>
42876
42877         * MODULES.html.sh: Add sys_stat.
42878         * modules/sys_stat: New module.
42879         * modules/mkstemp (Depends-on): Add sys_stat.
42880
42881 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42882
42883         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
42884
42885 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42886
42887         * m4/c-bs-a.m4: Removed.
42888
42889 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42890
42891         * lib/strftime.c: Assume strftime() exists.
42892
42893 2006-06-29  Derek Price  <derek@ximbiot.com>
42894
42895         * modules/c-bs-a: Removed - \a is C89.
42896         * MODULES.html.sh: Remove c-bs-a.
42897
42898 2006-06-29  Bruno Haible  <bruno@clisp.org>
42899
42900         * modules/wcwidth (License): Change to LGPL.
42901
42902 2006-06-28  Simon Josefsson  <jas@extundo.com>
42903
42904         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
42905         on _WIN32.
42906
42907         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
42908         getnameinfo.
42909
42910 2006-06-28  Simon Josefsson  <jas@extundo.com>
42911
42912         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
42913
42914 2006-06-28  Simon Josefsson  <jas@extundo.com>
42915
42916         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
42917         functions there.  It will succeed on Windows XP, but on Windows
42918         2000 and (presumably) earlier, it will fail, and use the internal
42919         re-implementation.
42920         (use_win32_p): New function.
42921         (getaddrinfo): Use strtoul on servname, to support numeric ports.
42922         Support AI_NUMERICSERV to disable getservbyname.
42923         (getnameinfo): New function, only supports
42924         NI_NUMERICHOST|NI_NUMERICSERV for now.
42925
42926         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
42927         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
42928         getnameinfo.
42929
42930 2006-06-28  Eric Blake  <ebb9@byu.net>
42931
42932         * modules/wcwidth: New file.
42933         * modules/mbchar (Depends-on): Add wcwidth.
42934         * modules/mbswidth (Depends-on): Add wcwidth.
42935         * MODULES.html.sh: Add wcwidth.
42936
42937 2006-06-28  Eric Blake  <ebb9@byu.net>
42938
42939         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
42940         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
42941
42942 2006-06-28  Eric Blake  <ebb9@byu.net>
42943
42944         * lib/xvasprintf.h: Fix comments.
42945
42946 2006-06-28  Eric Blake  <ebb9@byu.net>
42947
42948         * lib/mbchar.h (wcwidth): Include wcwidth.h.
42949         * lib/mbswidth.c (wcwidth): Move from here...
42950         * lib/wcwidth.h: ...to this new file.
42951
42952 2006-06-28  Derek R. Price  <derek@ximbiot.com>
42953
42954         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
42955
42956         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
42957         it's obsolete.
42958         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
42959
42960 2006-06-28  Derek R. Price  <derek@ximbiot.com>
42961
42962         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
42963         Autoconf 2.60 says this stuff was obsolete.
42964
42965 2006-06-28  Bruno Haible  <bruno@clisp.org>
42966
42967         * modules/wcwidth (Files): Add m4/wchar_t.m4.
42968
42969 2006-06-28  Bruno Haible  <bruno@clisp.org>
42970
42971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
42972         gt_TYPE_WCHAR_T.
42973
42974 2006-06-28  Bruno Haible  <bruno@clisp.org>
42975
42976         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
42977         declaration for wcwidth.
42978         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
42979
42980 2006-06-28  Bruno Haible  <bruno@clisp.org>
42981
42982         * lib/mkdtemp.c [MINGW]: Include <io.h>.
42983         (mkdir): Define using _mkdir.
42984
42985 2006-06-28  Bruno Haible  <bruno@clisp.org>
42986
42987         * lib/getaddrinfo.h: Fix POSIX URL.
42988         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
42989         _WIN32.
42990         (use_win32_p): Make static.
42991         (getaddrinfo): Reject service name if it is empty or does not consist
42992         solely of decimal digits, or if its value is > 65535.
42993         (getnameinfo): Remove useless casts.
42994
42995 2006-06-27  Simon Josefsson  <jas@extundo.com>
42996
42997         * modules/sys_select: New file, suggested by Bruno Haible, Paul
42998         Eggert and Martin Lambers.
42999
43000 2006-06-27  Simon Josefsson  <jas@extundo.com>
43001
43002         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
43003         Eggert and Martin Lambers.
43004
43005 2006-06-27  Bruno Haible  <bruno@clisp.org>
43006
43007         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
43008         result to 0, not to empty.
43009         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
43010
43011 2006-06-27  Bruno Haible  <bruno@clisp.org>
43012
43013         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
43014
43015 2006-06-26  Simon Josefsson  <jas@extundo.com>
43016
43017         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
43018         present.
43019
43020 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
43021
43022         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
43023         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
43024         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
43025
43026 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
43027
43028         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
43029
43030 2006-06-26  Bruno Haible  <bruno@clisp.org>
43031
43032         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
43033
43034 2006-06-26  Bruno Haible  <bruno@clisp.org>
43035
43036         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
43037
43038 2006-06-26  Bruno Haible  <bruno@clisp.org>
43039
43040         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
43041         SGI C compiler in pre-C99 mode.
43042         Suggested by Mark D. Baushke and Larry Jones.
43043
43044 2006-06-26  Bruno Haible  <bruno@clisp.org>
43045
43046         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
43047         WCHAR_MAX.
43048         Reported by Mark D. Baushke and Larry Jones.
43049
43050 2006-06-26  Bruno Haible  <bruno@clisp.org>
43051
43052         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
43053         in pre-C99 mode.
43054         Suggested by Mark D. Baushke and Larry Jones.
43055
43056 2006-06-23  Simon Josefsson  <jas@extundo.com>
43057             Bruno Haible  <bruno@clisp.org>
43058
43059         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
43060         Emit mostlyclean-local rule.
43061         (func_emit_tests_Makefile_am): Likewise.
43062         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
43063
43064 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
43065
43066         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
43067
43068 2006-06-23  Bruno Haible  <bruno@clisp.org>
43069
43070         * tests/test-stdint.c: Update to match ISO C 99 Technical
43071         Corrigendum 1.
43072
43073 2006-06-23  Bruno Haible  <bruno@clisp.org>
43074
43075         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
43076
43077 2006-06-23  Bruno Haible  <bruno@clisp.org>
43078
43079         * lib/stdint_.h: Treat IRIX like OpenBSD.
43080
43081 2006-06-23  Bruno Haible  <bruno@clisp.org>
43082
43083         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
43084         ISO C 99 Technical Corrigendum 1.
43085
43086 2006-06-22  Simon Josefsson  <jas@extundo.com>
43087
43088         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
43089         MinGW.
43090
43091 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43092
43093         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
43094         needed.  Some compiler complained about some of them.  Problem reported
43095         by Larry Jones in
43096         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
43097
43098 2006-06-21  Simon Josefsson  <jas@extundo.com>
43099
43100         * tests/test-getaddrinfo.c: New file.
43101
43102         * modules/getaddrinfo-tests: New file.
43103
43104         * MODULES.html.sh: Add inet_pton.
43105
43106         * modules/inet_pton: New file.
43107
43108 2006-06-21  Simon Josefsson  <jas@extundo.com>
43109
43110         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
43111         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
43112         of using the (limited) gnulib implementation on Windows XP.
43113
43114         * m4/inet_pton.m4: New file.
43115
43116 2006-06-21  Simon Josefsson  <jas@extundo.com>
43117
43118         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
43119         variable.
43120
43121         * lib/socket_.h: Don't define WINVER.
43122
43123         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
43124         slightly modified to work in gnulib.
43125
43126 2006-06-21  Simon Josefsson  <jas@extundo.com>
43127
43128         * doc/gnulib.texi (Windows sockets): Add.
43129
43130 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
43131
43132         * lib/read-file.c (fread_file): Start with buffer allocation of
43133         0 bytes rather than 1 byte; this simplifies the code.
43134         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
43135         code to free buffer and save/restore errno.
43136         (internal_read_file): Remove unused local.
43137
43138 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43139
43140         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
43141         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
43142         Problem reported by Denis Excoffier in
43143         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
43144
43145 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43146
43147         * modules/sys_socket, modules/socklen: Include sys/types since
43148         FreeBSD 4.x's sys/socket.h needs it.
43149
43150 2006-06-19  Simon Josefsson  <jas@extundo.com>
43151
43152         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
43153
43154 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
43155
43156         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
43157
43158 2006-06-19  Bruno Haible  <bruno@clisp.org>
43159
43160         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
43161         and FULL_PATH_INTTYPES_H in angle brackets.
43162         Reported by Mark D. Baushke <mdb@gnu.org>.
43163
43164 2006-06-17  Eric Blake  <ebb9@byu.net>
43165
43166         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
43167         errno.
43168
43169 2006-06-17  Bruno Haible  <bruno@clisp.org>
43170
43171         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
43172         <sys/inttypes.h>.
43173
43174 2006-06-17  Bruno Haible  <bruno@clisp.org>
43175
43176         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
43177         whether errno is declared. Assume <errno.h> declares errno.
43178
43179 2006-06-17  Bruno Haible  <bruno@clisp.org>
43180
43181         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
43182
43183 2006-06-17  Bruno Haible  <bruno@clisp.org>
43184
43185         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
43186         problem on Solaris 2.5.1.
43187
43188 2006-06-16  Eric Blake  <ebb9@byu.net>
43189
43190         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
43191         * lib/unicodeio.c [!defined errno]: Likewise.
43192         * lib/strtol.c [!defined errno]: Likewise.
43193         * lib/strtod.c [!defined errno]: Likewise.
43194
43195 2006-06-15  Eric Blake  <ebb9@byu.net>
43196
43197         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
43198
43199 2006-06-15  Eric Blake  <ebb9@byu.net>
43200
43201         * config/srclist.txt (ssize_t.m4): Lose sync.
43202
43203 2006-06-15  Bruno Haible  <bruno@clisp.org>
43204
43205         * modules/stdint (Files): Include m4/full-header-path.m4,
43206         m4/size_max.m4, m4/wchar_t.m4.
43207         (Makefile.am): Many more substitutions.
43208         * modules/stdint-tests: New file.
43209         * tests/test-stdint.c: New file.
43210
43211 2006-06-15  Bruno Haible  <bruno@clisp.org>
43212
43213         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
43214         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
43215         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
43216         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
43217         gl_CHECK_TYPE_SAME): New macros.
43218
43219 2006-06-15  Bruno Haible  <bruno@clisp.org>
43220
43221         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
43222
43223 2006-06-15  Bruno Haible  <bruno@clisp.org>
43224
43225         * lib/stdint_.h: Rewritten to be fully auto-configured.
43226         Fixes bug on HP-UX/IA64.
43227
43228 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
43229
43230         * lib/getdate.y (__attribute__): Don't define if already defined.
43231         Problem reported by Larry Jones.
43232         * lib/utimens.c (__attribute__): Likewise.
43233
43234 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
43235
43236         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
43237         reported by Andreas Schwab.
43238
43239 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43240             Bruno Haible  <bruno@clisp.org>
43241
43242         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
43243         check for the declaration of strnlen and a run test that exposes the
43244         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
43245         rpl_strndup.
43246
43247 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43248             Bruno Haible  <bruno@clisp.org>
43249
43250         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
43251
43252 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43253
43254         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
43255         compile test, for Tru64 4.0D.
43256
43257 2006-05-28  Karl Berry  <karl@gnu.org>
43258
43259         * config/srclist.txt (printf-args.c): lose sync.
43260
43261 2006-05-26  Martin Lambers  <marlam@marlam.de>
43262
43263         * lib/getpass.c: Updates the test for the native W32 API, and adds
43264         missing includes, thus fixing compilation warnings.
43265
43266 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43267
43268         * lib/exclude.c (exclude_fnmatch): New function.
43269         (excluded_file_name): Call exclude_fnmatch.
43270         * lib/exclude.h (excluded_file_name): New prototype
43271
43272 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
43273
43274         * lib/tempname.c (small_open, large_open): New macros.
43275         (__open, __open64) [!_LIBC]: Remove.
43276         (__gen_tempname): Use small_open and large_open instead of __open
43277         and __open64.  This fixes a portability bug on HP-UX 11.11i
43278         reported by Simon Wing-Tang in
43279         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
43280
43281 2006-05-24  Bruno Haible  <bruno@clisp.org>
43282
43283         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
43284         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
43285         Reported by Thorsten Maerz <torte@netztorte.de> via
43286         Aaron Stone <aaron@serendipity.cx>.
43287
43288 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43289
43290         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
43291         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
43292         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
43293         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
43294         not really conditional on the cache.
43295         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
43296
43297 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43298
43299         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
43300         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
43301         (my_usleep): Don't mishandle maximum value.
43302
43303 2006-05-19  Jim Meyering  <jim@meyering.net>
43304
43305         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
43306
43307 2006-05-17  Bruno Haible  <bruno@clisp.org>
43308
43309         Cygwin portability.
43310         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
43311
43312 2006-05-17  Bruno Haible  <bruno@clisp.org>
43313
43314         * lib/stdint_.h: Fix recognition of Cygwin.
43315
43316 2006-05-15  Bruno Haible  <bruno@clisp.org>
43317
43318         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
43319         on libtool patch by Ralf Wildenhues.
43320
43321 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43322
43323         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
43324         test for C99 conformance; (bool) 0.5 is an integer constant
43325         expression, but (bool) -0.5 is not.  Problem reported by Fedor
43326         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
43327
43328 2006-05-11  Simon Josefsson  <jas@extundo.com>
43329
43330         * m4/xvasprintf.m4: Fix obvious typo.
43331
43332 2006-05-11  Jim Meyering  <jim@meyering.net>
43333
43334         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
43335         James Lemley.
43336
43337 2006-05-10  Simon Josefsson  <jas@extundo.com>
43338
43339         * lib/md4.c: Typo fix, update copyright years.
43340         (K1, K2): Don't use L because it turn computations into 64-bit on
43341         64-bit platforms.
43342
43343 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
43344
43345         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
43346         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
43347         unwanted sign propagation, e.g., on hosts with 64-bit int.
43348         There still are some problems with reeelly weird theoretical hosts
43349         (e.g., 33-bit int) but it's not worth worrying about now.
43350         * lib/sha1.c (rol): Likewise.
43351         (K1, K2, K3, K4): Remove unnecessary L suffix.
43352
43353 2006-05-10  Bruno Haible  <bruno@clisp.org>
43354
43355         * lib/des.c: Cast to avoid warnings.
43356
43357 2006-05-09  Bruno Haible  <bruno@clisp.org>
43358
43359         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
43360         (Depends-on): Depend also on xsize, stdarg.
43361         (configure.ac): Add gl_XVASPRINTF.
43362
43363 2006-05-09  Bruno Haible  <bruno@clisp.org>
43364
43365         * m4/xvasprintf.m4: New file.
43366
43367 2006-05-09  Bruno Haible  <bruno@clisp.org>
43368
43369         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
43370         (EOVERFLOW): Define fallback value.
43371         (xstrcat): New function.
43372         (xvasprintf): Recognize the special case of a string concatenation.
43373
43374 2006-05-08  Eric Blake  <ebb9@byu.net>
43375
43376         * gnulib-tool (func_version): Base copyright year on CVS date.
43377         (func_emit_copyright_notice): New function.
43378         (func_emit_lib_Makefile_am): Use it.
43379         (func_emit_tests_Makefile_am): Likewise.
43380         (func_import): Likewise.
43381
43382 2006-05-08  Bruno Haible  <bruno@clisp.org>
43383
43384         * modules/stdarg: New file.
43385         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
43386
43387 2006-05-08  Bruno Haible  <bruno@clisp.org>
43388
43389         * m4/stdarg.m4: New file, from GNU gettext.
43390
43391 2006-05-08  Bruno Haible  <bruno@clisp.org>
43392
43393         * config/srclist.txt (build-aux/config.rpath): different from latest
43394         release.
43395
43396 2006-05-08  Bruno Haible  <bruno@clisp.org>
43397
43398         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
43399
43400 2006-05-05  Jim Meyering  <jim@meyering.net>
43401
43402         * m4/warning.m4: New file, derived from bison's file by the same name.
43403
43404 2006-05-03  Bruno Haible  <bruno@clisp.org>
43405
43406         * lib/stdint_.h: Shorter URL.
43407         * lib/inttypes.h: Likewise.
43408
43409 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43410
43411         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
43412
43413 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43414
43415         * lib/verify.h: Document the internals better.  Most of this change
43416         was written by Bruno Haible.
43417
43418 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43419
43420         * doc/verify.texi: New file, partly based on a proposal by
43421         Bruno Haible.
43422
43423 2006-05-02  Bruno Haible  <bruno@clisp.org>
43424
43425         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
43426         test from here...
43427         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
43428
43429 2006-04-29  Bruno Haible  <bruno@clisp.org>
43430
43431         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
43432         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
43433
43434 2006-04-29  Bruno Haible  <bruno@clisp.org>
43435
43436         * gnulib-tool: Make --update option actually work.
43437
43438 2006-04-29  Bruno Haible  <bruno@clisp.org>
43439
43440         * doc/gcd.texi: New file.
43441         * doc/gnulib.texi: Include it.
43442
43443 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
43444
43445         * lib/getdate.y (get_date): When adding relative date, start with the
43446         initial time, not with the result of the first mktime call.
43447
43448 2006-04-25  Bruno Haible  <bruno@clisp.org>
43449
43450         * gnulib-tool (func_import): Output the include directives in three
43451         blocks, sorted separately.
43452         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43453
43454 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
43455
43456         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
43457         to define main with arguments, for C++.  Reported by Eric Blake.
43458         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
43459         Prefer 'int main ()' to 'int main (void)', for C++.
43460         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43461         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
43462         for 'main', for C99 and C++.
43463
43464 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
43465
43466         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
43467         Don't assume that exit status -1 is valid.
43468         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43469         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43470         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43471         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
43472         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
43473         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
43474         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
43475         functions can be used without declaring them, or that you can
43476         exit with status -1.
43477         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43478
43479 2006-04-24  Karl Berry  <karl@gnu.org>
43480
43481         * config/srclist.txt (longdouble.m4): sync lost.
43482
43483 2006-04-24  Eric Blake  <ebb9@byu.net>
43484
43485         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
43486
43487 2006-04-24  Bruno Haible  <bruno@clisp.org>
43488
43489         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
43490         poll() implementation in AIX.
43491         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43492
43493 2006-04-24  Bruno Haible  <bruno@clisp.org>
43494
43495         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
43496         assigned exactly once.
43497
43498 2006-04-23  Claudio Fontana  <claudio@gnu.org>
43499             Bruno Haible  <bruno@clisp.org>
43500
43501         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
43502         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
43503         for AM_CPPFLAGS.
43504
43505 2006-04-23  Bruno Haible  <bruno@clisp.org>
43506
43507         * modules/copy-file: Depend on unistd.
43508         * modules/execute: Likewise.
43509         * modules/fatal-signal: Likewise.
43510         * modules/findprog: Likewise.
43511         * modules/mkdtemp : Likewise.
43512         * modules/pipe: Likewise.
43513         * modules/wait-process: Likewise.
43514
43515 2006-04-23  Bruno Haible  <bruno@clisp.org>
43516
43517         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
43518         condition was already detected.
43519         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43520
43521 2006-04-23  Bruno Haible  <bruno@clisp.org>
43522
43523         * lib/copy-file.c: Include <unistd.h> unconditionally.
43524         * lib/execute.c: Likewise.
43525         * lib/fatal-signal.c: Likewise.
43526         * lib/findprog.c: Likewise.
43527         * lib/mkdtemp.c: Likewise.
43528         * lib/pipe.h: Likewise.
43529         * lib/pipe.c: Likewise.
43530         * lib/wait-process.h: Likewise.
43531
43532 2006-04-23  Bruno Haible  <bruno@clisp.org>
43533
43534         * gnulib-tool (func_usage): Fix --import description. Document
43535         --update.
43536         (func_import): Create temporary file in a temporary directory, if
43537         --dry-run is specified. Silence errors from 'grep' when there are no
43538         m4 files in $m4dir.
43539         (func_create_testdir): Silence errors from 'grep' when there are no
43540         m4 files in $m4dir.
43541         Reported by Karl Berry <karl@freefriends.org>.
43542
43543 2006-04-20  Bruno Haible  <bruno@clisp.org>
43544
43545         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
43546         one argument, so that the code will be portable to Autoconf 2.60.
43547         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
43548         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43549         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
43550
43551 2006-04-19  Derek Price  <derek@ximbiot.com>
43552             Eric Blake  <ebb9@byu.net>
43553
43554         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
43555         rather than "/full/path.h".  Update comment to match.  Shorten &
43556         generalize m4_translit call via AS_TR_CPP.
43557
43558 2006-04-19  Derek Price  <derek@ximbiot.com>
43559             Eric Blake  <ebb9@byu.net>
43560
43561         * lib/inttypes.h: Correct grammar in comment.
43562
43563 2006-04-18  Derek Price  <derek@ximbiot.com>
43564             Paul Eggert  <eggert@cs.ucla.edu>
43565
43566         * modules/inttypes: New file.
43567         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
43568
43569 2006-04-18  Derek Price  <derek@ximbiot.com>
43570             Paul Eggert  <eggert@cs.ucla.edu>
43571
43572         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
43573         New files.
43574
43575 2006-04-18  Derek Price  <derek@ximbiot.com>
43576             Paul Eggert  <eggert@cs.ucla.edu>
43577
43578         * lib/inttypes.h: New file.
43579         * lib/strtoimax.c: Assume <inttypes.h>.
43580
43581 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
43582
43583         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
43584         isn't mounted.  Problem reported by Kir Kolyshkin.
43585
43586 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43587
43588         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
43589         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
43590         Derek R. Price.
43591         * lib/regex.h (RE_DUP_MAX): Update comment to match current
43592         implementation.
43593
43594 2006-04-12  Eric Blake  <ebb9@byu.net>
43595
43596         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
43597         is now done automatically by the corresponding Autoconf macro.
43598
43599 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
43600
43601         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
43602         time_r.h.
43603
43604 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43605
43606         Merge regex changes from libc, removing some of our
43607         POSIX-conformance changes that were rejected and redoing them in a
43608         less-intrusive way.
43609
43610         * lib/regcomp.c (re_compile_internal, init_dfa):
43611         Length arg is now size_t, not Idx.  All uses changed.
43612         (peek_token): Forward decl now says internal_function.
43613         (__re_error_msgid, __re_error_msgid_idx):
43614         Now static rather than extern with attribute_hidden.
43615         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
43616         For some reason libc prefers K&R style defns for external functions.
43617         (regerror) [!defined _LIBC]: Likewise.
43618         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
43619         (seek_collating_symbol_entry, lookup_collation_sequence_value):
43620         (build_range_exp, build_collating_symbol):
43621         Use K&R-style defn.
43622         (re_compile_fastmap): Use '\0' to memset, not 0.
43623         (utf8_sb_map): Make the calculations more obvious.
43624         (init_dfa, parse_bracket_exp, build_charclass_op):
43625         Call calloc and cast result, as glibc does.
43626         (init_word_char, fetch_token, peek_token, peek_token_bracket):
43627         (build_range_exp, build_collating_symbol):
43628         Now internal functions.
43629
43630         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
43631
43632         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
43633         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
43634         Don't depend on VMS; depend on __VMS instead, for POSIX
43635         namespace cleanness.
43636         (regoff_t): Define to ssize_t, not long int.
43637
43638         Remove the REG_ macros named below.  Instead, make the old names
43639         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
43640         __USE_GNU_REGEX.
43641         (REG_BACKSLASH_ESCAPE_IN_LISTS):
43642         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
43643         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
43644         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
43645         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
43646         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
43647         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
43648         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
43649         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
43650         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
43651         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
43652         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
43653         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
43654         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
43655         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
43656         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
43657         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
43658         (REG_NREGS):
43659         Remove.  All uses replaced by the old RE_* names.
43660         (RE_BACKSLASH_ESCAPE_IN_LISTS):
43661         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
43662         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
43663         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
43664         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
43665         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
43666         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
43667         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
43668         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
43669         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
43670         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
43671         Don't bother having these macros be independent of each others'
43672         values, since they no longer exist in the POSIX name space.
43673
43674         Rename the following member names back to their old names,
43675         unless !__USE_GNU_REGEX.  All uses changed back.
43676         (buffer): Renamed from re_buffer.
43677         (allocated): Renamed from re_allocated.
43678         (used): Renamed from re_used.
43679         (syntax): Renamed from re_syntax.
43680         (fastmap): Renamed from re_fastmap.
43681         (translate): Renamed from re_translate.
43682         (can_be_null): Renamed from re_can_be_null.
43683         (regs_allocated): Renamed from re_regs_allocated.
43684         (fastmap_accurate): Renamed from re_fastmap_accurate.
43685         (no_sub): Renamed from re_no_sub.
43686         (not_bol): Renamed from re_not_bol.
43687         (not_eol): Renamed from re_not_eol.
43688         (newline_anchor): Renamed from re_newline_anchor.
43689         (num_regs): Renamed from rm_num_regs.
43690         (start): Renamed from rm_start.
43691         (end): Renamed from rm_end.
43692
43693         (free_state): Move up a bit.
43694
43695         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
43696         #define to be empty.
43697         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
43698         when that is what is intended.
43699         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
43700         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
43701         (MAX): New macro.
43702         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
43703         All uses changed back to re_malloc, etc.  It's now the caller's
43704         responsibility to check for overflow; all callers changed.
43705         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
43706         (re_x2nrealloc): Remove.
43707         (free_state): Remove decl.
43708
43709         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
43710         (re_set_registers, re_exec):
43711         Use K&R-style defn.
43712
43713         2006-01-31  Roland McGrath  <roland@redhat.com>
43714
43715         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
43716         Reported by Mike Frysinger <vapier@gentoo.org>.
43717
43718         2006-01-15  Andreas Jaeger  <aj@suse.de>
43719
43720         [BZ #1950]
43721         * lib/regex_internal.c (re_string_reconstruct): Adjust for
43722         build_wcs_upper_buffer change.
43723         (build_wcs_upper_buffer): Change return type.
43724
43725         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
43726
43727         * lib/regex_internal.h: Include <stdint.h> if available.
43728
43729         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
43730
43731         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
43732
43733         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
43734
43735         * lib/regcomp.c: Adjust for changed secondary hash function.
43736
43737         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
43738
43739         * lib/regex.h: Pretty printing.
43740         Clean up namespace a bit.
43741
43742         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
43743
43744         * lib/regexec.c (update_cur_sifted_state, check_arrival,
43745         check_arrival_add_next_nodes): Avoid using uninitialized variable.
43746
43747         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43748                     Ulrich Drepper  <drepper@redhat.com>
43749
43750         [BZ #1302]
43751         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
43752         changed.
43753         (bitset_word_t): Renamed from bitset_word.  All uses changed.
43754
43755         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
43756
43757         [BZ #281]
43758         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
43759         * lib/regcomp.c: Remove unnecessary uses of
43760         unsigned RE_TRANSLATE_TYPE.
43761         * lib/regex_internal.h: Likewise.
43762         * lib/regex_internal.c: Likewise.
43763         * lib/regexec.c: Likewise.
43764         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
43765
43766         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
43767
43768         * lib/regexec.c (find_recover_state): Remove unnecessary
43769         initialization.
43770         (transit_state_bkref): Make DFA a const pointer.
43771         (get_subexp): Likewise.
43772         (check_arrival): Likewise.
43773         (update_cur_sifted_state): Likewise.
43774         (re_search_internal): Likewise.
43775         (prune_impossible_nodes): Likewise.
43776         (acquire_init_state_context): Likewise.
43777         (proceed_next_node): Likewise.
43778         (set_regs): Likewise.
43779         (free_fail_stack_return): Likewise.
43780         (check_arrival_expand_ecl): Mark DFA parameter as const.
43781         (check_arrival_expand_ecl_sub): Likewise.
43782         (check_subexp_limits): Likewise.
43783         (sub_epsilon_src_nodes):  Likewise.
43784         (add_epsilon_src_nodes):  Likewise.
43785         (merge_state_array): Likewise.
43786         (update_regs): Likewise.
43787         (build_trtable): Likewise.
43788         (sift_states_backward): Mark MCTX parameter as const.
43789         (build_sifted_states): Likewise.
43790         (update_cur_sifted_state): Likewise.
43791         (sift_states_mkref): Likewise.
43792         (check_arrival_expand_ecl): Mark eclosure as const.
43793         (check_dst_limits_calc_pos_1): Likewise.
43794         * lib/regex_internal.h (re_match_context_t): Make dfa a const
43795         pointer.
43796
43797         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
43798
43799         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
43800         (transit_state_sb): Likewise.
43801         (transit_state_mb): Likewise.
43802         (sift_states_iter_mb): Likewise.
43803         (check_arrival_add_next_nodes): Likewise.
43804         (check_node_accept_bytes): Change first parameter to pointer-to-const.
43805         [_LIBC] (re_search_2_stub): Use mempcpy.
43806
43807         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
43808         mbrtowc for very simple UTF-8 case.
43809
43810         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
43811         a pointer-to-const.
43812         (re_acquire_state_context): Likewise.
43813         * lib/regex_internal.h: Adjust prototypes.
43814
43815         * lib/regex.c: Prevent using C++ compilers.
43816
43817         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
43818         (re_acquire_state_context): Likewise.
43819
43820 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43821
43822         * modules/regex (Depends-on): Add ssize_t.
43823
43824 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43825
43826         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
43827         translation table.
43828
43829 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43830
43831         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
43832
43833 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
43834             Bruno Haible  <bruno@clisp.org>
43835
43836         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
43837         <sys/types.h> and <inttypes.h>.
43838
43839 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43840
43841         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
43842         `__error_t_defined', so argp.h will not typedef the former.
43843
43844 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
43845
43846         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
43847         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
43848         glibc names.  Even if glibc is changed to conform to POSIX, the
43849         traditional names will be available anyway, since regex depends on
43850         the extensions module.  Also, fix a longstanding typo in the
43851         implementation of Spencer ERE test #75 from grep 2.3.  Problems
43852         reported by Emanuele Giaquinta.  Also, change sense of cached
43853         variable, so that the message makes sense.
43854
43855 2006-03-24  Simon Josefsson  <jas@extundo.com>
43856
43857         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
43858         including some doc fixes.
43859         (base64_encode_alloc): Fix +1 bug on allocation failures.
43860
43861 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43862
43863         * lib/base64.c (base64_encode): Do not read past end of array with
43864         unsanitized input on systems with CHAR_BIT > 8.
43865
43866 2006-03-24  Eric Blake  <ebb9@byu.net>
43867
43868         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
43869
43870 2006-03-22  Karl Berry  <karl@gnu.org>
43871
43872         * config/srclist.txt (*setenv.[ch]): get from coreutils.
43873         * config/srclistvars.sh (COREUTILS): new var.
43874
43875 2006-03-17  Jim Meyering  <jim@meyering.net>
43876
43877         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
43878         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
43879
43880 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
43881
43882         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
43883         no longer needs it.  Instead, check that regoff_t is as least
43884         as wide as ptrdiff_t.
43885
43886         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
43887         so that our regex.h stays compatible with the installed regex.
43888         This is helpful for installers who configure --without-included-regex.
43889         Problem reported by Emanuele Giaquinta.
43890
43891 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
43892
43893         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
43894         Typedef to long int, not to off_, as POSIX will likely change
43895         in that direction.
43896
43897 2006-03-15  Eric Blake  <ebb9@byu.net>
43898
43899         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
43900
43901 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
43902
43903         * lib/argp-help.c (validate_uparams): Fix typo
43904         * lib/argp-parse.c (argp_default_options): Consistently begin help
43905         messages with a lowercase letter.
43906
43907 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
43908
43909         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
43910         overrun buffers and shouldn't be used (much as gets shouldn't be
43911         used).
43912         * lib/time_r.c (asctime_r, ctime_r): Likewise.
43913
43914 2006-03-08  Simon Josefsson  <jas@extundo.com>
43915
43916         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
43917         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43918
43919 2006-03-08  Simon Josefsson  <jas@extundo.com>
43920
43921         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
43922         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43923
43924 2006-03-08  Simon Josefsson  <jas@extundo.com>
43925
43926         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
43927         signal that configure disabled the device.
43928
43929 2006-03-08  Simon Josefsson  <jas@extundo.com>
43930
43931         * build-aux/maint.mk: Fix refresh-po, to handle no translated
43932         languages.
43933
43934 2006-03-07  Simon Josefsson  <jas@extundo.com>
43935
43936         * modules/getopt (Depends-on): Add unistd.
43937
43938         * modules/unistd: New file.
43939
43940 2006-03-07  Simon Josefsson  <jas@extundo.com>
43941
43942         * modules/gc-random: New file.
43943
43944 2006-03-07  Simon Josefsson  <jas@extundo.com>
43945
43946         * m4/unistd_h.m4: New file.
43947
43948 2006-03-07  Simon Josefsson  <jas@extundo.com>
43949
43950         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
43951         test to be side-effect free by storing the result in the cache
43952         variable gl_cv_lib_readline, and moving the assignment of
43953         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
43954         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43955
43956 2006-03-07  Simon Josefsson  <jas@extundo.com>
43957
43958         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
43959         error on missing devices (the functions will return an error).
43960
43961         * m4/gc.m4: Move random stuff to gc-random.m4
43962
43963 2006-03-07  Simon Josefsson  <jas@extundo.com>
43964
43965         * lib/unistd_.h: New file.
43966
43967 2006-03-07  Simon Josefsson  <jas@extundo.com>
43968
43969         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
43970
43971 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
43972
43973         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
43974         Problem reported by Juan Manuel Guerrero.
43975
43976 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
43977
43978         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
43979         the unistd module.
43980         * lib/getlogin_r.c: Likewise.
43981         * lib/getlogin_r.h: Likewise.
43982         * lib/glob.c: Likewise.
43983         * lib/pagealign_alloc.c: Likewise.
43984         * lib/unistd_.h: Remove; no longer needed.
43985
43986 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
43987
43988         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43989         Add unistd.
43990         * modules/c-stack (Depends-on): Add unistd.
43991         * modules/getlogin_r: Likewise.
43992         * modules/glob: Likewise.
43993         * modules/pagealign_alloc: Likewise.
43994         * modules/unistd (Files): Remove lib/unistd_.h.
43995         (EXTRA_DIST): Remove.
43996         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
43997         need unistd_.h.
43998         (MOSTLYCLEANFILES): Remove unistd.h-t.
43999
44000 2006-03-03  Simon Josefsson  <jas@extundo.com>
44001
44002         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
44003
44004 2006-03-03  Simon Josefsson  <jas@extundo.com>
44005
44006         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
44007         libidn and bison.
44008
44009 2006-03-03  Simon Josefsson  <jas@extundo.com>
44010
44011         * build-aux/maint.mk: Add indent target.
44012
44013 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
44014
44015         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
44016         our replacement poll.h in any case, to avoid a differing
44017         declaration from a system header.  Seen on AIX.
44018
44019 2006-03-01  Simon Josefsson  <jas@extundo.com>
44020
44021         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
44022         <kasal@ucw.cz>.
44023
44024 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44025
44026         * modules/gettime (Depends-on): Add extensions module.
44027         * modules/nanosleep (Depends-on): Likewise.
44028         * modules/settime (Depends-on): Likewise.
44029
44030 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44031
44032         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
44033         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
44034         pedantically.
44035         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44036         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
44037
44038         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
44039         not "==".  Reported by Ralf Wildenhues.
44040
44041 2006-03-01  Karl Berry  <karl@gnu.org>
44042
44043         * doc/Copyright/request-*: new files, synced from gnuorg.
44044
44045 2006-03-01  Karl Berry  <karl@gnu.org>
44046
44047         * config/srclist.txt (Copyright/*): new entries.
44048
44049 2006-02-28  Simon Josefsson  <jas@extundo.com>
44050
44051         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
44052
44053 2006-02-27  Simon Josefsson  <jas@extundo.com>
44054
44055         * lib/base64.h: Indent #define's.  From Jim Meyering
44056         <jim@meyering.net>.
44057
44058 2006-02-27  Jim Meyering  <jim@meyering.net>
44059
44060         Revert the change of 2006-02-24, so these files can continue
44061         to be sync'd from gettext.
44062         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
44063         of `config.h'.
44064
44065 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
44066
44067         * modules/intprops: New file.
44068         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
44069         Add intprops.
44070         * modules/getloadavg (Files): Remove lib/intprops.h.
44071         (Depends-on): Add intprops.
44072         * modules/human: Likewise.
44073         * modules/inttostr: Likewise.
44074         * modules/openat: Likewise.
44075         * modules/sig2str: Likewise.
44076         * modules/userspec: Likewise.
44077         * modules/utimecmp: Likewise.
44078         * modules/xnanosleep: Likewise.
44079         * modules/xstrtol: Likewise.
44080
44081 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
44082
44083         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
44084         * modules/lock-tests (TESTS): Use $(EXEEXT).
44085         * modules/tls-tests: Likewise.
44086         * modules/argp-tests: Likewise.
44087         (check_PROGRAMS): New var, replacing...
44088         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
44089
44090 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44091
44092         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
44093         `config.h'.
44094
44095 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44096
44097         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
44098
44099 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44100
44101         Sync from coreutils.
44102         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
44103         gl_CHDIR_SAFER.
44104
44105 2006-02-22  Jim Meyering  <jim@meyering.net>
44106
44107         Sync from coreutils.
44108         * m4/chdir-safer.m4: New file.
44109
44110 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44111
44112         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
44113         AT_FDCWD exceeds INT_MAX.
44114         * lib/openat.h (AT_FDCWD): Likewise.
44115
44116 2006-02-17  Eric Blake  <address@hidden>
44117
44118         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
44119
44120 2006-02-16  Simon Josefsson  <jas@extundo.com>
44121
44122         * modules/getaddrinfo (Depends-on): Add sys_socket.
44123
44124 2006-02-15  Simon Josefsson  <jas@extundo.com>
44125
44126         * build-aux/maint.mk: Add dsyntax-check rule.
44127
44128 2006-02-15  Eric Blake  <ebb9@byu.net>
44129
44130         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
44131         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
44132         'present but cannot compile' warnings on cygwin.
44133         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
44134         use ws2tcpip.h if sys/socket.h works.
44135         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
44136         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
44137
44138 2006-02-14  Simon Josefsson  <jas@extundo.com>
44139
44140         * modules/maintainer-makefile (Files): Rename.
44141
44142         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
44143         and (the local) Makefile.cfg to maint-cfg.mk.
44144
44145         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
44146         to the latter.
44147
44148         * modules/maintainer-makefile: New module.
44149
44150         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
44151         severaly stripped to make it possible to build it up from scratch
44152         with reliable tests.
44153
44154         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
44155         fixes to permit overriding the default actions when configure and
44156         makefile are not available.
44157
44158 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44159
44160         Sync from coreutils.
44161         * modules/lstat (Depends-on): Don't depend on xalloc.
44162         (License): Change from GPL to LGPL, since this is now simply a
44163         replacement for a libc function.
44164
44165 2006-02-14  Jim Meyering  <jim@meyering.net>
44166
44167         Sync from coreutils.
44168
44169         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
44170         failure on deficient systems, and simplify gnulib lgpl dependencies.
44171         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
44172         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
44173
44174         * lib/xalloc-die.c: Remove unused definition of N_.
44175
44176 2006-02-14  Jim Meyering  <jim@meyering.net>
44177
44178         Sync from coreutils.
44179         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
44180         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
44181         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
44182         double-quote uses of that variable, to accommodate the rare case in
44183         which getmntent is available in none of the libraries checked.  This
44184         happens at least on FreeBSD 5.0.
44185
44186 2006-02-13  Simon Josefsson  <jas@extundo.com>
44187
44188         * gnulib-tool (Usage): Fix --import, from
44189         karl@freefriends.org (Karl Berry).
44190
44191 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
44192
44193         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
44194
44195 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
44196
44197         * lib/argp-namefrob.h: Restore changes accidentally lost during the
44198         "autoupdate" on 2005-12-12.
44199
44200 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
44201
44202         * modules/closeout (Depends-on): Remove atexit.
44203
44204 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
44205
44206         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
44207         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
44208
44209 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
44210
44211         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
44212         __EXTENSIONS__ if this causes compilation to fail.  Problem
44213         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
44214         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
44215
44216 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
44217
44218         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
44219         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
44220         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
44221         All uses changed.
44222
44223 2006-01-26  Simon Josefsson  <jas@extundo.com>
44224
44225         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
44226         prototype is visible on mingw32.
44227
44228         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
44229         for mingw32.
44230
44231         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
44232         mingw32).
44233
44234 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44235
44236         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
44237         attempt to open for write; this always fails, at least on POSIX
44238         hosts.  This reinstates the 2006-01-09 change, which was
44239         inadvertently removed.
44240
44241 2006-01-26  Bruno Haible  <bruno@clisp.org>
44242
44243         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
44244         Reported by Paul Eggert.
44245
44246 2006-01-26  Bruno Haible  <bruno@clisp.org>
44247             Paul Eggert  <eggert@cs.ucla.edu>
44248
44249         * lib/stdbool_.h (_Bool)
44250         [(! (defined __cplusplus || defined __BEOS__)
44251           && !defined __GNUC__
44252           && !(defined __HP_cc || defined __xlc__
44253                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
44254                || defined __sgi))]:
44255         #define to signed char in these cases too; this simplifies
44256         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
44257         etc., separately) and makes it more conservative.
44258
44259 2006-01-25  Simon Josefsson  <jas@extundo.com>
44260
44261         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
44262         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
44263         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
44264
44265 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44266
44267         * lib/argp-namefrob.h: Bugfix. Remove stray #
44268
44269 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44270
44271         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
44272         so that we test the test.
44273         Check for yet another HP-UX cc bug involving *bool |= bool.
44274
44275 2006-01-25  Karl Berry  <karl@gnu.org>
44276
44277         * config/srclist.txt (vasnprintf.c): sync lost.
44278
44279 2006-01-25  Jim Meyering  <jim@meyering.net>
44280
44281         Sync from the stable (b5) branch of coreutils:
44282
44283         * lib/fts.c (fts_children): Don't let close() clobber errno from
44284         failed fchdir().
44285
44286         * lib/fts.c (fts_stat): When following a symlink-to-directory,
44287         don't necessarily interpret stat-fails+lstat-succeeds as indicating
44288         a dangling symlink.  That can also happen at least for ELOOP.
44289         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
44290         FYI, this bug predates the inclusion of fts.c in coreutils.
44291
44292         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
44293         in their own block, so pre-c99 compilers don't object.
44294
44295         Avoid the double-free (first in fts_read, second in fts_close) that
44296         would occur when an `active' directory is made inaccessible (e.g.,
44297         via chmod a-x) during a traversal.
44298         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44299         before returning.  Reproduce this failure by
44300         mkdir -p a/b; cd a; chmod a-x . b
44301         Reported by Stavros Passas.
44302
44303 2006-01-25  Jim Meyering  <jim@meyering.net>
44304
44305         * lib/fileblocks.c: Remove more useless parentheses.
44306         * lib/readutmp.h: Likewise.
44307
44308 2006-01-25  Bruno Haible  <bruno@clisp.org>
44309
44310         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
44311         warnings.
44312         Reported by Paul Eggert.
44313
44314 2006-01-25  Bruno Haible  <bruno@clisp.org>
44315
44316         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
44317         rid of a trap command. For Solaris sh.
44318         Reported by Mark D. Baushke <mdb@gnu.org>.
44319
44320 2006-01-24  Simon Josefsson  <jas@extundo.com>
44321
44322         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
44323         Bruno.
44324
44325 2006-01-24  Karl Berry  <karl@gnu.org>
44326
44327         * config/srclist.txt (argp-namefrob.h): sync lost.
44328
44329 2006-01-24  Jim Meyering  <jim@meyering.net>
44330
44331         * modules/openat (Files): Add lib/intprops.h.
44332         From Mark D. Baushke.
44333
44334 2006-01-24  Jim Meyering  <jim@meyering.net>
44335
44336         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
44337         Reported by Mark D. Baushke.
44338
44339 2006-01-24  Jim Meyering  <jim@meyering.net>
44340
44341         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
44342
44343 2006-01-24  Bruno Haible  <bruno@clisp.org>
44344
44345         * modules/strnlen (Maintainer): Change from glibc to all.
44346
44347 2006-01-24  Bruno Haible  <bruno@clisp.org>
44348
44349         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
44350         Patch by Paul Eggert.
44351
44352 2006-01-24  Bruno Haible  <bruno@clisp.org>
44353
44354         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
44355         already has it.
44356         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
44357         2005-11-26.
44358
44359         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
44360         'signed char' to avoid problems with the built-in _Bool type.
44361         Reported by Paul Eggert on 2005-11-26.
44362
44363 2006-01-24  Bruno Haible  <bruno@clisp.org>
44364
44365         * gnulib-tool (func_import): Avoid constructing complicated sed
44366         expressions inside backquote.
44367         Report and solution by Mark D. Baushke <mdb@gnu.org>.
44368
44369 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
44370
44371         These changes imported from libc.
44372         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
44373         test and two separate function calls.
44374         * lib/strndup.c (__strndup): Add libc_hidden_def.
44375
44376 2006-01-23  Simon Josefsson  <jas@extundo.com>
44377
44378         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
44379         Remove the test_*_SOURCES variable: automake infers it by default.
44380         * modules/tls-tests: Likewise.
44381
44382 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44383
44384         Work around porting bugs reported by Dieter in
44385         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
44386         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
44387         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
44388         Include "getopt.h" first, to check interface.
44389         (getenv): Declare only if defined HAVE_DECL_GETENV &&
44390         !HAVE_DECL_GETENV.
44391         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
44392         (__strndup): Revert to K&R-style function dfns, the glibc style.
44393         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
44394         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
44395         Include strnlen.h first, to get prototype properly.
44396         (strnlen): Renamed from __strnlen.
44397         Remove weak alias.
44398
44399 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44400
44401         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
44402
44403 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44404
44405         * config/srclist.txt: Adjust to reflect glibc reorganization.
44406         This affects only comments.
44407
44408 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44409
44410          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
44411          Reported by Bruce Korb <bkorb@gnu.org>.
44412
44413 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44414
44415         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
44416         to pacify gcc -Wswitch-default.
44417
44418 2006-01-22  Bruno Haible  <bruno@clisp.org>
44419
44420         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
44421         temporary buffer for sprintf, take into account the precision also
44422         for 'd', 'i', 'u', 'o', 'x', 'X'.
44423
44424 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
44425
44426         * modules/argp-tests: New module
44427         * tests/test-argp.c: New file
44428         * tests/test-argp-2.sh: New file
44429
44430 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
44431
44432         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
44433         (__argp_base_name): Removed
44434         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
44435         typo.
44436         (__argp_base_name): Provide macro definition or extern declaration
44437         depending on the configuration
44438
44439 2006-01-20  Simon Josefsson  <jas@extundo.com>
44440
44441         * modules/inet_ntop (Depends-on): Depend on sys_socket.
44442
44443 2006-01-20  Simon Josefsson  <jas@extundo.com>
44444
44445         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
44446
44447 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44448
44449         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
44450         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
44451         Suggested by Bruno Haible.
44452
44453 2006-01-20  Karl Berry  <karl@gnu.org>
44454
44455         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
44456         until changes propagate, I guess.
44457
44458 2006-01-19  Simon Josefsson  <jas@extundo.com>
44459
44460         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
44461
44462 2006-01-19  Simon Josefsson  <jas@extundo.com>
44463
44464         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
44465
44466 2006-01-19  Simon Josefsson  <jas@extundo.com>
44467
44468         * gnulib-tool: Set check_PROGRAMS.
44469
44470         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44471         modules/des-tests, modules/gc-arcfour-tests,
44472         modules/gc-arctwo-tests, modules/gc-des-tests,
44473         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44474         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44475         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44476         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44477         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44478         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
44479         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
44480         test_*_SOURCES.
44481
44482 2006-01-18  Simon Josefsson  <jas@extundo.com>
44483
44484         * modules/socklen (Depends-on): Depend on sys_socket.
44485
44486 2006-01-18  Simon Josefsson  <jas@extundo.com>
44487
44488         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44489         modules/des-tests, modules/gc-arcfour-tests,
44490         modules/gc-arctwo-tests, modules/gc-des-tests,
44491         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44492         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44493         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44494         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44495         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44496         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
44497         $(EXEEXT) to automake TESTS variable, for mingw32.
44498
44499 2006-01-17  Simon Josefsson  <jas@extundo.com>
44500
44501         * modules/socklen (Include): Need sys/socket.h.
44502
44503 2006-01-17  Bruno Haible  <bruno@clisp.org>
44504
44505         * modules/ssize_t (Include): Add <sys/types.h>.
44506
44507 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
44508
44509         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
44510         it's not portable and it doesn't work with cross-compiles.
44511         Problem reported by Bruno Haible.  Fix missing-$ typo in
44512         'test "gl_cv_ignore_unused_libraries" ...' that prevented
44513         -zignore from being used with Sun's C compiler.
44514
44515 2006-01-12  Simon Josefsson  <jas@extundo.com>
44516
44517         * lib/base64.c: Fix warning, reported by Bruno Haible
44518         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
44519
44520 2006-01-12  Bruno Haible  <bruno@clisp.org>
44521
44522         * modules/ldd: New file.
44523         * build-aux/ldd.sh.in: New file.
44524         * MODULES.html.sh (Support for building libraries and executables): Add
44525         ldd.
44526
44527 2006-01-12  Bruno Haible  <bruno@clisp.org>
44528
44529         * m4/ldd.m4: New file.
44530
44531 2006-01-12  Bruno Haible  <bruno@clisp.org>
44532
44533         * gnulib-tool (func_import, func_create_testdir): Don't go into an
44534         endless loop while replacing $auxdir with build-aux.
44535
44536 2006-01-11  Simon Josefsson  <jas@extundo.com>
44537
44538         * lib/stdint_.h (SIZE_MAX): Add missing (.
44539
44540 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44541
44542         Sync from coreutils.
44543         * lib/md5.c: Fix commentary typos.
44544         (alignof, UNALIGNED_P): No need for a GCC-specific version.
44545         * lib/md5.h (__attribute__): Remove; unused.
44546         * lib/sha1.c: Fix commentary to match md5 better.
44547         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
44548         so that we don't need to worry about alignment.  All uses changed.
44549         This merges the 2005-10-28 md5 change into sha1.
44550
44551 2006-01-11  Jim Meyering  <jim@meyering.net>
44552
44553         Sync from coreutils.
44554         * lib/md5.c (OP): Fix spacing.
44555
44556 2006-01-11  Bruno Haible  <bruno@clisp.org>
44557
44558         Ensure automatic ordering between gl_LOCK and gl_ARGP.
44559         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
44560         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
44561
44562 2006-01-11  Bruno Haible  <bruno@clisp.org>
44563
44564         Ensure automatic ordering between gl_LOCK and gl_ARGP.
44565         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
44566         the "early" section as well.
44567
44568 2006-01-11  Bruno Haible  <bruno@clisp.org>
44569
44570         Avoid "ar: no archive members specified" error on MacOS X.
44571         * gnulib-tool (func_modules_add_dummy): New function.
44572         (func_import, func_create_testdir): Invoke it.
44573
44574 2006-01-11  Bruno Haible  <bruno@clisp.org>
44575
44576         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
44577         with $auxdir in AC_CONFIG_FILES statements.
44578
44579 2006-01-11  Bruno Haible  <bruno@clisp.org>
44580
44581         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44582         Initialize also noinst_HEADERS to empty.
44583
44584 2006-01-11  Bruno Haible  <bruno@clisp.org>
44585
44586         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
44587         variables.
44588         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
44589         autoreconf.
44590
44591 2006-01-11  Bruno Haible  <bruno@clisp.org>
44592
44593         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
44594         overridable by the user.
44595         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44596
44597 2006-01-10  Simon Josefsson  <jas@extundo.com>
44598
44599         * modules/sys_socket: New file.
44600
44601 2006-01-10  Simon Josefsson  <jas@extundo.com>
44602
44603         * m4/sys_socket_h.m4: New file.
44604
44605 2006-01-10  Simon Josefsson  <jas@extundo.com>
44606
44607         * lib/socket_.h: New file.
44608
44609 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44610
44611         * modules/readutmp (Maintainer): Add myself.
44612
44613 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44614
44615         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
44616         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
44617         People who are still concerned with buggy memcmp implementations
44618         can invoke gl_FUNC_MEMCMP themselves.
44619
44620 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44621
44622         * lib/regex_internal.h (BITSET_WORD_BITS):
44623         Work around a bug in 64-bit PGC (before version 6.1-2), where the
44624         preprocessor mishandles large unsigned values as if they were signed.
44625         Problem reported by Claudio Fontana in
44626         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
44627
44628 2006-01-10  Jim Meyering  <jim@meyering.net>
44629
44630         Avoid the double-free (first in fts_read, second in fts_close) that
44631         would occur when an `active' directory is made inaccessible (e.g.,
44632         via chmod a-x) during a traversal.
44633         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44634         before returning.  Reproduce this failure by
44635         mkdir -p a/b; cd a; chmod a-x . b
44636         Reported by Stavros Passas.
44637
44638         Sync from coreutils.
44639         * lib/sha1.c: Tweak grammar in a comment.
44640
44641 2006-01-10  Jim Meyering  <jim@meyering.net>
44642
44643         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
44644         Patch by Joerg Sonnenberger.
44645
44646 2006-01-10  Bruno Haible  <bruno@clisp.org>
44647
44648         * modules/readutmp: Depend on module free.
44649         * modules/strtok_r: Depend on module restrict.
44650
44651 2006-01-10  Bruno Haible  <bruno@clisp.org>
44652
44653         * modules/gettext (configure.ac): Add an invocation of
44654         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
44655
44656 2006-01-10  Bruno Haible  <bruno@clisp.org>
44657
44658         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
44659         Reported by Werner Lemberg <wl@gnu.org>.
44660
44661 2006-01-10  Bruno Haible  <bruno@clisp.org>
44662
44663         * lib/localcharset.c: Update from GNU gettext.
44664
44665 2006-01-10  Bruno Haible  <bruno@clisp.org>
44666
44667         * lib/argp.h (__const): Remove macro. Use const instead.
44668         * lib/argp-fmtstream.h (__const): Likewise.
44669         * lib/glob_.h (__const): Remove macro.
44670         * lib/glob-libc.h: Use const instead of __const.
44671
44672 2006-01-10  Bruno Haible  <bruno@clisp.org>
44673
44674         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
44675         variable.
44676         Needed to avoid an automake error regarding the 'gettext' module.
44677
44678 2006-01-09  Simon Josefsson  <jas@extundo.com>
44679
44680         * modules/inet_ntop (Depends-on): Add restrict.
44681
44682 2006-01-09  Simon Josefsson  <jas@extundo.com>
44683
44684         * modules/gc-rijndael-tests (License): Put under LGPL.
44685
44686         * modules/gc-des-tests (License): Likewise.
44687
44688         * modules/gc-arcfour-tests (License): Likewise.
44689
44690         * modules/gc-arctwo-tests (License): Likewise.
44691
44692         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
44693
44694         * modules/gc-hmac-sha1-tests (Files): Likewise.
44695
44696         * modules/gc-hmac-md5-tests (License): Likewise.
44697
44698         * modules/gc-sha1-tests (License): Likewise.
44699
44700         * modules/gc-md5-tests (License): Likewise.
44701
44702         * modules/gc-md4-tests (License): Likewise.
44703
44704         * modules/gc-md2-tests (License): Likewise.
44705
44706         * modules/gc-tests (License): Likewise.
44707
44708         * modules/des-tests (License): Likewise.
44709
44710         * modules/md4-tests (License): Likewise.
44711
44712         * modules/md2-tests (License): Likewise.
44713
44714 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44715
44716         Sync from coreutils:
44717
44718         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
44719         * modules/lib-ignore: New file.
44720         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
44721         chdir-safer.m4, lchmod.m4.
44722         * modules/openat: Add mkdirat.c, openat-priv.h.
44723
44724 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44725
44726         Sync from coreutils.
44727         * m4/lib-ignore.m4: New file.
44728         * m4/lchmod.m4: New file.
44729
44730 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44731
44732         Sync from coreutils.
44733         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
44734         for write access: POSIX says that must fail.
44735         * lib/fts.c (diropen): Likewise.
44736         * lib/save-cwd.c (save_cwd): Likewise.
44737         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
44738         well, for minor improvements on hosts that lack O_DIRECTORY.
44739         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
44740         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
44741         Fall back on chown if open failed with EACCES.
44742
44743         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
44744         Report an error at compile-time if only a 1-second nominal clock
44745         resolution is found.
44746
44747         * lib/lchmod.h: New file.
44748         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
44749         (make_dir_parents): Use lchown rather than chown, and
44750         lchmod rather than chmod.
44751
44752         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
44753         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
44754         "proc" reported by n0dalus.
44755
44756         * lib/mountlist.c: Include <limits.h>.
44757         (dev_from_mount_options)
44758         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
44759         New function.  It no longer assumes "dev=" has the System V meaning
44760         on Linux (since it doesn't).  It also parses "dev=" more carefully.
44761         (read_file_system_list)
44762         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
44763         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
44764         dev= in that case.
44765
44766         * lib/posixtm.h (PDS_PRE_2000): New macro.
44767         * lib/posixtm.c (year): Arg is now syntax_bits rather than
44768         allow_century.  All usages changed.  Reject dates outside the range
44769         1969-1999 if PDS_PRE_2000 is used.
44770
44771 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44772
44773         Sync from coreutils.
44774         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
44775         (Time of day items): Mention the possibility of leap seconds.
44776         Problem reported by Dr. David Alan Gilbert.
44777
44778 2006-01-09  Jim Meyering  <jim@meyering.net>
44779
44780         Sync from coreutils.
44781
44782         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
44783
44784         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
44785
44786         * lib/modechange.c (mode_compile): Reject an invalid mode string
44787         that starts with an octal digit.  From Andreas Gruenbacher.
44788
44789         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
44790         and dup to open_safer and dup_safer, respectively.
44791         (openat_permissive): Fix typo in comment.
44792
44793         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
44794         "gettext.h"; either no longer needed or are guaranteed by openat.h.
44795         (_): Remove; no longer needed.
44796         (openat): Renamed from rpl_openat; no need for rpl_openat
44797         since openat.h renames openat for us.
44798         Replace most of the body with a call to openat_permissive,
44799         to avoid duplicate code.
44800         Port to (probably hypothetical) environments were mode_t is
44801         wider than int.
44802         (openat_permissive): Require mode arg, so that we can check
44803         types better.  Put it just after flags.  Change cwd failure
44804         indicator from pointer-to-bool to pointer-to-errno-value.
44805         All callers changed.
44806         Invoke openat_save_fail and/or openat_restore_fail if
44807         cwd_errno is null, so that openat can call us.
44808         (openat_permissive, fdopendir, fstatat, unlinkat):
44809         Simplify errno handling to avoid some duplicate code,
44810         as it's OK to set errno on success.
44811         * lib/openat.h: Revamp code so that function macros depend on
44812         __OPENAT_PREFIX only, not also on AT_FDCWD.
44813         (openat_ro): Remove.  Caller changed to use openat_permissive.
44814         (openat_permissive): Now a macro, if not a function.
44815         (openat_restore_fail, openat_save_fail): Now always functions,
44816         since mkdirat needs them even if __OPENAT_PREFIX is defined.
44817
44818         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
44819         and openat.c.
44820         * lib/mkdirat.c: Include openat-priv.h.
44821         Remove definitions of macros defined therein.
44822         * lib/openat.c: Likewise.
44823
44824         * lib/mkdirat.c (mkdirat): New file and function.
44825         * lib/openat.h (mkdirat): Declare.
44826
44827         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
44828
44829         * lib/openat.h (openat_permissive): Declare.
44830         (openat_ro): Define.
44831
44832         * lib/openat.c (EXPECTED_ERRNO): New macro.
44833         (openat_permissive): New function -- used in remove.c rewrite.
44834         (all functions): Set errno just before returning, only if there
44835         was an actual failure.
44836         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
44837
44838         Emulate openat-family functions using Linux's procfs, if possible.
44839         Idea and some code based on Ulrich Drepper's glibc changes.
44840
44841         * lib/openat.c: (BUILD_PROC_NAME): New macro.
44842         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
44843         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
44844         before falling back on save_cwd and restore_cwd.
44845         (fdopendir, fstatat, unlinkat): Likewise.
44846
44847         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
44848         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
44849
44850         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
44851         as second argument to va_arg.  Otherwise, some versions of gcc
44852         warn that `if this code is reached, the program will abort'.
44853
44854 2006-01-09  Jim Meyering  <jim@meyering.net>
44855
44856         Sync from coreutils.
44857         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
44858         Require openat-priv.h.
44859
44860 2006-01-09  Bruno Haible  <bruno@clisp.org>
44861
44862         * modules/strnlen (Include): Use strnlen.h.
44863
44864 2006-01-09  Bruno Haible  <bruno@clisp.org>
44865
44866         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
44867
44868 2006-01-09  Bruno Haible  <bruno@clisp.org>
44869
44870         * lib/sysexit_.h (EX_OK): New macro.
44871         Suggested by Martin Lambers <marlam@marlam.de>.
44872
44873 2006-01-09  Bruno Haible  <bruno@clisp.org>
44874
44875         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
44876         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
44877
44878 2006-01-09  Bruno Haible  <bruno@clisp.org>
44879
44880         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
44881         numbers.
44882
44883 2006-01-09  Bruno Haible  <bruno@clisp.org>
44884
44885         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
44886         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
44887         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
44888         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
44889
44890 2006-01-09  Bruno Haible  <bruno@clisp.org>
44891
44892         * build-aux/javacomp.sh.in: New file, moved from lib/.
44893         * modules/javacomp-script (Files): Update.
44894         (configure.ac): Add AC_CONFIG_FILES invocation.
44895         (EXTRA_DIST): Remove variable.
44896
44897         * build-aux/javaexec.sh.in: New file, moved from lib/.
44898         * modules/javaexec (Files): Update.
44899         (configure.ac): Add AC_CONFIG_FILES invocation.
44900         (EXTRA_DIST): Remove javaexec.sh.in.
44901
44902         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
44903         * modules/csharpcomp-script (Files): Update.
44904         (configure.ac): Add AC_CONFIG_FILES invocation.
44905         (EXTRA_DIST): Remove variable.
44906
44907         * build-aux/csharpexec.sh.in: New file, moved from lib/.
44908         * modules/csharpexec (Files): Update.
44909         (configure.ac): Add AC_CONFIG_FILES invocation.
44910         (EXTRA_DIST): Remove csharpexec.sh.in.
44911
44912 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
44913
44914         Sync from coreutils.
44915
44916         Add POSIX ACL support
44917         * lib/acl.h (copy_acl, set_acl): Add declarations.
44918         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
44919         systems other than Linux.
44920         (chmod_or_fchmod): New function: use fchmod when possible,
44921         and chmod otherwise.
44922         (file_has_acl): Add a POSIX ACL implementation, with a
44923         Linux-specific subcase.
44924         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
44925         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
44926         acls are unsupported.
44927         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
44928         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
44929         are unsupported.
44930
44931 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
44932
44933         Sync from coreutils.
44934         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
44935
44936 2006-01-07  Bruno Haible  <bruno@clisp.org>
44937
44938         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
44939         gl_EARLY.
44940
44941 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44942
44943         * lib/strftime.c (tzname): Don't declare if it is already #defined.
44944         Problem reported for Mingw by Mark Junker.
44945
44946 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44947
44948         * README: Gnulib normally doesn't generate a tarball.
44949
44950 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
44951
44952         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
44953         long int, not int, for nanosecond counts, so that people who are
44954         used to POSIX struct timespec won't be surprised.  Reported by Jim
44955         Meyering.
44956
44957 2005-12-28  Bruno Haible  <bruno@clisp.org>
44958
44959         * build-aux/config.rpath: Update from GNU gettext.
44960
44961 2005-12-16  Jim Meyering  <jim@meyering.net>
44962
44963         * modules/fprintftime: New module.
44964         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
44965
44966 2005-12-16  Jim Meyering  <jim@meyering.net>
44967
44968         * m4/fprintftime.m4: New file.
44969
44970 2005-12-16  Jim Meyering  <jim@meyering.net>
44971
44972         * lib/fprintftime.c, lib/fprintftime.h: New files.
44973
44974 2005-12-15  Simon Josefsson  <jas@extundo.com>
44975
44976         * modules/socklen (configure.ac): Fix M4 macro name, to align with
44977         new m4/socklen.m4.
44978
44979 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44980
44981         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
44982         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
44983
44984 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44985
44986         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
44987         * lib/argp-help.c (fill_in_uparams): Check if the constructed
44988         struct uparams is valid. Fall back to the default values if it is
44989         not.
44990
44991 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44992
44993         * modules/argp (Files): Add argp-pin.c
44994         (Depends-on): dirname
44995         (lib_SOURCES): Add argp-pin.c
44996
44997 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44998
44999         * m4/argp.m4:  Check if program_invocation_name and
45000         program_invocation_short_name are declared and define appropriate
45001         macros if they are not.
45002
45003 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45004
45005         * lib/argp-help.c (__argp_base_name): New function
45006         (__argp_short_program_name): Rewrite using __argp_base_name
45007         * lib/argp-namefrob.h: Define program_invocation_name and
45008         program_invocation_short_name if requested
45009         (__argp_base_name): Add prototype
45010         * lib/argp-parse.c (argp_def): Use gettext wrappers
45011         (argp_default_parser): Use __argp_base_name
45012         * lib/argp-pin.c: New file. Defines program_invocation_name and
45013         program_invocation_short_name on systems that lack them.
45014
45015 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
45016
45017         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
45018         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45019         porting problem reported by Georg Schwarz in
45020         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45021
45022 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
45023
45024         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
45025         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45026         porting problem reported by Georg Schwarz in
45027         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45028
45029 2005-12-05  Bruno Haible  <bruno@clisp.org>
45030
45031         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
45032         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
45033         Reported by Mark Junker <mjscod@gmx.de>.
45034
45035 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
45036
45037         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
45038         Use implementation from Albert Chin, with some
45039         comments/corrections by Stepan Kasal and myself.
45040
45041 2005-12-02  Bruno Haible  <bruno@clisp.org>
45042
45043         * gnulib-tool (func_import): Accept GPLed build tool modules when
45044         --lgpl is given.
45045         * modules/csharpcomp-script: New file.
45046         * modules/csharpcomp: Depend on it.
45047         * modules/javacomp-script: New file.
45048         * modules/javacomp: Depend on it.
45049         Suggested by Simon Josefsson.
45050
45051 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
45052
45053         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
45054         statement, to work around an HP-UX 10.20 compiler bug reported by
45055         Peter O'Gorman.
45056
45057 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
45058
45059         * modules/savedir (Depends-on): Add openat.
45060
45061 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
45062
45063         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
45064         (uintmax_t) [defined uintmax_t]: Do not declare.
45065         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
45066         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
45067         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
45068         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
45069         sake of portability to weird hosts that C allows (though we don't
45070         know of any practical examples).
45071
45072         * lib/savedir.h (fdsavedir): New decl.
45073         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
45074         contains most of the former guts of savedir.
45075         (savedir): Use savedirstream.
45076         Include "openat.h".
45077
45078 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
45079
45080         * modules/obstack (Files): Add m4/ulonglong.m4.
45081         Problem reported by Davide Angelocola.
45082
45083 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45084
45085         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
45086         coreutils no longer futzes with rounding modes.
45087
45088 2005-11-14  Jim Meyering  <jim@meyering.net>
45089
45090         * lib/mkstemp-safer.c: Include <config.h>, required for possible
45091         replacement of mkstemp.
45092
45093 2005-11-10  Simon Josefsson  <jas@extundo.com>
45094
45095         * lib/readline.c: Remove EOL.
45096
45097 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45098
45099         * modules/gethrxtime (Depends-on): Add gettime.
45100
45101 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45102
45103         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
45104         or gettimeofday; no longer needed.
45105
45106 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45107
45108         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
45109         time business.
45110         (gethrxtime) [! (HAVE_NANOUPTIME
45111         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
45112         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
45113         our own approximation.
45114
45115 2005-11-08  Eric Blake  <ebb9@byu.net>
45116
45117         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45118
45119 2005-11-08  Eric Blake  <ebb9@byu.net>
45120
45121         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45122
45123 2005-11-04  Bruno Haible  <bruno@clisp.org>
45124
45125         * gnulib-tool: Implement --update mode.
45126
45127 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45128
45129         Fix porting problem reported by Theodoros V. Kalamatianos.
45130         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
45131         Don't assume that futimes failing means we must fail.
45132
45133 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45134
45135         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
45136         variables to suggest the intended function of the PATH_MAX check.
45137
45138 2005-10-30  Kean Johnston  <jkj@sco.com>
45139
45140         Trivial changes to support SCO systems.
45141         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
45142         as PATH_MAX.
45143         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
45144         where __ptr is null when no I/O is pending.
45145
45146 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45147
45148         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
45149         leave errno alone.  Problem reported by Dmitry V. Levin.
45150
45151 2005-10-28  Simon Josefsson  <jas@extundo.com>
45152
45153         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
45154         Test more.
45155
45156         * tests/test-gc-md2.c, tests/test-md2.c: New files.
45157
45158         * modules/md2, modules/md2-tests: New files.
45159
45160 2005-10-28  Simon Josefsson  <jas@extundo.com>
45161
45162         * m4/inet_ntop.m4: More tests.
45163
45164         * m4/gc-md2.m4, md2.m4: New file.
45165
45166 2005-10-28  Simon Josefsson  <jas@extundo.com>
45167
45168         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
45169         "restrict" keywords, as per POSIX.  Protect the function
45170         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
45171         Don't use K&R prototypes.  Check the sprintf return values.
45172         Re-define EAFNOSUPPORT if not present.  Indent.
45173
45174         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
45175         suggested by Bruno Haible <bruno@clisp.org>.
45176
45177         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
45178
45179         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
45180
45181         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
45182         libgcrypt).
45183
45184         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
45185
45186         * lib/md2.h, lib/md2.c: New files.
45187
45188 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
45189
45190         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
45191         errno alone.  Problem reported by Frederic Jolliton.
45192
45193 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45194
45195         * modules/verify (License): Change from GPL to LGPL.  This is a
45196         tiny module and there are apparently near-equivalents that are
45197         under the BSD license.
45198
45199 2005-10-24  Simon Josefsson  <jas@extundo.com>
45200
45201         * modules/sha1: Relicense to LGPL.
45202
45203 2005-10-24  Simon Josefsson  <jas@extundo.com>
45204
45205         * lib/md4.h: Shrink buffer size, now that we changed the type.
45206
45207 2005-10-23  Simon Josefsson  <jas@extundo.com>
45208
45209         * gnulib-tool (func_import): Fix --tests-base.
45210
45211 2005-10-22  Simon Josefsson  <jas@extundo.com>
45212
45213         * modules/arcfour (Depends-on): Need stdint.
45214
45215 2005-10-22  Simon Josefsson  <jas@extundo.com>
45216
45217         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
45218         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
45219
45220 2005-10-22  Simon Josefsson  <jas@extundo.com>
45221
45222         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
45223         suggested by Bruno Haible <bruno@clisp.org>.
45224
45225 2005-10-22  Simon Josefsson  <jas@extundo.com>
45226
45227         * lib/crc.h: Include stddef.h, for size_t.
45228
45229 2005-10-22  Simon Josefsson  <jas@extundo.com>
45230
45231         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
45232         arcfour_context struct (simplify test vector testing in GNU
45233         Shishi).
45234
45235 2005-10-21  Simon Josefsson  <jas@extundo.com>
45236
45237         * modules/des, modules/des-tests: New files.
45238
45239         * modules/gc-des, modules/gc-des-tests: New files.
45240
45241         * tests/test-des.c, tests/test-gc-des.c: New file.
45242
45243 2005-10-21  Simon Josefsson  <jas@extundo.com>
45244
45245         * modules/arctwo, modules/arctwo-tests: New files.
45246
45247         * tests/test-arctwo.c: New file.
45248
45249         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
45250
45251         * tests/test-gc-arctwo.c: New file.
45252
45253 2005-10-21  Simon Josefsson  <jas@extundo.com>
45254
45255         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
45256         Bruno Haible <bruno@clisp.org>.
45257
45258         * m4/gc-des.m4: New file.
45259
45260 2005-10-21  Simon Josefsson  <jas@extundo.com>
45261
45262         * m4/arctwo.m4: New file.
45263
45264         * m4/gc-arctwo.m4: New file.
45265
45266 2005-10-21  Simon Josefsson  <jas@extundo.com>
45267
45268         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
45269         block.
45270
45271 2005-10-21  Simon Josefsson  <jas@extundo.com>
45272
45273         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
45274         <bruno@clisp.org>.
45275
45276         * lib/hmac-sha1.c (hmac_sha1): Likewise.
45277
45278         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
45279         Bruno Haible <bruno@clisp.org>.
45280
45281         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
45282         <bruno@clisp.org>.
45283
45284 2005-10-21  Simon Josefsson  <jas@extundo.com>
45285
45286         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
45287
45288 2005-10-21  Simon Josefsson  <jas@extundo.com>
45289
45290         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
45291
45292 2005-10-21  Simon Josefsson  <jas@extundo.com>
45293
45294         * lib/des.h, lib/des.c: New files.
45295
45296         * lib/gc-gnulib.c: Support DES.c
45297
45298 2005-10-21  Simon Josefsson  <jas@extundo.com>
45299
45300         * lib/arctwo.h, lib/arctwo.c: New files.
45301
45302         * lib/gc-gnulib.c: Support ARCTWO.
45303
45304 2005-10-21  Simon Josefsson  <jas@extundo.com>
45305
45306         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
45307         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45308
45309 2005-10-21  Simon Josefsson  <jas@extundo.com>
45310
45311         * gnulib-tool (func_import, func_create_testdir): Define automake
45312         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
45313         Makefile.am snippet),
45314         suggested by Bruno Haible <bruno@clisp.org>.
45315
45316         * modules/gc (Makefile.am): Use it.
45317
45318 2005-10-21  Bruno Haible  <bruno@clisp.org>
45319
45320         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
45321         patch.
45322
45323 2005-10-19  Simon Josefsson  <jas@extundo.com>
45324
45325         * tests/test-gc-rijndael.c: New file.
45326
45327         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
45328
45329 2005-10-19  Simon Josefsson  <jas@extundo.com>
45330
45331         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
45332         interface too.
45333
45334 2005-10-19  Simon Josefsson  <jas@extundo.com>
45335
45336         * tests/test-gc-arcfour.c: New file.
45337
45338         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
45339
45340 2005-10-19  Simon Josefsson  <jas@extundo.com>
45341
45342         * modules/gc-md4, modules/gc-md4-tests: New file.
45343
45344         * tests/test-gc-md4.c: New file.
45345
45346 2005-10-19  Simon Josefsson  <jas@extundo.com>
45347
45348         * m4/gc-md4.m4: New file.
45349
45350 2005-10-19  Simon Josefsson  <jas@extundo.com>
45351
45352         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
45353         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
45354         <kasal@ucw.cz>.
45355
45356 2005-10-19  Simon Josefsson  <jas@extundo.com>
45357
45358         * m4/gc-arcfour.m4: New file.
45359
45360         * m4/gc-rijndael.m4: New file.
45361
45362 2005-10-19  Simon Josefsson  <jas@extundo.com>
45363
45364         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
45365
45366 2005-10-19  Simon Josefsson  <jas@extundo.com>
45367
45368         * lib/gc-gnulib.c: Support ARCFOUR.
45369
45370 2005-10-19  Simon Josefsson  <jas@extundo.com>
45371
45372         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
45373         support.
45374
45375         * lib/gc.h: Add ECB enum type.
45376
45377         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
45378
45379 2005-10-18  Simon Josefsson  <jas@extundo.com>
45380
45381         * tests/test-md5.c: New file.
45382
45383         * modules/md5-tests: New file.
45384
45385 2005-10-18  Simon Josefsson  <jas@extundo.com>
45386
45387         * tests/test-md4.c: New file.
45388
45389         * modules/md4, modules/md4-tests: New files.
45390
45391 2005-10-18  Simon Josefsson  <jas@extundo.com>
45392
45393         * m4/md4.m4: New file.
45394
45395 2005-10-18  Simon Josefsson  <jas@extundo.com>
45396
45397         * lib/md4.h, lib/md4.c: New files, based on md5.?.
45398
45399 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
45400
45401         * gnulib-tool (func_create_testdir): Omit the second check whether
45402         BUILT_SOURCES in nonempty.
45403
45404 2005-10-17  Simon Josefsson  <jas@extundo.com>
45405
45406         * tests/test-rijndael.c: New file.
45407
45408 2005-10-17  Simon Josefsson  <jas@extundo.com>
45409
45410         * modules/sha1: Depend on stdint instead of md5.
45411
45412         * modules/md5: Depend on stdint, remove uint32_t.
45413
45414 2005-10-17  Simon Josefsson  <jas@extundo.com>
45415
45416         * modules/gc-sha1-tests: New file.
45417
45418         * tests/test-gc-sha1.c: New file.
45419
45420 2005-10-17  Simon Josefsson  <jas@extundo.com>
45421
45422         * m4/md5.m4: Remove call to uint32_t.m4.
45423
45424 2005-10-17  Simon Josefsson  <jas@extundo.com>
45425
45426         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
45427
45428         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
45429         md5.h.
45430
45431         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
45432
45433         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
45434
45435 2005-10-17  Simon Josefsson  <jas@extundo.com>
45436
45437         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
45438
45439 2005-10-17  Simon Josefsson  <jas@extundo.com>
45440
45441         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
45442
45443 2005-10-17  Simon Josefsson  <jas@extundo.com>
45444
45445         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
45446
45447         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
45448
45449 2005-10-17  Bruno Haible  <bruno@clisp.org>
45450
45451         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
45452         that it can also be used in a test.
45453
45454 2005-10-16  Bruno Haible  <bruno@clisp.org>
45455
45456         * gnulib-tool (func_emit_tests_Makefile_am): Also define
45457         TESTS_ENVIRONMENT, so that individual tests can augment it.
45458
45459         * gnulib-tool (func_create_testdir): Use an intermediate target for
45460         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
45461         macros, like $(ALLOCA_H), which cannot be passed through the command
45462         line.
45463
45464 2005-10-15  Simon Josefsson  <jas@extundo.com>
45465
45466         * modules/rijndael-tests: New file.
45467
45468         * modules/rijndael: New file.
45469
45470 2005-10-15  Simon Josefsson  <jas@extundo.com>
45471
45472         * m4/rijndael.m4: New file.
45473
45474 2005-10-15  Simon Josefsson  <jas@extundo.com>
45475
45476         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
45477
45478         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
45479
45480 2005-10-14  Simon Josefsson  <jas@extundo.com>
45481
45482         * tests/test-arcfour.c: New file.
45483
45484         * modules/arcfour, modules/arcfour-tests: New files.
45485
45486 2005-10-14  Simon Josefsson  <jas@extundo.com>
45487
45488         * m4/arcfour.m4: New file.
45489
45490 2005-10-14  Simon Josefsson  <jas@extundo.com>
45491
45492         * lib/arcfour.h, lib/arcfour.c: New files.
45493
45494 2005-10-14  Roland McGrath  <roland@redhat.com>
45495
45496         Import from libc.  [BZ #1331]
45497         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
45498         macro argument.
45499         Reported by Matej Vela <vela@debian.org>.
45500
45501 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45502
45503         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
45504         include <wchar.h>; no longer needed.
45505
45506 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45507
45508         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
45509
45510 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
45511         and  Ulrich Drepper  <drepper@redhat.com>
45512
45513         Import from libc.
45514         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
45515         instead of inline stream orientation test and two separate
45516         function calls.  Pay no attention to USE_IN_LIBIO.
45517
45518 2005-10-13  Simon Josefsson  <jas@extundo.com>
45519
45520         * modules/gc-hmac-md5-tests: New file.
45521
45522         * tests/test-gc-hmac-sha1.c: New file.
45523
45524         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
45525
45526         * modules/gc-hmac-md5-tests: New file.
45527
45528         * tests/test-gc-md5.c: New file.
45529
45530         * modules/gc-md5-tests: New file.
45531
45532 2005-10-13  Simon Josefsson  <jas@extundo.com>
45533
45534         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
45535         Move memory allocation outside of loop.
45536
45537 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
45538
45539         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
45540         intermediate directory is in a read-only file system.  Problem
45541         reported by Eric Blake.
45542
45543 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
45544
45545         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
45546
45547 2005-10-12  Simon Josefsson  <jas@extundo.com>
45548
45549         * tests/test-hmac-sha1.c: New file.
45550
45551         * modules/hmac-sha1-tests: New file.
45552
45553         * modules/hmac-sha1: New file.
45554
45555 2005-10-12  Simon Josefsson  <jas@extundo.com>
45556
45557         * modules/gc-sha1: New file.
45558
45559 2005-10-12  Simon Josefsson  <jas@extundo.com>
45560
45561         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
45562
45563         * tests/test-gc-pbkdf2-sha1.c: New file.
45564
45565 2005-10-12  Simon Josefsson  <jas@extundo.com>
45566
45567         * modules/gc-md5, modules/gc-hmac-md5: New files.
45568
45569         * modules/gc (Files): Remove md5, memxor and hmac files.
45570
45571 2005-10-12  Simon Josefsson  <jas@extundo.com>
45572
45573         * m4/gc-pbkdf2-sha1.m4: New file.
45574
45575         * m4/gc-hmac-sha1.m4: New file.
45576
45577         * m4/gc-sha1: New file.
45578
45579         * m4/hmac-sha1.m4: New file.
45580
45581 2005-10-12  Simon Josefsson  <jas@extundo.com>
45582
45583         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
45584
45585         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
45586
45587 2005-10-12  Simon Josefsson  <jas@extundo.com>
45588
45589         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
45590         suggested by Bruno Haible <bruno@clisp.org>.
45591
45592 2005-10-12  Simon Josefsson  <jas@extundo.com>
45593
45594         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
45595
45596 2005-10-12  Simon Josefsson  <jas@extundo.com>
45597
45598         * lib/gc-pbkdf2-sha1.c: New file.
45599
45600         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
45601
45602 2005-10-12  Simon Josefsson  <jas@extundo.com>
45603
45604         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
45605
45606         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
45607
45608 2005-10-12  Simon Josefsson  <jas@extundo.com>
45609
45610         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
45611         GC_USE_HMAC_MD5, respectively.
45612
45613         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
45614         (gc_md5): Fix typo.
45615
45616         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
45617
45618         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
45619
45620         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
45621
45622 2005-10-12  Bruno Haible  <bruno@clisp.org>
45623
45624         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
45625         Reported by Stepan Kasal <kasal@ucw.cz>.
45626
45627 2005-10-11  Simon Josefsson  <jas@extundo.com>
45628
45629         * tests/test-crc.c: New file.
45630
45631         * modules/crc, modules/crc-tests: New files.
45632
45633 2005-10-11  Simon Josefsson  <jas@extundo.com>
45634
45635         * m4/crc.m4: New file.
45636
45637 2005-10-11  Simon Josefsson  <jas@extundo.com>
45638
45639         * lib/gc.h: Add gc_hash and gc_hash_buffer.
45640
45641         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
45642
45643         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
45644
45645 2005-10-11  Simon Josefsson  <jas@extundo.com>
45646
45647         * lib/crc.h, lib/crc.c: New files.
45648
45649         * lib/gc.h (gc_hash_buffer): Add doc.
45650
45651 2005-10-11  Bruno Haible  <bruno@clisp.org>
45652
45653         * modules/c-strcasestr: New file.
45654         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
45655
45656 2005-10-11  Bruno Haible  <bruno@clisp.org>
45657
45658         * modules/c-strcase: New file.
45659         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
45660
45661 2005-10-11  Bruno Haible  <bruno@clisp.org>
45662
45663         * lib/strcasecmp.c: Include limits.h.
45664         (strcasecmp): Avoid integer overflow on exotic platforms.
45665         * lib/strncasecmp.c: Include limits.h.
45666         (strncasecmp): Avoid integer overflow on exotic platforms.
45667         Reported by Paul Eggert.
45668
45669 2005-10-11  Bruno Haible  <bruno@clisp.org>
45670
45671         * lib/c-strcasestr.h: New file, from GNU gettext.
45672         * lib/c-strcasestr.c: New file, from GNU gettext.
45673
45674 2005-10-11  Bruno Haible  <bruno@clisp.org>
45675
45676         * lib/c-strcase.h: New file, from GNU gettext.
45677         * lib/c-strcasecmp.c: New file, from GNU gettext.
45678         * lib/c-strncasecmp.c: New file, from GNU gettext.
45679
45680 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45681
45682         * modules/mempcpy (License): GPL -> LGPL.
45683         * modules/strchrnul (License): Likewise.
45684         * modules/sysexits (License): Likewise.
45685
45686 2005-10-08  Simon Josefsson  <jas@extundo.com>
45687
45688         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
45689
45690 2005-10-07  Simon Josefsson  <jas@extundo.com>
45691
45692         * m4/memxor.m4: Remove gl_C_RESTRICT call.
45693
45694 2005-10-06  Simon Josefsson  <jas@extundo.com>
45695
45696         * tests/test-hmac-md5.c: New file.
45697
45698         * modules/hmac-md5-tests: New file.
45699
45700         * modules/hmac-md5: New file.
45701
45702 2005-10-06  Simon Josefsson  <jas@extundo.com>
45703
45704         * m4/hmac-md5.m4: New file.
45705
45706         * m4/memxor.m4: Require gl_C_RESTRICT.
45707
45708 2005-10-06  Simon Josefsson  <jas@extundo.com>
45709
45710         * lib/memxor.c (memxor): Avoid casts and warnings.
45711
45712 2005-10-06  Simon Josefsson  <jas@extundo.com>
45713
45714         * lib/hmac-md5.c: New file.
45715
45716         * lib/hmac.h: New file.
45717
45718 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45719
45720         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
45721         promotes to int, not unsigned int, to catch the AIX 5.3
45722         compiler bug.
45723
45724 2005-10-05  Simon Josefsson  <jas@extundo.com>
45725
45726         * modules/memxor: New file.
45727
45728         * modules/iconv (Files): Move config.rpath to havelib, it is used
45729         there.
45730
45731         * modules/havelib (Files): Add config.rpath.
45732
45733 2005-10-05  Simon Josefsson  <jas@extundo.com>
45734
45735         * m4/memxor.m4: New file.
45736
45737 2005-10-05  Simon Josefsson  <jas@extundo.com>
45738
45739         * lib/memxor.c (memxor): Fix compiler error.
45740
45741         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
45742         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
45743
45744         * lib/memxor.h, lib/memxor.c: New files.
45745
45746         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
45747         we assume all systems have it, suggested by Jim Meyering
45748         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
45749         any systems lack sys/socket.h; mingw32 is known to lack it, but we
45750         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
45751         same reasons.
45752
45753 2005-10-05  Simon Josefsson  <jas@extundo.com>
45754
45755         * config/srclist.txt: Add glibc bug 1423 for md5.h.
45756
45757 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45758
45759         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
45760         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
45761         needed, since the source code now assumes these .h files.
45762
45763 2005-10-05  Derek Price  <derek@ximbiot.com>
45764
45765         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
45766
45767 2005-10-05  Bruno Haible  <bruno@clisp.org>
45768
45769         * modules/stdint (License): Change to LGPL.
45770
45771 2005-10-04  Simon Josefsson  <jas@extundo.com>
45772
45773         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
45774         D. Baushke" <mdb@gnu.org>.
45775
45776 2005-10-04  Bruno Haible  <bruno@clisp.org>
45777
45778         * lib/verify.h (verify_true): Provide alternative definition for C++.
45779
45780 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
45781
45782         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
45783         (SSIZE_MAX): New macro, if not already defined.
45784         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
45785         than 2 GiB.
45786
45787 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45788
45789         Sync from coreutils.
45790         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
45791         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
45792         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
45793         ULLONG_MAX doesn't work with 2.7.2.1.
45794
45795 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45796
45797         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
45798         From Ben Pfaff.
45799
45800         * modules/exclude (Depends-on): Depend on verify.
45801         * modules/strtoimax (Depends-on): Likewise.
45802         * modules/utimecmp (Depends-on): Likewise.
45803
45804 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45805
45806         * lib/exclude.c: Include verify.h.
45807         (verify): Remove.  All callers changed to use verify.h's version.
45808         * lib/strtoimax.c: Likewise.
45809         * lib/utimecmp.c: Likewis.e
45810
45811         Sync from coreutils.
45812         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
45813         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
45814         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
45815         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
45816         bother returning ENOSYS if settimeofday or stime fails; just let
45817         them return whatever errno they want to return.
45818         * lib/utimens.c: Include unistd.h, for dup2.
45819         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
45820         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
45821
45822 2005-10-02  Jim Meyering  <jim@meyering.net>
45823
45824         Sync from coreutils.
45825         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
45826         from glibc-2.2.5 that fails for read-only files.
45827
45828 2005-10-02  Jim Meyering  <jim@meyering.net>
45829
45830         Sync from coreutils.
45831         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
45832         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
45833         `#if HAVE_CONFIG_H'.
45834         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
45835         Remove AT_FDCWD test.
45836         Do not consume the fd unless successful.
45837         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
45838         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
45839         block, so that we don't even try to compile it if settimeofday is
45840         available.  This works around a compilation failure on OSF1 V5.1,
45841         due to stime requiring a `long int*' while tv_sec is `int'.
45842
45843 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
45844
45845         Sync from coreutils.
45846         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
45847         against `yes', rather than just testing for nonempty.
45848
45849 2005-10-01  Simon Josefsson  <jas@extundo.com>
45850
45851         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
45852         and Darwin.
45853
45854         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
45855         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
45856         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
45857         freeaddrinfo and gai_strerror are declared by the POSIX headers.
45858         Check if struct addrinfo is declared.
45859
45860 2005-10-01  Simon Josefsson  <jas@extundo.com>
45861
45862         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
45863         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
45864         AI_* and EAI_* definitions.  Protect function declarations.
45865
45866 2005-10-01  Jim Meyering  <jim@meyering.net>
45867
45868         Sync from coreutils.
45869
45870         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
45871         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
45872         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
45873         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45874         in the inet and nsl libraries.  Required on Solaris 5.7.
45875
45876 2005-10-01  Jim Meyering  <jim@meyering.net>
45877
45878         Sync from coreutils.
45879         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45880         in the inet and nsl libraries.  Required on Solaris 5.7.
45881
45882 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
45883
45884         * lib/getdelim.c (getdelim): Remove unused variables.
45885
45886 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
45887
45888         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
45889         so that the code works even with ancient cpp.  Portability problem
45890         with GCC 2.7.2.1 reported by Thomas M.Ott.
45891
45892 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
45893
45894         * modules/regex (Depends-on): Add strcase.
45895
45896         * modules/gethostname (Licence): Change from GPL to LGPL, since
45897         gethostname.c is a trivial implementation of a standard library
45898         function.
45899         * modules/poll (License): Change from GPL to LGPL, since it's
45900         derived from LGPL code.
45901
45902 2005-09-27  Jim Meyering  <jim@meyering.net>
45903
45904         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
45905         HAVE_CONFIG_H.
45906
45907         * lib/intprops.h (signed_type_or_expr__): Define.
45908         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
45909         for unsigned types.
45910
45911 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
45912
45913         * lib/verify.h (verify_expr): Remove, replacing with:
45914         (verify_true): New macro that returns true instead of void.
45915         (verify_type__): Remove.
45916         (verify): Use verify_true rather than verify_type__.
45917
45918 2005-09-26  Bruno Haible  <bruno@clisp.org>
45919
45920         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
45921         is necessary.
45922         (lib_SOURCES): Remove mbchar.c.
45923         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
45924         (Files): Add m4/mbrtowc.m4.
45925         * modules/mbiter: Likewise.
45926         * modules/mbuiter: Likewise.
45927
45928 2005-09-26  Bruno Haible  <bruno@clisp.org>
45929
45930         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
45931         compile mbchar.c if they are not both present.
45932         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
45933         * m4/mbiter.m4 (gl_MBITER): Likewise.
45934         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
45935         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
45936         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
45937
45938 2005-09-25  Jim Meyering  <jim@meyering.net>
45939
45940         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
45941         also uses socklen_t.
45942
45943 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
45944
45945         * lib/utimens.c (ENOSYS): Define if not already defined.
45946         (futimens): Support having a null PATH if the file descriptor
45947         is nonnegative.
45948
45949         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
45950         Remove.
45951         (__attribute): Define to empty unless GCC 3.1 or later.
45952         This works around a core dump on OpenBSD 3.4, which has GCC
45953         2.95.3, which dumps core when given __attribute__(()).  It also
45954         simplifies other tests, since we really don't want to bother with
45955         worrying about which ancient version of GCC supported what.
45956         Original problem reported by Yoann Vandoorselaere, with part of
45957         the fix suggested by Derek Price.
45958
45959 2005-09-24  Jim Meyering  <jim@meyering.net>
45960
45961         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
45962         so we can once again use a positive bitfield width of 1 -- now we
45963         don't have to explain why we were using a bitfield width of 2.
45964
45965 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
45966
45967         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
45968         and similarly for the other external symbols.  Problem reported
45969         by James Gallager.
45970
45971         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
45972         bug reported by Jim Meyering.
45973
45974         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
45975         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
45976         not needed, since socklen is a prerequisite module.
45977
45978 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
45979
45980         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
45981         Problem reported by Eric Blake.
45982         (getaddrinfo): Initialize se so that it's not garbage.
45983         Redo internal storage allocation so that it doesn't make unportable
45984         assumptions about alignment.
45985         Fix a memory leak.
45986
45987         * lib/utimens.c (futimens): Use futimesat if available.
45988         Prefer it to futimes since it doesn't have the futimes bug.
45989
45990         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
45991         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
45992         Instead, declare a function that returns a pointer to an array,
45993         and use verify_type__ to declare the size of the array.
45994         Problem and germ of a solution reported by Bruno Haible.
45995         (verify_type__): Use 2, not 1, for bitfield size, to avoid
45996         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
45997
45998 2005-09-23  Jim Meyering  <jim@meyering.net>
45999
46000         Sync from coreutils.
46001         Correct build failure (socklen_t not defined) on at least
46002         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
46003         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
46004
46005 2005-09-23  Jim Meyering  <jim@meyering.net>
46006
46007         * modules/getaddrinfo (Depends-on): Add socklen.
46008
46009 2005-09-23  Bruno Haible  <bruno@clisp.org>
46010
46011         * tests/test-verify.c: New file.
46012
46013 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46014
46015         Sync from coreutils.
46016
46017         * modules/argmatch (Depends-on): Add verify.
46018         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
46019         unistd-safer.
46020         * modules/save-cwd (Depends-on): Likewise.
46021
46022         * modules/openat (Files): Add lib/openat-die.c.
46023         (Depends-on): Remove error, exitfail.
46024         Add dirname.
46025
46026         * modules/verify: New file.
46027         * MODULES.html.sh (Diagnostics <assert.h>): New section,
46028         with "verify" module.
46029
46030 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46031
46032         Sync from coreutils.
46033
46034         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
46035         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
46036         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
46037         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
46038         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
46039         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
46040         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
46041         Don't bother checking for string.h, stdlib.h, unistd.h.
46042         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
46043         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
46044         module's job.
46045         * m4/jm-macros.m4 (gl_MACROS): Likewise.
46046         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
46047
46048         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
46049         (gl_GETDATE): Use it.
46050
46051         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
46052
46053 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46054
46055         Sync from coreutils.
46056
46057         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
46058         stat-time.h.
46059         * lib/argmatch.h: Include verify.h
46060         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
46061         (ARGMATCH_ASSERT): Remove; unused.
46062         * lib/canonicalize.c: Assume STDC_HEADERS.
46063         * lib/exclude.c: Include "strcase.h".
46064         * lib/regex_internal.h [!defined _LIBC]: Likewise.
46065         * lib/getusershell.c: Include stdio--.h rather than stdio.h
46066         and stdio-safer.h.
46067         (getusershell): Call fopen, not fopen_safer.
46068         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
46069         Do not include unistd-safer.h.
46070         (save_cwd): Don't call fd_safer; no longer needed
46071         now that we include fcntl--.h.
46072
46073         * lib/getdate.y (relative_time): New type.
46074         (RELATIVE_TIME_0): New constant.
46075         (parser_control): Use relative_time instead of doing it ourselves.
46076         (%union): Add new relative_time rel member.
46077         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
46078         Now typeless.
46079         (relunit, relunit_snumber): Now of type rel.
46080         (zone, rel, relunit, get_date): Adjust to above changes.
46081
46082         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
46083         Do not include unistd-safer.h.
46084         (getloadavg): Don't call fd_safer; no longer needed
46085         now that we include fcntl--.h.
46086
46087         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
46088         (make_dir_parents): Treat ENOSYS like EEXIST.
46089
46090         Improve quality of diagnostics on restore_cwd failure.
46091         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
46092         (make_dir_parents): Last arg is now int * (for errno), not bool *.
46093         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
46094         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
46095         each time through the loop.  Do not diagnose restore_cwd failure;
46096         that is the caller's job (and perhaps the caller does not care).
46097
46098         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
46099         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
46100         If the file already exists but is not a directory, don't bother
46101         to try to make its parents.
46102         Close potential file descriptor leak if we can't chdir("/") (!).
46103         Don't always return true if chdir($PWD) fails; return true only
46104         if the requested action was done successfully (except for the
46105         chdir($PWD)).
46106         Don't log final directory unless we actually made it.
46107         Refactor to avoid duplicate code to fix up permissions.
46108         Don't attempt to fix up parent permissions if chdir($PWD) fails.
46109
46110         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
46111         to make it a bit faster and (I hope) clearer.
46112         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
46113         Fix bug in formats like %2N.
46114
46115         * lib/verify.h: New file.
46116
46117 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46118
46119         Sync from coreutils.
46120         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
46121
46122 2005-09-22  Jim Meyering  <jim@meyering.net>
46123
46124         Sync from coreutils.
46125
46126         * m4/lstat.m4 (gl_FUNC_LSTAT):
46127         Use AC_LIBSOURCES to require lstat.c and lstat.h.
46128         Remove obsolete comment.
46129         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
46130         * m4/xstrtod.m4: Likewise.
46131
46132         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
46133
46134 2005-09-22  Jim Meyering  <jim@meyering.net>
46135
46136         Sync from coreutils.
46137
46138         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
46139
46140         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
46141         the .tm_year member, since otherwise gcc-4.0 would now warn about
46142         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
46143
46144         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
46145         order to avoid an unsuppressible warning from gcc on 64-bit systems.
46146
46147         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
46148         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
46149         when run in a time zone for which daylight savings time is in effect
46150         for the starting date.
46151
46152         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
46153         stop us from restricting permissions of just-created absolute-named
46154         directories.
46155         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
46156         to restore initial working directory.
46157         * lib/mkdir-p.c (make_dir_parents): New parameter:
46158         different_working_dir, to tell caller if/when we change the working
46159         directory and are unable to return to the initial one.
46160         * lib/mkdir-p.h (make_dir_parents): Update prototype.
46161         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
46162         `return false'.  This fixes a bug introduced on 2004-07-30.
46163
46164         * lib/openat.c (fdopendir): Be sure to close the supplied
46165         file descriptor before returning.  This makes our replacement
46166         implementation a little closer to Solaris's, where fdopendir
46167         ties the file descriptor to the returned DIR* pointer.
46168         * lib/openat.c (unlinkat): New function.
46169         * lib/openat.h (unlinkat): Add prototype.
46170         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
46171         (openat_restore_fail): Rename from openat_restore_die.
46172         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
46173
46174         Provide an alternative to exiting immediately upon save_cwd or
46175         restore_cwd failure.  Now, an application can arrange e.g.,
46176         to perform a longjump in that case.
46177         * lib/openat.c: Include dirname.h.
46178         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
46179         (rpl_openat, fdopendir, fstatat): Call openat_save_die
46180         and openat_restore_die rather than calling error directly.
46181         Don't include "error.h" or "exitfail.h"; they're no longer needed.
46182
46183         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
46184         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
46185         define.
46186
46187         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
46188         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
46189                             int utc, int nanoseconds);
46190         Background:
46191         date should not have to allocate a megabyte of virtual memory to
46192         handle a format argument like +%1048575T.  When implemented with
46193         strftime, it must allocate such a buffer, use strftime to fill it
46194         in, print it, then free it.
46195         With fprintftime, it simply prints everything and exits.
46196         With no need for memory allocation, that's one fewer way to fail.
46197         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
46198         optional field width, not before, so we accept %9:z, not %:9z.
46199         (my_strftime): Be sure to use L_('x') for literals.
46200
46201         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
46202         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
46203         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
46204         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
46205         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
46206         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
46207         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
46208         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
46209         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
46210         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
46211         * lib/xgethostname.c, lib/xreadlink.c:
46212         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
46213
46214         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
46215         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
46216         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
46217         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
46218         and don't include <sys/file.h>).
46219
46220 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
46221
46222         Sync from coreutils.
46223
46224         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
46225         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
46226         [!LDAV_DONE]: Avoid unused variable warning.
46227
46228 2005-09-21  Bruno Haible  <bruno@clisp.org>
46229
46230         * lib/unicodeio.h (unicode_to_mb): New declaration.
46231
46232 2005-09-20  Derek Price  <derek@ximbiot.com>
46233
46234         * lib/getaddrinfo.c: Don't include <netdb.h> included from
46235         getaddrinfo.h.
46236
46237 2005-09-20  Bruno Haible  <bruno@clisp.org>
46238
46239         * gnulib-tool: Remove trailing slashes from the values specified for
46240         --source-base, --m4-base, --tests-base, --aux-dir.
46241         Suggested by Simon Josefsson <jas@extundo.com>.
46242
46243 2005-09-20  Bruno Haible  <bruno@clisp.org>
46244
46245         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
46246         func_modules_to_filelist, func_import, func_create_testdir): Make all
46247         sorting results locale-independent, so that gnulib-cache.m4 doesn't
46248         change when gnulib-tool is invoked in a different locale.
46249
46250 2005-09-19  Simon Josefsson  <jas@extundo.com>
46251
46252         * m4/socklen.m4: Fix typo.
46253
46254 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46255
46256         Use a consistent style for including <config.h>.
46257         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
46258         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
46259         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
46260         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
46261         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
46262         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
46263         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
46264         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
46265         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
46266         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
46267         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
46268         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
46269         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
46270         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
46271         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
46272         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
46273         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
46274         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
46275         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
46276         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
46277         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
46278         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
46279         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
46280         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
46281         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
46282         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
46283         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
46284         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
46285         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
46286         lib/xstrtoumax.c, lib/yesno.c:
46287         Standardize inclusion of config.h.
46288         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
46289         lib/inttostr.h:  Removed inclusion of config.h from header files.
46290         * lib/inttostr.c:  Adjusted in-tree users.
46291         * lib/timespec.h: Remove superfluous warning to include config.h.
46292         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
46293         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
46294         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
46295         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
46296         config.h with HAVE_CONFIG_H.
46297
46298 2005-09-19  Jim Meyering  <jim@meyering.net>
46299
46300         * modules/pathmax (License): Change to LGPL.
46301
46302 2005-09-19  Derek Price  <derek@ximbiot.com>
46303
46304         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
46305
46306 2005-09-19  Bruno Haible  <bruno@clisp.org>
46307
46308         * gnulib-tool (import): Provide default for --tests-base.
46309
46310 2005-09-19  Bruno Haible  <bruno@clisp.org>
46311
46312         * doc/quote.texi: New file, extracted from gnulib.texi.
46313         * doc/ctime.texi: New file, extracted from gnulib.texi.
46314         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
46315         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
46316         * doc/gnulib.texi: Include them.
46317
46318 2005-09-18  Bruno Haible  <bruno@clisp.org>
46319
46320         Portability fix.
46321         * gnulib-tool (func_readlink): New function.
46322         (func_ln_if_changed): Use it.
46323
46324 2005-09-18  Bruno Haible  <bruno@clisp.org>
46325
46326         * gnulib-tool: Support --with-tests also with --import.
46327         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
46328         (func_import): Use variables $testsbase and $inctests. Emit a
46329         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
46330         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
46331         SUBDIRS += $testsdir.
46332         (func_create_testdir): Update.
46333
46334 2005-09-18  Bruno Haible  <bruno@clisp.org>
46335
46336         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
46337         instead of $dry_run.
46338         (func_cp_if_changed, func_mv_if_changed): Remove functions.
46339         (func_ln_if_changed): Don't handle dry-run here.
46340         (func_import): In dry-run mode, detect more precisely which actions
46341         would be performed, and don't use "...ing" verbs.
46342
46343 2005-09-18  Bruno Haible  <bruno@clisp.org>
46344
46345         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
46346         (func_import): Use join on two temporary files instead of three nested
46347         loops, in order to determine which files are new or old.
46348
46349 2005-09-18  Bruno Haible  <bruno@clisp.org>
46350
46351         * gnulib-tool (func_import): Comment out code that spits out the
46352         new files with --dry-run.
46353
46354 2005-09-18  Bruno Haible  <bruno@clisp.org>
46355
46356         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
46357
46358 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46359
46360         * lib/stat-time.h: New file.
46361         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
46362         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
46363         in a different way.
46364         (timespec_cmp): New function.
46365         * lib/utimecmp.c: Include stat-time.h.
46366         (SYSCALL_RESOLUTION): Depend on whether various struct stat
46367         members exist, not on the obsolescent ST_MTIM_NSEC.
46368         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
46369
46370 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46371
46372         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
46373
46374 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46375
46376         * MODULES.html.sh (File system functions): Add stat-time.
46377         * modules/stat-time: New file.
46378         * modules/timespec (Files): Remove m4/st_mtim.m4; this
46379         is now done in a different way, by the stat-time module.
46380         * modules/utimecmp (Depends-on): Add stat-time.
46381
46382 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46383
46384         * m4/st_mtim.m4: Remove.  Superseded by...
46385         * m4/stat-time.m4: New file.
46386         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
46387         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
46388
46389 2005-09-15  Derek Price  <derek@ximbiot.com>
46390
46391         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
46392
46393 2005-09-15  Derek Price  <derek@ximbiot.com>
46394
46395         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
46396         * lib/regex_internal.c: Ditto, using this...
46397         (__GNUC_PREREQ): ...new macro.
46398         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
46399         using...
46400         (__GNUC_PREREQ): ...this new macro.
46401
46402         * lib/strstr.h: Include string.h. Define strstr as a macro here.
46403
46404 2005-09-15  Derek Price  <derek@ximbiot.com>
46405             Paul Eggert  <eggert@cs.ucla.edu>
46406
46407         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
46408         changes, consolidating in...
46409         * lib/regex_internal.h: ...this file.
46410
46411 2005-09-13  Jim Meyering  <jim@meyering.net>
46412
46413         * lib/canon-host.c: Filter through gnu indent and reword comments
46414         slightly.
46415         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
46416
46417 2005-09-13  Derek Price  <derek@ximbiot.com>
46418
46419         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
46420         failure.
46421         Reported by Jim Meyering  <jim@meyering.net>.
46422
46423 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46424
46425         * lib/base64.c: Typo.
46426         (base64_encode): Put b64str in initialized data section.
46427
46428 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
46429
46430         Merge glibc and coreutils changes into gnulib, plus a few
46431         extra fixes.
46432         * lib/md5.c: Use #error rather than a string.
46433         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
46434         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
46435         (__attribute__): Define to empty for non recent-GCC.
46436         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
46437         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
46438         Renamed from their non-__ counterparts, with new macros replacing
46439         them if not _LIBC.  Add __THROW attribute.
46440         (rol): Remove.
46441         (struct md5_ctx): Align buffer if using GCC.
46442         * lib/sha1.h (struct sha1_ctx): Likewise.
46443         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
46444         The old name was backwards.
46445         (NOTSWAP): Remove; not used.
46446         (rol): New macro, moved here from md5.h.
46447         (sha1_process_block): Remove a FIXME that doesn't make sense.
46448
46449 2005-09-12  Derek Price  <derek@ximbiot.com>
46450
46451         Return usable errors from canon-host.
46452         * lib/canon-host.h: New file.
46453         * lib/canon-host.c (canon_host): Wrap...
46454         (canon_host_r): ...this new function, which now relies exclusively on
46455         getaddrinfo.
46456         (ch_strerror): New function.
46457         (last_cherror): New global.
46458         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
46459         interface.
46460         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
46461         void *.
46462         (freeaddrinfo): Free ai->ai_canonname when set.
46463
46464 2005-09-12  Derek Price  <derek@ximbiot.com>
46465
46466         Make canon-host require getaddrinfo.
46467         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
46468         AC_LIBSOURCE canon-host.h.  Call...
46469         (gl_PREREQ_CANON_HOST): ...this new function, which requires
46470         gl_GETADDRINFO.
46471         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
46472
46473 2005-09-12  Derek Price  <derek@ximbiot.com>
46474
46475         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
46476         LGPL.
46477         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
46478
46479 2005-09-12  Derek Price  <derek@ximbiot.com>
46480
46481         * lib/gai_strerror.c: Include config.h when available.  Include
46482         getaddrinfo.h before other headers to test interface.
46483         Reported by Larry Jones <lawrence.jones@ugs.com>.
46484
46485 2005-09-12  Derek Price  <derek@ximbiot.com>
46486             Paul Eggert  <eggert@cs.ucla.edu>
46487
46488         * modules/glob (Files): Add glob-libc.h.
46489
46490 2005-09-12  Derek Price  <derek@ximbiot.com>
46491             Paul Eggert  <eggert@cs.ucla.edu>
46492
46493         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
46494         glob_.h, glob-libc.h.
46495         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
46496
46497 2005-09-12  Derek Price  <derek@ximbiot.com>
46498             Paul Eggert  <eggert@cs.ucla.edu>
46499
46500         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
46501         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
46502         protecting things that should be done only in gnulib contexts.
46503         * lib/glob_.h: New file, containing only the glob things needed for
46504         gnulib.
46505         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
46506         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
46507         (glob, globfree, glob_pattern_p): Now defined simply in terms of
46508         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
46509         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
46510         and to respect the namespace rules better.
46511
46512 2005-09-08  Simon Josefsson  <jas@extundo.com>
46513
46514         * modules/socklen: New file.
46515
46516 2005-09-08  Simon Josefsson  <jas@extundo.com>
46517
46518         * m4/socklen.m4: New file.
46519
46520 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46521
46522         * modules/utimens (Files): Add m4/utimbuf.m4, since
46523         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
46524         Reported by Sergey Poznyakoff.
46525
46526 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46527
46528         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
46529         definitions, since that's the preferred style in glibc.
46530         Fix a minor spacing issue, and update copyright notice to match
46531         glibc's.
46532
46533 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46534
46535         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
46536
46537 2005-09-06  Simon Josefsson  <jas@extundo.com>
46538
46539         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
46540         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
46541
46542 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46543
46544         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
46545         warning.
46546
46547 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46548
46549         * config/srclist.txt: Add glibc bug 1302.
46550
46551 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
46552
46553         Change bitset word type from unsigned int to unsigned long int,
46554         as this has better performance on typical 64-bit hosts.
46555         Port bitset code to hosts with unusual word sizes.
46556         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
46557         (build_collating_symbol):
46558         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
46559         argument is a bitset.  This is merely a style issue, but it makes
46560         it clearer that an entire array is expected.
46561         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
46562         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
46563         Port to the case where bitset_word is not the same as unsigned int.
46564         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46565         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
46566         Likewise.
46567         * lib/regexec.c (check_dst_limits_calc_pos_1,
46568         check_subexp_matching_top):
46569         (build_trtable, group_nodes_into_DFAstates):
46570         Likewise.
46571         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
46572         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
46573         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
46574         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
46575         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
46576         * lib/regcomp.c (optimize_subexps, lower_subexp):
46577         Work even if bitset_word has holes in its bitwise representation.
46578         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
46579         * lib/regexec.c (check_dst_limits_calc_pos_1,
46580         check_subexp_matching_top):
46581         Likewise.
46582         * lib/regex_internal.c (re_string_reconstruct):
46583         Don't assume UCHAR_MAX == 255.
46584         * lib/regex_internal.h (bitset_set_all): Likewise.
46585         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
46586         All uses changed.
46587         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
46588         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
46589         All uses changed.
46590         (BITSET_WORD_MAX): New macro.
46591         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
46592         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
46593         (bitset_empty, bitset_copy):
46594         Prefer sizeof (bitset) to multiplying it out ourselves.
46595         (bitset_not_merge): Remove; unused.
46596         (bitset_contain): Return bool, not unsigned int with one bit on.
46597         All callers changed.
46598         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
46599         alignment than re_node_set; do this by defining a new internal
46600         type struct dests_alloc and using it to allocate memory.
46601
46602 2005-09-05  Bruno Haible  <bruno@clisp.org>
46603
46604         * gnulib-tool (func_import): Fix comparison in handling of symbolic
46605         links.
46606
46607 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
46608
46609         * modules/size_max (Makefile.am): Add size_max.h
46610
46611 2005-09-04  Derek Price  <derek@ximbiot.com>
46612
46613         * gnulib-tool (func_import): Fix reversed $symbolic logic.
46614
46615 2005-09-03  Simon Josefsson  <jas@extundo.com>
46616
46617         * gnulib-tool: Fix typo.
46618
46619 2005-09-03  Simon Josefsson  <jas@extundo.com>
46620
46621         * config/srclist.txt: Add glibc bug 1293.
46622
46623 2005-09-03  Derek Price  <derek@ximbiot.com>
46624
46625         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
46626         From Larry Jones <lawrence.jones@ugs.com>.
46627
46628 2005-09-02  Simon Josefsson  <jas@extundo.com>
46629
46630         * modules/socklen: New file.
46631
46632 2005-09-02  Simon Josefsson  <jas@extundo.com>
46633
46634         * modules/havelib: New module.
46635
46636         * modules/gettext, modules/iconv, modules/lock, modules/readline:
46637         Use havelib.
46638
46639 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46640
46641         Check for arithmetic overflow when calculating sizes, to prevent
46642         some buffer-overflow issues.  These patches are conservative, in the
46643         sense that when I couldn't determine whether an overflow was possible,
46644         I inserted a run-time check.
46645         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
46646         macros.
46647         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
46648         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
46649         (re_xnrealloc, re_x2nrealloc): New inline functions.
46650         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
46651         parse_bracket_exp):
46652         (build_equiv_class, build_charclass): Check for arithmetic overflow
46653         in size expression calculations.
46654         * lib/regex_internal.c (re_string_realloc_buffers):
46655         (build_wcs_upper_buffer, re_node_set_add_intersect):
46656         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
46657         (re_dfa_add_node, register_state): Likewise.
46658         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
46659         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
46660         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
46661         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
46662
46663 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46664
46665         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
46666         m4/ulonglong.m4.  Problem reported by Martin Lambers.
46667
46668 2005-09-02  Bruno Haible  <bruno@clisp.org>
46669
46670         Support for lib vs. lib64 distinction on biarch platforms.
46671         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
46672         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
46673         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
46674
46675 2005-09-02  Bruno Haible  <bruno@clisp.org>
46676
46677         * gnulib-tool (import): In the other first-use case, provide defaults
46678         as well.
46679
46680 2005-09-02  Bruno Haible  <bruno@clisp.org>
46681
46682         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
46683         patches not yet found in the latest gettext release.
46684
46685 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46686
46687         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
46688         to avoid a collision with bits/local_lim.h in glibc.
46689         All uses changed.  Problem reported by Dmitry V. Levin in
46690         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
46691
46692         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
46693         bugs in int versus size_t comparisons.
46694         (re_string_context_at): Fix bug where the code assumed that
46695         Idx is signed.
46696
46697         Use bool where appropriate.
46698         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
46699         All callers changed.
46700         (calc_eclosure_iter): Likewise, for ROOT arg.
46701         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
46702         (build_charclass_op): Likewise, for NON_MATCH arg.
46703         * lib/regex_internal.c (re_string_allocate, re_string_construct):
46704         (re_string_construct_common): Likewise, for ICASE arg.
46705         * lib/regexec.c (re_search_2_stub, re_search_stub):
46706         Likewise, for RET_LEN arg.
46707         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
46708         (set_regs): Likewise, for FL_BACKTRACK arg.
46709         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
46710         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
46711         (calc_eclosure_iter, parse_bracket_exp):
46712         Use bool for internal variables that are booleans.
46713         * lib/regexec.c (re_search_internal, check_matching,
46714         proceed_next_node):
46715         (set_regs, build_sifted_states, sift_states_bkref):
46716         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
46717         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
46718         (find_collation_sequence_value):
46719         Likewise.
46720         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
46721         (re_node_set_compare):
46722         Return bool, not int. All callers changed.
46723         * lib/regexec.c (check_halt_node_context, check_dst_limits):
46724         (build_trtable, check_node_accept): Likewise.
46725         * lib/regex_internal.h: Include stdbool.h.
46726
46727         Fix bugs uncovered when converting to bool.
46728         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
46729         failure instead of charging ahead blindly.
46730         * lib/regex_internal.c (register_state): Likewise.
46731         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
46732         for freeing internal storage.
46733         (group_nodes_into_DFA_states): Use unsigned int, not int, for
46734         bitset pieces used as boolean, to avoid undefined behavior
46735         on hosts that do int overflow checking.
46736
46737 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46738
46739         * config/srclist.txt: Add glibc bugs 1285-1287.
46740
46741 2005-09-01  Jim Meyering  <jim@meyering.net>
46742
46743         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
46744         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
46745         Require gl_STAT_MACROS, too.
46746
46747 2005-09-01  Bruno Haible  <bruno@clisp.org>
46748
46749         * gnulib-tool (import): In the first-use case, provide defaults.
46750
46751 2005-09-01  Bruno Haible  <bruno@clisp.org>
46752
46753         * gnulib-tool (func_import): Remove the .tmp files.
46754
46755 2005-09-01  Bruno Haible  <bruno@clisp.org>
46756
46757         * gnulib-tool (func_import): Fix handling of symbolic links.
46758
46759 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46760
46761         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
46762         old glibc regex code mishandles strings longer than 2**31 bytes.
46763         This patch fixes this when the regex code is used in gnulib
46764         (i.e., outside glibc).
46765
46766         This patch should not affect the use of the regex code inside
46767         glibc.  No doubt this problem also needs to be handled for glibc
46768         as well, but the result will be an incompatible change to the
46769         glibc ABI, and the old ABI will have to be supported too.  That
46770         can be the the subject for another patch.
46771
46772         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
46773         governing whether the rest of this patch is active.  By default,
46774         the macro is disabled and the patch has no effect.
46775         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
46776         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
46777         (struct re_pattern_buffer, re_search, re_search_2, re_match):
46778         (re_match_2, re_set_registers): Use the new types.
46779         * lib/regex_internal.h (Idx, re_hashval_t): New types.
46780         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
46781         New macros.
46782         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
46783         (re_string_context_at, bin_tree_t, re_dfastate_t):
46784         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
46785         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
46786         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
46787         (re_string_char_size_at, re_string_wchar_at):
46788         (re_string_elem_size_at):
46789         Use the new types and macros to port to 64-bit hosts.
46790         Use unsigned types for internal values, so that the code
46791         mostly works even for arrays larger than SSIZE_MAX.
46792         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
46793         (search_duplicated_node, calc_eclosure_iter, fetch_number):
46794         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
46795         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
46796         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
46797         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
46798         (calc_inveclosure, parse_dup_op, build_range_exp):
46799         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
46800         (fetch_number, create_token_tree, mark_opt_subexp):
46801         Likewise.
46802         * lib/regex_internal.c (re_string_construct_common,
46803         create_ci_newstate):
46804         (create_cd_newstate, re_string_allocate, re_string_construct):
46805         (re_string_realloc_buffers, build_wcs_upper_buffer):
46806         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
46807         (re_string_reconstruct, re_string_peek_byte_case):
46808         (re_string_fetch_byte_case, re_string_context_at):
46809         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
46810         (re_node_set_init_copy, re_node_set_add_intersect):
46811         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
46812         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
46813         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
46814         (re_acquire_state, re_acquire_state_context, register_state):
46815         Likewise.
46816         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
46817         search_cur_bkref_entry):
46818         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
46819         (re_search_internal, re_search_2_stub, re_search_stub)
46820         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
46821         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
46822         (update_cur_sifted_state, check_dst_limits):
46823         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46824         (check_subexp_limits, sift_states_bkref, merge_state_array):
46825         (check_subexp_matching_top, get_subexp, get_subexp_sub):
46826         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
46827         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
46828         (expand_bkref_cache, check_node_accept_bytes):
46829         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
46830         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
46831         (acquire_init_state_context, check_halt_node_context):
46832         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
46833         (sift_states_backward, clean_state_log_if_needed):
46834         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
46835         (find_recover_state, transit_state_sb, transit_state_mb):
46836         (transit_state_bkref, build_trtable, match_ctx_clean):
46837         Likewise.
46838         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
46839         to work around an assumption that REG_MISSING is negative.
46840
46841         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
46842         (seek_collating_symbol_entry) [defined _LIBC]:
46843         (lookup_collation_sequence_value) [defined _LIBC]:
46844         (build_range_exp, build_collating_symbol) [defined _LIBC]:
46845         Use prototypes rather than old-style function definitions.
46846         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
46847         (transit_state_sb) [0]:
46848         (find_collation_sequence_value) [defined _LIBC]: Likewise.
46849
46850         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
46851         rm_eo.
46852
46853         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
46854         (optimize_subexps, lower_subexp):
46855         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
46856         since the signed shift might overflow.  Use 1u<<31 instead.
46857         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46858         Likewise.
46859         * lib/regexec.c (check_dst_limits_calc_pos_1,
46860         check_subexp_matching_top): Likewise.
46861
46862         * lib/regcomp.c (optimize_subexps, lower_subexp):
46863         Use CHAR_BIT rather than 8, for clarity.
46864         * lib/regexec.c (check_dst_limits_calc_pos_1):
46865         (check_subexp_matching_top): Likewise.
46866         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
46867         have to worry about portability issues when shifting it left.
46868         Remove no-longer-needed test for table_size > 0.
46869         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
46870         in a word, as the resulting behavior is undefined.
46871         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
46872         in one case, a <= should have been an <, and in another case the
46873         whole test was missing.
46874         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
46875         the standard name CHAR_BIT.
46876         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
46877         this is not true on one's complement and signed-magnitude hosts.
46878
46879         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
46880         next_last_offset.
46881         (struct re_dfa_t): Remove unused member states_alloc.
46882         * lib/regcomp.c (init_dfa): Don't initialize unused members.
46883
46884 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46885
46886         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
46887         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
46888         and large-file glibc and in 32-bit large-file Solaris.
46889
46890 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46891
46892         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
46893         lengths fit in regoff_t; this isn't true if regoff_t is the same
46894         width as size_t.
46895         * lib/regex.c (re_search_internal): 5th arg is LAST_START
46896         (= START + RANGE) instead of RANGE.  This avoids overflow
46897         problems when regoff_t is the same width as size_t.
46898         All callers changed.
46899         (re_search_2_stub): Check for overflow when adding the
46900         sizes of the two strings.
46901         (re_search_stub): Check for overflow when adding START
46902         to RANGE; if it occurs, substitute the extreme value.
46903
46904 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46905
46906         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
46907
46908 2005-08-31  Jim Meyering  <jim@meyering.net>
46909
46910         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
46911         a pointer-to-const.
46912         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
46913         (register_state): Likewise.
46914         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
46915         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46916         (group_nodes_into_DFAstates): Likewise.
46917
46918 2005-08-31  Jim Meyering  <jim@meyering.net>
46919
46920         * check-module: Add a FIXME comment.
46921
46922 2005-08-31  Eric Blake  <ebb9@byu.net>
46923
46924         * modules/unistd-safer (Files): Add unistd--.h.
46925         * modules/stdio-safer (Files): Add stdio--.h.
46926
46927 2005-08-31  Derek Price  <derek@ximbiot.com>
46928
46929         * lib/getdelim.c (getdelim): Return EOF on EOF.
46930         Reported by Larry Jones <lawrence.jones@ugs.com>.
46931
46932 2005-08-31  Bruno Haible  <bruno@clisp.org>
46933
46934         Avoid unnecessary diffs in the generated lib/Makefile.am.
46935         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
46936         the generated files.
46937         (func_import): Don't set cmd.
46938
46939 2005-08-31  Bruno Haible  <bruno@clisp.org>
46940
46941         * lib/strstr.c: Include <stddef.h>, for NULL.
46942         * lib/strcasestr.c: Likewise.
46943         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46944
46945 2005-08-31  Bruno Haible  <bruno@clisp.org>
46946
46947         * gnulib-tool: New option --macro-prefix.
46948         (func_import): Use macro_prefix.
46949         (import): Handle option --macro-prefix.
46950
46951 2005-08-31  Bruno Haible  <bruno@clisp.org>
46952
46953         * gnulib-tool (import): Rename most ac_* variables to cached_*.
46954         Also use new variables cached_lgpl, cached_libtool.
46955
46956 2005-08-31  Bruno Haible  <bruno@clisp.org>
46957
46958         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
46959         always instantiating them.
46960
46961 2005-08-31  Bruno Haible  <bruno@clisp.org>
46962
46963         * gnulib-tool (func_import): Read the previous cached settings
46964         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
46965         earlier added by gnulib but are now dropped. Warn when a gnulib file
46966         overwrites a non-gnulib file.
46967
46968 2005-08-31  Bruno Haible  <bruno@clisp.org>
46969
46970         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
46971         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
46972         projects that don't keep autogenerated files in CVS. Put into
46973         actioncmd only the specified modules, not the transitive closure.
46974
46975 2005-08-31  Bruno Haible  <bruno@clisp.org>
46976
46977         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
46978         Create directories that shall be filled.
46979         (import): Don't look for gl_* macros in configure.ac. Recurse across
46980         all directories containing a gnulib-cache.m4 files, if meaningful.
46981
46982 2005-08-31  Bruno Haible  <bruno@clisp.org>
46983
46984         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
46985         (import): Set seen_libtool when we see gl_LIBTOOL.
46986
46987 2005-08-31  Bruno Haible  <bruno@clisp.org>
46988
46989         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
46990         declaration macro definitions from generated gnulib.m4.
46991
46992 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
46993
46994         * lib/iconvme.h: Add prototype for iconv_alloc.
46995
46996 2005-08-29  Simon Josefsson  <jas@extundo.com>
46997
46998         * lib/iconvme.c: Fix errno.
46999
47000 2005-08-29  Bruno Haible  <bruno@clisp.org>
47001
47002         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
47003         that it works when the directory contains spaces.
47004
47005 2005-08-29  Bruno Haible  <bruno@clisp.org>
47006
47007         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
47008
47009 2005-08-29  Bruno Haible  <bruno@clisp.org>
47010
47011         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
47012         Emit more advice.
47013
47014 2005-08-29  Bruno Haible  <bruno@clisp.org>
47015         and Stepan Kasal  <kasal@ucw.cz>
47016
47017         * check-module: If more parameters are given, check each of them
47018         separately; add more exceptions, as noted by Jim Meyering.
47019         (check_module): New procedure.
47020         (%exempt_header): Now contains all exceptions.
47021
47022 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
47023
47024         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
47025
47026 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
47027
47028         * lib/iconvme.c: Split iconv_string into iconv_alloc.
47029
47030 2005-08-28  Bruno Haible  <bruno@clisp.org>
47031
47032         * m4/gnulib-tool.m4: New file.
47033
47034 2005-08-27  Jim Meyering  <jim@meyering.net>
47035
47036         * modules/unistd-safer (Files): Add pipe-safer.c.
47037         * modules/fcntl-safer (Files): Add creat-safer.c.
47038
47039 2005-08-27  Jim Meyering  <jim@meyering.net>
47040
47041         * m4/stdlib-safer.m4: New file.  From coreutils.
47042         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
47043         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
47044         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
47045         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
47046         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
47047
47048 2005-08-27  Jim Meyering  <jim@meyering.net>
47049
47050         * lib/fopen-safer.c: Merge minor changes from coreutils.
47051         * lib/dup-safer.c: Likewise.
47052         * lib/fd-safer.c: Likewise.
47053
47054         Merge from coreutils.
47055         * lib/stdio--.h: New file.
47056         * lib/stdlib--.h: New file.
47057         * lib/mkstemp-safer.c: New file.
47058
47059         GNU tar needs these.
47060         * lib/pipe-safer.c: New file.
47061         * lib/creat-safer.c: New file.
47062         * lib/fcntl--.h (creat): Define to creat_safer.
47063         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
47064         * lib/unistd--.h (pipe): Define to pipe_safer.
47065         * lib/unistd-safer.h: Declare pipe_safer.
47066
47067 2005-08-26  Simon Josefsson  <jas@extundo.com>
47068
47069         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
47070         Haible <bruno@clisp.org>.
47071
47072 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
47073
47074         * lib/regex_internal.h: Remove all references to
47075         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
47076         or better.
47077         (bitset_not, bitset_merge, bitset_not_merge):
47078         (bitset_mask, re_string_allocate, re_string_construct):
47079         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
47080         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
47081         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
47082         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
47083         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47084         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47085         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
47086         (re_acquire_state_context):
47087         Remove unnecessary forward decls.
47088         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
47089         Put __attribute at function definition,
47090         now that the function decl has been removed.
47091         * lib/regex_internal.c (re_string_peek_byte_case):
47092         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
47093         Likewise.
47094
47095 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
47096
47097         * m4/regex.m4: Add AC_PREREQ(2.50).
47098         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
47099
47100 2005-08-25  Simon Josefsson  <jas@extundo.com>
47101
47102         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
47103         __fsetlocking.
47104
47105 2005-08-25  Simon Josefsson  <jas@extundo.com>
47106
47107         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
47108         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
47109         GLIBC specific code.
47110
47111 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47112
47113         Make regex safe for g++.  This fixes one real bug (an "err"
47114         that should have been "*err").  g++ problem reported by
47115         Sam Steingold.
47116         * lib/regex_internal.h (re_calloc): New macro, consistent with
47117         re_malloc etc.  All callers of calloc changed to use re_calloc.
47118         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
47119         not int.  All callers changed.
47120         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
47121         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
47122         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
47123         (find_recover_state): Change "err" to "*err"; this fixes what
47124         appears to be a real bug.
47125         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
47126         versus int.
47127
47128 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47129
47130         * modules/regex (Depends-on): Add malloc, since the code
47131         assumes that !malloc(0) means failure.
47132
47133 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47134
47135         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
47136
47137         alloca modernization/simplification for regex.
47138         * lib/regex.c: Remove portability cruft for alloca.  This no longer
47139         needs to be at the start of the file, and can be moved into
47140         regex_internal.h and simplified.
47141         * lib/regex_internal.h: Include <alloca.h>.
47142         (__libc_use_alloca) [!defined _LIBC]: New macro.
47143         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
47144         now works outside glibc.
47145
47146 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47147
47148         * config/srclist.txt: Add glibc bugs 1241, 1245.
47149
47150 2005-08-25  Jim Meyering  <jim@meyering.net>
47151
47152         * lib/open-safer.c: Include <config.h>.
47153         Otherwise, we'd lose LARGEFILE support in any file using
47154         e.g. "fcntl--.h"
47155
47156 2005-08-25  Bruno Haible  <bruno@clisp.org>
47157
47158         * m4/minmax.m4: Require autoconf 2.52.
47159         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
47160         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
47161         alternatives of translit over the alphabet.
47162         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
47163
47164 2005-08-24  Simon Josefsson  <jas@extundo.com>
47165
47166         * tests/test-getpass.c: New file.
47167
47168 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47169
47170         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
47171         for GNU regex features.
47172
47173 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47174
47175         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
47176         * lib/regex.h (regerror): Likewise.
47177
47178         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
47179         requires this.  (The code never needed it.)
47180
47181         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
47182         All uses of recently-renamed identifiers changed to use the new,
47183         POSIX-compliant names.  The code will build and run just fine
47184         without these changes, but it's better to eat our own dog food
47185         and use the standard-conforming names.
47186
47187         * lib/regex.h: Fix a multitude of POSIX name space violations.
47188         These changes have an effect only for programs that define
47189         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
47190         do not change anything for programs compiled in the normal way.
47191         Also, there is no effect on the ABI.
47192
47193         (_REGEX_SOURCE): New macro.
47194         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
47195         defined and _GNU_SOURCE is not; this fixes a name space violation.
47196
47197         Rename the following macros to obey POSIX requirements.
47198         The old names are still visible as macros if _REGEX_SOURCE is defined.
47199         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
47200         RE_BACKSLASH_ESCAPE_IN_LISTS.
47201         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
47202         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
47203         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
47204         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
47205         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
47206         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
47207         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
47208         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
47209         (REG_INTERVALS): renamed from RE_INTERVALS.
47210         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
47211         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
47212         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
47213         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
47214         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
47215         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
47216         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
47217         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
47218         RE_UNMATCHED_RIGHT_PAREN_ORD.
47219         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
47220         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
47221         (REG_DEBUG): renamed from RE_DEBUG.
47222         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
47223         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
47224         unusual, since we can't clash with the POSIX REG_ICASE.
47225         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
47226         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
47227         (REG_NO_SUB): renamed from RE_NO_SUB.
47228         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
47229         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
47230         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
47231         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
47232         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
47233         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
47234         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
47235         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
47236         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
47237         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
47238         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
47239         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
47240         RE_SYNTAX_POSIX_MINIMAL_BASIC.
47241         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
47242         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
47243         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
47244         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
47245         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
47246         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
47247         (REG_FIXED): Renamed from REGS_FIXED.
47248         (REG_NREGS): Renamed from RE_NREGS.
47249
47250         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
47251         of other REG_* macros, since POSIX says the user is allowed to
47252         #undef these macros selectively.
47253
47254         (reg_errcode_t): Update comment stating what other tables need
47255         to be consistent.
47256
47257         Rename the following enum values to obey POSIX requirements.
47258         The old names are still visible as macros.
47259         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
47260         is not defined, since GNU is supposed to be a superset of POSIX as
47261         much as possible, and since we want reg_errcode_t to be a signed
47262         type for implementation consistency.
47263         (_REG_NOERROR): Renamed from REG_NOERROR.
47264         (_REG_NOMATCH): Renamed from REG_NOMATCH.
47265         (_REG_BADPAT): Renamed from REG_BADPAT.
47266         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
47267         (_REG_ECTYPE): Renamed from REG_ECTYPE.
47268         (_REG_EESCAPE): Renamed from REG_EESCAPE.
47269         (_REG_ESUBREG): Renamed from REG_ESUBREG.
47270         (_REG_EBRACK): Renamed from REG_EBRACK.
47271         (_REG_EPAREN): Renamed from REG_EPAREN.
47272         (_REG_EBRACE): Renamed from REG_EBRACE.
47273         (_REG_BADBR): Renamed from REG_BADBR.
47274         (_REG_ERANGE): Renamed from REG_ERANGE.
47275         (_REG_ESPACE): Renamed from REG_ESPACE.
47276         (_REG_BADRPT): Renamed from REG_BADRPT.
47277         (_REG_EEND): Renamed from REG_EEND.
47278         (_REG_ESIZE): Renamed from REG_ESIZE.
47279         (_REG_ERPAREN): Renamed from REG_ERPAREN.
47280         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
47281         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
47282         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
47283         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
47284
47285         (_REG_RE_NAME, _REG_RM_NAME): New macros.
47286         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
47287         changed.  But support the old name if the new one is not defined
47288         and if _REGEX_SOURCE.
47289
47290         Change the following member names in struct re_pattern_buffer.
47291         The old names are still supported if !_REGEX_SOURCE.
47292         The new names are always supported, regardless of _REGEX_SOURCE.
47293         (re_buffer): Renamed from buffer.
47294         (re_allocated): Renamed from allocated.
47295         (re_used): Renamed from used.
47296         (re_syntax): Renamed from syntax.
47297         (re_fastmap): Renamed from fastmap.
47298         (re_translate): Renamed from translate.
47299         (re_can_be_null): Renamed from can_be_null.
47300         (re_regs_allocated): Renamed from regs_allocated.
47301         (re_fastmap_accurate): Renamed from fastmap_accurate.
47302         (re_no_sub): Renamed from no_sub.
47303         (re_not_bol): Renamed from not_bol.
47304         (re_not_eol): Renamed from not_eol.
47305         (re_newline_anchor): Renamed from newline_anchor.
47306
47307         Change the following member names in struct re_registers.
47308         The old names are still supported if !_REGEX_SOURCE.
47309         The new names are always supported, regardless of _REGEX_SOURCE.
47310         (rm_num_regs): Renamed from num_regs.
47311         (rm_start): Renamed from start.
47312         (rm_end): Renamed from end.
47313
47314         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
47315         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
47316         Prepend __ to parameter names.
47317
47318         Undo yesterday's changes.
47319
47320 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47321
47322         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
47323         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
47324         lib/regex.c.
47325
47326 2005-08-24  Jim Meyering  <jim@meyering.net>
47327
47328         Sync from coreutils.
47329         * m4/fcntl-safer.m4: New file.
47330
47331         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
47332         and object files for this module.
47333
47334 2005-08-24  Jim Meyering  <jim@meyering.net>
47335
47336         Sync from coreutils.
47337         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
47338
47339 2005-08-24  Jim Meyering  <jim@meyering.net>
47340
47341         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
47342         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
47343
47344 2005-08-24  Jim Meyering  <jim@meyering.net>
47345
47346         * modules/fcntl-safer: New module.
47347         * modules/fts (Depends-on): Add fcntl-safer.
47348         * MODULES.html.sh (File descriptor based Input/Output):
47349         Add fcntl-safer.
47350
47351 2005-08-24  Bruno Haible  <bruno@clisp.org>
47352
47353         Support for unit test modules.
47354         * modules/README: Mention tests modules.
47355         * modules/TEMPLATE-TESTS: New file.
47356         * gnulib-tool: New options --extract-tests-module, --with-tests and
47357         --tests-base (unused for the moment).
47358         (testsbase, inctests): New variables.
47359         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
47360         (func_verify_module): Exclude TEMPLATE-TESTS.
47361         (func_verify_nontests_module, func_verify_tests_module): New functions.
47362         (func_get_dependencies): Add implicit dependency for tests modules.
47363         (func_get_tests_module): New function.
47364         (func_modules_transitive_closure): When --with-tests was specified,
47365         include the unit tests as well, unless explicitly avoided.
47366         (func_emit_lib_Makefile_am): Ignore the tests modules here.
47367         (func_emit_tests_Makefile_am): New function.
47368         (func_create_testdir): When --with-tests was specified, emit a
47369         tests/ directory.
47370         * MODULES.html.sh (Future developments): Update.
47371
47372 2005-08-24  Bruno Haible  <bruno@clisp.org>
47373
47374         * modules/tls-tests: New file.
47375         * tests/test-tls.c: New file, from GNU gettext.
47376
47377 2005-08-24  Bruno Haible  <bruno@clisp.org>
47378
47379         * modules/lock-tests: New file.
47380         * tests/test-lock.c: New file, from GNU gettext.
47381
47382 2005-08-24  Bruno Haible  <bruno@clisp.org>
47383
47384         * lib/lock.h: Add multiple inclusion guard.
47385         * lib/tls.h: Add multiple inclusion guard.
47386
47387 2005-08-24  Bruno Haible  <bruno@clisp.org>
47388
47389         * gnulib-tool: Add support for the --aux-dir option to
47390         --create-testdir, --create-megatestdir, --test, --megatest.
47391         (func_create_testdir, func_create_megatestdir): Optionally emit a
47392         AC_CONFIG_AUX_DIR directive.
47393         (create-testdir, create-megatestdir, test, megatest): Provide a
47394         default value for $auxdir.
47395
47396 2005-08-24  Bruno Haible  <bruno@clisp.org>
47397
47398         * gnulib-tool (import): Use compound statement instead of subshell
47399         where possible.
47400
47401 2005-08-24  Bruno Haible  <bruno@clisp.org>
47402
47403         * gnulib-tool (import): Change --aux-dir default to "build-aux".
47404
47405 2005-08-24  Bruno Haible  <bruno@clisp.org>
47406
47407         * gnulib-tool (func_version): Update.
47408
47409 2005-08-24  Bruno Haible  <bruno@clisp.org>
47410
47411         * gnulib-tool (func_import, func_create_testdir,
47412         func_create_megatestdir): Quote all autoconf macro arguments.
47413
47414 2005-08-24  Bruno Haible  <bruno@clisp.org>
47415
47416         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
47417         option --force, because --force causes the aclocal.m4 of each
47418         subdirectory to be newer than the corresponding config.h.in.
47419
47420 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47421
47422         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
47423         All contents moved to gl_REGEX.
47424         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
47425         assume that it does.
47426
47427 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47428
47429         * lib/regex.h (REG_NOSYS)
47430         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
47431         Define, since POSIX requires it as of 2001.
47432         (_REG_ENOSYS)
47433         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
47434         New private symbol, used to keep the enum signed in all cases.
47435         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
47436         Youngman in
47437         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
47438
47439         * lib/regex_internal.c (re_string_skip_chars, register_state):
47440         (calc_state_hash):
47441         Remove forward decls; no longer needed now that we use prototypes.
47442         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
47443         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
47444         (clean_state_log_if_needed): Likewise.
47445
47446 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47447
47448         * config/srclist.txt: Add glibc bugs 1231-1233.
47449
47450 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47451
47452         Fix problems reported by Sam Steingold in
47453         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
47454         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
47455         assumed that reg_errcode_t is a signed type, which is not
47456         necessarily true if _XOPEN_SOURCE is not defined.
47457         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
47458         since some compilers warn about it otherwise.
47459
47460 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47461
47462         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
47463         (init_word_char, create_initial_state, duplicate_node_closure):
47464         (fetch_token, peek_token_bracket, build_range_exp):
47465         (build_collating_symbol): Remove forward decls; no longer needed
47466         now that we use prototypes.
47467
47468         * lib/regcomp.c:
47469         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
47470         (re_compile_fastmap_iter, regcomp, regerror, regfree):
47471         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
47472         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
47473         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
47474         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
47475         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
47476         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
47477         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
47478         (build_range_exp, build_collating_symbol, parse_bracket_exp):
47479         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
47480         (build_charclass, build_charclass_op, fetch_number, create_tree):
47481         (create_token_tree, mark_opt_subexp, duplicate_tree):
47482         Use prototypes rather than old-style definitions.
47483
47484         * lib/regex_internal.c:
47485         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
47486         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
47487         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47488         (re_string_reconstruct, re_string_peek_byte_case):
47489         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
47490         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47491         (re_node_set_init_copy, re_node_set_add_intersect):
47492         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47493         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47494         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47495         (re_acquire_state, re_acquire_state_context, register_state):
47496         (create_ci_newstate, create_cd_newstate, free_state):
47497         Likewise.
47498         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
47499         re_search_2):
47500         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
47501         (re_search_internal, prune_impossible_nodes):
47502         (acquire_init_state_context, check_matching, static):
47503         (check_halt_node_context, check_halt_state_context, proceed_next_node):
47504         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
47505         (update_regs, sift_states_backward, build_sifted_states):
47506         (clean_state_log_if_needed, merge_state_array):
47507         (update_cur_sifted_state, add_epsilon_src_nodes):
47508         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
47509         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
47510         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
47511         (find_recover_state, check_subexp_matching_top, transit_state_mb):
47512         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
47513         (check_arrival, check_arrival_add_next_nodes):
47514         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47515         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
47516         (check_node_accept_bytes, check_node_accept, extend_buffers):
47517         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
47518         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
47519         (sift_ctx_init):
47520         Likewise.
47521
47522         * lib/regex_internal.h:
47523         (re_string_allocate, re_string_construct, re_string_reconstruct):
47524         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
47525         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
47526         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
47527         (re_string_context_at, re_string_peek_byte_case):
47528         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
47529         is defined, since we now use prototypes always.
47530
47531         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
47532         C89 or better.  All uses removed.
47533
47534 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47535
47536         * config/srclist.txt: Add glibc bugs 1220-1227.
47537
47538 2005-08-20  Jim Meyering  <jim@meyering.net>
47539
47540         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
47541         of unused local, dfa.
47542
47543 2005-08-20  Bruno Haible  <bruno@clisp.org>
47544
47545         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
47546
47547 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47548
47549         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
47550         (re_node_set_insert_last, re_dfa_add_node):
47551         Rename local variables to avoid GCC shadowing warnings.
47552
47553 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47554
47555         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
47556         [defined lint]: Suppress bogus uninitialized-variable warnings.
47557
47558         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
47559         and let the caller return REG_ESPACE if out of space.  This
47560         removes an uninitialied-variable warning with GCC 4.0.1, and also
47561         avoids taking the address of a local variable.  All callers
47562         changed.
47563
47564 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47565
47566         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
47567         $LIBCSRC/posix/regexec.c.
47568         Add glibc bug 1217 for regcomp.c.
47569
47570 2005-08-19  Jim Meyering  <jim@meyering.net>
47571
47572         * lib/regexec.c (proceed_next_node): Redo local variables to
47573         avoid GCC shadowing warnings.
47574
47575 2005-08-18  Bruno Haible  <bruno@clisp.org>
47576
47577         * lib/strstr.c (strstr): Fix return value in multibyte case.
47578         * lib/strcasestr.c (strcasestr): Likewise.
47579
47580 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47581
47582         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
47583
47584 2005-08-17  Jim Meyering  <jim@meyering.net>
47585
47586         Make the %s format (seconds since the epoch) work for a negative
47587         number and when used with a zero-padded field width, e.g. %015s.
47588
47589         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
47590         label so that it precedes the code to set `digits'.  Otherwise,
47591         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
47592         print `00-22'.  Now, it prints `-0022', as it should.
47593
47594 2005-08-17  Bruno Haible  <bruno@clisp.org>
47595
47596         * modules/strstr (Files): Add m4/mbrtowc.m4.
47597         (Depends-on): Add mbuiter.
47598
47599 2005-08-17  Bruno Haible  <bruno@clisp.org>
47600
47601         * modules/strcasestr: New file.
47602         * MODULES.html.sh (String handling, based on ANSI C 89): Add
47603         strcasestr.
47604
47605 2005-08-17  Bruno Haible  <bruno@clisp.org>
47606
47607         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
47608
47609 2005-08-17  Bruno Haible  <bruno@clisp.org>
47610
47611         * modules/mbuiter: New file.
47612         * MODULES.html.sh (Extended multibyte and wide character utilities):
47613         Add mbuiter.
47614
47615 2005-08-17  Bruno Haible  <bruno@clisp.org>
47616
47617         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
47618         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
47619
47620 2005-08-17  Bruno Haible  <bruno@clisp.org>
47621
47622         * m4/strcasestr.m4: New file.
47623
47624 2005-08-17  Bruno Haible  <bruno@clisp.org>
47625
47626         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
47627         * lib/strstr.c: Completely rewritten, with multibyte locale support.
47628
47629 2005-08-17  Bruno Haible  <bruno@clisp.org>
47630
47631         * lib/strcasestr.h: New file.
47632         * lib/strcasestr.c: New file.
47633
47634 2005-08-17  Bruno Haible  <bruno@clisp.org>
47635
47636         * lib/strcasecmp.c: Use mbuiter.h.
47637
47638 2005-08-17  Bruno Haible  <bruno@clisp.org>
47639
47640         * lib/mbuiter.h: New file.
47641
47642 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
47643
47644         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
47645         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
47646         and gl_GETOPT are both invoked via different paths (as happens
47647         with GNU tar CVS because it uses both argp and getopt), the former
47648         wins.
47649
47650 2005-08-16  Bruno Haible  <bruno@clisp.org>
47651
47652         * modules/tls: New file.
47653         * MODULES.html.sh (Multithreading): Add tls.
47654
47655 2005-08-16  Bruno Haible  <bruno@clisp.org>
47656
47657         * modules/strnlen1: New file.
47658         * MODULES.html.sh (String handling): Add strnlen1.
47659
47660 2005-08-16  Bruno Haible  <bruno@clisp.org>
47661
47662         * modules/strcase (Files): Add m4/mbrtowc.m4.
47663         (Depends-on): Add strnlen1, mbchar.
47664
47665 2005-08-16  Bruno Haible  <bruno@clisp.org>
47666
47667         * modules/mbiter: New file.
47668         * MODULES.html.sh (Extended multibyte and wide character utilities):
47669         Add mbiter.
47670
47671 2005-08-16  Bruno Haible  <bruno@clisp.org>
47672
47673         * modules/mbfile: New file.
47674         * MODULES.html.sh (Extended multibyte and wide character utilities):
47675         Add mbfile.
47676
47677 2005-08-16  Bruno Haible  <bruno@clisp.org>
47678
47679         * modules/mbchar: New file.
47680         * MODULES.html.sh (Extended multibyte and wide character utilities):
47681         New section.
47682
47683 2005-08-16  Bruno Haible  <bruno@clisp.org>
47684
47685         * m4/tls.m4: New file, from GNU gettext.
47686
47687 2005-08-16  Bruno Haible  <bruno@clisp.org>
47688
47689         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
47690         always.
47691         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
47692
47693 2005-08-16  Bruno Haible  <bruno@clisp.org>
47694
47695         * m4/mbiter.m4: New file.
47696
47697 2005-08-16  Bruno Haible  <bruno@clisp.org>
47698
47699         * m4/mbfile.m4: New file.
47700
47701 2005-08-16  Bruno Haible  <bruno@clisp.org>
47702
47703         * m4/mbchar.m4: New file.
47704
47705 2005-08-16  Bruno Haible  <bruno@clisp.org>
47706
47707         * lib/tls.h: New file, from GNU gettext.
47708         * lib/tls.c: New file, from GNU gettext.
47709
47710 2005-08-16  Bruno Haible  <bruno@clisp.org>
47711
47712         * lib/strnlen1.h: New file.
47713         * lib/strnlen1.c: New file.
47714
47715 2005-08-16  Bruno Haible  <bruno@clisp.org>
47716
47717         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
47718         (mbi_init): Update.
47719         (mbi_avail, mbi_advance): Let the iteration end before the terminating
47720         NUL byte, not after it.
47721
47722 2005-08-16  Bruno Haible  <bruno@clisp.org>
47723
47724         * lib/strcase.h (strcasecmp): Add note in comments.
47725         * lib/strncasecmp.c: Use code from strcasecmp.c.
47726         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
47727         (strcasecmp): Work correctly in multibyte locales.
47728
47729 2005-08-16  Bruno Haible  <bruno@clisp.org>
47730
47731         * lib/mbiter.h: New file.
47732
47733 2005-08-16  Bruno Haible  <bruno@clisp.org>
47734
47735         * lib/mbfile.h: New file.
47736
47737 2005-08-16  Bruno Haible  <bruno@clisp.org>
47738
47739         * lib/mbchar.h: New file.
47740         * lib/mbchar.c: New file.
47741
47742 2005-08-16  Bruno Haible  <bruno@clisp.org>
47743
47744         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
47745         the valid ones. Makes the comparison operations transitive:
47746         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
47747         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
47748
47749 2005-08-15  Simon Josefsson  <jas@extundo.com>
47750
47751         * modules/ssize_t (License): Change to 'unlimited'.
47752
47753         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
47754
47755 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47756
47757         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
47758         Add comments for each pending glibc patch.
47759
47760 2005-08-15  Bruno Haible  <bruno@clisp.org>
47761
47762         * lib/regex.h (__restrict_arr): Don't define to __restrict if
47763         __cplusplus is defined.
47764
47765 2005-08-14  Jim Meyering  <jim@meyering.net>
47766
47767         Sync from coreutils.
47768
47769         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
47770         Use the hash-table-based cycle-detection code not just when
47771         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
47772         Reported by James Youngman in
47773         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
47774         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
47775         FTS_TIGHT_CYCLE_CHECK.
47776         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
47777         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
47778         once again.
47779         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
47780         * lib/fts.c (fd_safer): Remove decl.
47781         Include fcntl--.h rather than unistd-safer.h
47782         (fts_safe_changedir): Don't call fd_safer; no longer needed
47783         now that we include fcntl--.h.
47784
47785 2005-08-12  Simon Josefsson  <jas@extundo.com>
47786
47787         * modules/getndelim2: Use ssize_t module.
47788         * modules/getnline: Likewise.
47789         * modules/safe-read: Likewise.
47790         * modules/xreadlink: Likewise.
47791
47792         * modules/ssize_t: New file.
47793
47794 2005-08-12  Simon Josefsson  <jas@extundo.com>
47795
47796         * m4/readline.m4: Look for termcap, curses or ncurses if required.
47797
47798 2005-08-12  Simon Josefsson  <jas@extundo.com>
47799
47800         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47801         ssize_t.
47802
47803 2005-08-12  Simon Josefsson  <jas@extundo.com>
47804
47805         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
47806         readline, getdelim and check_version.
47807         (Support for systems lacking ISO C 99: Sizes of integer types):
47808         Add size_max.
47809
47810 2005-08-12  Bruno Haible  <bruno@clisp.org>
47811
47812         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
47813
47814 2005-08-11  Simon Josefsson  <jas@extundo.com>
47815
47816         * modules/readline: New file.
47817
47818         * modules/strnlen (Files): Add strnlen.h.
47819
47820 2005-08-11  Simon Josefsson  <jas@extundo.com>
47821
47822         * m4/readline.m4: New file.
47823
47824 2005-08-11  Simon Josefsson  <jas@extundo.com>
47825
47826         * lib/readline.h, readline.c: New file.
47827
47828 2005-08-11  Simon Josefsson  <jas@extundo.com>
47829
47830         * doc/gnulib.texi (Initial import, Finishing touches): Mention
47831         gl_AVOID.
47832
47833 2005-08-11  Bruno Haible  <bruno@clisp.org>
47834
47835         * lib/strnlen.h (strnlen): Change parameter name to match comment.
47836
47837 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
47838
47839         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
47840
47841 2005-08-10  Simon Josefsson  <jas@extundo.com>
47842
47843         * tests/test-iconvme.c: New file.
47844
47845 2005-08-10  Simon Josefsson  <jas@extundo.com>
47846
47847         * m4/strnlen.m4: New file.
47848
47849         * m4/strndup.m4: Don't check for strnlen declaration, done in
47850         strnlen.m4.
47851
47852 2005-08-10  Simon Josefsson  <jas@extundo.com>
47853
47854         * lib/strndup.c: Use strnlen.h.
47855
47856         * lib/strnlen.h: New file.
47857
47858 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47859
47860         * README: Typos.
47861
47862 2005-08-02  Simon Josefsson  <jas@extundo.com>
47863
47864         * modules/readline: New file.
47865
47866 2005-08-02  Simon Josefsson  <jas@extundo.com>
47867
47868         * modules/getdelim: New file.
47869
47870         * modules/getline: Rewrite, don't use getndelim2.
47871
47872 2005-08-02  Simon Josefsson  <jas@extundo.com>
47873
47874         * m4/getline.m4: Separate out getdelim stuff into separate module.
47875
47876         * m4/getdelim.m4: New file.
47877
47878 2005-08-02  Simon Josefsson  <jas@extundo.com>
47879
47880         * lib/getline.h, getline.c: Rewrite.
47881
47882         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
47883
47884 2005-07-31  Bruno Haible  <bruno@clisp.org>
47885
47886         * lib/lock.h (gl_lock_initializer): New macro.
47887         (gl_lock_define_initialized): Use it.
47888         (gl_rwlock_initializer): New macro.
47889         (gl_rwlock_define_initialized): Use it.
47890         (gl_recursive_lock_initializer): New macro.
47891         (gl_recursive_lock_define_initialized): Use it.
47892
47893 2005-07-30  Karl Berry  <karl@gnu.org>
47894
47895         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
47896         Report from Ben Pfaff, regarding getopt.
47897
47898 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
47899
47900         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
47901         normal way.
47902         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
47903         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
47904         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
47905         (gl_GETOPT): Use the new macros.  Most of the implementation
47906         is moved to the new macros.  This is for programs like Emacs
47907         that don't want all the functionality of gl_GETOPT.
47908
47909 2005-07-26  Bruno Haible  <bruno@clisp.org>
47910
47911         * m4/lock.m4: Update from GNU gettext.
47912
47913 2005-07-26  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/lock.h: Update from GNU gettext.
47916         * lib/lock.c: Update from GNU gettext.
47917
47918 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
47919
47920         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
47921         obsolescent AC_TRY_RUN.  Include the default includes files, for
47922         'exit'.
47923
47924 2005-07-24  Bruno Haible  <bruno@clisp.org>
47925
47926         * modules/visibility: New file.
47927         * MODULES.html.sh (Misc): Add visibility.
47928
47929 2005-07-24  Bruno Haible  <bruno@clisp.org>
47930
47931         * m4/visibility.m4: New file.
47932
47933 2005-07-24  Bruno Haible  <bruno@clisp.org>
47934
47935         * doc/visibility.texi: New file.
47936
47937 2005-07-22  Bruno Haible  <bruno@clisp.org>
47938
47939         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
47940         $(ALLOCA_H), redundant through BUILT_SOURCES.
47941         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
47942         redundant through BUILT_SOURCES.
47943         * modules/byteswap (Makefile.am): Remove explicit dependency on
47944         $(BYTESWAP_H), redundant through BUILT_SOURCES.
47945         * modules/fnmatch (Makefile.am): Remove explicit dependency on
47946         $(FNMATCH_H), redundant through BUILT_SOURCES.
47947         * modules/getopt (Makefile.am): Remove explicit dependency on
47948         $(GETOPT_H), redundant through BUILT_SOURCES.
47949         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
47950         redundant through BUILT_SOURCES.
47951         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
47952         redundant through BUILT_SOURCES.
47953         * modules/stdbool (Makefile.am): Remove explicit dependency on
47954         $(STDBOOL_H), redundant through BUILT_SOURCES.
47955         * modules/stdint (Makefile.am): Remove explicit dependency on
47956         $(STDINT_H), redundant through BUILT_SOURCES.
47957         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
47958         Remove explicit dependency on $(SYSEXITS_H).
47959         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
47960
47961 2005-07-18  Simon Josefsson  <jas@extundo.com>
47962
47963         * lib/check-version.c (check_version): Accept identical versions too.
47964
47965 2005-07-18  Bruno Haible  <bruno@clisp.org>
47966
47967         * modules/lock: New file.
47968         * MODULES.html.sh (Multithreading): New section.
47969
47970 2005-07-18  Bruno Haible  <bruno@clisp.org>
47971
47972         * m4/lock.m4: New file, from GNU gettext.
47973
47974 2005-07-18  Bruno Haible  <bruno@clisp.org>
47975
47976         * lib/lock.h: New file, from GNU gettext.
47977         * lib/lock.c: New file, from GNU gettext.
47978
47979 2005-07-18  Bruno Haible  <bruno@clisp.org>
47980
47981         * lib/lock.h (gl_once_t): New type.
47982         (gl_once_define, gl_once): New macros.
47983         * lib/lock.c (fresh_once): New variable.
47984         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
47985         functions.
47986
47987 2005-07-16  Simon Josefsson  <jas@extundo.com>
47988
47989         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
47990         workaround, suggested by Bruno.
47991
47992 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47993
47994         * modules/xalloc (Depends-on): Add xalloc-die.
47995         * modules/xvasprintf (Depends-on): Add xalloc-die.
47996
47997 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47998
47999         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
48000         with a minor change.
48001
48002 2005-07-15  Bruno Haible  <bruno@clisp.org>
48003
48004         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
48005         When using lib/poll.c, define poll as rpl_poll.
48006
48007 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
48008
48009         * modules/argp (Depends-on): Remove unlocked-io.
48010
48011 2005-07-14  Derek Price  <derek@ximbiot.com>
48012
48013         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
48014         for glob symlink bug.
48015
48016 2005-07-14  Bruno Haible  <bruno@clisp.org>
48017
48018         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
48019         Instead, test for *_unlocked function declarations directly.
48020
48021 2005-07-11  Simon Josefsson  <jas@extundo.com>
48022
48023         * modules/size_max: New file.
48024
48025         * modules/xsize: Depend on size_max module for size_max.m4.
48026
48027 2005-07-11  Simon Josefsson  <jas@extundo.com>
48028
48029         * lib/size_max.h: New file.
48030
48031 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
48032
48033         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
48034         copyright symbol and the year.
48035         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
48036         (version_etc_va): Use parameterized copyright notice.
48037         Reword to conform to the current GNU coding standards.
48038
48039 2005-07-11  Karl Berry  <karl@gnu.org>
48040
48041         * doc/gnulib.texi (Quoting): new node.
48042         (Initial import): more info, from Patrice.
48043
48044 2005-07-11  Bruno Haible  <bruno@clisp.org>
48045
48046         * gnulib-tool (func_usage): Document option --avoid.
48047         (Command line options): Handle --avoid.
48048         (func_acceptable): New function.
48049         (func_modules_transitive_closure): Use it.
48050
48051 2005-07-11  Bruno Haible  <bruno@clisp.org>
48052
48053         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
48054         Reported by Jim Meyering.
48055
48056 2005-07-10  Bruno Haible  <bruno@clisp.org>
48057
48058         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
48059         Needed when size_t is smaller than 'unsigned int'.
48060         Reported by Paul Eggert.
48061
48062 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48063
48064         * modules/argp (Depends-on): Add unlocked-io
48065
48066 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48067
48068         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
48069         block of defines.
48070
48071 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48072
48073         * config/srclist.txt: Comment out regcomp.c, since we have a porting
48074         fix now.
48075
48076 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
48077         and Paul Eggert  <eggert@cs.ucla.edu>
48078
48079         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
48080         in wint_t, not wchar_t.  Remove now-unnecessary cast.
48081
48082 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48083
48084         * modules/regex (Files): Add lib/regex_internal.c,
48085         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
48086         (Depends-on): Add extensions.
48087         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
48088
48089 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48090
48091         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
48092         pathconf.
48093         * m4/same.m4 (gl_SAME): Likewise.
48094         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
48095
48096         * m4/regex.m4: Adjust to new libc regex implementation.
48097         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
48098         all the .c and .h parts of (the new) regex.
48099         Quote the m4 stuff better.
48100         Check for RE_ICASE bug of old gnulib.
48101         Check for REG_STARTEND of recent libc.
48102         Rename local variables from jm_* to gl_*.
48103         Quote operand of "test -f".
48104         Say "recent enough" version of libc, not "version 2".
48105         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
48106         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
48107         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
48108         Remove check for btowc, isascii.
48109         Require AM_LANGINFO_CODESET.
48110
48111 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48112
48113         * lib/regex.c, regex.h: Sync from libc.
48114         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
48115         * lib/regexec.c:
48116         New files, synced from libc, except that regex_internal.h
48117         currently has a small porting fix.
48118
48119 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48120
48121         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
48122         regex_internal.c, regexec.c.
48123         Add regex_internal.h too, but as a comment, since the libc version
48124         is currently broken in gnulib mode.
48125
48126 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48127
48128         Support programs like Emacs that use gnulib but not gettext.
48129         * MODULES.html.sh (Internationalization functions): Add gettext-h.
48130         * modules/gettext-h: New file.
48131         * modules/gettext (Files): Remove lib/gettext.h.
48132         (Depends-on): Add gettext-h.
48133         (Makefile.am): Remove lib_SOURCES.
48134         * modules/argmatch, modules/c-stack, modules/closeout:
48135         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
48136         * modules/execute, modules/file-type, modules/getaddrinfo:
48137         * modules/getopt, modules/human, modules/javacomp:
48138         * modules/javaexec, modules/mkdir-p, modules/obstack:
48139         * modules/openat, modules/pagealign_alloc, modules/pipe:
48140         * modules/quotearg, modules/regex, modules/rpmatch:
48141         * modules/unicodeio, modules/userspec, modules/version-etc:
48142         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
48143         * modules/xsetenv:
48144         Depend on gettext-h, not gettext.
48145
48146 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
48147
48148         * gnulib-tool (func_import): Add support for 'public domain' license.
48149         * modules/alloca, modules/atexit, modules/memmove:
48150         Now public domain, not GPL.
48151         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
48152         * modules/realloc, modules/strerror, modules/strtod:
48153         Now LGPL, not GPL.
48154
48155 2005-07-05  Bruno Haible  <bruno@clisp.org>
48156
48157         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
48158         autoconf CVS. Needed for mingw.
48159
48160 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48161
48162         Remove the dependency of the strftime module on the tzset module.
48163         * modules/strftime (Depends-on): Remove dependency on tzset.
48164
48165 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48166
48167         Remove the dependency of the strftime module on the tzset module.
48168         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
48169         gl_FUNC_TZSET_CLOBBER.
48170
48171 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48172
48173         Remove the dependency of the strftime module on the tzset module.
48174         * lib/strftime.c (my_strftime)
48175         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
48176         Copy the input structure, to work around some of the bug with
48177         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
48178         Solaris releases, you should also use the tzset module, but we won't
48179         require it as a dependency any more since we don't want LGPLed code
48180         to depend on GPLed code.
48181
48182 2005-07-02  Jim Meyering  <jim@meyering.net>
48183
48184         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
48185         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
48186         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
48187         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
48188
48189 2005-07-02  Jim Meyering  <jim@meyering.net>
48190
48191         * lib/backupfile.c (backup_args): Change a `0' to NULL.
48192
48193 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
48194
48195         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
48196         declares only 'struct timespec;' (!).
48197
48198 2005-07-01  Jim Meyering  <jim@meyering.net>
48199
48200         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
48201         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
48202         * lib/save-cwd.c, tempname.c:
48203         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48204         and don't include <sys/file.h>).
48205
48206 2005-06-29  Jim Meyering  <jim@meyering.net>
48207
48208         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
48209         type name.  Use the variable name instead.
48210         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
48211         Likewise.
48212
48213 2005-06-28  Simon Josefsson  <jas@extundo.com>
48214
48215         * modules/check-version (Files): Add check-version.m4.
48216
48217 2005-06-28  Simon Josefsson  <jas@extundo.com>
48218
48219         * m4/check-version.m4: New file, suggested by Jim Meyering
48220         <jim@meyering.net>.
48221
48222 2005-06-28  Simon Josefsson  <jas@extundo.com>
48223
48224         * lib/check-version.h, lib/check-version.c: New files.
48225
48226 2005-06-28  Simon Josefsson  <jas@extundo.com>
48227
48228         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
48229         collision with global variable.  Better indentation.  Don't
48230         increment buffer pointer beyond buffer end.  Based on comments
48231         from Paul Eggert <eggert@cs.ucla.edu>.
48232
48233         * lib/base64.h: Indent.
48234
48235 2005-06-28  Simon Josefsson  <jas@extundo.com>
48236
48237         * doc/gnulib.texi (Library version handling): New section.
48238
48239 2005-06-28  Jim Meyering  <jim@meyering.net>
48240
48241         * check-module (find_included_lib_files): Hard-code another
48242         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
48243         but modules/fts-lgpl (correctly) does not list those files.
48244
48245         * modules/canonicalize (Files): Add lib/pathmax.h.
48246
48247 2005-06-25  Simon Josefsson  <jas@extundo.com>
48248
48249         * modules/check-version: New file.
48250
48251 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
48252
48253         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
48254         initializer of struct addrinfo, as an indication that we don't
48255         care how many members the structure has.
48256
48257 2005-06-24  Derek Price  <derek@ximbiot.com>
48258         and Bruno Haible  <bruno@clisp.org>
48259
48260         Remove stat module & update lstat.
48261         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
48262         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48263         * m4/stat.m4: Remove this file.
48264
48265 2005-06-24  Derek Price  <derek@ximbiot.com>
48266         and Bruno Haible  <bruno@clisp.org>
48267
48268         Remove stat module & update lstat.
48269         * lib/stat.c: Remove this file...
48270         (slash_aware_lstat): ...moving this content and its support...
48271         * lib/lstat.c (rpl_lstat): ...into here.
48272         * lib/lstat.h: New file.
48273
48274 2005-06-24  Derek Price  <derek@ximbiot.com>
48275         and Bruno Haible  <bruno@clisp.org>
48276
48277         Remove stat module & update lstat.
48278         * config/srclist.txt (libc sources): Remove stat.
48279
48280 2005-06-24  Derek Price  <derek@ximbiot.com>
48281         and Bruno Haible  <bruno@clisp.org>
48282
48283         Remove stat module & update lstat.
48284         * MODULES.html.sh (stat): Remove.
48285         * MODULES.html: Regenerated.
48286         * modules/lstat (Description): Correct function name.
48287         (Files): Add "lstat.h".
48288         (Depends-on): Remove stat, add xalloc, stat-macros.
48289         * modules/stat: Remove this file.
48290         (Include): Add "lstat.h", remove <sys/stat.h>.
48291
48292 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48293
48294         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
48295         (ranged_convert): Don't save conversion in a temporary struct.
48296         This causes a warning with GCC 4.0.0, and anyway in the typical
48297         case it's not worth the extra 100 bytes or so of code.
48298         (ranged_convert, __mktime_internal): When calling a function via a
48299         pointer P, use P () rather than (*P) (), as we now assume C89 or
48300         better.
48301
48302 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
48303
48304         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
48305         "who -r" failed to give output.  Problem reported by Tim Waugh.
48306
48307         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
48308         (xcalloc): Use it to avoid needless tests.
48309         Problem reported by Jim Meyering.
48310
48311 2005-06-20  Derek Price  <derek@ximbiot.com>
48312
48313         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
48314         unnecessary for Autoconfs > 2.59c.
48315
48316 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48317
48318         * lib/argp.h (__option_is_short): Check upper limit of
48319         __key. Isprint() requires its argument to have the value
48320         of an unsigned char or EOF.
48321
48322 2005-06-16  Jim Meyering  <jim@meyering.net>
48323
48324         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
48325         when either N or S is zero.
48326
48327 2005-06-16  Derek Price  <derek@ximbiot.com>
48328
48329         * m4/bison.m4: Declare YACC & YFLAGS precious.
48330
48331 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
48332
48333         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
48334         multibyte string or pattern, fall back on unibyte matching.
48335         Problem reported by James Youngman.
48336
48337 2005-06-08  Bruno Haible  <bruno@clisp.org>
48338
48339         * modules/csharpcomp: New file.
48340         * MODULES.html.sh (C#): Add csharpcomp.
48341
48342 2005-06-08  Bruno Haible  <bruno@clisp.org>
48343
48344         * m4/csharpcomp.m4: New file, from GNU gettext.
48345
48346 2005-06-08  Bruno Haible  <bruno@clisp.org>
48347
48348         * lib/csharpcomp.h: New file, from GNU gettext.
48349         * lib/csharpcomp.c: New file, from GNU gettext.
48350         * lib/csharpcomp.sh.in: New file, from GNU gettext.
48351
48352 2005-06-08  Bruno Haible  <bruno@clisp.org>
48353
48354         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
48355         warning on mingw.
48356
48357 2005-06-07  Derek Price  <derek@ximbiot.com>
48358
48359         Sync from CVS.
48360         * lib/glob_.h: Indent nested #ifdef.
48361
48362 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48363
48364         Sync from coreutils.
48365         Use "file name" when talking about file names, instead of "filename"
48366         or "path", as per the GNU coding standards.
48367         * lib/mkdir-p.c: Renamed from makepath.c.
48368         (make_dir_parents): Renamed from make_path.  All callers changed.
48369         * lib/mkdir-p.h: Likewise.  All includers changed.
48370         * lib/filenamecat.c: Renamed from path-concat.c.
48371         (file_name_concat): Renamed from path_concat.  All callers changed.
48372         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
48373         * lib/filenamecat.h: Likewise.  All includers changed.
48374         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
48375         in comments or local variable names.
48376         * lib/basename.c: Likewise.
48377         * lib/canonicalize.c, canonicalize.h: Likewise.
48378         * lib/dirname.c, dirname.h: Likewise.
48379         * lib/euidaccess.c: Likewise.
48380         * lib/exclude.c: Likewise
48381         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
48382         * lib/fsusage.c, fsuage.h: Likewise.
48383         * lib/fts.c, fts_.h: Likewise.
48384         * lib/getcwd.c: Likewise.
48385         * lib/getloadavg.c: Likewise.
48386         * lib/mkstemp.c: Likewise.
48387         * lib/mountlist.c, mountlist.h: Likewise.
48388         * lib/openat.c, openat.h: Likewise.
48389         * lib/readlink-stub.c: Likewise.
48390         * lib/readutmp.c, readutmp.h: Likewise.
48391         * lib/rename.c: Likewise.
48392         * lib/rmdir.c: Likewise.
48393         * lib/same.c: Likewise.
48394         * lib/savedir.c: Likewise.
48395         * lib/stripslash.c: Likewise.
48396         * lib/tempname.c: Likewise.
48397         * lib/xreadlink.c: Likewise.
48398         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
48399         All uses changed.
48400         * lib/exclude.h: Likewise.
48401
48402         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
48403         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48404         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
48405         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48406         * lib/pathmax.h: Include <limits.h> unconditionally, since other
48407         files have been getting away with it for years (MORE/BSD 4.3
48408         is extinct now).
48409         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
48410         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48411
48412         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
48413         Define to 256, not 255, as per modern POSIX.
48414
48415 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48416
48417         Sync from coreutils.
48418         Use "file name" when talking about file names, instead of "filename"
48419         or "path", as per the GNU coding standards.
48420         * MODULES.html.sh: mkdir-p renamed from makepath.
48421         filenamecat renamed from path-concat.
48422         * modules/filenamecat: Renamed from modules/path-concat.
48423         (Files): filenamecat.h and filenamecat.c renamed from
48424         path-concat.h and path-concat.c.
48425         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
48426         (Include): filenamecat.h, not path-concat.h.
48427         * modules/mkdir-p: Renamed from modules/makepath.
48428         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
48429         makepath.c.
48430         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
48431         (Include): mkdir-p.h, not makepath.h.
48432
48433 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48434
48435         Sync from coreutils.
48436         * m4/mkdir-p.m4: Renamed from makepath.m4.
48437         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
48438         Rename files from makepath.c to mkdir-p.c, and from
48439         makepath.h to mkdir-p.h.
48440         * m4/filenamecat.m4: Renamed from path-concat.m4.
48441         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
48442         Rename files from path-concat.c to filenamecat.c,
48443         and from path-concat.h to filenamecat.h.
48444         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
48445         "file name" in local variables or comments.
48446         * m4/rename.m4: Likewise.
48447
48448 2005-06-01  Bruno Haible  <bruno@clisp.org>
48449
48450         * modules/csharpexec: New file.
48451         * MODULES.html.sh (C#): New section.
48452
48453 2005-06-01  Bruno Haible  <bruno@clisp.org>
48454
48455         * m4/csharp.m4: New file, from GNU gettext.
48456         * m4/csharpexec.m4: New file, from GNU gettext.
48457
48458 2005-06-01  Bruno Haible  <bruno@clisp.org>
48459
48460         * lib/csharpexec.h: New file, from GNU gettext.
48461         * lib/csharpexec.c: New file, from GNU gettext.
48462         * lib/csharpexec.sh.in: New file, from GNU gettext.
48463
48464 2005-05-31  Derek Price  <derek@ximbiot.com>
48465             Paul Eggert  <eggert@cs.ucla.edu>
48466
48467         Sync from cvs.
48468         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48469
48470 2005-05-31  Derek Price  <derek@ximbiot.com>
48471             Paul Eggert  <eggert@cs.ucla.edu>
48472
48473         Sync from cvs.
48474         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48475
48476 2005-05-29  Derek Price  <derek@ximbiot.com>
48477
48478         * config/srclist.txt (glob_.h, glob.c): Add these files.
48479
48480 2005-05-29  Derek Price  <derek@ximbiot.com>
48481
48482         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
48483         * modules/glob: New file.
48484         * modules/getlogin_r: Add link to POSIX spec in description.
48485
48486 2005-05-29  Derek Price  <derek@ximbiot.com>
48487             Paul Eggert  <eggert@cs.ucla.edu>
48488
48489         * m4/glob.m4: New file.
48490
48491 2005-05-29  Derek Price  <derek@ximbiot.com>
48492             Paul Eggert  <eggert@cs.ucla.edu>
48493
48494         * lib/glob_.h, lib/glob.c: New files.
48495
48496 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48497
48498         * modules/fts (Files): Remove m4/inttypes-pri.m4.
48499         * modules/fts-lgpl (Depends-on): Remove gettext.
48500
48501 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48502
48503         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
48504         and don't require gt_INTTYPES_PRI.
48505
48506 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48507
48508         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
48509
48510         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
48511         the configuration hassle isn't worth it.
48512         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
48513         (LONGEST_MODIFIER, PRIuMAX): Remove.
48514
48515 2005-05-27  Bruno Haible  <bruno@clisp.org>
48516
48517         * lib/getlogin_r.h: Remove second include of <stddef.h>.
48518
48519 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
48520
48521         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
48522         _POSIX_PTHREAD_SEMANTICS for Solaris.
48523
48524 2005-05-25  Derek Price  <derek@ximbiot.com>
48525
48526         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
48527
48528 2005-05-25  Derek Price  <derek@ximbiot.com>
48529             Paul Eggert  <eggert@cs.ucla.edu>
48530
48531         * modules/getlogin_r, m4/getlogin_r.m4: New files.
48532         * lib/getlogin_r.c, getlogin_r.h: New files.
48533
48534 2005-05-25  Bruno Haible  <bruno@clisp.org>
48535             Derek Price  <derek@ximbiot.com>
48536
48537         * lib/getlogin_r.h: Simplify API documentation.
48538
48539 2005-05-23  Derek Price  <derek@ximbiot.com>
48540
48541         * modules/minmax (Files): Add m4/minmax.m4.
48542         (configure.ac): Add gl_MINMAX.
48543
48544 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
48545
48546         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
48547         so that unistd-safer.h (GPL'ed code) need not be included.
48548
48549 2005-05-22  Bruno Haible  <bruno@clisp.org>
48550
48551         * m4/minmax.m4: New file.
48552         Based on a patch by Derek Price <derek@ximbiot.com>.
48553
48554 2005-05-22  Bruno Haible  <bruno@clisp.org>
48555
48556         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
48557         (INT64_MIN): Fix definition.
48558         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
48559
48560         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
48561         NEED_SIGNED_INT_TYPES.
48562
48563         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
48564         HAVE_SYSTEM_INTTYPES.
48565
48566 2005-05-22  Bruno Haible  <bruno@clisp.org>
48567
48568         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
48569         Also include <sys/param.h> if it defines MIN, MAX.
48570         Based on a patch by Derek Price <derek@ximbiot.com>.
48571
48572 2005-05-21  Jim Meyering  <jim@meyering.net>
48573
48574         * modules/fts (Files): Add m4/inttypes-pri.m4.
48575         (Depends-on): Add lstat and remove gettext.  Alphabetize.
48576
48577 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48578
48579         New fts module.
48580         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
48581         (setup_dir, free_dir): New functions.
48582         (enter_dir, leave_dir): Define trivial
48583         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
48584         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
48585         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
48586         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
48587         Move to fts-cycle.c.
48588         (fts_open): Use setup_dir.
48589         (fts_close): Use free_dir.
48590         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
48591         This adds a label and some gotos, but the alternatives were messier.
48592         Check for memory allocation failure when entering a dir.
48593         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
48594         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
48595         (FTS): New member fts_cycle, that is a union that contains the
48596         old active_dir_ht and cycle_state.  All uses changed to mention
48597         fts_cycle.ht and fts_cycle.state.
48598         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
48599         fts.c, with the following changes:
48600         (setup_dir, free_dir): New functions.
48601         (enter_dir): Now returns bool.  Return true if successful, false
48602         if memory exhausted.  All callers changed.
48603         Do not bother partly cleaning up on
48604         memory allocation failure; that is free_dir's job.
48605         However, free ad if hash_insert fails, to avoid memory leak.
48606         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
48607         fts->fts_options to see which union member to use.
48608
48609 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48610
48611         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
48612         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
48613
48614 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48615
48616         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
48617
48618 2005-05-20  Jim Meyering  <jim@meyering.net>
48619
48620         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
48621         Now a macro, to pacify GCC.
48622
48623 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
48624
48625         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
48626         of -1.
48627
48628 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
48629
48630         * lib/chown.c (rpl_chown): Return -1 on failure.
48631
48632 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
48633
48634         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
48635         Don't check for stddef.h.
48636         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
48637         don't use its results.
48638         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
48639         since we include them unconditionally.  Don't require
48640         AM_STDBOOL_H, since stdbool is a prerequisite.
48641         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
48642         since we assume C89 or better.
48643         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
48644         as we don't use their results.
48645         Don't check for fchdir, memmove, memset, strrchr, as we use
48646         them unconditionally.
48647         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
48648         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
48649
48650 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
48651
48652         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
48653         Include <stddef.h> unconditionally, since we assume C89 now.
48654         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
48655         * lib/fts.c: Include fts_.h first, to check interface.
48656         Do not include intprops.h; no longer needed.
48657         Include cycle-check.h and hash.h, since fts_.h no longer does.
48658         Remove unnecessary casts of closedir to void.
48659         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
48660         decide whether to decrement nlinks.
48661         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
48662         (FTS): Use struct hash_table * instead of Hash_table, so that
48663         we no longer need to include hash.h here.
48664
48665 2005-05-18  Jim Meyering  <jim@meyering.net>
48666
48667         * modules/dirfd (License): Change to LGPL.  Most of the code
48668         is already in the public domain.
48669
48670 2005-05-18  Jim Meyering  <jim@meyering.net>
48671
48672         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
48673         Reported by Yoann Vandoorselaere.
48674
48675 2005-05-17  Jim Meyering  <jim@meyering.net>
48676
48677         * m4/fts.m4: New file, from coreutils.
48678
48679 2005-05-17  Jim Meyering  <jim@meyering.net>
48680
48681         * lib/fts.c, lib/fts_.h: New files, from coreutils.
48682
48683 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48684
48685         Sync from coreutils.
48686         * m4/unlinkdir.m4: New file.
48687
48688 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48689
48690         Sync from coreutils.
48691         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
48692         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
48693         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
48694         White space changes only.
48695         * lib/makepath.c (make_path): Port to hosts where leading "//" is
48696         special.
48697         * lib/yesno.c: Include getline.h, not ctype.h.
48698         (yesno): Don't remove leading white space; POSIX doesn't allow it.
48699         Use getline to remove arbitrary restriction on response length.
48700
48701 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48702
48703         * config/srclist-update: Spell out "Street" in FSF postal
48704         mail address; this is the style the FSF seems to prefer.
48705
48706         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
48707         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
48708         this updates FSF postal mail address.
48709
48710         Sync from coreutils.
48711         * modules/unlinkdir: New file.
48712         * modules/yesno (Depends-on): Add getline.
48713         * MODULES.html.sh (File system functions): Add unlinkdir.
48714
48715 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48716
48717         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
48718         lib/strsep.h:
48719         Change the initial comment to refer to GPL, not LGPL.
48720         gnulib-tool will change it to LGPL as needed.
48721
48722         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
48723         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
48724         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
48725         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
48726         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
48727         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
48728         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
48729         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
48730         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
48731         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
48732         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
48733         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
48734         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
48735         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
48736         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
48737         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
48738         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
48739         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
48740         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
48741         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
48742         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
48743         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
48744         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
48745         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
48746         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
48747         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
48748         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
48749         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
48750         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
48751         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
48752         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
48753         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
48754         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
48755         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
48756         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
48757         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
48758         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
48759         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
48760         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
48761         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
48762         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
48763         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
48764         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
48765         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
48766         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
48767         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
48768         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
48769         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
48770         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
48771         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
48772         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
48773         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
48774         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
48775         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
48776         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
48777         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
48778         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
48779         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
48780         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
48781         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
48782         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
48783         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
48784         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
48785         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
48786         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
48787         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
48788         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
48789         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
48790         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
48791         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
48792         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
48793         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
48794         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
48795         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
48796         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
48797         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
48798         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
48799         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
48800         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
48801         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
48802         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
48803         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
48804         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
48805         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
48806         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
48807         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
48808         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
48809         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
48810         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
48811         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
48812         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
48813         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
48814         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
48815         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
48816         lib/yesno.c, lib/yesno.h:
48817         Update FSF postal mail address.
48818
48819 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48820
48821         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
48822         tests/test-memmem.c, tests/test-stpncpy.c:
48823         Update FSF postal mail address.
48824
48825 2005-05-13  Bruno Haible  <bruno@clisp.org>
48826
48827         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
48828         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
48829         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
48830         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
48831         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
48832         Add support for 64-bit integers in the MSVC compiler.
48833
48834 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48835
48836         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
48837
48838 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
48839
48840         * gnulib-tool (func_import): Sort and uniquify recommended includes.
48841
48842 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
48843
48844         * doc/getdate.texi (General date syntax): Don't say that date
48845         date --iso-8601=ns generates acceptable dates; it doesn't yet.
48846         Problem reported by Nic Ferrier.
48847
48848 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48849
48850         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
48851         specified in ai_socktype. Fix invalid ai_protocol
48852         check. ai_protocol is usually set to 0 or depending on
48853         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
48854         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
48855         ai_socktype / ai_protocol in the returned addrinfo structure.
48856
48857 2005-05-10  Simon Josefsson  <jas@extundo.com>
48858
48859         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
48860         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48861
48862 2005-05-10  Karl Berry  <karl@gnu.org>
48863
48864         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
48865         (from http://www.gnu.org/licenses).
48866         * doc/COPYING.LIB: also rename to COPYING.LESSER.
48867         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
48868         fdl.texi suffices.
48869
48870 2005-05-10  Karl Berry  <karl@gnu.org>
48871
48872         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
48873         (COPYING.DOC): remove.
48874
48875         * config/srclist-update: new FSF address.
48876
48877 2005-05-10  Derek Price  <derek@ximbiot.com>
48878
48879         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
48880         possible.
48881
48882 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48883             Bruno Haible  <bruno@clisp.org>
48884
48885         * modules/inet_ntop: New file.
48886         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48887         inet_ntop.
48888
48889 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48890             Bruno Haible  <bruno@clisp.org>
48891
48892         * m4/inet_ntop.m4: New file.
48893
48894 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48895             Bruno Haible  <bruno@clisp.org>
48896
48897         * lib/inet_ntop.h: New file.
48898         * lib/inet_ntop.c: New file, from glibc with modifications.
48899
48900 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
48901
48902         * modules/time_r (License): Change to LGPL.
48903         * modules/extensions (License): Change to LGPL.  Actually,
48904         the license is more permissive than that, but currently gnulib-tool
48905         doesn't know how to handle more-permissive licenses.
48906
48907         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
48908         Problem reported by Dave Love.
48909
48910 2005-05-08  Jim Meyering  <jim@meyering.net>
48911
48912         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
48913         blank.
48914
48915 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
48916
48917         * modules/argmatch (Depends-on): Add stdbool.
48918         * modules/backupfile (Depends-on): Likewise.
48919         * modules/chdir-long (Depends-on): Likewise.
48920         * modules/closeout (Depends-on): Likewise.
48921         * modules/cycle-check (Depends-on): Likewise.
48922         * modules/dirname (Depends-on): Likewise.
48923         * modules/fnmatch (Depends-on): Likewise.
48924         * modules/fsusage (Depends-on): Likewise.
48925         * modules/fwriteerror (Depends-on): Likewise.
48926         * modules/getcwd (Depends-on): Likewise.
48927         * modules/getloadavg (Depends-on): Likewise.
48928         * modules/hard-locale (Depends-on): Likewise.
48929         * modules/makepath (Depends-on): Likewise.
48930         * modules/mountlist (Depends-on): Likewise.
48931         * modules/nanosleep (Depends-on): Likewise.
48932         * modules/posixtm (Depends-on): Likewise.
48933         * modules/quotearg (Depends-on): Likewise.
48934         * modules/readtokens (Depends-on): Likewise.
48935         * modules/readtokens0 (Depends-on): Likewise.
48936         * modules/readutmp (Depends-on): Likewise.
48937         * modules/save-cwd (Depends-on): Likewise.
48938         * modules/strftime (Depends-on): Likewise.
48939         * modules/userspec (Depends-on): Likewise.
48940         * modules/utimecmp (Depends-on): Likewise.
48941         * modules/xgetcwd (Depends-on): Likewise.
48942         * modules/xnanosleep (Depends-on): Likewise.
48943         * modules/xstrtod (Depends-on): Likewise.
48944         * modules/yesno (Depends-on): Likewise.
48945
48946 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
48947
48948         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
48949         needless checks.
48950
48951 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
48952
48953         Merge from coreutils.  Among other things,
48954         add bulletproofing for cases where stdin, stdout, or stderr are closed.
48955         * lib/fd-safer.c: New file.
48956         * lib/fcntl-safer.h, open-safer.c: Remove.
48957         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
48958         * lib/dup-safer.c: Include unistd-safer.h first.
48959         Don't include errno.h.
48960         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
48961         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
48962         * lib/file-type.c: Rely on file-type.h change.
48963         * lib/getloadavg.c: Include unistd-safer.h.
48964         (getloadavg): Use safer open.
48965         * lib/getusershell.c: Include "stdio-safer.h".
48966         (getusershell): Use safer fopen.
48967         * lib/long-options.c (long_options): Use NULL rather than 0.
48968         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
48969         'free'.
48970         * lib/modechange.c: Likewise.
48971         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
48972         (MODE_DONE): New constant.
48973         (struct mode_change): Remove 'next' member.
48974         (make_node_op_equals): New function; like the old one of the
48975         same name, except it allocates an array.
48976         (mode_compile, mode_create_from_ref): Use it.
48977         (mode_compile): Allocate result as an array, not a linked list.
48978         Parse octal string ourself, so that we catch mistakes like "+0".
48979         (mode_adjust): Arg is an array, not a linked list.
48980         * lib/modechange.c: Include stat-macros.h, xalloc.h.
48981         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
48982         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
48983         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
48984         Remove.  This is now stat-macros.h's job.
48985         (talloc): Remove.  All callers replaced by xalloc, so that
48986         our invokers don't have to worry about reporting memory failures.
48987         (make_node_op_equals): Remove.
48988         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
48989         New constants.
48990         (struct mode_change): Moved here from modechange.h.
48991         (mode_append_entry): Remove.
48992         (mode_compile): Remove MASKED_OPS arg, since it encouraged
48993         apps to have incorrect behavior.  Use simpler algorithm for head
48994         and tail.  Don't futz with umask; that's now the job of mode_adjust.
48995         Detect more invalid usages rather than having somewhat-random behavior.
48996         Don't insert an "a=" action, as that leads to incorrect behavior.
48997         (mode_compile, mode_create_from_ref): Return NULL on error instead
48998         of an enum, since now there's only one way to have an error.  All
48999         callers changed.
49000         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
49001         at the correct time.  Simplify calculation of "+u" and its ilk.
49002         Don't mishandle "+X".
49003         (mode_free): Remove "register" and localize decls.
49004         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49005         (struct mode_change): Move to modechange.c; callers don't
49006         need to see this stuff.
49007         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
49008         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
49009         (mode_change, mode_adjust): Reflect the new signatures noted above.
49010         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
49011         that might redefine system include files.
49012         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
49013         (my_usleep): Use NULL rather than (void *) 0.
49014         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
49015         Use siginterrupt to specify that system calls should be interrupted.
49016         (rpl_nanosleep): Move initialization of suspended closer to call of
49017         my_usleep.
49018         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
49019         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
49020         (desirable_utmp_entry): New function.
49021         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
49022         using x2nrealloc, to simplify logic.
49023         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
49024         size calculation.  Do not assume utmp file is a regular file.
49025         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
49026         (READ_UTMP_CHECK_PIDS): New constant.
49027         * lib/save-cwd.c: Include unistd-safer.h.
49028         (save_cwd): Use fd_safer.
49029         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
49030         [!_LIBC] Include "stat-macros.h" instead.
49031         * lib/unistd-safer.h (fd_safer): New decl.
49032
49033 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49034
49035         * modules/getloadavg (Depends-on): Add unistd-safer.
49036         * modules/getusershell (Depends-on): Add stdio-safer.
49037         * modules/lstat (Depends-on): Remove xalloc.
49038         * modules/mkstemp (Depends-on): Add stat-macros.
49039         * modules/modechange (Depends-on): Remove xstrtol.
49040         Add stat-macros, xalloc.
49041         * modules/save-cwd (Depends-on): Add unistd-safer.
49042         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
49043         * modules/unistd-safer (Files): Add lib/fd-safer.c
49044         (Makefile.am): Remove lib_SOURCES.
49045
49046         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
49047         Remove fcntl-safer; unistd-safer supersedes it.
49048
49049 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49050
49051         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
49052         AC_HEADER_STAT.
49053         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
49054         (gl_PREREQ_CHOWN): Remove.
49055         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
49056         it.  Don't require AC_HEADER_STAT.
49057         (gl_PREREQ_LSTAT): Remove.
49058         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
49059         Don't require AC_HEADER_STAT.
49060         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
49061         (gl_PREREQ_RMDIR): Remove.
49062         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
49063         mention stat-macros.h or AC_HEADER_STAT, since we'll make
49064         the stat-macros module a prerequisite.
49065         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
49066         * m4/filemode.m4 (gl_FILEMODE): Likewise.
49067         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
49068         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
49069         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
49070         variable names.
49071         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
49072         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
49073         variable prefixes.
49074         * m4/fcntl-safer.m4: Remove.
49075         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
49076         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
49077         Invoke gl_PREREQ_FD_SAFER.
49078         (gl_PREREQ_FD_SAFER): New macro.
49079         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
49080         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
49081         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
49082         Remove duplicate call to AC_LIBOBJ(readutmp).
49083         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
49084
49085         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
49086         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
49087
49088 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49089
49090         * MODULES.html.sh (Misc): Add byteswap.
49091
49092 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49093
49094         * modules/getcwd (Depends-on): Add extensions.
49095         * modules/openat (Depends-on): Likewise.
49096
49097 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49098
49099         * modules/byteswap: New file.
49100
49101 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49102
49103         * m4/byteswap.m4: New file.
49104
49105 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49106
49107         * lib/byteswap_.h: New file.
49108
49109 2005-04-25  Karl Berry  <karl@gnu.org>
49110
49111         * m4/gettext.m4: Update from GNU gettext 0.14.4.
49112
49113 2005-04-25  Albert Chin  <china@thewrittenword.com>
49114
49115         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
49116         Toolkit C bug.
49117
49118 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
49119
49120         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
49121         (func_ln_if_changed) Remove forcibly for no error message
49122         in case file does not exist.
49123
49124 2005-04-19  Simon Josefsson  <jas@extundo.com>
49125
49126         * gnulib-tool (Options): Make --symlink mean --symbolic.
49127
49128 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
49129
49130         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
49131
49132 2005-04-16  Simon Josefsson  <jas@extundo.com>
49133
49134         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
49135
49136 2005-04-15  Simon Josefsson  <jas@extundo.com>
49137
49138         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
49139
49140 2005-04-15  Simon Josefsson  <jas@extundo.com>
49141
49142         * gnulib-tool: Rename --symlink to --symbolic.
49143
49144 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
49145
49146         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
49147         symbolic links to files instead of copying/moving.  Add --aux-dir,
49148         specifying directory relative --dir where auxiliary build tools
49149         are placed.
49150
49151 2005-04-14  Bruno Haible  <bruno@clisp.org>
49152
49153         * modules/allocsa (License): Change to LGPL.
49154         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49155
49156 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49157
49158         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
49159         that "UTC +1 second" continues to work.  Problem reported
49160         by Dmitry V. Levin.
49161         (relunit_snumber): New rule.
49162         (relunit): Use it.
49163
49164 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49165
49166         * lib/getdate.y (universal_time_zone_table): New constant.
49167         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
49168         universal_time_zone_table.
49169         (lookup_zone): Prefer universal_time_zone_table to
49170         local_time_zone_table, so that "GMT" time stamps are allowed in
49171         London during the summer.  Problem reported by Ian Abbott.
49172
49173 2005-04-12  Jim Meyering  <jim@meyering.net>
49174
49175         * lib/human.c (humblock): Set *options even when returning due to
49176         xstrtoumax conversion failure.  Thanks to a used-uninitialized
49177         warning from gcc-4.
49178
49179 2005-04-09  Jim Meyering  <jim@meyering.net>
49180
49181         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
49182         -Wuninitialized: initialize tm0.tm_year.
49183
49184 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49185
49186         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
49187         count, since there's no maximum.  All uses changed.
49188         Add member dsts_seen.
49189         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
49190         not being INT_MAX.
49191         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
49192         Use pc_rels_seen to decide whther a date is absolute.
49193
49194         * lib/getdate.y (number): Don't overwrite year.
49195         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
49196         check.
49197
49198 2005-04-02  Simon Josefsson  <jas@extundo.com>
49199
49200         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
49201         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
49202
49203 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
49204
49205         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
49206         where no absolute path name can be longer than PATH_MAX.
49207
49208 2005-03-27  Jim Meyering  <jim@meyering.net>
49209
49210         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
49211
49212 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
49213
49214         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
49215         "one's complement" -> "ones' complement" in comment, as per Knuth.
49216         "value of type" -> "type or expression" in comment.
49217         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
49218
49219 2005-03-26  Jim Meyering  <jim@meyering.net>
49220
49221         Comment nits.
49222         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
49223         Correct typos: s/or/of/.
49224
49225 2005-03-26  Jim Meyering  <jim@meyering.net>
49226
49227         * modules/check-include-files: Move to ../ and rename to...
49228         * check-module: ...this.
49229
49230 2005-03-25  Jim Meyering  <jim@meyering.net>
49231
49232         * modules/xvasprintf (Files): Add xalloc.h.
49233
49234 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49235
49236         * modules/gettext (Files): config/config.rpath ->
49237         build-aux/config.rpath
49238         * modules/iconv (Files): Likewise.
49239         Problem reported by Oskar Liljeblad.
49240
49241 2005-03-23  Jim Meyering  <jim@meyering.net>
49242
49243         * modules/check-include-files: New script to check for
49244         missing dependencies, multiple includes, etc.
49245
49246         * modules/c-strtold (Depends-on): Add xalloc.
49247         * modules/c-strtod (Depends-on): Add xalloc.
49248         * modules/hash (Depends-on): Add xalloc.
49249         (Files): Remove lib/xalloc.h.
49250
49251         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
49252         * modules/userspec (Files): Add lib/inttostr.h.
49253
49254 2005-03-23  Jim Meyering  <jim@meyering.net>
49255
49256         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
49257
49258 2005-03-22  Jim Meyering  <jim@meyering.net>
49259
49260         * modules/stat-macros: New module.
49261         * modules/canonicalize, modules/euidaccess, modules/file-type,
49262         * modules/filemode, modules/lchown, modules/makepath,
49263         * modules/rmdir, modules/stat: Depend on new stat-macros module
49264         rather than listing lib/stat-macros.h manually.
49265         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
49266
49267 2005-03-22  Jim Meyering  <jim@meyering.net>
49268
49269         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
49270
49271 2005-03-22  Bruno Haible  <bruno@clisp.org>
49272
49273         * config/srclist.txt: Replace target directory 'config' with
49274         'build-aux'.
49275         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
49276         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
49277         ../build-aux/.
49278
49279 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
49280
49281         * modules/chdir-long (Depends-on): Add mempcpy.
49282
49283         * modules/acl, modules/backupfile, modules/c-strtod,
49284         modules/c-strtold, modules/canon-host, modules/canonicalize,
49285         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
49286         modules/exclude, modules/exitfail, modules/file-type,
49287         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
49288         modules/getdate, modules/getline, modules/getpagesize,
49289         modules/getpass, modules/getugroups, modules/group-member,
49290         modules/hard-locale, modules/hash, modules/human, modules/idcache,
49291         modules/inttostr, modules/long-options, modules/makepath,
49292         modules/md5, modules/memcasecmp, modules/memcoll,
49293         modules/modechange, modules/mountlist, modules/path-concat,
49294         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
49295         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
49296         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
49297         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
49298         modules/strftime, modules/strndup, modules/strverscmp,
49299         modules/timespec, modules/unlocked-io, modules/userspec,
49300         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
49301         modules/yesno:
49302         Remove lib_SOURCES line from Makefile.am section, as this is now
49303         done automatically by the corresponding Autoconf macro.
49304
49305 2005-03-21  Jim Meyering  <jim@meyering.net>
49306
49307         Changes imported from coreutils.
49308
49309         * lib/cycle-check.c: Don't include xalloc.h.
49310
49311         * lib/path-concat.c: Don't include assert.h.
49312         (path_concat): Remove assertion that would have triggered
49313         for ABASE starting with more than one slash.
49314         Reported by Andreas Schwab.
49315
49316         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
49317         properly when ABASE is an absolute file name.
49318         Correct the description of this function.
49319         Include <assert.h>.
49320         Add an assertion and a test driver.
49321         This fixes a bug introduced on 2004-07-02.
49322         Andreas Schwab reported the resulting failure of cp --parents:
49323         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
49324
49325 2005-03-21  Jim Meyering  <jim@meyering.net>
49326
49327         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
49328         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
49329
49330 2005-03-21  Jim Meyering  <jim@meyering.net>
49331         and  Paul Eggert  <eggert@cs.ucla.edu>
49332
49333         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
49334         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
49335         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
49336         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
49337         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
49338         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
49339         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
49340         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
49341         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
49342         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
49343         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
49344         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
49345         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
49346         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
49347         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
49348         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
49349         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
49350         for these modules.
49351
49352 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
49353
49354         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
49355         (which shouldn't happen), generate nothing instead of returning 0
49356         immediately, so that nstrftime (NULL, ...) doesn't return 0.
49357
49358 2005-03-16  Bruno Haible  <bruno@clisp.org>
49359
49360         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
49361         HAVE_LONGLONG_64BIT.
49362
49363 2005-03-16  Bruno Haible  <bruno@clisp.org>
49364
49365         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
49366         HAVE_LONGLONG_64BIT.
49367
49368 2005-03-16  Bruno Haible  <bruno@clisp.org>
49369
49370         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
49371         HAVE_LONGLONG_64BIT.
49372
49373 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
49374
49375         * lib/strftime.c (my_strftime): Prepend space to format so that we can
49376         reliably distinguish strftime failure from empty output on POSIX
49377         hosts.
49378
49379 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
49380
49381         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
49382         (iconv_string): Don't guess a size-zero buffer, as that might cause
49383         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
49384         result would be 'too large', where 'too large' is (heuristically)
49385         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
49386         overflow concerns.  This will prevent some unwanted malloc failures
49387         when the inputs are very large.
49388
49389 2005-03-15  Karl Berry  <karl@gnu.org>
49390
49391         * config/srclist.txt (config.rpath): from gettext.
49392         * config/config.rpath: update.
49393
49394 2005-03-15  Bruno Haible  <bruno@clisp.org>
49395
49396         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
49397         to 'negate'.
49398
49399         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
49400         variable.
49401
49402         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
49403         results.
49404
49405 2005-03-14  Simon Josefsson  <jas@extundo.com>
49406
49407         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
49408         <fx@gnu.org>.
49409
49410 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
49411
49412         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
49413         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
49414         intprops.h.
49415         * lib/strtol.c: Likewise.
49416
49417 2005-03-14  Jim Meyering  <jim@meyering.net>
49418
49419         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
49420         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
49421         to be nonzero so that we (and caller) can detect the difference
49422         between a valid zero-length expansion and an error return, even
49423         when the underlying strftime fails before writing anything into
49424         that location.
49425
49426 2005-03-14  Bruno Haible  <bruno@clisp.org>
49427
49428         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
49429         Update from GNU gettext 0.14.3.
49430
49431 2005-03-10  Jim Meyering  <jim@meyering.net>
49432
49433         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
49434
49435 2005-03-10  Jim Meyering  <jim@meyering.net>
49436
49437         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
49438         so that this module works on systems without fchdir.
49439
49440 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
49441
49442         Factor int-properties macros into a single file, except for
49443         glibc-related files.
49444         * lib/intprops.h: New file.
49445         * lib/getloadavg.c: Include it instead of limits.h.
49446         (INT_STRLEN_BOUND): Remove.
49447         * lib/human.c: Include intprops.h.
49448         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
49449         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
49450         302/1000.
49451         * lib/inttostr.h: Include intprops.h instead of limits.h.
49452         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
49453         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
49454         for consistency with intprops.h.
49455         (time_t_is_integer, twos_complement_arithmetic): Use them.
49456         * lib/sig2str.h: Include <signal.h>, intprops.h.
49457         (INT_STRLEN_BOUND): Remove.
49458         * lib/strftime.c (TYPE_SIGNED): Remove.
49459         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
49460         * lib/strtol.c: Adjust comments to match intprops.h.
49461         * lib/userspec.c: Include intprops.h.
49462         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
49463         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
49464         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
49465         instead of rolling our own expressions.
49466         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
49467
49468         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
49469         instead of int.
49470         (my_strftime): Do not mishandle years close to INT_MAX, by doing
49471         the right thing even if adding 1900 would overflow.  Similarly
49472         for tm_mon + 1 and tm_yday + 1.
49473         Make %Y always equivalent to %C%y, and similarly for %G and %g.
49474         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
49475         (DO_SIGNED_NUMBER): New macro.
49476         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
49477
49478 2005-03-07  Bruno Haible  <bruno@clisp.org>
49479
49480         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
49481
49482 2005-03-07  Bruno Haible  <bruno@clisp.org>
49483
49484         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
49485
49486 2005-03-04  Derek R. Price  <derek@ximbiot.com>
49487
49488         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
49489         (func_import): Only replace files via --import when they have actually
49490         changed.
49491
49492 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49493
49494         * m4/mmap-anon.m4: New file.
49495         * m4/pagealign_alloc.m4: New file.
49496
49497 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49498             Bruno Haible  <bruno@clisp.org>
49499
49500         * modules/pagealign_alloc: New file.
49501         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
49502
49503 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49504             Bruno Haible  <bruno@clisp.org>
49505
49506         * lib/pagealign_alloc.h: New file.
49507         * lib/pagealign_alloc.c: New file.
49508
49509 2005-03-03  Bruno Haible  <bruno@clisp.org>
49510
49511         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
49512         Use an all-permissive copyright notice, recommended by RMS.
49513
49514 2005-03-02  Bruno Haible  <bruno@clisp.org>
49515
49516         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
49517         of AIX, the replacement has to be done only after <string.h> is
49518         included, therefore not in config.h. stpncpy.h does the replacement,
49519         and stpncpy.c uses it.
49520
49521 2005-03-02  Bruno Haible  <bruno@clisp.org>
49522
49523         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
49524         stpncpy.c uses it.
49525
49526 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49527
49528         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
49529         The workaround isn't strictly needed for POSIX conformance, and
49530         it's too much of a pain to configure and maintain.  We'll ask
49531         people to fix their kernels instead.
49532         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
49533         (NANOSLEEP_BUG_WORKAROUND): Remove.
49534         (xnanosleep): Remove the workaround.
49535
49536 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49537
49538         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
49539         Reported by Derek Price.
49540         (Include): Add "timespec.h".
49541
49542         * modules/xnanosleep (Depends-on): Remove gethrxtime.
49543
49544 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49545
49546         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
49547         to detect nanosleep bug.
49548
49549 2005-03-01  Bruno Haible  <bruno@clisp.org>
49550
49551         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
49552
49553 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
49554
49555         * modules/gethrxtime: New file.
49556         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
49557         (Depends-on): Add gethrxtime.
49558         (configure.ac): Add gl_XNANOSLEEP.
49559         (Makefile.am): Remove lib_SOURCES line.
49560
49561 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49562
49563         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
49564         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
49565
49566 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49567
49568         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
49569         * lib/timespec.h (gettime): Return void, since it always
49570         succeeds now.  All uses changed.
49571         * lib/gettime.c (gettime) Likewise.
49572         [HAVE_NANOTIME]: Prefer nanotime.
49573         Assume gettimeofday succeeds, as POSIX requires.
49574         Assime time () succeeds, since other code already does.
49575         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
49576         (timespec_subtract): Remove.
49577         (NANOSLEEP_BUG_WORKAROUND): New constant.
49578         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
49579         things considerably.  Use it only on GNU/Linux hosts, since the
49580         workaround shouldn't be needed elsewhere.
49581
49582 2005-02-24  Bruno Haible  <bruno@clisp.org>
49583
49584         * modules/gettext (Files): Add m4/glibc2.m4.
49585
49586 2005-02-24  Bruno Haible  <bruno@clisp.org>
49587
49588         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
49589         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
49590         * m4/progtest.m4:
49591         Update from GNU gettext 0.14.2.
49592         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
49593
49594 2005-02-24  Bruno Haible  <bruno@clisp.org>
49595
49596         * lib/localcharset.c: Update from GNU gettext 0.14.2.
49597         * lib/config.charset: Update from GNU gettext 0.14.2.
49598
49599 2005-02-24  Bruno Haible  <bruno@clisp.org>
49600
49601         * lib/gettext.h: Update from GNU gettext 0.14.2.
49602
49603 2005-02-23  Simon Josefsson  <jas@extundo.com>
49604
49605         * m4/iconvme.m4: New file.
49606
49607 2005-02-23  Jim Meyering  <jim@meyering.net>
49608
49609         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
49610         change.
49611         Thanks to Bruno Haible for catching it.
49612
49613 2005-02-22  Simon Josefsson  <jas@extundo.com>
49614
49615         * modules/iconvme: New file.
49616
49617         * MODULES.html.sh: Add iconvme.
49618
49619 2005-02-22  Simon Josefsson  <jas@extundo.com>
49620
49621         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
49622
49623 2005-02-22  Simon Josefsson  <jas@extundo.com>
49624
49625         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
49626
49627 2005-02-22  Jim Meyering  <jim@meyering.net>
49628
49629         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
49630         s/ifndef/ifdef/.
49631
49632 2005-02-20  Neil Conway  <neilc@samurai.com>
49633
49634         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
49635         returned by OSX/Darwin if the specified buffer is not large
49636         enough for the hostname.
49637
49638 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49639
49640         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
49641         pass it to _help, otherwise the latter coredumps trying to
49642         dereference state.root_argp.
49643
49644 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49645
49646         * modules/chdir-long (Depends-on): Add memrchr.
49647         * modules/memrchr (Files): Add lib/memrchr.h.
49648         (Include): "memrchr.h".
49649
49650 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49651
49652         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
49653
49654 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49655
49656         * lib/memrchr.h: New file.
49657         * lib/chdir-long.c: Include it.
49658         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
49659         Don't bother including stddef.h.
49660
49661 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
49662
49663         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
49664         inclusion.
49665         Include <sys/types.h>, for dev_t.
49666         (ME_DUMMY, ME_REMOTE): Move from here....
49667         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
49668         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
49669         Dmitry V. Levin.
49670         Include mountlist.h first, to test the interface.
49671
49672 2005-01-29  Bruno Haible  <bruno@clisp.org>
49673
49674         * lib/progname.c (program_name): Initialize.
49675         Needed when linking statically on MacOS X.
49676
49677 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49678
49679         Sync from coreutils.
49680         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
49681         (Depends-on): Add c-strtod.
49682         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
49683
49684 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49685
49686         Sync from coreutils.
49687         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
49688
49689         Remove files that are specific to coreutils.
49690         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
49691
49692 2005-01-28  Bruno Haible  <bruno@clisp.org>
49693
49694         * modules/javacomp: New file.
49695         * MODULES.html.sh (Java): Add javacomp.
49696
49697 2005-01-28  Bruno Haible  <bruno@clisp.org>
49698
49699         * m4/javacomp.m4: New file, from GNU gettext.
49700
49701 2005-01-28  Bruno Haible  <bruno@clisp.org>
49702
49703         * lib/javacomp.sh.in: New file, from GNU gettext.
49704         * lib/javacomp.h: New file, from GNU gettext.
49705         * lib/javacomp.c: New file, from GNU gettext.
49706
49707 2005-01-26  Simon Josefsson  <jas@extundo.com>
49708
49709         * lib/gai_strerror.c: Use GPL in header.
49710
49711 2005-01-26  Bruno Haible  <bruno@clisp.org>
49712
49713         * modules/javaexec: New file.
49714         * MODULES.html.sh (Java): Add javaexec.
49715
49716 2005-01-26  Bruno Haible  <bruno@clisp.org>
49717
49718         * m4/javaexec.m4: New file, from GNU gettext.
49719
49720 2005-01-26  Bruno Haible  <bruno@clisp.org>
49721
49722         * lib/javaexec.sh.in: New file, from GNU gettext.
49723         * lib/javaexec.h: New file, from GNU gettext.
49724         * lib/javaexec.c: New file, from GNU gettext.
49725
49726 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49727
49728         * modules/lchown (Depends-on): Remove lchown.h
49729
49730 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49731
49732         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
49733         must be defined if the header file was not found, in order
49734         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
49735
49736 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49737
49738         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
49739         initializers for struct pentry_state.
49740         (__argp_error): Check return value of __asprintf
49741         (__argp_failure): Translate error message
49742
49743         * lib/argp-parse.c: Removed braces around the expansion of N_()
49744
49745 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49746
49747         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
49748         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
49749         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
49750         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
49751         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
49752         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
49753         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
49754         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
49755         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
49756         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
49757         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
49758         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
49759         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
49760         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
49761         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
49762         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
49763         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
49764         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
49765         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
49766         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
49767         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
49768         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
49769         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
49770         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
49771         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
49772         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
49773         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
49774         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
49775         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
49776         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
49777         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
49778         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
49779         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
49780         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
49781         xstrtol.m4, xstrtoumax.m4, yesno.m4:
49782         Use an all-permissive copyright notice, recommended by RMS.
49783
49784 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
49785
49786         * modules/chdir-long (Depends-on): Remove mempcpy.
49787
49788 2005-01-21  Jim Meyering  <jim@meyering.net>
49789
49790         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
49791         same value as for Solaris 9.
49792
49793         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
49794         component length.  This included changing the parameter to be
49795         of type `char *' rather than `char const *'.
49796         * lib/chdir-long.h (chdir_long): Update prototype.
49797
49798         * lib/openat.c (fdopendir, fstatat): New functions.
49799         * lib/openat.h: Include headers required for use of DIR and struct
49800         stat.
49801         [AT_SYMLINK_NOFOLLOW]: Define.
49802         (fdopendir, fstatat): Add prototypes.
49803
49804 2005-01-21  Bruno Haible  <bruno@clisp.org>
49805
49806         * modules/classpath: New file.
49807         * MODULES.html.sh (Java): Add classpath.
49808
49809 2005-01-21  Bruno Haible  <bruno@clisp.org>
49810
49811         * lib/classpath.h: New file, from GNU gettext.
49812         * lib/classpath.c: New file, from GNU gettext.
49813
49814 2005-01-20  Simon Josefsson  <jas@extundo.com>
49815
49816         * modules/version-etc-fsf: New file.
49817
49818 2005-01-20  Simon Josefsson  <jas@extundo.com>
49819
49820         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
49821         * lib/version-etc.c: Remove version_etc_copyright.
49822         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
49823         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
49824
49825 2005-01-20  Simon Josefsson  <jas@extundo.com>
49826
49827         * lib/base64.h (isbase64): Add.
49828
49829         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
49830         using a unsigned prototype, don't inline.
49831         (base64_decode): Use it.
49832
49833 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49834
49835         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
49836         it.
49837
49838 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49839
49840         * lib/save-cwd.c (save_cwd): Remove code to support the case
49841         where fchdir is missing or flaky.
49842
49843 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49844
49845         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
49846
49847 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49848
49849         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
49850         AC_LIBSOURCES now does this.
49851         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
49852         with new ullong_max module.
49853
49854 2005-01-19  Bruno Haible  <bruno@clisp.org>
49855
49856         * modules/sh-quote: New file.
49857         * MODULES.html.sh (Executing programs): Add sh-quote.
49858
49859 2005-01-19  Bruno Haible  <bruno@clisp.org>
49860
49861         * lib/sh-quote.h: New file, from GNU gettext.
49862         * lib/sh-quote.c: New file, from GNU gettext.
49863
49864 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49865
49866         Merge from coreutils.
49867         * m4/ullong_max.m4: New file.
49868         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
49869         (gl_MACROS): Assume localeconv exists.
49870
49871 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49872
49873         Merge changes from coreutils, as described below in several
49874         changelogs dated today.
49875
49876         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
49877         (O_DIRECTORY): Remove; not needed here, since "." must be
49878         a directory.  All uses removed.
49879         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
49880         universal on Suns, and we also need to test for IRIX.
49881         Revamp code to use 'if' rather than '#if'.
49882         Avoid unnecessary comparison of cwd->desc to 0.
49883
49884         * lib/utimens.c (futimens): Robustify the previous patch, by checking
49885         for known valid error numbers rather than observed invalid ones.
49886
49887 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49888
49889         * modules/ullong_max: New file.
49890
49891         * modules/chdir-long, modules/openat: New files.
49892         * modules/save-cwd (Depends-on): Depend on chdir-long.
49893         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
49894
49895 2005-01-18  Jim Meyering  <jim@meyering.net>
49896
49897         Merge from coreutils.
49898         * m4/chdir-long.m4, m4/openat.m4: New files.
49899         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
49900         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
49901         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
49902         is sane and DOES follow symlinks.  Besides, testing 20 different
49903         systems found no broken chown implementations.
49904         Prompted by a change in rsync's copy of this macro.
49905         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
49906
49907         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
49908
49909         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
49910         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
49911         NULL-means-set-to-current-time semantics.
49912         Remove temporary file immediately, rather than waiting
49913         for configure's at-exit trap code to do it.
49914
49915 2005-01-18  Jim Meyering  <jim@meyering.net>
49916
49917         * lib/version-etc.c (version_etc_copyright): Update copyright date.
49918
49919         * lib/utimens.c (futimens): Account for the fact that futimes
49920         can also fail with errno == ENOSYS or errno == ENOENT.
49921         Patch from Dmitry V. Levin.
49922
49923         Change the name of the robust chdir function from chdir to chdir_long.
49924         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
49925         (restore_cwd): Use chdir_long, not chdir.
49926         * lib/chdir-long.c: Renamed from chdir.c.
49927         * lib/chdir-long.h: Renamed from chdir.h.
49928         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
49929         Hurd.
49930
49931 2005-01-18  Bruno Haible  <bruno@clisp.org>
49932
49933         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
49934         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
49935         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
49936         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
49937         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
49938         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
49939         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
49940         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
49941         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
49942         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
49943         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
49944         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
49945         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
49946         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
49947         Use an all-permissive copyright notice, recommended by RMS.
49948
49949 2005-01-18  Bob Proulx  <bob@proulx.com>
49950
49951         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
49952         simplify offsetof() macro construct to avoid compile failure with
49953         native HP-UX 11.0 ANSI C compiler.
49954
49955 2005-01-17  Bruno Haible  <bruno@clisp.org>
49956
49957         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
49958         redundant because stpncpy.m4 takes care of it.
49959
49960 2005-01-17  Bruno Haible  <bruno@clisp.org>
49961
49962         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
49963
49964 2005-01-17  Bruno Haible  <bruno@clisp.org>
49965
49966         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
49967         used.
49968
49969 2005-01-17  Bruno Haible  <bruno@clisp.org>
49970
49971         * lib/fwriteerror.h (fwriteerror): Change specification to include
49972         fclose.
49973         * lib/fwriteerror.c: Include <stdbool.h>.
49974         (fwriteerror): At the end, close the file stream. Record whether
49975         stdout was already closed.
49976
49977 2005-01-17  Bruno Haible  <bruno@clisp.org>
49978
49979         * lib/execute.c (environ): Declare if needed.
49980         * lib/pipe.c (environ): Likewise.
49981         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
49982
49983 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49984
49985         * modules/argp: Depend on vsnprintf
49986
49987 2005-01-10  Jim Meyering  <jim@meyering.net>
49988
49989         * modules/closeout (Depends-on): Add atexit.
49990
49991 2005-01-06  Bruno Haible  <bruno@clisp.org>
49992
49993         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
49994
49995 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49996
49997         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
49998         definitions to be after all include files, to avoid collisions.
49999         Problem reported by Bob Proulx.
50000
50001 2005-01-04  Jim Meyering  <jim@meyering.net>
50002
50003         Changes imported from coreutils.
50004         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
50005         as the mkstemp template, use a temporary directory and an
50006         8.3-friendly template to avoid trouble on systems like DJGPP.
50007         Reported by Juan M. Guerrero via Stepan Kasal.
50008         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
50009         close. Remove the temporary directory right away, rather than waiting
50010         for configure's at-exit trap code to do it.
50011         Suggestion from Stepan Kasal.
50012
50013 2005-01-01  Simon Josefsson  <jas@extundo.com>
50014
50015         * gnulib-tool: Print #include directives when --import'ing.
50016
50017 2004-12-28  Simon Josefsson  <jas@extundo.com>
50018
50019         * tests/test-base64.c: Include required header files.  Remove
50020         unused variables.
50021
50022 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50023
50024         * modules/error (Depends-on): Remove gettext.
50025
50026 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50027
50028         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
50029         not needed.  This removes a dependency on the gettext module.
50030         [defined _LIBC]: Do not include <libintl.h>; not needed.
50031
50032 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
50033
50034         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
50035         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
50036
50037 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
50038
50039         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
50040         HAVE_DECL_STRTOLD.
50041
50042 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50043
50044         * modules/getdate (Depends-on): Remove alloca-opt.
50045
50046 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50047
50048         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
50049
50050 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50051
50052         * lib/argp-parse.c: Include <stddef.h>.
50053         (alignof, alignto): New macros.
50054         (parser_init): Don't assume that void * is aligned sufficiently
50055         for struct option.
50056
50057         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
50058         need to extend the stack.
50059         (YYINITDEPTH): New macro, so that the initial stack isn't overly
50060         large.
50061
50062 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50063
50064         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
50065
50066 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
50067
50068         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
50069         (2004-10-24) change.  Apparently this was a false alarm.
50070
50071         * modules/getdate: Depend on alloca-opt, not alloca.
50072
50073 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
50074
50075         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
50076         Remove now-obsolete comment about AIX.
50077         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
50078         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
50079         (YYMAXDEPTH): New macro.
50080
50081 2004-12-18  Simon Josefsson  <jas@extundo.com>
50082
50083         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
50084
50085 2004-12-18  Bruno Haible  <bruno@clisp.org>
50086
50087         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
50088
50089 2004-12-18  Bruno Haible  <bruno@clisp.org>
50090
50091         * lib/fatal-signal.c (fatal_signals): Make non-const.
50092         (init_fatal_signals): New function.
50093         (uninstall_handlers, install_handlers): Ignore signals that were set to
50094         SIG_IGN.
50095         (at_fatal_signal): Call init_fatal_signals.
50096         (init_fatal_signal_set): Likewise. Ignore signals that were set to
50097         SIG_IGN.
50098         Reported by Paul Eggert.
50099
50100 2004-12-18  Bruno Haible  <bruno@clisp.org>
50101
50102         * doc/alloca.texi: New file.
50103         * doc/alloca-opt.texi: New file.
50104
50105 2004-12-17  Jim Meyering  <jim@meyering.net>
50106
50107         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
50108         Otherwise, install-sh could exit with improper exit status when
50109         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
50110
50111 2004-12-16  Simon Josefsson  <jas@extundo.com>
50112
50113         * tests/test-base64.c: Add license.
50114
50115 2004-12-15  Stepan Kasal  <address@hidden>
50116
50117         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
50118
50119 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
50120
50121         * modules/getcwd (Files): Add m4/d-ino.m4.
50122         Suggested by Mark D. Baushke.
50123
50124 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
50125
50126         * lib/getdate.y (textint): New member "negative".
50127         (time_zone_hhmm): New function.
50128         Expect 14 shift-reduce conflicts, not 13.
50129         (o_colon_minutes): New rule.
50130         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
50131         (yylex): Set the "negative" member of signed numbers.
50132
50133 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
50134
50135         * doc/getdate.texi (Time of day items, Time zone items):
50136         Describe new formats +00:00, UTC+00:00.
50137
50138 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
50139
50140         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
50141         spurious "-l"s.  Problem reported by Stepan Kasal.
50142
50143 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
50144
50145         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
50146         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
50147
50148 2004-12-04  Simon Josefsson  <jas@extundo.com>
50149
50150         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
50151         Vandoorselaere <yoann@prelude-ids.org>.
50152
50153 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50154
50155         Changes imported from coreutils.
50156         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
50157         exist.
50158         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
50159
50160 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50161
50162         Changes imported from coreutils.
50163         * lib/hard-locale.c: Assume <locale.h> exists.
50164         Include "strdup.h".
50165         (GLIBC_VERSION): New macro.
50166         (hard_locale): Assume setlocale exists.
50167         Rewrite to avoid #ifdef.
50168         Use strdup rather than malloc + strcpy.
50169         * lib/human.c: Assume <locale.h> exists.
50170         (human_readable): Assume localeconv exists.
50171
50172 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50173
50174         * modules/hard-locale (Depends-on): Add strdup.
50175
50176 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
50177
50178         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
50179         convert T2, not T.  (Imported from libc.)
50180
50181 2004-11-30  Simon Josefsson  <jas@extundo.com>
50182
50183         * modules/restrict (License): Change to LGPL.
50184
50185 2004-11-30  Simon Josefsson  <jas@extundo.com>
50186
50187         * m4/restrict.m4: Add copyright and copying conditions.
50188
50189 2004-11-30  Simon Josefsson  <jas@extundo.com>
50190
50191         * m4/base64.m4: New file.
50192
50193 2004-11-30  Simon Josefsson  <jas@extundo.com>
50194
50195         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
50196         base64.
50197
50198         * tests/test-base64.c: New file.
50199
50200         * modules/base64: New file.
50201
50202 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
50203
50204         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
50205         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
50206
50207         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
50208
50209 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
50210
50211         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
50212         (__getcwd.c): Don't restore errno; glibc doesn't.
50213         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
50214         first, falling back to our code only if its results look suspicious.
50215         Ensure that the resulting buffer is only as large as necessary.
50216
50217         * lib/readutmp.c: Include readutmp.h first.
50218         Include <errno.h>, since readutmp.h no longer does that.
50219         * lib/readutmp.h: Don't include <errno.h>,
50220         <sys/param.h>, <time.h>; not needed to establish interface.
50221         (errno): Remove decl.
50222         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
50223         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
50224         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
50225
50226 2004-11-28  Simon Josefsson  <jas@extundo.com>
50227
50228         * lib/base64.h, base64.c: New file.
50229
50230 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50231
50232         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
50233
50234 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50235
50236         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
50237         (Depends-on): Remove pathmax, same.  Add mempcpy.
50238         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
50239         (Makefile.am): Append getcwd.h to lib_SOURCES.
50240         (Include): Add getcwd.h.
50241         (Maintainer): Change from Jim Meyering to "all, glibc",
50242         since getdate now uses intended-for-glibc code.
50243         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
50244         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
50245
50246 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
50247
50248         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
50249         HP's ANSI C compiler.
50250         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
50251         Declaring int functions causes warnings on some modern systems and
50252         shouldn't be needed to compile on ancient ones.
50253         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
50254         defined.
50255
50256         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
50257         with the following changes.
50258         (__set_errno): Parenthesize properly.
50259         Include <stdbool.h>.
50260         (MIN, MAX, MATCHING_INO): New macros.
50261         (__getcwd): Define with prototype, not K&R form.
50262         Use heuristics to allocate default buffer on stack if possible.
50263         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
50264         behavior, and to avoid the PATH_MAX limit when computing
50265         ../../../../...
50266         Use MATCHING_INO to compare inode number to file.
50267         Check for arithmetic overflow in size calculations.
50268         Fix bug in reallocation of dot array that caused getcwd to fail
50269         on directories nested deeper than 75.
50270         Be more careful about saving errno on error.
50271         Do not use realloc; use only free+malloc, as this is a bit
50272         more flexible and avoids a needless copy operation.
50273         Do not inspect st_dev and st_ino for symbolic links; POSIX
50274         doesn't specify the latter.
50275         Check for closedir errors.
50276         Avoid needless casts.
50277         Use "#ifdef weak_alias" around weak_alias, to be like other
50278         glibc code.
50279         The following changes to getcwd.c have effect only when used in
50280         gnulib; they have no effect inside glibc proper.
50281         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
50282         as alloca isn't used.
50283         (alloca, __alloca): Likewise.
50284         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
50285         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
50286         unconditionally, as gnulib assumes C89 or better.
50287         Do not include <sys/param.h>.
50288         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
50289         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
50290         better.
50291         (NULL) [!defined NULL]: Remove; we assume C89 or better.
50292         Include <dirent.h> in a way that is compatible with modern Autoconf.
50293         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
50294         New macros, if not already defined.
50295         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
50296         Use "_LIBC", not "defined _LIBC", for consistency.
50297         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
50298         a mempcpy module.
50299         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
50300         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
50301         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
50302         credit only to Jim Meyering and adjust the copyright dates.
50303         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
50304         <stdlib.h>, <unistd.h>, "pathmax.h".
50305         Instead, include "xgetcwd.h" (first) and "getcwd.h".
50306         (INITIAL_BUFFER_SIZE): Remove.
50307         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
50308
50309 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
50310
50311         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
50312         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
50313         Use the _ONCE methods, for efficiency.
50314         Check for fcntl.h.  In test program, include <errno.h>
50315         and <fcntl.h> if available.  Remove old K&R cruft from
50316         test program.  Check for common errors in GNU/Linux,
50317         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
50318         don't do AC_LIBOBJ, as that's getcwd.m4's job.
50319         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
50320         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
50321         name accordingly.
50322         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
50323         accommodate new getcwd.c.
50324         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
50325         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
50326         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
50327         that's all we need now.
50328
50329 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50330
50331         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
50332         argp-parse.c depends on getopt internals, that means we should
50333         always use our getopt, to be on the safe side.
50334         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
50335         order not to spoil the result of an eventual previous invocation
50336         of gl_GETOPT_SUBSTITUTE.
50337
50338 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50339
50340         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
50341         redefinition warnings. To avoid them, include the defines
50342         in `#if !defined __need_getopt ... #endif'. The only place
50343         where __getopt_argv_const is used is in definitions
50344         of getopt_long and getopt_long_only below, which are as well
50345         protected by `#ifndef __need_getopt'.
50346         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
50347         __need_getopt after including <stdio.h> and <unistd.h> These
50348         headers might have defined it.
50349
50350 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
50351
50352         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
50353
50354 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
50355
50356         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
50357         (futimens): New function, which uses futimes if available.
50358         (futimens, utimens): Support timespec==NULL, with same semantics
50359         as utime and utimens.
50360         * lib/utimens.h (futimens): New decl.
50361
50362 2004-11-23  Jim Meyering  <jim@meyering.net>
50363
50364         * lib/getopt_.h: Remove trailing blanks.
50365
50366 2004-11-23  Jim Meyering  <jim@meyering.net>
50367
50368         * lib/__fpending.c: Add comment.
50369
50370 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
50371
50372         * modules/canonicalize (Depends-on): Add xreadlink.
50373         Problem reported by James Youngman.
50374
50375 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50376
50377         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
50378         New macros.
50379         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
50380         optopt): Use them instead of invoking ## directly; otherwise, the
50381         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
50382
50383 2004-11-19  Bruno Haible  <bruno@clisp.org>
50384
50385         * lib/strtok_r.c: Move comments from here...
50386         * lib/strtok_r.h: ... to here.
50387
50388 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50389
50390         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
50391         implementations that mishandle size_t overflow.
50392
50393 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50394
50395         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
50396         might fail.  Problem reported by Yoann Vandoorselaere.
50397         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
50398         implementations that mishandle size_t overflow.
50399
50400 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50401
50402         * modules/canon-host (Depends-on): Add strdup.
50403
50404 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50405
50406         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
50407
50408 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50409
50410         * lib/canon-host.c: Include "strdup.h".
50411         (canon_host): Use getaddrinfo if available, so that IPv6 works.
50412         Use strdup instead of malloc/strcpy to duplicate strings.
50413
50414         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
50415         (human_space_before_unit): New constant.
50416         * lib/human.c (human_readable): Support it.
50417
50418         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
50419         (xgetcwd): Set errno correctly when failing.
50420         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
50421         the failure is actually due to a PATH_MAX problem.
50422
50423         Further getopt changes to make it more likely that glibc will
50424         buy the changes back.
50425         * lib/getopt.c (POSIXLY_CORRECT): New constant.
50426         (getopt): Use it, so to preserve glibc semantic
50427         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
50428         when compiling for libc.
50429         * lib/getopt_.h (__getopt_argv_const): Bring it back.
50430         (getopt_long, getopt_long_only): Use it.
50431
50432         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50433         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
50434         (getopt): Argv is now char * const *, as per standard.
50435         (_getopt_internal_r, _getopt_internal): Argv is now char **,
50436         not char *__getopt_argv_const *.
50437         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50438         _getopt_long_only_r): Likewise.
50439         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
50440         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50441         _getopt_long_r, _getopt_long_only_r): Likewise.
50442         * lib/getopt_.h (__getopt_argv_const): Remove.
50443         (getopt): Argv is now char * const *, as per standard.
50444
50445         * lib/getdate.y (tORDINAL): New token.
50446         (day, relunit): Allow it for relative times.
50447         (relative_time_table): Use tORDINAL for ordinals.
50448
50449 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50450
50451         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
50452         Document that "second" isn't allowed as an ordinal number.
50453
50454 2004-11-16  Jim Meyering  <jim@meyering.net>
50455
50456         * modules/closeout (Depends-on): Add fpending.
50457
50458 2004-11-15  Jim Meyering  <jim@meyering.net>
50459
50460         * lib/closeout.c: Include "__fpending.h" once again.
50461         Include <stdbool.h>.
50462         (close_stdout): Don't fail just because stdout was closed initially,
50463         since some programs don't write to stdout in the normal course of
50464         operation (other than --version and --help), and we don't want this
50465         function to make e.g. `touch file >&-' fail.
50466         But do fail if it was closed and someone has tried to write to it.
50467         E.g., `printf foo >&-' must fail.
50468
50469 2004-11-13  Jim Meyering  <jim@meyering.net>
50470
50471         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
50472
50473 2004-11-12  Simon Josefsson  <jas@extundo.com>
50474
50475         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
50476         small doc fix is still pending.
50477
50478 2004-11-11  Simon Josefsson  <jas@extundo.com>
50479
50480         * modules/strtok_r: New file.
50481
50482         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50483         strtok_r.
50484
50485 2004-11-11  Simon Josefsson  <jas@extundo.com>
50486
50487         * m4/strtok_r.m4: New file.
50488
50489         * m4/getopt.m4: Replace opterr.
50490
50491 2004-11-11  Simon Josefsson  <jas@extundo.com>
50492
50493         * lib/strtok_r.h, strtok_r.c: New file.
50494
50495 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
50496
50497         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
50498         of replacing opterr, getopt, etc.  This should handle the
50499         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
50500
50501 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
50502
50503         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
50504         we can stop lying to compilers about the constness of argv when we
50505         are compiled outside glibc.
50506         (getopt, getopt_long, getopt_long_only): Use it.
50507         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50508         _getopt_internal, getopt): Likewise.
50509         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50510         _getopt_long_only_r): Likewise.
50511         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50512         _getopt_long_r, _getopt_long_only_r): Likewise.
50513
50514         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
50515         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
50516         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
50517         the other external symbols.
50518         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
50519         declaration, since the above renaming now works around collisions.
50520
50521 2004-11-11  Jim Meyering  <jim@meyering.net>
50522
50523         * lib/linebreak.c: Remove trailing blanks.
50524         * lib/alloca_.h: Likewise.
50525         * lib/acosl.c: Likewise.
50526         * lib/euidaccess.c: Likewise.
50527         * lib/allocsa.h: Likewise.
50528
50529 2004-11-10  Simon Josefsson  <jas@extundo.com>
50530
50531         * m4/getaddrinfo.m4: New file.
50532
50533 2004-11-10  Simon Josefsson  <jas@extundo.com>
50534
50535         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
50536
50537 2004-11-10  Simon Josefsson  <jas@extundo.com>
50538
50539         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50540         getaddrinfo.
50541
50542         * modules/getaddrinfo: New file.
50543
50544 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50545
50546         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
50547
50548 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50549
50550         * lib/mktime.c (SHR): New macro, which is a portable
50551         substitute for >> that should work even on Crays.
50552         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
50553         Problem reported by Mark D. Baushke in
50554         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
50555         * lib/getdate.y (SHR): Likewise.
50556         (tm_diff): Use it.
50557         * lib/strftime.c (SHR): Likewise.
50558         (tm_diff): Use it.
50559         * lib/quotearg.c (struct quoting_options): Use unsigned int for
50560         quote_these_too, so that right shifts are well defined.  All uses
50561         changed.
50562
50563 2004-11-10  Jim Meyering  <jim@meyering.net>
50564
50565         Ensure that no close failure goes unreported.
50566         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
50567         return early when it seems there's nothing to flush.
50568         Don't include __fpending.h.
50569
50570 2004-11-10  Jim Meyering  <jim@meyering.net>
50571
50572         * modules/closeout (Depends-on): Remove fpending.
50573
50574 2004-11-10  Jim Meyering  <jim@meyering.net>
50575
50576         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
50577
50578 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50579
50580         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
50581         gl_FUNC_STRFTIME.
50582         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
50583         and AC_REQUIRE when possible, to avoid duplicate checks.
50584         Check for <wchar.h>.
50585
50586 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50587
50588         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
50589
50590 2004-11-09  Bruno Haible  <bruno@clisp.org>
50591
50592         * m4/sockpfaf.m4: New file.
50593
50594 2004-11-05  Bruno Haible  <bruno@clisp.org>
50595
50596         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
50597         Reported by Mark D. Baushke <mdb@cvshome.org>.
50598
50599 2004-11-04  Bruno Haible  <bruno@clisp.org>
50600
50601         2004-09-11  Bruno Haible  <bruno@clisp.org>
50602                 * allocsa.valgrind: New file.
50603         2004-02-06  Bruno Haible  <bruno@clisp.org>
50604                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
50605                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
50606                 Reported by Christopher Seip <chris.seip@hp.com>.
50607
50608 2004-11-04  Bruno Haible  <bruno@clisp.org>
50609
50610         * modules/allocsa (Files): Add lib/allocsa.valgrind.
50611         (Makefile.am): Distribute it.
50612
50613 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50614
50615         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
50616         with errno == ERANGE if the buffer is too small.
50617         Problem reported by Mark D. Baushke.
50618
50619 2004-11-03  Albert Chin  <china@thewrittenword.com>
50620             Paul Eggert  <eggert@cs.ucla.edu>
50621
50622         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
50623         equivalent, substitute $ac_type for equivalent type rather than
50624         blindly using uint32_t *always* which won't work if uint32_t is not
50625         available.  Define _UINT32_T to work around typedef of uint32_t if
50626         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
50627         2.5.1.
50628
50629 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50630
50631         * m4/jm-macros.m4: Sync from coreutils.
50632         (gl_MACROS): Check for mbrlen, for pathchk.
50633         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
50634
50635 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50636
50637         * lib/xreadlink.c (MAXSIZE): New macro.
50638         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
50639         size does not exceed MAXSIZE.  Avoid cast.
50640         As suggested by Mark D. Baushke in
50641         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
50642         if readlink fails with buffer size just under MAXSIZE, try again
50643         with MAXSIZE.
50644
50645 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50646
50647         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
50648
50649 2004-11-02  Derek R. Price  <derek@ximbiot.com>
50650         and  Paul Eggert  <eggert@cs.ucla.edu>
50651
50652         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
50653         (get_date): Overparenthesize to avoid GCC warning.
50654
50655 2004-11-02  Bruno Haible  <bruno@clisp.org>
50656
50657         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
50658         returns void.
50659
50660 2004-11-02  Bruno Haible  <bruno@clisp.org>
50661
50662         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
50663         function returns void.
50664
50665 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50666
50667         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
50668         fflush_unlocked, flockfile, funlockfile, funlockfile,
50669         fputs_unlocked, putc_unlocked.
50670
50671 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50672
50673         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50674         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
50675         already declared.
50676
50677 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50678
50679         * modules/getdate (Files): Add doc/getdate.texi.
50680         (Depends-on): Add setenv, xalloc.
50681
50682 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50683
50684         * lib/getdate.y: Add support for TZ="foo" within a date string.
50685         Fix some bugs near time_t boundaries.  Reject dates with
50686         out-of-range components, e.g., "Sept 31".
50687         Include <stdlib.h>, "setenv.h", "xalloc.h".
50688         (ISDIGIT_LOCALE): Remove; unused.
50689         Note that the TZ and time functions used here are not reentrant.
50690         (mktime_ok, get_tz): New functions.
50691         (TZBUFSIZE): New constant.
50692         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
50693         This requires that we sometimes generate our own TZ="XXX..." setting.
50694
50695 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50696
50697         * doc/getdate.texi: New file, from coreutils with modifications for
50698         the new TZ parsing.
50699
50700 2004-10-27  Derek R. Price  <derek@ximbiot.com>
50701
50702         * lib/mktime.c (not_equal_tm): Remove redundant check.
50703
50704 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50705
50706         * modules/regex (lib_SOURCES): Add regex.c.
50707         Reported by James Youngman in
50708         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
50709
50710 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50711
50712         * lib/getdate.y: Use Bison 1.875 features, and some minor
50713         code cleanups.  This change does not affect semantics.
50714         Don't include <stdlib.h>; no longer needed.
50715         Don't include unlocked-io.h; only the "#if TEST" code uses
50716         stdio, and performance isn't crucial there.
50717         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
50718         Bison 1.875 features as described below.
50719         All uses of "PC." replaced by "pc->".
50720         (YYSTYPE): Add a forward declaration.
50721         (yylex, yyerror): Use full prototypes in forward decls.
50722         Use "%pure-parser" rather than obsolescent "%pure_parser".
50723         Use %parse-param and %lex-param instead of obsolescent
50724         YYPARSE_PARAM and YYLEX_PARAM.
50725         (meridian_table, month_and_day_table, time_units_table,
50726         relative_time_table, time_zone_table, military_table,
50727         lookup_zone, lookup_word, get_date):
50728         Use NULL instead of 0 where appropriate.
50729         (to_hour): Avoid abort (), to avoid a dependency on
50730         stdlib.h.
50731         (yyerror, yylex): Now accepts parser_control * arg.
50732         (main) [TEST]: Use '\0' rather than 0 for char.
50733
50734 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50735
50736         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
50737
50738 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50739
50740         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
50741         It's now the caller's responsibility to handle the case where
50742         !HAVE_GETPAGESIZE && !defined getpagesize.
50743
50744         * lib/mktime.c (leapyear): Arg is long int, not int.
50745
50746 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
50747
50748         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
50749
50750 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50751
50752         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
50753         missing.  Problem reported by James Youngman.
50754
50755 2004-10-16  Simon Josefsson  <jas@extundo.com>
50756
50757         * gnulib-tool: Fix comments.  Fix parse problem.
50758         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
50759
50760 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
50761
50762         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
50763         implementation of getopt_long.  Problem reported by Alexander Taler in:
50764         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
50765
50766 2004-10-15  Bruno Haible  <bruno@clisp.org>
50767
50768         * gnulib-tool: Untabify. Initialize supplied_libname.
50769         (func_usage): More homogenous output.
50770         (func_modules_transitive_closure, func_modules_to_filelist,
50771         func_emit_lib_Makefile_am): New functions.
50772         (func_import): New function, extracted from big case statement. Use
50773         func_get_license, func_modules_transitive_closure,
50774         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
50775         opt_lgpl. Don't use test -a, as it's not portable.
50776         (func_create_testdir): Use func_modules_transitive_closure,
50777         func_modules_to_filelist, func_emit_lib_Makefile_am.
50778
50779 2004-10-15  Bruno Haible  <bruno@clisp.org>
50780
50781         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
50782
50783 2004-10-15  Bruno Haible  <bruno@clisp.org>
50784
50785         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
50786         the portions belonging to each module.
50787         Suggested by Derek Robert Price <derek@ximbiot.com>.
50788
50789 2004-10-12  Simon Josefsson  <jas@extundo.com>
50790
50791         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50792         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
50793         to real functions.
50794
50795 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50796
50797         * modules/vsnprintf: New file.
50798
50799 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50800
50801         * m4/vsnprintf.m4: New file.
50802
50803 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50804
50805         * lib/vsnprintf.h: New file.
50806         * lib/vsnprintf.c: New file.
50807
50808 2004-10-11  Bruno Haible  <bruno@clisp.org>
50809
50810         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
50811         vsnprintf.
50812
50813 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50814
50815         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
50816
50817 2004-10-07  Bruno Haible  <bruno@clisp.org>
50818
50819         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
50820         fits into the provided buffer.
50821
50822 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50823
50824         * lib/diacrit.c, diacrit.h: Add GPL notice.
50825
50826         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
50827         notice.
50828         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
50829         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
50830         This avoids a potential constant-folding bug.
50831
50832 2004-10-05  Bruno Haible  <bruno@clisp.org>
50833
50834         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
50835         for the declaration of strsep.
50836
50837 2004-10-05  Bruno Haible  <bruno@clisp.org>
50838
50839         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
50840
50841 2004-10-04  Simon Josefsson  <jas@extundo.com>
50842
50843         * modules/memmem: New file.
50844         * tests/test-memmem.c: New file.
50845         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
50846
50847 2004-10-04  Simon Josefsson  <jas@extundo.com>
50848
50849         * m4/memmem.m4: New file.
50850
50851 2004-10-04  Simon Josefsson  <jas@extundo.com>
50852
50853         * lib/memmem.h: New file.
50854         * lib/memmem.c: New file, taken from glibc.
50855
50856 2004-10-04  Simon Josefsson  <jas@extundo.com>
50857
50858         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
50859         '#ifdef USE_UNLOCKED_IO'.
50860
50861 2004-10-04  Simon Josefsson  <jas@extundo.com>
50862
50863         * config/srclist.txt: Add memmem from glibc.
50864
50865 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50866
50867         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
50868
50869         * modules/argmatch, modules/argp, modules/closeout, modules/error,
50870         modules/exclude, modules/getdate, modules/getline,
50871         modules/getndelim2, modules/getpass, modules/getpass-gnu,
50872         modules/getusershell, modules/linebuffer, modules/md5,
50873         modules/mountlist, modules/posixtm, modules/readtokens,
50874         modules/readutmp, modules/regex, modules/sha1,
50875         modules/version-etc, modules/yesno:
50876         Remove dependency on unlocked-io.
50877
50878 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50879
50880         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
50881
50882         * m4/unlocked-io.m4: Add copyright notice.
50883         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
50884
50885 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50886
50887         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
50888         * lib/xmalloc.c (xmemdup): Likewise.
50889         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
50890         XFREE): Remove these long-obsolescent macros.
50891         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
50892         * lib/xstrdup.c: Remove.
50893
50894         * lib/regex.c (re_comp): Cast gettext return value to char *,
50895         Problem reported by Martin Neitzel via Mark D. Baushke.
50896
50897 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50898
50899         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
50900         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
50901         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
50902         regex.c, sha1.c, version-etc.c, yesno.c:
50903         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
50904         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
50905         the includer's responsibility.
50906
50907         Sync from coreutils.
50908
50909         * lib/modechange.c (mode_compile): Don't decrement a pointer that
50910         points to the start of a string, as the C Standard says the
50911         resulting behavior is undefined.
50912
50913         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
50914         simple -> simple_backups, numbered_existing ->
50915         numbered_existing_backups, numbered -> numbered_backups
50916         to avoid shadowing problems.  All uses changed.
50917         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
50918         * lib/backupfile.c (check_extension, numbered_backup):
50919         Rename locals to avoid shadowing 'basename'.
50920         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
50921         once.
50922
50923         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
50924         * lib/.cvsignore: Add getopt.h.
50925
50926 2004-10-04  Bruno Haible  <bruno@clisp.org>
50927
50928         * modules/README: New file.
50929         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
50930         not a module.
50931
50932 2004-10-02  Jim Meyering  <jim@meyering.net>
50933
50934         * lib/dirfd.h, getpagesize.h: Add copyright notice.
50935
50936 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50937
50938         * modules/strsep: New file.
50939
50940 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50941
50942         * m4/strsep.m4: New file.
50943
50944 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50945
50946         * lib/strsep.h: New file.
50947         * lib/strsep.c: New file.
50948
50949 2004-10-01  Simon Josefsson  <jas@extundo.com>
50950
50951         * lib/snprintf.c (snprintf): Handle size==0.
50952
50953 2004-10-01  Simon Josefsson  <jas@extundo.com>
50954             Bruno Haible  <bruno@clisp.org>
50955
50956         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
50957         (snprintf): Declare 'args'.
50958
50959 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
50960
50961         * lib/snprintf.c: Remove comments as to why each header is needed.
50962
50963 2004-10-01  Bruno Haible  <bruno@clisp.org>
50964
50965         * MODULES.html.sh: Add strsep.
50966
50967 2004-09-30  Simon Josefsson  <jas@extundo.com>
50968
50969         * modules/snprintf: New file.
50970
50971 2004-09-30  Simon Josefsson  <jas@extundo.com>
50972
50973         * m4/snprintf.m4: New file.
50974
50975 2004-09-30  Simon Josefsson  <jas@extundo.com>
50976
50977         * lib/snprintf.h, lib/snprintf.c: New files.
50978
50979 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50980
50981         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
50982         (hol_entry_help): Never translate an empty string.
50983         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
50984         * lib/argp.h (OPTION_NO_TRANS): New option.
50985
50986 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
50987
50988         * modules/argp (Maintainer): Replace Simon Josefsson
50989         by Sergey Poznyakoff.
50990
50991 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
50992
50993         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
50994         changes merged back into glibc.
50995
50996 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
50997
50998         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
50999
51000 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51001
51002         * lib/xvasprintf.c: Include xalloc.h.
51003         (xvasprintf): Use xalloc_die, not xmalloc_die.
51004
51005 2004-09-29  Bruno Haible  <bruno@clisp.org>
51006
51007         * modules/alloca-opt: New file, derived from modules/alloca.
51008         * modules/allocsa: Depend on alloca-opt instead of alloca.
51009         * modules/setenv: Likewise.
51010         * modules/vasnprintf: Likewise.
51011         * MODULES.html.sh: Add alloca-opt.
51012
51013 2004-09-28  Simon Josefsson  <jas@extundo.com>
51014
51015         * gnulib-tool: New parameter --lgpl, to asseert that modules are
51016         LGPL, and to replace license template from GPL to LGPL.
51017
51018 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
51019
51020         * modules/dummy: Change license to LGPL.
51021
51022 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
51023
51024         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
51025
51026 2004-09-24  Simon Josefsson  <jas@extundo.com>
51027
51028         * modules/minmax (License): Change from GPL to LGPL.
51029
51030 2004-09-23  Simon Josefsson  <jas@extundo.com>
51031
51032         * gnulib-tool (--import): Typo.
51033
51034 2004-09-23  Simon Josefsson  <jas@extundo.com>
51035
51036         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
51037
51038 2004-09-22  Bruno Haible  <bruno@clisp.org>
51039
51040         * modules/*: Add 'License' field.
51041         * gnulib-tool: Accept --extract-license option.
51042         (func_get_license): New function.
51043
51044 2004-09-21  Bruno Haible  <bruno@clisp.org>
51045
51046         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
51047         Reported by Simon Josefsson.
51048
51049 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51050
51051         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
51052         gl_AC_TYPE_LONG_LONG.
51053
51054 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51055
51056         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
51057
51058 2004-09-18  Simon Josefsson  <jas@extundo.com>
51059         and  Paul Eggert  <eggert@cs.ucla.edu>
51060
51061         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
51062         calls with autoreconf.  Define GL_LIB.
51063
51064 2004-09-14  Karl Berry  <karl@gnu.org>
51065
51066         * config/srclist.txt: unsync setenv.c, sigh.
51067
51068 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51069
51070         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
51071         Problem reported by Bruno Haible in:
51072         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
51073
51074 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51075
51076         * config/srclist.txt: Comment out argp-pvh.c.
51077
51078 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
51079
51080         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
51081         in case some system header has #define'd it.  Problem reported by
51082         Soeren D. Schulze in
51083         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
51084
51085 2004-09-09  Karl Berry  <karl@gnu.org>
51086
51087         * regex.[ch]: delete from the root.  These were supposed to be
51088                 synced with emacs cvs, but this has not happened for about
51089                 a year, and anyway nothing else uses emacs regex.[ch].
51090                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
51091                 lib/regex[.ch] is untouched.
51092
51093 2004-09-09  Bruno Haible  <bruno@clisp.org>
51094
51095         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
51096
51097 2004-09-09  Bruno Haible  <bruno@clisp.org>
51098
51099         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
51100         modifications.
51101         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
51102
51103 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
51104
51105         * modules/xvasprintf: New file.
51106         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
51107
51108 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
51109
51110         * lib/xvasprintf.h: New file.
51111         * lib/xvasprintf.c: New file.
51112         * lib/xasprintf.c: New file.
51113
51114 2004-09-08  Bruno Haible  <bruno@clisp.org>
51115
51116         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
51117
51118 2004-09-08  Bruno Haible  <bruno@clisp.org>
51119
51120         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
51121         length is > INT_MAX.
51122         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
51123         more.
51124
51125 2004-09-08  Bruno Haible  <bruno@clisp.org>
51126
51127         * lib/stdint_.h: New file, taken from GNU clisp.
51128
51129 2004-09-08  Bruno Haible  <bruno@clisp.org>
51130             Oskar Liljeblad  <oskar@osk.mine.nu>
51131
51132         * modules/stdint: New file.
51133         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
51134
51135 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51136
51137         Import from coreutils.
51138         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
51139         strings on unbounded length.  alloca's performance benefits aren't
51140         that important here.
51141         (V_STRDUP): Remove.
51142         (parse_with_separator): New function, with most of the internals
51143         of the old parse_user_spec.  Allow user to omit both user and group,
51144         for compatibility with FreeBSD.
51145         Clone only the user name, not the entire spec.
51146         Do not set *uid, *gid unless entirely successful.
51147         Avoid memory leak in some failing cases.
51148         Fix regression for USER.GROUP reported by Dmitry V. Levin in
51149         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
51150         (parse_user_spec): Rewrite to use parse_with_separator.
51151
51152 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51153
51154         * modules/userspec: Don't depend on alloca.
51155
51156 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51157
51158         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
51159
51160 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51161
51162         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
51163         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
51164         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
51165
51166 2004-08-16  Simon Josefsson  <jas@extundo.com>
51167
51168         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
51169         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
51170         Add --dry-run for --import.
51171         Let user provided command line parameters override configure.ac
51172         settings.
51173
51174 2004-08-12  Simon Josefsson  <jas@extundo.com>
51175
51176         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
51177         as discussed with Paul Eggert in threads rooted at
51178         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
51179         and
51180         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
51181         Before, the test was empty, and relied on ELIDE_CODE in source
51182         code.)
51183         (gl_PREREQ_GETOPT): New macro.
51184         (gl_GETOPT): Use them.
51185
51186 2004-08-12  Simon Josefsson  <jas@extundo.com>
51187
51188         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
51189         * lib/getopt_.h: Renamed from getopt.h.
51190
51191 2004-08-12  Simon Josefsson  <jas@extundo.com>
51192
51193         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
51194         Change default library name from libfoo to libgnu.
51195         Now, if you have a configure.ac that says:
51196                 gl_SOURCE_BASE(gl)
51197                 gl_M4_BASE(gl/m4)
51198                 gl_MODULES(error getopt etcetera)
51199                 gl_INIT
51200         you can import all you need by running:
51201                 ../gnulib/gnulib-tool --import
51202
51203         * modules/getopt (Files): Rename getopt.h to getopt_.h.
51204         (Makefile.am): Rewrite, use logic from argz.
51205         (Include): Use <getopt.h> instead of "getopt.h".
51206
51207 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51208
51209         * modules/argp (Files): Add m4/unlocked-io.m4.
51210         (Depends-on): Add extensions.
51211
51212 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51213
51214         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
51215         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
51216         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
51217         Check for program_invocation_name, program_invocation_short_name,
51218         flockfile, funlockfile, features.h, _getopt_long_only_r.
51219
51220 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51221
51222         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
51223         its complicated substitute.
51224         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
51225         and program_invocation_name.
51226         (__argp_basename) [!_LIBC]: Remove; the only use was
51227         replaced by its body.
51228         (__argp_short_program_name): Change condition from
51229         !defined __argp_short_program_name to
51230         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
51231         to match argp-namefrob.h.
51232         (__argp_failure): Don't assume strerror_r returns char *.
51233         * lib/argp-parse.c (N_): Define unconditionally.
51234         (argp_default_options): Fill out initializers with 0 to avoid
51235         gcc warnings.
51236
51237 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51238
51239         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
51240         getopt1.c.
51241
51242 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51243
51244         Merge from coreutils.
51245
51246         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
51247
51248         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
51249         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
51250
51251 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51252
51253         Merge from coreutils.
51254
51255         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
51256         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
51257         for Reliant Unix 5.43.
51258
51259         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
51260         (union fooround): Use uintmax_t, not long int.
51261         The rest is a merge from libc:
51262         [defined _LIBC]: Include <shlib-compat.h>.
51263         (_obstack) [defined _LIBC]: Remove after 2.3.4.
51264
51265         * lib/settime.c (settime): Recode to avoid warning with
51266         Sun Forte C 6U2.
51267
51268         * lib/strverscmp.c: Convert to UTF-8.
51269
51270 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51271
51272         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
51273         m4/uintmax_t.m4.
51274
51275 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51276
51277         * modules/xalloc-die: New file.
51278         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
51279
51280         * modules/md5 (Files): Add m4/uint32_t.m4.
51281         * modules/sha1: Renamed from modules/sha.
51282         (Files):
51283         Rename lib/sha.h to lib/sha1.h.
51284         Rename lib/sha.c to lib/sha1.c.
51285         Rename m4/sha.m4 to m4/sha1.m4.
51286         (lib_SOURCES): Likewise.
51287         (configure.ac): Rename gl_SHA to gl_SHA1.
51288         (Include): sha.h -> sha1.h.
51289
51290 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51291
51292         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
51293         * m4/sha1.m4: Renamed from sha.m4.
51294         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
51295
51296 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51297
51298         * lib/obstack.h (obstack_empty_p):
51299         Don't assume that chunk->contents is suitably aligned.
51300         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
51301         Likewise. Problem reported by Benno in
51302         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
51303
51304         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
51305         readable.  This could be improved further but it'd take some work.
51306
51307 2004-08-08  Simon Josefsson  <jas@extundo.com>
51308
51309         * modules/xgethostname (Depends-on): Remove exit and error (not
51310         used).
51311
51312         * modules/getpass-gnu: Add getpass.h.
51313         (Depends-on): Add stdbool.
51314         * modules/getpass: Add getpass.h.
51315
51316 2004-08-08  Simon Josefsson  <jas@extundo.com>
51317
51318         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
51319         Check getpass declaration.
51320
51321 2004-08-08  Simon Josefsson  <jas@extundo.com>
51322
51323         * lib/xgethostname.c: Don't include error.h (not used).
51324
51325         * lib/getpass.h: Add.
51326         * lib/getpass.c: Include getpass.h first.
51327
51328 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
51329
51330         * lib/xalloc-die.c: New file.
51331         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
51332         All uses removed.
51333         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
51334         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
51335         xalloc-die.c.
51336         (_, N_, xalloc_die): Move to xalloc-die.c.
51337         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
51338         so that we needn't mess with xalloc_msg_memory_exhausted.
51339
51340         * lib/sha1.h: Renamed from sha.h.
51341         (SHA1_H): Renamed from _SHA_H.
51342         (sha1_ctx): Renamed from sha_ctx.
51343         (sha1_init_ctx): Renamed from sha_init_ctx.
51344         (sha1_process_block): Renamed from sha_process_block.
51345         (sha1_process_bytes): Renamed from sha_process_bytes.
51346         (sha1_finish_ctx): Renamed from sha_finish_ctx.
51347         (sha1_read_ctx): Renamed from sha_read_ctx.
51348         (sha1_stream): Renamed from sha_stream.
51349         (sha1_buffer): Renamed from sha_buffer.
51350         * lib/sha1.c: Likewise; renamed from sha.c.
51351         Do not include <sys/types.h>.
51352         Include <stddef.h> rather than <stdlib.h>.
51353
51354 2004-08-08  Bruno Haible  <bruno@clisp.org>
51355
51356         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
51357         FILESYSTEM_PREFIX_LEN.
51358         * lib/progreloc.c: Likewise.
51359         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
51360
51361 2004-08-06  Simon Josefsson  <jas@extundo.com>
51362
51363         * modules/progname (Depends-on): Don't depend on stdbool.
51364
51365 2004-08-06  Simon Josefsson  <jas@extundo.com>
51366
51367         * modules/getsubopt: New file.
51368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51369         getsubopt.
51370
51371 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51372
51373         More merge from coreutils.
51374
51375         * m4/utimens.m4, m4/utimecmp.m4: New files.
51376         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
51377         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
51378         prereq.m4, sha.m4: Import changes from coreutils.
51379
51380 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51381
51382         More merge from coreutils.
51383         * modules/raise, modules/readtokens0, modules/utimens:
51384         * modules/utimecmp, module/xnanosleep: New files.
51385         * modules/strftime: Add lib/strftime.h.
51386         Change include from <time.h> to "strftime.h".
51387         * modules/yesno: Add lib/yesno.h.
51388         * modules/backupfile: Remove lib/addext.c.
51389         * modules/euidaccess: Add stat-macros.h.
51390         * modules/canonicalize, modules/euidaccess,
51391         modules/filemode, modules/lchown, modules/makepath,
51392         modules/rmdir, modules/stat: Likewise.
51393
51394 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51395
51396         Merge from tar.
51397         * lib/argp-help.c (make_hol, hol_append): Don't assume that
51398         SIZE_MAX is a valid preprocessor constant.
51399         (__argp_basename): Change from "#ifndef _LIBC"
51400         to "#ifndef __argp_short_program_name", so that
51401         we don't compile these functions for tar.
51402
51403         More merges from coreutils.
51404         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
51405         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
51406         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
51407         * lib/addext.c: Remove; no longer needed.
51408         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
51409         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
51410         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
51411         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
51412         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
51413         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
51414         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
51415         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
51416         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
51417         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51418         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
51419         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
51420         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
51421         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
51422         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
51423         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
51424         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
51425         Import changes from coreutils.
51426
51427 2004-08-05  Simon Josefsson  <jas@extundo.com>
51428
51429         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
51430
51431 2004-08-05  Simon Josefsson  <jas@extundo.com>
51432
51433         * m4/getsubopt.m4: New file.
51434
51435 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51436
51437         Merge from coreutils.
51438
51439         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
51440         * m4/getcwd-path-max.m4: New files.
51441
51442         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
51443         FILESYSTEM_PREFIX_LEN ->
51444         FILE_SYSTEM_PREFIX_LEN.
51445         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
51446         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
51447         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
51448         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
51449
51450         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
51451         prerequisite modules now handle the DOS stuff.
51452         Don't check for unistd.h.
51453
51454 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51455
51456         Merge from coreutils.
51457
51458         * lib/.gdb-history: Remove; this doesn't belong here.
51459
51460         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
51461         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
51462         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
51463         * lib/getcwd.c: New files.
51464
51465         * lib/dirname.h: Include <stdbool.h>.
51466         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
51467         for consistency with POSIX terminology.  All uses changed.
51468         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
51469         (strip_trailing_slashes): Use bool for booleans.
51470         * lib/stripslash.c (strip_trailing_slashes): Likewise.
51471
51472         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
51473         sometimes returns a positive errno value even when it succeeds.
51474         (print_errno_message) [!LIBC]: Fall back on strerror if
51475         __strerror_r fails.
51476
51477         * lib/path-concat.c (mempcpy): Don't define if a system header defines
51478         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
51479         (longest_relative_suffix): New function.
51480         (path_concat): Use it.  Assume first argument is not NULL.
51481         Port to DOS.  Omit redundant separators.
51482         Report an error instead of returning NULL.
51483         Use mempcpy instead of memcpy.
51484         (xpath_concat): Remove: not declared or used.
51485
51486         * lib/same.h: Include <stdbool.h>
51487         (same_name): Return bool, not int.
51488         * lib/same.c (same_name): Likewise.
51489         (errno): Don't declare; we assume C89 or better now.
51490
51491         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
51492         if not already defined.
51493
51494         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
51495         * lib/dup-safer.c (errno): Likewise.
51496
51497 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51498
51499         Merge from coreutils.
51500         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
51501         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
51502         * modules/path-concat: Don't depend on strdup.
51503
51504 2004-08-03  Simon Josefsson  <jas@extundo.com>
51505
51506         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
51507         * lib/progname.h: Don't include stdbool.h.
51508
51509 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51510
51511         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
51512         * MODULES.html.sh (func_all_modules): Remove fatal.
51513
51514 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51515
51516         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
51517
51518 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51519
51520         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
51521         working.
51522
51523 2004-08-02  Simon Josefsson  <jas@extundo.com>
51524
51525         * lib/getsubopt.h: New file, with comments from Bruno Haible.
51526         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
51527         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
51528
51529 2004-08-01  Simon Josefsson  <jas@extundo.com>
51530
51531         * lib/xgetdomainname.c: Include stdlib.h, for free().
51532
51533 2004-07-19  Bruno Haible  <bruno@clisp.org>
51534
51535         * MODULES.html.sh (func_all_modules): Add dummy.
51536
51537 2004-07-16  Simon Josefsson  <jas@extundo.com>
51538
51539         * modules/dummy: New file.
51540
51541 2004-07-16  Simon Josefsson  <jas@extundo.com>
51542
51543         * lib/dummy.c: New file.
51544
51545 2004-07-16  Bruno Haible  <bruno@clisp.org>
51546
51547         * lib/backupfile.h: Add extern "C" for C++.
51548         * lib/closeout.h: Likewise.
51549         * lib/copy-file.h: Likewise.
51550         * lib/findprog.h: Likewise.
51551         * lib/full-write.h: Likewise.
51552         * lib/pathname.h: Likewise.
51553         * lib/progname.h: Likewise.
51554         * lib/stpcpy.h: Likewise.
51555         * lib/stpncpy.h: Likewise.
51556         * lib/strcase.h: Likewise.
51557         * lib/strstr.h: Likewise.
51558         * lib/xalloc.h: Likewise.
51559
51560         * lib/mbswidth.h: Add extern "C" for C++.
51561         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
51562
51563 2004-07-13  Robert Millan  <robertmh@gnu.org>
51564
51565         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
51566
51567 2004-07-09  Simon Josefsson  <jas@extundo.com>
51568
51569         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
51570         failed without this.)
51571
51572 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51573
51574         * modules/chown (Files): Add lib/fchown-stub.c, since
51575         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
51576
51577 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51578
51579         * lib/fchown-stub.c: New file.
51580
51581 2004-06-24  Jim Meyering  <jim@meyering.net>
51582
51583         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
51584
51585 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51586
51587         * modules/argz: Omit "#include".
51588
51589         * MODULES.html.sh (func_all_modules): Add calloc, to match
51590         2004-06-01 addition of calloc module.
51591
51592 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51593
51594         * m4/argz.m4: New file, which is autoupdated from libtool.
51595
51596 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51597
51598         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
51599         libtool.
51600
51601 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51602
51603         * config/srclist-update: Don't insist on "USA." before the
51604         close-comment, as libtool omits the period and puts the */ on a
51605         separate line.
51606         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
51607         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
51608
51609 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
51610
51611         * modules/argz: New file.
51612         * MODULES.html.sh (func_all_modules): Add argz.
51613
51614 2004-06-12  Jim Meyering  <jim@meyering.net>
51615         and  Paul Eggert  <eggert@cs.ucla.edu>
51616
51617         * modules/hash (Files): Add lib/xalloc.h.
51618         * modules/pipe (Depends-on): Add wait-process.
51619         * modules/stat (Depends-on): Add xalloc.
51620         * modules/userspec (Files): Add lib/userspec.h.
51621         * modules/xstrto
51622
51623         Upgrade from gettext-0.13.
51624         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
51625         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
51626         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
51627
51628 2004-06-10  Jim Meyering  <jim@meyering.net>
51629
51630         * lib/calloc.c: New file.
51631
51632 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51633
51634         * lib/getdate.y (yylex): Allow space between sign and number.
51635         Problem reported by Dan Jacobson.
51636
51637 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
51638
51639         Merge from coreutils CVS.
51640
51641         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
51642         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
51643         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
51644         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
51645         xstrtol.m4: Fix copyright date and/or serial number.
51646
51647         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
51648         See if we need an fchown replacement.
51649         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
51650         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
51651         and use the replacement function if we detect either defect.
51652
51653         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
51654         gl_UTIMECMP.
51655
51656 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
51657         and  Jim Meyering  <jim@meyering.net>
51658
51659         Merge from coreutils CVS.
51660
51661         * lib/stat-macros.h: New file, with contents from file-type.h
51662         and coreutils' system.h.
51663         * lib/file-type.c: Include "stat-macros.h".
51664         * lib/file-type.h (file_type): Move all macro definitions to new file,
51665         stat-macros.h.
51666
51667         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
51668         Wrap old code with this conditional.
51669         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
51670         function that does not dereference symlinks.
51671         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
51672
51673         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
51674         dependency problems.
51675         (xreadlink): Accept new arg SIZE, for efficiency.
51676         All decls and uses changed.
51677         * lib/xreadlink.h: Include <stddef.h>, for size_t.
51678
51679         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
51680         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
51681
51682         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
51683         sysexits.h.
51684
51685 2004-06-01  Jim Meyering  <jim@meyering.net>
51686
51687         * m4/calloc.m4: New file.
51688
51689 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
51690
51691         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
51692         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
51693         Also, fix a typo in a diagnostic.
51694
51695 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51696
51697         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
51698         or AC_FUNC_REALLOC.
51699
51700 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51701
51702         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
51703         macros to be defined.
51704         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
51705         the allocator returns NULL because the requested size is zero.
51706
51707 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51708
51709         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
51710         var.  Add comment explaining why libc still defines it.  This
51711         merges the following patch from glibc:
51712         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
51713
51714 2004-05-20  Andreas Schwab  <schwab@suse.de>
51715
51716         * m4/free.m4: Replace free if it not known to work, not the other
51717         way round.
51718
51719 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51720
51721         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
51722         present in glibc since revision 1.1 of this file.
51723         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
51724         obstack_alignment_mask, obstack_alloc, obstack_base,
51725         obstack_blank, obstack_blank_fast, obstack_chunk_size,
51726         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
51727         obstack_grow0, obstack_init, obstack_int_grow,
51728         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
51729         obstack_next_free, obstack_object_size, obstack_ptr_grow,
51730         obstack_ptr_grow_fast, obstack_room): Remove declarations of
51731         nonexistent functions.
51732
51733 2004-05-18  Karl Berry  <karl@gnu.org>
51734
51735         * config/srclist.txt: break link for vasnprintf.c.
51736
51737 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51738
51739         Port obstack to the AS/400, where pointers are 16 bytes wide and
51740         you cannot cast an integer to a valid pointer.  This patch is
51741         currently waiting to be integrated into glibc; see
51742         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
51743
51744         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
51745         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
51746         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
51747         (struct obstack): temp member is now a union of a pointer and
51748         an integer, instead of an integer.  All integer uses changed.
51749         This does not affect the physical layout of struct obstack,
51750         except on hosts (like the AS/400) where the size or alignment of
51751         void * is greater than that of ptrdiff_t.
51752         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
51753         __STDC__)]: Store temporary in pointer member of union, not
51754         integer member.
51755         * lib/obstack.c: Include <stddef.h>, for offsetof.
51756         (struct fooalign): Remove; it doesn't need a name.
51757         (union fooround): Change double to long double, and add void *.
51758         (DEFAULT_ALIGNMENT): Use offsetof to compute.
51759         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
51760         not a macro.  Hence the values are always int; so remove all
51761         casts-to-int in uses.
51762
51763 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51764
51765         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
51766         we can get this patch merged into glibc.
51767
51768 2004-05-17  Derek R. Price  <derek@ximbiot.com>
51769             Paul Eggert  <eggert@cs.ucla.edu>
51770
51771         * m4/argp: Depend on alloca.
51772
51773 2004-05-17  Derek R. Price  <derek@ximbiot.com>
51774             Paul Eggert  <eggert@cs.ucla.edu>
51775
51776         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
51777         freecoding.
51778
51779 2004-05-17  Bruno Haible  <bruno@clisp.org>
51780
51781         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
51782         precision that consists of a '.' followed by an empty digit string.
51783         Patch by Tor Lillqvist <tml@iki.fi>.
51784
51785 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51786
51787         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
51788         for backward compatibility with older code.  We need our own
51789         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
51790         it under some other name, and our alloca.h will define it.
51791
51792 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51793             Derek Price  <derek@ximbiot.com>
51794
51795         * lib/alloca.c: Include <alloca.h>, to get our interface.
51796         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
51797         include <alloca.h> first.  Use C89 prototype for alloca; this
51798         requires including <stddef.h> for size_t.  Use extern "C" if C++.
51799         Use #elif for simplicity, since we can assume C89 now.
51800         Don't try to source the system alloca.h since it will not be found
51801         and to prevent recursively including its replacement.
51802         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
51803         * lib/regex.c: Likewise.
51804
51805 2004-05-16  Derek Price  <derek@ximbiot.com>
51806             Paul Eggert  <eggert@cs.ucla.edu>
51807
51808         getline cleanup.  This changes the getndelim2 API: both order of
51809         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
51810         no delimiter).
51811
51812         * lib/getline.c: Don't include stddef.h or stdio.h, since our
51813         interface does that.
51814         (getline): Always use getdelim, so that we don't have two
51815         copies of this code.
51816         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
51817         if available.
51818         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
51819         (GETNDELIM2_MAXIMUM): New macro.
51820         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
51821         instead of the old practice of delim2==0.  All callers changed.
51822         Return -1 on overflow, instead of returning junk.
51823         Do not set *linesize unless allocation succeeds.
51824         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
51825         that we include sys/types.h.
51826         * lib/getnline.h: Likewise.
51827         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
51828         (getndelim2): Reorder arguments.
51829         * lib/getnline.c (getnline, getndelim):
51830         Don't discard the NMAX argument.
51831         (getnline): Invoke getndelim, to avoid code duplication.
51832         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
51833         of (size_t) -1 by callers of the getnline family.
51834
51835 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51836
51837         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
51838         Check for gettimeofday.
51839         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
51840         Check for settimeofday, stime.
51841
51842 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51843
51844         * lib/nanosleep.c (suspended): Change its type from int to
51845         sig_atomic_t volatile.
51846         (first_call): Make it private to rpl_nanosleep, and have it
51847         be zero initially as that's a bit faster.
51848         (my_usleep): Round up fractional times instead of truncating them,
51849         as this is the usual meaning for 'sleep'.
51850
51851         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
51852         doesn't work.
51853         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
51854         (ENOSYS): Define if not defined.
51855         (settime): Fall back on stime if it exists and settimeofday fails.
51856         But don't bother with fallbacks if a method fails with errno == EPERM.
51857
51858 2004-05-11  Jim Meyering  <jim@meyering.net>
51859
51860         Prior to this change, the save_cwd caller required read access to the
51861         current directory on most systems (ones with the fchdir function).
51862
51863         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
51864         fails, try write-only, and finally, resort to using xgetcwd.
51865
51866 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51867
51868         * lib/obstack.c, obstack.h: Import changes from libc.
51869
51870 2004-04-28  Bruno Haible  <bruno@clisp.org>
51871
51872         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
51873         also implicitly appends .exe to executables.
51874         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
51875         accepts Windows pathnames.
51876         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51877         Treat Cygwin like Windows, since it now accepts Windows pathnames.
51878         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51879         Treat Cygwin like Windows, since it now accepts Windows pathnames.
51880         Reported by Derek Robert Price <derek@ximbiot.com>.
51881
51882 2004-04-21  Karl Berry  <karl@gnu.org>
51883
51884         * config/srclist.txt (localcharset.c): break sync.
51885
51886 2004-04-20  Paul Eggert  <eggert@twinsun.com>
51887
51888         * m4/host-os.m4: Add a copyright notice.
51889
51890 2004-04-20  Jim Meyering  <jim@meyering.net>
51891
51892         Change UTILS_ to gl_ in AC_DEFINE'd names.
51893         Change utils_- and jm_-prefixed variables, too.
51894         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
51895         UTILS_FUNC_MKDIR_TRAILING_SLASH.
51896         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
51897
51898         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
51899         Don't emit trailing blanks.
51900         Also rename jm_-prefixed variables to have gl_ prefix.
51901
51902         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
51903         Also rename jm_-prefixed variables to have gl_ prefix.
51904
51905         * m4/jm-macros.m4: Reflect the renamings.
51906         * m4/prereq.m4: Likewise.
51907
51908 2004-04-20  Jim Meyering  <jim@meyering.net>
51909
51910         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
51911         memory.
51912
51913 2004-04-20  Jim Meyering  <jim@meyering.net>
51914             Bruno Haible  <bruno@clisp.org>
51915
51916         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
51917         memory when realloc fails.
51918
51919 2004-04-19  Jim Meyering  <jim@meyering.net>
51920
51921         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
51922         now that readutmp.c may call `free (0)'.
51923
51924 2004-04-19  Bruno Haible  <bruno@clisp.org>
51925
51926         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
51927         * m4/inttypes_h.m4: Likewise.
51928         * m4/stdint_h.m4: Likewise.
51929         * m4/intmax_t.m4: Likewise.
51930         * m4/uintmax_t.m4: Likewise.
51931
51932 2004-04-18  Jim Meyering  <jim@meyering.net>
51933
51934         * m4/prereq.m4: Don't forbid jm_ prefix.
51935
51936         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
51937         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
51938         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
51939         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
51940         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
51941         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
51942         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
51943         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
51944         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
51945         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
51946         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
51947         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
51948         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
51949         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
51950         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
51951         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
51952         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
51953         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
51954         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
51955
51956 2004-04-18  Jim Meyering  <jim@meyering.net>
51957
51958         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
51959         failure, don't leak memory and do call END_UTMP_ENT.
51960
51961 2004-04-16  Jim Meyering  <jim@meyering.net>
51962
51963         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
51964         coreutils' stat program.
51965         (gl_PREREQ): Don't require jm_PREREQ_STAT.
51966
51967 2004-04-11  Paul Eggert  <eggert@twinsun.com>
51968
51969         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
51970         C89.
51971         (CHAR_BIT): Remove, since we assume C89.
51972         Include <stdint.h> if available, as per current Autoconf CVS advice.
51973
51974 2004-03-31  Jim Meyering  <jim@meyering.net>
51975
51976         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
51977         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
51978         * m4/xalloc.m4: Likewise.
51979
51980 2004-03-30  Paul Eggert  <eggert@twinsun.com>
51981
51982         Merge from coreutils.
51983
51984         * m4/inttostr.m4: New file.
51985         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
51986         Require AM_STDBOOL_H and gl_TIMESPEC instead.
51987         Require gl_CLOCK_TIME.
51988         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
51989
51990 2004-03-30  Paul Eggert  <eggert@twinsun.com>
51991
51992         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
51993         not bool, to be more consistent with Unix conventions.
51994         Suggested by Bruno Haible.
51995
51996         Merge from coreutils.
51997
51998         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
51999         * lib/umaxtostr.c: New files.
52000
52001         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
52002         the usual <time.h> dance.
52003         (get_date): Change signature to support fractional time stamps.
52004         All callers changed.
52005         * lib/getdate.y: Include "getdate.h" first, as we can now
52006         assume C89 and don't need to worry about 'const'.
52007         Similarly, include "unlocked-io.h" near start, not in middle.
52008         Include <limits.h>.
52009         (textint.value): Use long int rather than int.
52010         (textint.digits): Use size_t rather than int.
52011         (BILLION, LOG10_BILLION): New constants.
52012         (parser_control): New member rel_ns.  Members day_ordinal,
52013         time_zone, month, day, hour, minutes, rel_year, rel_month,
52014         rel_day, rel_hour, rel_minutes, rel_seconds
52015         are now long int, not int.  Member seconds is now struct timespec,
52016         not int.  New member timespec_seen.  Members dates_seen, days_seen,
52017         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
52018         not int.
52019         (%union.intval): Now long int, not int.
52020         New member timespec.
52021         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
52022         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
52023         (spec): Now is a timespec or an item list.
52024         (timespec, items): New nonterminals.
52025         (time, rel, relunit, number, get_date):
52026         Add support for fractional seconds.
52027         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
52028         (gmtime, localtime, mktime): Remove decls; not needed with C89.
52029         (to_hour): First arg is now long int, not int.
52030         (to_year): Returns long int, not int.
52031         Don't treat year -70 like 70.
52032         (tm_diff): Returns long int, not int.
52033         (lookup_word): Use bool instead of int when appropriate.
52034         (yylex): Use size_t for count, not int.
52035         Detect overflow when parsing large integer constants.
52036         Add support for fractions.
52037         (get_date): Make pointers 'const' if possible.
52038         Use more-portable code to detect integer overflow.
52039         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
52040         Don't use ctime; it's not reliable if the year has >4 digits.
52041
52042         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
52043         This is for compatibility with BSD.
52044
52045         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
52046         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
52047         From coreutils' system.h.
52048
52049         * lib/userspec.c: Don't include "posixver.h".
52050         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
52051         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
52052         compatible extension.  Simplify code by removing a boolean int
52053         that was always nonzero if a string was nonnull.
52054
52055 2004-03-30  Jim Meyering  <jim@meyering.net>
52056
52057         Merge from coreutils.
52058
52059         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
52060         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
52061         on some systems one must include <grp.h> before it.
52062         Reported by Christian Krackowizer.
52063
52064 2004-03-30  Jim Meyering  <jim@meyering.net>
52065
52066         Merge from coreutils.
52067
52068         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
52069
52070         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
52071         an empty input stream.
52072
52073         * lib/readtokens.c: Include <stdbool.h>.
52074         (readtoken): Use `size_t' rather than int/long.
52075         All callers adjusted.
52076         Use `bool' rather than `int' where appropriate.
52077         Use memset rather than an explicit loop.
52078         Use x2nrealloc rather than xrealloc.
52079         Allow the use of `\0' as a delimiter.
52080         (readtokens): Likewise.
52081         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
52082
52083 2004-03-30  Jim Meyering  <jim@meyering.net>
52084
52085         * m4/realloc.m4: Remove file, since now it does no more than
52086         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
52087         the `configure.ac' section of module/realloc.
52088         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
52089
52090 2004-03-30  Bruno Haible  <bruno@clisp.org>
52091
52092         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
52093         nonnull.
52094
52095 2004-03-29  Paul Eggert  <eggert@twinsun.com>
52096
52097         Merge changes to getloadavg.c from coreutils and Emacs.
52098
52099         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
52100         Define to an expression, not to the empty string.
52101         Include cloexec.h and xalloc.h.
52102         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
52103         Use set_cloexec_flag rather than rolling our own.
52104         * lib/cloexec.c, lib/cloexec.h: New files.
52105
52106 2004-03-29  Paul Eggert  <eggert@twinsun.com>
52107
52108         * m4/cloexec.m4: New file.
52109
52110 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52111
52112         * lib/getopt.h: Sync with libc CVS.
52113
52114 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52115             Bruno Haible  <bruno@clisp.org>
52116
52117         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
52118         mbswidth.
52119
52120 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52121             Bruno Haible  <bruno@clisp.org>
52122
52123         * lib/mbswidth.h: Include <wchar.h> only if
52124         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
52125         <wchar.h>.
52126         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
52127
52128 2004-03-09  Paul Eggert  <eggert@twinsun.com>
52129
52130         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
52131         Sync with libc CVS.
52132         * lib/getopt_int.h: New file, also synced from libc.
52133
52134 2004-03-09  Paul Eggert  <eggert@twinsun.com>
52135
52136         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
52137         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
52138         Bring back getopt.c, getopt.h, getopt1.c.
52139
52140 2004-03-07  Paul Eggert  <eggert@twinsun.com>
52141
52142         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
52143         All uses changed.  Check for sa_sigaction member; this fixes
52144         a bug first reported by Jason Andrade in
52145         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52146
52147 2004-03-07  Paul Eggert  <eggert@twinsun.com>
52148
52149         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
52150         '#if' expressions.  Unlike the code it replaces, it does not
52151         depend on (defined _SC_PAGESIZE).  However, it does depend on
52152         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
52153         first reported by Jason Andrade in
52154         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52155
52156 2004-02-25  Simon Josefsson  <jas@extundo.com>
52157
52158         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
52159
52160 2004-02-25  Simon Josefsson  <jas@extundo.com>
52161
52162         * lib/strdup.h: New file.
52163         * lib/strdup.c: Include it.
52164         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
52165         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
52166
52167 2004-02-23  Karl Berry  <karl@gnu.org>
52168
52169         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
52170         (from fencepost.gnu.org:/gd/gnuorg).
52171
52172 2004-02-23  Karl Berry  <karl@gnu.org>
52173
52174         * config/srclistvars.sh (GNUORG) [karl]: redefine.
52175         * config/srclist.txt: add maintain/standards documents.
52176
52177 2004-02-18  Bruno Haible  <bruno@clisp.org>
52178
52179         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
52180         Reported by Derek Robert Price <derek@ximbiot.com>.
52181
52182 2004-02-16  Karl Berry  <karl@gnu.org>
52183
52184         * config/mkinstalldirs, install-sh: update from automake.
52185
52186 2004-02-06  Karl Berry  <karl@gnu.org>
52187
52188         * m4/po.m4: update from gettext 0.14.1.
52189
52190 2004-02-06  Karl Berry  <karl@gnu.org>
52191
52192         * lib/config.charset: update from gettext 0.14.1.
52193
52194 2004-02-05  Paul Eggert  <eggert@twinsun.com>
52195
52196         Add comments and code, prompted by suggestions from Bruno Haible
52197         for sh-quote.
52198         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
52199         describing the enum quoting_style values.
52200         * lib/quotearg.c (quotearg_alloc): New function.
52201         (quotearg_buffer_restyled): Treat lone { and } as special.
52202         Treat = as special.  Work around bug with older shells
52203         that "see" a '\' that is really the 2nd byte of a multibyte char.
52204         Quote empty string with shell_quoting_style.
52205
52206 2004-02-03  Bruno Haible  <bruno@clisp.org>
52207
52208         * m4/pipe.m4: New file, from GNU gettext.
52209
52210 2004-02-03  Bruno Haible  <bruno@clisp.org>
52211
52212         * lib/pipe.h: New file, from GNU gettext.
52213         * lib/pipe.c: New file, from GNU gettext.
52214
52215 2004-01-27  Bruno Haible  <bruno@clisp.org>
52216
52217         * m4/execute.m4: New file, from GNU gettext.
52218
52219 2004-01-27  Bruno Haible  <bruno@clisp.org>
52220
52221         * lib/execute.h: New file, from GNU gettext.
52222         * lib/execute.c: New file, from GNU gettext.
52223         * lib/w32spawn.h: New file, from GNU gettext.
52224
52225 2004-01-24  Paul Eggert  <eggert@twinsun.com>
52226
52227         Merge from diffutils.
52228
52229         * lib/file-type.c (file_type): Add typed memory objects.
52230         * lib/file-type.h (S_TYPEISTMO): New macro.
52231
52232         * lib/c-stack.h (c_stack_action): Remove argv argument.
52233         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
52234         (die): Don't calculate message unless segv_action returns.
52235         (get_stack_location, min_address_from_argv, max_address_from_argv,
52236         volatile stack_base, volatile_stack_size): Remove.
52237         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
52238         that every segmentation violation is a stack overflow.  (Ouch!)
52239         See Debian bug 136249 (still outstanding) for more info about why
52240         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
52241
52242 2004-01-24  Paul Eggert  <eggert@twinsun.com>
52243
52244         Exit-status fix from coreutils.
52245
52246         Use exit_failure consistently in place of EXIT_FAILURE,
52247         so that program exit statuses are consistent on failure.
52248
52249         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
52250         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
52251         * lib/argmatch.h: Comment fix to match the above.
52252         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
52253         Now a macro referring to exit_failure, instead of a separate
52254         variable.  Include "exitfail.h" to get it.
52255         * lib/xstrtol.h: Include "exitfail.h".
52256         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
52257
52258         * lib/long-options.c (parse_long_options): Use prototype
52259         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
52260         for clarity.
52261
52262 2004-01-21  Jim Meyering  <jim@meyering.net>
52263
52264         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
52265         so as not to conflict with a different-sized __mktime_internal
52266         function in GNU libc.
52267         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
52268         Problem building statically-linked `ls' reported by Michael Brunnbauer.
52269
52270 2004-01-20  Karl Berry  <karl@gnu.org>
52271
52272         * config/config.guess: update from config.
52273
52274         * config/srclistvars.sh: GNUWWWLICENSES for karl.
52275
52276 2004-01-20  Bruno Haible  <bruno@clisp.org>
52277
52278         Safer stack allocation.
52279         * lib/setenv.c: Include allocsa.h.
52280         (alloca): Remove fallback definition.
52281         (freea): Remove macro.
52282         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
52283         instead of freea.
52284
52285 2004-01-20  Bruno Haible  <bruno@clisp.org>
52286
52287         * m4/eealloc.m4: New file, from GNU gettext.
52288
52289 2004-01-20  Bruno Haible  <bruno@clisp.org>
52290
52291         * m4/allocsa.m4: New file, from GNU gettext.
52292
52293 2004-01-20  Bruno Haible  <bruno@clisp.org>
52294
52295         * lib/xallocsa.h: New file, from GNU gettext.
52296         * lib/xallocsa.c: New file, from GNU gettext.
52297
52298 2004-01-20  Bruno Haible  <bruno@clisp.org>
52299
52300         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
52301
52302 2004-01-20  Bruno Haible  <bruno@clisp.org>
52303
52304         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
52305         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
52306         specially.
52307
52308 2004-01-20  Bruno Haible  <bruno@clisp.org>
52309
52310         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
52311         patch.
52312
52313 2004-01-20  Bruno Haible  <bruno@clisp.org>
52314
52315         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
52316
52317 2004-01-20  Bruno Haible  <bruno@clisp.org>
52318
52319         * lib/eealloc.h: New file.
52320
52321 2004-01-20  Bruno Haible  <bruno@clisp.org>
52322
52323         * lib/binary-io.h: Avoid warnings on Cygwin.
52324
52325 2004-01-20  Bruno Haible  <bruno@clisp.org>
52326
52327         * lib/allocsa.h: New file, from GNU gettext.
52328         * lib/allocsa.c: New file, from GNU gettext.
52329
52330 2004-01-18  Karl Berry  <karl@gnu.org>
52331
52332         * doc/gpl.texi, doc/lgpl.texi: new files.
52333
52334 2004-01-18  Karl Berry  <karl@gnu.org>
52335
52336         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
52337         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
52338
52339 2004-01-15  Paul Eggert  <eggert@twinsun.com>
52340
52341         Merge from coreutils.
52342
52343         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
52344         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
52345         (gl_DEFAULT_POSIX2_VERSION): Move
52346         the documentation from 'configure' into 'config.hin',
52347         so that 'configure --help' isn't burdened by it and
52348         we don't have to worry about its formatting there.
52349         Reword the documentation so that it's more succinct
52350         and can be run together into a single paragraph.
52351         * m4/same.m4 (gl_SAME): Check for pathconf.
52352
52353 2004-01-15  Paul Eggert  <eggert@twinsun.com>
52354
52355         Merge from coreutils.
52356
52357         * lib/posixver.c: Include posixver.h.
52358
52359         * lib/same.c: Include <stdbool.h>, <limits.h>.
52360         (_POSIX_NAME_MAX): Define if not defined.
52361         (MIN): New macro.
52362         (same_name): If file names are silently truncated, report
52363         that the file names are the same if they are the same after
52364         the silent truncation.
52365
52366         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
52367         conversion function.
52368         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
52369         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
52370         longer needed.
52371
52372 2004-01-15  Jim Meyering  <jim@meyering.net>
52373
52374         Merge from coreutils.
52375
52376         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
52377         if no library is required.
52378         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
52379         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
52380         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
52381         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
52382         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
52383         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
52384         value, $ac_cv_search_crypt, if it's "none required".
52385         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
52386         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
52387         not gl_FUNC_GETLOADAVG.
52388         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
52389         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
52390
52391 2004-01-15  Jim Meyering  <jim@meyering.net>
52392
52393         Merge from coreutils.
52394
52395         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
52396         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
52397         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
52398
52399         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
52400         optional configure-time default.
52401
52402         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52403
52404         * lib/xreadlink.c (xreadlink): Correct outdated comment.
52405
52406 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
52407
52408         Merge from coreutils.
52409
52410         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
52411         value, $ac_cv_search_nanosleep, if it's "none required".
52412
52413 2004-01-14  Paul Eggert  <eggert@twinsun.com>
52414
52415         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
52416         with like-named macro in fnmatch.c.
52417         (EXT): Use an internal constant instead.
52418
52419         Merge fnmatch patches from glibc.
52420         * lib/fnmatch.c (mbsinit): Remove define.
52421         Add libc_hidden_ver (__fnmatch, fnmatch).
52422         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
52423         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
52424
52425 2004-01-14  Karl Berry  <karl@gnu.org>
52426
52427         * config/install-sh: update from automake.
52428
52429 2004-01-13  Karl Berry  <karl@gnu.org>
52430
52431         * config/install-sh: update from automake.
52432
52433 2004-01-09  Karl Berry  <karl@gnu.org>
52434
52435         * config/install-sh: update from automake.
52436
52437 2004-01-05  Karl Berry  <karl@gnu.org>
52438
52439         * config/config.{sub,guess}: update from config.
52440
52441 2003-12-31  Karl Berry  <karl@gnu.org>
52442
52443         * config/depcomp: update from automake.
52444
52445 2003-12-14  Karl Berry  <karl@gnu.org>
52446
52447         * lib/config.charset: update from gettext-runtime.
52448
52449 2003-12-03  Paul Eggert  <eggert@twinsun.com>
52450
52451         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
52452         Bug reported by Alfred M. Szmidt.
52453
52454 2003-12-03  Bruno Haible  <bruno@clisp.org>
52455
52456         * m4/gettext.m4: Upgrade from gettext-0.13.
52457         * m4/po.m4: Upgrade from gettext-0.13.
52458         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
52459         * m4/intmax.m4: New file, from gettext-0.13.
52460         * m4/printf-posix.m4: New file, from gettext-0.13.
52461
52462 2003-11-29  Karl Berry  <karl@gnu.org>
52463
52464         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
52465
52466 2003-11-25  Paul Eggert  <eggert@twinsun.com>
52467             Bruno Haible  <bruno@clisp.org>
52468
52469         * lib/printf-parse.h: Don't include sys/types.h.
52470         (ARG_NONE): New macro.
52471         (char_directive): Change type of *arg_index fields to size_t.
52472         * lib/printf-parse.c: Don't include sys/types.h.
52473         (SSIZE_MAX): Remove macro.
52474         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
52475         Remove unnecessary overflow check.
52476         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
52477         fields.
52478
52479 2003-11-25  Bruno Haible  <bruno@clisp.org>
52480
52481         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
52482
52483 2003-11-25  Bruno Haible  <bruno@clisp.org>
52484
52485         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
52486         gt_TYPE_SSIZE_T.
52487
52488 2003-11-24  Paul Eggert  <eggert@twinsun.com>
52489
52490         * modules/alloca: Remove dependency on xalloc.
52491
52492 2003-11-24  Paul Eggert  <eggert@twinsun.com>
52493
52494         * lib/alloca.c: Remove dependency on xalloc module.
52495         (xalloc_die): Remove.
52496         (memory_full) [!defined emacs]: New macro.
52497         [!defined emacs]: Don't include xalloc.h.
52498         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
52499         address arithmetic overflows.  Change datatypes a bit to avoid
52500         unnecessary casts.
52501
52502 2003-11-22  Jim Meyering  <jim@meyering.net>
52503
52504         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
52505         s/size/size_t/.
52506
52507 2003-11-21  Karl Berry  <karl@gnu.org>
52508
52509         * config/config.{sub,guess}: update from config.
52510
52511 2003-11-18  Karl Berry  <karl@gnu.org>
52512
52513         * config/config.{sub,guess}: update from config.
52514
52515         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
52516
52517 2003-11-17  Paul Eggert  <eggert@twinsun.com>
52518
52519         * README: Mention that S+T cannot overflow if S is the size of
52520         an existing object and T is sufficiently small.
52521
52522 2003-11-17  Jim Meyering  <jim@meyering.net>
52523
52524         On systems without utime and without a utimes function capable of
52525         dealing with a NULL struct utimbuf* argument, this utime replacement
52526         could -- in unusual circumstances -- leak a file descriptor.
52527         * lib/utime.c: Include <unistd.h> and <errno.h>.
52528         (utime_null): Be sure to close `fd' and to preserve errno.
52529         Reported by Geoff Collyer via Arnold Robbins.
52530
52531 2003-11-17  Bruno Haible  <bruno@clisp.org>
52532
52533         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
52534         (Depends-on): Add xsize.
52535
52536 2003-11-17  Bruno Haible  <bruno@clisp.org>
52537
52538         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
52539
52540 2003-11-17  Bruno Haible  <bruno@clisp.org>
52541
52542         * lib/vasnprintf.c (alloca): Remove fallback definition.
52543         (freea): Remove definition.
52544         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
52545         Reported by Paul Eggert.
52546
52547 2003-11-16  Paul Eggert  <eggert@twinsun.com>
52548             Bruno Haible  <bruno@clisp.org>
52549
52550         Protect against address arithmetic overflow.
52551         * lib/printf-args.h: Include stddef.h.
52552         (arguments): Change type of field 'count' to size_t.
52553         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
52554         'unsigned int' where appropriate.
52555         * lib/printf-parse.h: Include sys/types.h.
52556         (char_directive): Change type of *arg_index fields to ssize_t.
52557         (char_directives): Change type of fields 'count', max_*_length to
52558         size_t.
52559         * lib/printf-parse.c: Include sys/types.h and xsize.h.
52560         (SSIZE_MAX): Define fallback value.
52561         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
52562         instead of 'int' where appropriate. Check a_allocated, d_allocated
52563         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
52564         * lib/vasnprintf.c: Include xsize.h.
52565         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
52566         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
52567         overflow. Avoid wraparound when converting a width or precision from
52568         decimal to binary.
52569
52570 2003-11-16  Bruno Haible  <bruno@clisp.org>
52571
52572         Update from GNU gettext.
52573         * lib/printf-parse.c: Generalize to it can be compiled for wide
52574         strings.
52575         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
52576         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
52577         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
52578         SNPRINTF): New macros.
52579         Don't include <alloca.h> if the file is used inside libintl.
52580         (local_wcslen): New function, for Solaris 2.5.1.
52581         (VASNPRINTF): Use it instead of wcslen.
52582
52583 2003-11-16  Bruno Haible  <bruno@clisp.org>
52584
52585         * lib/xsize.h (xmax): New function.
52586         (xsum, xsum3, xsum4): Declare as "pure" functions.
52587
52588 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52589
52590         * modules/xalloc (Files): Undo latest change, since xalloc.h
52591         no longer needs SIZE_MAX or PTRDIFF_MAX.
52592
52593 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52594
52595         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
52596         gl_PTRDIFF_MAX.
52597
52598 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52599
52600         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
52601         "return", to pacify some unknown compiler.  Problem reported
52602         by Joerg Schilling.
52603
52604 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52605
52606         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
52607         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
52608         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
52609         heuristic is just as accurate as far as we know, and it removes a
52610         dependency on size_max.m4 and ptrdiff_max.m4.
52611
52612 2003-11-11  Bruno Haible  <bruno@clisp.org>
52613
52614         * modules/xsize (Files): Add m4/size_max.m4.
52615         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
52616
52617 2003-11-11  Bruno Haible  <bruno@clisp.org>
52618
52619         * m4/size_max.m4: New file.
52620         * m4/ptrdiff_max.m4: New file.
52621         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
52622         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
52623         (gl_XALLOC): Invoke it.
52624
52625 2003-11-11  Bruno Haible  <bruno@clisp.org>
52626
52627         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
52628         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
52629         defined.
52630
52631 2003-11-10  Paul Eggert  <eggert@twinsun.com>
52632
52633         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
52634         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
52635         rejected some allocations of exactly SIZE_MAX - 2 bytes.
52636         From Bruno Haible.
52637         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
52638         not (size_t) -1, since it's defined here.
52639
52640 2003-11-09  Karl Berry  <karl@gnu.org>
52641
52642         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
52643
52644 2003-11-06  Paul Eggert  <eggert@twinsun.com>
52645
52646         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
52647         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
52648         Reject sizes of exactly SIZE_MAX bytes.
52649         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
52650         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
52651
52652 2003-11-05  Bruno Haible  <bruno@clisp.org>
52653
52654         * lib/xsize.h: Include limits.h, to avoid a possible collision with
52655         SIZE_MAX defined in <limits.h> on Solaris.
52656
52657 2003-11-04  Jim Meyering  <jim@meyering.net>
52658
52659         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
52660         variable names, rather than @VAR@.
52661         * modules/poll: Likewise.
52662
52663 2003-11-04  Bruno Haible  <bruno@clisp.org>
52664
52665         * modules/xsize: New file.
52666         * modules/linebreak: Depend on xsize.
52667         * MODULES.html.sh (func_all_modules): Add xsize.
52668
52669 2003-11-04  Bruno Haible  <bruno@clisp.org>
52670
52671         * m4/xsize.m4: New file.
52672
52673 2003-11-04  Bruno Haible  <bruno@clisp.org>
52674
52675         * lib/xsize.h: New file.
52676         * lib/linebreak.c: Include xsize.h.
52677         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
52678         argument for overflow.
52679         Suggested by Paul Eggert.
52680
52681 2003-11-03  Karl Berry  <karl@gnu.org>
52682
52683         * config/config.{guess,sub}: update from config.
52684
52685 2003-11-03  Jim Meyering  <jim@meyering.net>
52686
52687         * modules/userspec (lib_SOURCES): Add userspec.h.
52688         (Include): Add "userspec.h".
52689         Improve description.
52690
52691 2003-11-03  Jim Meyering  <jim@meyering.net>
52692
52693         * lib/userspec.c: Include "userspec.h".
52694         * lib/userspec.h: New file.
52695
52696 2003-11-03  Bruno Haible  <bruno@clisp.org>
52697
52698         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
52699
52700 2003-11-03  Bruno Haible  <bruno@clisp.org>
52701
52702         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
52703         available, to avoid (extremely rare) race condition.
52704         Suggested by Paul Eggert.
52705
52706 2003-11-02  Karl Berry  <karl@gnu.org>
52707
52708         * config/srclist.txt (vasprintf.c): sync broken, sigh.
52709
52710 2003-10-31  Paul Eggert  <eggert@twinsun.com>
52711
52712         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
52713         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
52714         (read_filesystem_list): Set and use me_type_malloced.
52715         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
52716         whatever the type happens to be), for brevity and consistency.
52717         Check for size calculation overflow on Alphas running OSF/1.
52718
52719 2003-10-31  Jim Meyering  <jim@meyering.net>
52720
52721         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
52722
52723         * lib/linebuffer.c: Include <string.h> for declaration of memset.
52724
52725 2003-10-30  Paul Eggert  <eggert@twinsun.com>
52726             Bruno Haible  <bruno@clisp.org>
52727
52728         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
52729         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
52730
52731 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52732
52733         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
52734         netbsd*-gnu*.  Suggested by Robert Millan.
52735
52736 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52737
52738         * modules/group-member: Depend on stdbool.
52739
52740 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52741
52742         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
52743
52744 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52745
52746         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
52747         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
52748         after the 'gnu' in these cases.  This fixes some bugs in the
52749         previous change, and is based on suggestions by Robert Millan.
52750
52751 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52752
52753         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
52754         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
52755         no longer needed.
52756         * lib/quotearg.c (quotearg_n_options): Use it.
52757         * lib/group-member.c: Include <stdbool.h>.
52758         (free_group_info): Arg is now const *; don't free arg.
52759         (get_group_info): Now returns bool and accepts struct group_info *,
52760         rather than returning a malloc'ed struct group_info *.
52761         All uses changed.  Check for overflow in internal size calculation.
52762
52763         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
52764         rather than xmalloc/xrealloc.
52765         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
52766         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
52767         conformance bug: the old code used a pointer after freeing the
52768         storage that it addressed.
52769         * lib/hash.c (hash_initialize): Simplify the code by using
52770         xalloc_oversized rather than doing it by hand.
52771         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
52772         the buffer preserved.  Use free and xmalloc instead.
52773         * lib/quotearg.c (quotearg_n_options): Likewise.
52774         Use a simpler test for size overflow.  Don't use xalloc_oversized
52775         because unsigned int might be wider than size_t (!); this suggests
52776         that we should switch from unsigned int to size_t for slot numbers.
52777
52778 2003-10-28  Paul Eggert  <eggert@twinsun.com>
52779
52780         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
52781         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
52782         NetBSD kernels.  Requested by Richard Stallman.
52783
52784 2003-10-27  Paul Eggert  <eggert@twinsun.com>
52785
52786         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
52787         to allocate the returned structure.  Do not allocate a subarray,
52788         as x2nrealloc will do that.
52789         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
52790         instead of xnrealloc.
52791         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
52792
52793 2003-10-27  Bruno Haible  <bruno@clisp.org>
52794
52795         * lib/stdbool_.h: Better support for BeOS.
52796
52797 2003-10-26  Paul Eggert  <eggert@twinsun.com>
52798
52799         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
52800         now uses inline.
52801
52802 2003-10-26  Paul Eggert  <eggert@twinsun.com>
52803
52804         * lib/xalloc.h (xalloc_oversized): New static inline function, for
52805         callers that want to do their own size-overflow checking.  Include
52806         <stdbool.h>, since xalloc_oversized returns bool.
52807         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
52808         to use xalloc_oversized.
52809
52810         Add two functions x2realloc, x2nrealloc, for programs that grow
52811         arrays dynamically by doubling their sizes.
52812         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
52813         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
52814         New functions.
52815
52816         Port to C99 semantics for 'inline' of external functions.
52817         Bug reported by Bruno Haible.
52818         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
52819         with the old contents of xnmalloc.
52820         (xnmalloc, xmalloc): Use it.
52821         (xnrealloc_inline): New static inline function,
52822         with the old contents of xnrealloc.
52823         (xnrealloc, xrealloc): Use it.
52824
52825         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
52826         that.
52827
52828 2003-10-26  Karl Berry  <karl@gnu.org>
52829
52830         * config/srclist.txt (COPYING.DOC): no longer available from
52831         /gd/gnuorg; don't know where the ultimate source is.
52832
52833 2003-10-25  Paul Eggert  <eggert@twinsun.com>
52834
52835         Fix several address-calculation bugs in the hash modules,
52836         plus some minor code cleanup.
52837
52838         * lib/hash.h: Include <stdbool.h>, for bool.
52839         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
52840         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
52841         hash_get_n_entries, hash_get_max_bucket_length,
52842         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
52843         hash_rehash): Use size_t rather than unsigned.
52844         * lib/hash.c (struct hash_table, hash_get_n_buckets,
52845         hash_get_n_buckets_used, hash_get_n_entries,
52846         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
52847         hash_get_entries, hash_do_for_each, hash_string, is_prime,
52848         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
52849         Likewise.
52850         (SIZE_MAX): Define if not defined.
52851         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
52852         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
52853         hash_print):
52854         Use const * when possible.
52855         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
52856         (check_tuning): Fix bug: if tuning parameters were very close to
52857         0 or 1, rounding errors could have caused subscript violations.
52858         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
52859         (hash_initialize): Add 'fail:' label
52860         to free table and return NULL, and use it to simplify code.
52861         Use calloc rather than clearing the storage ourself.
52862         (hash_initialize, hash_rehash): Check for arithmetic overflow in
52863         buffer size calculations.
52864         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
52865         Include <stddef.h>, for size_t.
52866         * lib/hash-pjw.c (hash_pjw): Likewise.
52867         Switch to method described by Bruno Haible.
52868         Include <limits.h>, for CHAR_BIT.
52869         (SIZE_BITS): New macro.
52870
52871 2003-10-23  Paul Eggert  <eggert@twinsun.com>
52872
52873         * m4/getline.m4 (AM_FUNC_GETLINE):
52874         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
52875         hosts.  Problem reported by Derek Robert Price in
52876         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
52877         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
52878         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
52879
52880 2003-10-21  Paul Eggert  <eggert@twinsun.com>
52881
52882         * lib/getndelim2.c (getndelim2): When size calculation overflows,
52883         ceiling the allocation at NMAX bytes rather than silently
52884         discarding input bytes before NMAX is reached.  This makes
52885         a difference only if NMAX exceeds SIZE_MAX / 2.
52886
52887         * lib/obstack.c: Merge from glibc.
52888         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
52889         Add libc_hidden_def (_obstack_newchunk).
52890         (_obstack_free) [! defined _LIBC]: Remove.
52891         [defined _LIBC]: Make a strong alias from obstack_free, rather than
52892         a clone of the function body.
52893         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
52894         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
52895
52896         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
52897         glibc.
52898         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
52899         arg to memcpy.
52900
52901         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
52902         (obstack_ptr_grow_fast, obstack_int_grow_fast):
52903         Don't use lvalue casts, as GCC plans to remove support for them
52904         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
52905         was also present in the non-GCC version, indicating that this
52906         code had always been buggy and had never been widely used.
52907         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
52908         Use the fast variant of each macro, rather than copying the
52909         definiens of the fast variant; that way, we'll be more likely to
52910         catch future bugs in the fast variants.
52911
52912 2003-10-20  Bruno Haible  <bruno@clisp.org>
52913
52914         * modules/wait-process: New file.
52915         * MODULES.html.sh (func_all_modules): Add wait-process.
52916
52917 2003-10-20  Bruno Haible  <bruno@clisp.org>
52918
52919         * m4/wait-process.m4: New file.
52920
52921 2003-10-20  Bruno Haible  <bruno@clisp.org>
52922
52923         * lib/wait-process.h: New file, from GNU gettext.
52924         * lib/wait-process.c: New file, from GNU gettext.
52925
52926 2003-10-19  Jim Meyering  <jim@meyering.net>
52927
52928         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
52929         HPUX 10.20.
52930
52931 2003-10-18  Karl Berry  <karl@gnu.org>
52932
52933         * config/config.guess: update from config.
52934
52935 2003-10-16  Paul Eggert  <eggert@twinsun.com>
52936
52937         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
52938         (getgroups): First arg is int, not size_t.
52939         Don't let 'free' mangle errno.
52940
52941 2003-10-16  Paul Eggert  <eggert@twinsun.com>
52942
52943         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
52944
52945 2003-10-16  Karl Berry  <karl@gnu.org>
52946
52947         * config/config.{guess,sub}: update from config.
52948
52949 2003-10-16  Jim Meyering  <jim@meyering.net>
52950
52951         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
52952         memcpy.
52953
52954 2003-10-15  Paul Eggert  <eggert@twinsun.com>
52955
52956         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
52957         (SIZE_MAX): Remove.
52958         (new_exclude, add_exclude_file): Initial size no longer needs to
52959         be a power of 2.
52960         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
52961         our own address arithmetic overflow checking.
52962
52963         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
52964         (fnmatch): Do not alloca more than 2000 wide characters;
52965         instead, use malloc for large buffers.
52966         Check for address arithmetic overflow, and return -1
52967         with errno set to ENOMEM in that case.
52968         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
52969         (NEW_PATTERN): Do not alloca more than 8000 bytes;
52970         instead, return -1.  Check for address arithmetic overflow.
52971
52972 2003-10-14  Paul Eggert  <eggert@twinsun.com>
52973
52974         Handle invalid suffixes and overflow independently, so that
52975         callers can treat them independently as needed.  Fix some bugs in
52976         suffix handling, e.g., "100k@" was not diagnosed as an invalid
52977         suffix for a human-readable blocksize.  The major caller-visible
52978         change is the addition of a new
52979         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
52980         that both overflow and suffix chars were found.
52981
52982         * lib/human.c (humblock): Don't check separately for invalid suffix
52983         char; that is xstrtoumax's job (now that its bug is fixed).
52984         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
52985         INTMAX_MAX]: New macros.
52986         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
52987         TYPE_MAXIMUM): New macros.
52988         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
52989         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
52990         if overflow occurs, as it's what __strtol does and it's more useful
52991         in practice.
52992         (__xstrtol): If __strtol reports some error other than ERANGE,
52993         reflect it to the caller as LONGINT_INVALID.  If it reports
52994         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
52995         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
52996         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
52997         value.
52998         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
52999         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
53000         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
53001         [defined UINTMAX_MAX]: New macros.
53002
53003 2003-10-14  Bruno Haible  <bruno@clisp.org>
53004
53005         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
53006
53007 2003-10-14  Bruno Haible  <bruno@clisp.org>
53008
53009         * m4/sig_atomic_t: New file, from GNU gettext.
53010         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
53011
53012 2003-10-14  Bruno Haible  <bruno@clisp.org>
53013
53014         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
53015         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
53016         Also use volatile where needed.
53017
53018 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53019
53020         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
53021         Change maintainer from Bruno Haible to 'all'.
53022
53023 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53024
53025         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
53026
53027 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53028
53029         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
53030         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
53031         and define in terms of the other primitives.
53032         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
53033         (SIZE_MAX): Define if not already defined.
53034         (array_size_overflow): New function.
53035         (xalloc_die): Abort instead of exiting if 'error' returns.
53036         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
53037         (xmalloc, xrealloc): Use them.
53038         (xcalloc): Check for address arithmetic overflow.
53039         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
53040         a bit faster than strcpy.
53041
53042 2003-10-10  Simon Josefsson  <jas@extundo.com>
53043
53044         * modules/argp (Depends-on): Add restrict and strcase.
53045
53046 2003-10-10  Simon Josefsson  <jas@extundo.com>
53047
53048         * m4/argp.m4: Add AC_C_INLINE.
53049
53050 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53051
53052         Merge getpass from libc, plus a few fixes.
53053
53054         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
53055         Include <stdbool.h>.
53056         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
53057         __fsetlocking to empty.
53058         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
53059         do include <bits/libc-lock.h>.
53060         Do not include <fcntl.h>; not needed.
53061         [_LIBC]: Include <wchar.h>.
53062         (NOTCANCEL_MODE): New macro.
53063         (flockfile, funlockfile) [_LIBC]: New macros.
53064         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
53065         [!_LIBC]: New macros.
53066         (call_fclose): New function.
53067         (getpass): Use it.  Save tty stream separately; this simplifies the
53068         code and makes it more reliable if stdin happens to equal stdout.
53069         Invoke __fsetlocking on tty.
53070         Handle thread cancellation if needed.
53071         Namespace cleanup (use __tcgetattr, __getline).
53072         Use bool for Booleans.
53073         [USE_IN_LIBIO]: Handle wide streams.
53074         [!_LIBC]: Unconditionally do the fseek, since we don't know what
53075         stream might go where.
53076
53077         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
53078         doesn't have to include <stdio.h> before us.
53079         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
53080         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
53081         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
53082         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
53083         if not declared, so that we can use getpass.c code from libc without
53084         rewriting it.
53085         (flockfile, ftrylockfile, funlockfile): New macros.
53086
53087 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53088
53089         * modules/getpass: Depend on stdbool.
53090
53091 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53092
53093         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
53094
53095 2003-10-07  Karl Berry  <karl@gnu.org>
53096
53097         * config/config.{guess,sub}: update from config.
53098
53099 2003-10-06  Jim Meyering  <jim@meyering.net>
53100             Bruno Haible  <bruno@clisp.org>
53101
53102         This lets translators provide better translations for the
53103         "Written by ..." part of --version output.
53104         * lib/version-etc.h: Include stdarg.h.
53105         (version_etc_copyright): Declare as readonly.
53106         (version_etc): Make this function variadic with a NULL-terminated list
53107         of author name strings.
53108         (version_etc_va): New declaration.
53109         * lib/version-etc.c: Include stdarg.h, stdlib.h.
53110         (version_etc_copyright): Declare as readonly.
53111         (version_etc_va): New function. Provide a different translatable string
53112         for each possible number of authors < 10. Abbreviate when there are 10
53113         authors or more.
53114         (version_etc): Make this function variadic. Call version_etc_va.
53115         Suggestion from Gary V. Vaughan.
53116
53117         * lib/long-options.h (parse_long_options): Change prototype: the
53118         authors string is moved to the end and becomes variadic.
53119         * lib/long-options.c: Include stdarg.h.
53120         (parse_long_options): Make this function variadic, too.
53121         Call version_etc_va, not version_etc.
53122
53123 2003-10-06  Bruno Haible  <bruno@clisp.org>
53124
53125         * modules/version-etc-2: Remove file.
53126         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
53127
53128 2003-10-06  Bruno Haible  <bruno@clisp.org>
53129
53130         * modules/fatal-signal: New file.
53131         * MODULES.html.sh (func_all_modules): Add fatal-signal.
53132
53133 2003-10-06  Bruno Haible  <bruno@clisp.org>
53134
53135         * m4/fatal-signal.m4: New file.
53136         * m4/signalblocking.m4: New file, from GNU gettext.
53137
53138 2003-10-06  Bruno Haible  <bruno@clisp.org>
53139
53140         * lib/version-etc-2.h: Remove file.
53141         * lib/version-etc-2.c: Remove file.
53142
53143 2003-10-06  Bruno Haible  <bruno@clisp.org>
53144
53145         * lib/fatal-signal.h: New file, from GNU gettext.
53146         * lib/fatal-signal.c: New file, from GNU gettext.
53147
53148 2003-10-05  Paul Eggert  <eggert@twinsun.com>
53149
53150         * README: Rework advice for preventing empty .o files.
53151         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
53152         not <sys/types.h>.
53153
53154 2003-10-04  Karl Berry  <karl@gnu.org>
53155
53156         * lib/argp*: update from libc.
53157
53158 2003-10-04  Karl Berry  <karl@gnu.org>
53159
53160         * config/config.{guess,sub}: update from config.
53161
53162 2003-10-02  Bruno Haible  <bruno@clisp.org>
53163
53164         * modules/lchown (Include): Add lchown.h.
53165         * modules/time_r (Include): Use "..." syntax.
53166         * modules/xgetdomainname (Include): Add xgetdomainname.h.
53167
53168 2003-10-01  Simon Josefsson  <jas@extundo.com>
53169
53170         * MODULES.html.sh (func_all_modules): Move gethostname from section
53171         'based on' to section 'lacking' POSIX:2001.
53172
53173 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
53174
53175         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
53176         to output mode on the same stream.
53177
53178 2003-09-29  Paul Eggert  <eggert@twinsun.com>
53179
53180         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
53181         Fix arg typo in previous patch.
53182
53183 2003-09-28  Jim Meyering  <jim@meyering.net>
53184
53185         * lib/error.c: Correct cpp indentation.
53186
53187 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53188
53189         * modules/free: New file.
53190
53191 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53192
53193         * m4/free.m4: New file.
53194
53195 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53196
53197         * lib/minmax.h (MIN, MAX)
53198         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
53199         Omit the special code that used __typeof__, since we worry that
53200         it could be more trouble than it's worth.  See:
53201         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
53202         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
53203
53204         * lib/free.c: New file.
53205
53206 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
53207
53208         Trivial fixes to Makefile.am parts of module listings.
53209         * modules/strstr: Append strstr.h to lib_SOURCES.
53210         * modules/strcase: Likewise, for strcase.h.
53211
53212 2003-09-27  Karl Berry  <karl@gnu.org>
53213
53214         * config/mkinstalldirs: update from automake.
53215
53216 2003-09-26  Paul Eggert  <eggert@twinsun.com>
53217
53218         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
53219         (error_tail): Do not loop, reallocating temporary buffer, since
53220         the output cannot contain more wide characters than the input
53221         contains bytes, the size must be big enough already.  This avoids
53222         one potential size overflow calculation.  Check for size overflow
53223         when calculating temporary buffer size.  Free temporary buffer
53224         when done, if it was allocated with malloc; this plugs a memory
53225         leak.  Remove casts from void * to pointers, that are no longer
53226         needed now that we're assuming C89 or better.
53227
53228         Merge error changes from glibc.
53229
53230         * lib/error.c, error.h: Update copyright notice header to match glibc.
53231         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
53232         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
53233         Disable cancellation while printing error.
53234         * lib/error.h: Prepend __ to parameter names.
53235
53236 2003-09-26  Jim Meyering  <jim@meyering.net>
53237
53238         * lib/error.c (error_tail): Move some declarations
53239         into inner scope where the local variables are used.
53240
53241 2003-09-26  Bruno Haible  <bruno@clisp.org>
53242
53243         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
53244         stpncpy().
53245         Don't define stpncpy through config.h; it's now done through stpncpy.h.
53246
53247 2003-09-26  Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/stpncpy.h (gnu_stpncpy): New declaration.
53250         (stpncpy): Define as alias for gnu_stpncpy.
53251         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
53252
53253 2003-09-25  Simon Josefsson  <jas@extundo.com>
53254
53255         * lib/xgetdomainname.h: New file.
53256         * lib/xgetdomainname.c: New file.
53257
53258 2003-09-25  Simon Josefsson  <jas@extundo.com>
53259             Bruno Haible  <bruno@clisp.org>
53260
53261         * modules/getdomainname: New file.
53262         * modules/xgetdomainname: New file.
53263         * MODULES.html.sh (func_all_modules): Add getdomainname,
53264         xgetdomainname.
53265
53266 2003-09-25  Simon Josefsson  <jas@extundo.com>
53267             Bruno Haible  <bruno@clisp.org>
53268
53269         * m4/getdomainname.m4: New file.
53270
53271 2003-09-25  Simon Josefsson  <jas@extundo.com>
53272             Bruno Haible  <bruno@clisp.org>
53273
53274         * lib/getdomainname.h: New file.
53275         * lib/getdomainname.c: New file.
53276
53277 2003-09-25  Karl Berry  <karl@gnu.org>
53278
53279         * lib/argp-fmtstream.c, argp-help.c: update from libc.
53280
53281 2003-09-25  Karl Berry  <karl@gnu.org>
53282
53283         * config/install-sh: update from automake.
53284
53285 2003-09-25  Bruno Haible  <bruno@clisp.org>
53286
53287         * modules/version-etc-2: New file, from modules/version-etc with
53288         modifications.
53289         * MODULES.html.sh (func_all_modules): Add version-etc-2.
53290
53291 2003-09-25  Bruno Haible  <bruno@clisp.org>
53292
53293         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
53294         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
53295
53296 2003-09-24  Simon Josefsson  <jas@extundo.com>
53297
53298         * modules/xgethostname: Add xgethostname.h.
53299
53300 2003-09-24  Paul Eggert  <eggert@twinsun.com>
53301
53302         * lib/linebuffer.c (freebuffer): Don't free the argument, just
53303         the buffer associated with the argument.  Bug reported by
53304         Simon Josefsson.
53305
53306 2003-09-24  Paul Eggert  <eggert@twinsun.com>
53307
53308         * README: Document assumptions that 'int' is at least 32 bits
53309         wide, that integer arithmetic is 2's complement without overflow,
53310         that there are no holes in integer values, that adding sizes of
53311         two nonoverlapping objects can't overflow, and that all-bits-zero
53312         yields scalar zero.  Fix spelling and capitalization typos.
53313
53314 2003-09-19  Karl Berry  <karl@gnu.org>
53315
53316         * lib/argp.h: update from libc.
53317
53318 2003-09-17  Paul Eggert  <eggert@twinsun.com>
53319
53320         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
53321         to avoid spurious warnings like "AC_RUN_IFELSE was called before
53322         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
53323
53324 2003-09-17  Paul Eggert  <eggert@twinsun.com>
53325
53326         * gnulib-tool: Use "test -h", not "test -L", for portability
53327         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
53328         (tags_regexp): Remove, since \| doesn't conform to POSIX.
53329         (sed_extract_prog): Issue s commands one-by-one, rather than
53330         using \| in one s command.
53331
53332 2003-09-16  Paul Eggert  <eggert@twinsun.com>
53333
53334         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
53335         input error, instead of returning NULL the next time we are called
53336         (and therefore losing track of errno).
53337
53338 2003-09-16  Bruno Haible  <bruno@clisp.org>
53339
53340         * gnulib-tool (func_create_testdir): Warn about duplicated
53341         dependencies.
53342
53343 2003-09-15  Paul Eggert  <eggert@twinsun.com>
53344
53345         * modules/argmatch, modules/fatal, modules/obstack,
53346         modules/xalloc, modules/xgethostname: Sort dependencies by
53347         importance, not alphabetically.
53348
53349 2003-09-15  Paul Eggert  <eggert@twinsun.com>
53350
53351         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
53352         fails, so that the caller gets the proper errno.
53353
53354         * lib/readutmp.c (read_utmp): Likewise.
53355         Check for fstat error.  Close stream and free storage
53356         when failing.
53357
53358 2003-09-14  Karl Berry  <karl@gnu.org>
53359
53360         * config/srclist.txt (strdup.c): disable for c89 changes.
53361
53362 2003-09-14  Jim Meyering  <jim@meyering.net>
53363
53364         * lib/getloadavg.c: Correct cpp indentation.
53365         * lib/strdup.c: Likewise.
53366         * lib/vasnprintf.c: Likewise.
53367
53368 2003-09-14  Bruno Haible  <bruno@clisp.org>
53369
53370         * modules/fwriteerror: New file.
53371         * MODULES.html.sh (func_all_modules): Add fwriteerror.
53372
53373 2003-09-14  Bruno Haible  <bruno@clisp.org>
53374
53375         * lib/fwriteerror.h: New file.
53376         * lib/fwriteerror.c: New file.
53377
53378 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53379
53380         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
53381         modules/xgethostname, modules/xalloc: Depend on exit.
53382
53383 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53384
53385         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
53386
53387         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
53388         and AC_MINIX, too, so that their extensions are available.
53389
53390         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
53391         This macro has been superseded by gl_BACKUPFILE.
53392
53393         More patches to assume C89 or better.
53394
53395         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
53396
53397         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
53398         unconditionally.
53399         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
53400         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
53401         Include <string.h>, <stdlib.h> unconditionally.
53402         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
53403         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
53404         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
53405         headers or for string.h.
53406         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
53407         or strtoul.
53408
53409         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
53410         headers.
53411         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
53412         * m4/userspec.m4 (gl_USERSPEC): Likewise.
53413         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
53414         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
53415         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53416         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
53417         memcpy, memset.
53418         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
53419         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
53420         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
53421         strtol.
53422         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
53423         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
53424         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
53425         strtoul.
53426
53427 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53428
53429         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
53430         * lib/obstack.c [!defined _LIBC]: Likewise.
53431         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
53432         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
53433         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
53434
53435         More changes to assume C89 or better.
53436
53437         * lib/error.c (error_tail): Assume vprintf.
53438
53439         * lib/argmatch.c (getenv): Remove decl.
53440         * lib/progreloc.c (get_full_program_name): Define via prototype.
53441         * lib/setenv.c (clearenv): Likewise.
53442         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
53443         needed.
53444         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
53445         (malloc, memcpy): Remove decls.
53446         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
53447         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
53448         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53449         (memcpy): Remove macro.
53450         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
53451         (__P): Remove.  All uses removed.
53452         (PTR): Remove.  All uses changed to void *.
53453         (CHAR_BIT, NULL): Remove.
53454         (spaces, zeros, memset_space, memset_zero)
53455         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
53456         Remove.
53457         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
53458         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
53459         Define with prototype.
53460         Remove now-unnecessary prototype decl.
53461         (extra_args_spec): Assume ANSI C.  All uses changed.
53462         (extra_args_spec_iso): Remove.
53463         (my_strftime, emacs_strftimeu): Define via prototype.
53464         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
53465         unconditionally.
53466         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
53467         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
53468         (strtoul, strtol): Remove decls.
53469         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
53470         LONG_MAX): Remove.
53471         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53472         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
53473         (LOCALE_PARAM_PROTO): New macro.
53474         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
53475         (INTERNAL (strtol), strtol): Define with a prototype.
53476         (PARAMS): Remove.  All uses removed.
53477         * lib/tempname.c: Include <string.h> unconditionally.
53478         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
53479         * lib/xgethostname.c (main): Define with a prototype.
53480         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
53481         Include <stdlib.h> unconditionally.
53482         (calloc, malloc, realloc, free): Remove decls.
53483         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
53484         Include <stdlib.h> unconditionally.  Sort include file names.
53485         (strtod): Remove.
53486         (xstrtod): Define with a prototype.
53487         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
53488         (strtol, strtoul): Remove decls.
53489
53490 2003-09-11  Paul Eggert  <eggert@twinsun.com>
53491
53492         More patches to assume C89 or better.
53493         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
53494         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
53495         string.h, memchr, STDC_HEADERS.
53496
53497 2003-09-11  Paul Eggert  <eggert@twinsun.com>
53498
53499         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
53500         Include <stdlib.h>, <string.h> unconditionally.
53501         Remove now-unnecessary cast to char *.
53502         * lib/strnlen.c: Include <string.h> unconditionally.
53503         * lib/yesno.c (yesno): Define with a prototype.
53504
53505 2003-09-11  Bruno Haible  <bruno@clisp.org>
53506
53507         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
53508
53509 2003-09-10  Jim Meyering  <jim@meyering.net>
53510
53511         * lib/error.c: Correct indentation of cpp directives.
53512
53513 2003-09-10  Bruno Haible  <bruno@clisp.org>
53514
53515         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
53516         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
53517         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
53518         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
53519         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
53520         <stdlib.h> and <string.h> checks.
53521         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
53522         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
53523
53524 2003-09-10  Bruno Haible  <bruno@clisp.org>
53525
53526         * lib/strcspn.c: Include <string.h> unconditionally.
53527         * lib/strpbrk.c: Include <string.h> unconditionally.
53528         * lib/strstr.c: Include <string.h> unconditionally.
53529         * lib/unicodeio.c: Include <string.h> unconditionally.
53530         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
53531         * lib/unsetenv.c: Likewise.
53532         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
53533         * lib/yesno.c: Include <stdlib.h> unconditionally.
53534         (rpmatch): Add prototype.
53535
53536 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53537
53538         More patches to assume C89 or better.
53539         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
53540         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
53541         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
53542         or for string.h.
53543         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
53544         stdlib.h.
53545         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
53546         C headers.
53547         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
53548         string.h.
53549         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
53550         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
53551         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
53552         or for string.h.
53553         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
53554         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
53555         C headers.
53556         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
53557         memcpy.
53558         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
53559         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
53560         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
53561         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
53562         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
53563         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
53564         string.h, free.
53565         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
53566         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
53567         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
53568         C headers, or for string.h.
53569         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
53570         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
53571         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
53572         headers, memory.h, stdlib.h, string.h, strings.h.
53573         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
53574         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
53575         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
53576         strchr.
53577         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
53578         headers, memory.h, string.h.
53579         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
53580         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
53581         free.
53582         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
53583         headers.
53584         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
53585         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
53586         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
53587         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
53588         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
53589
53590 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53591
53592         More K&R removal.
53593
53594         * lib/acosl.c (main): Use a prototype.
53595         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
53596         tanl.c: Likewise.
53597
53598         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
53599
53600         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
53601         (getopt, etopt_long, getopt_long_only, _getopt_internal)
53602         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
53603         with a prototype.
53604         * lib/getopt.c (const): Remove macro.
53605         Include <string.h> unconditionally.
53606         (my_index): Remove; all uses changed to strchr.
53607         (strlen): Remove decl.
53608         (exchange): Remove forward decl; no longer needed.
53609         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
53610         Define with prototype.
53611         * lib/getopt1.c (const): Remove macro.
53612         (getopt_long, getopt_long_only, main): Define with prototype.
53613
53614         * lib/getugroups.c: Include <string.h> unconditionally.
53615
53616         * lib/getusershell.c: Include <stdlib.h> unconditionally.
53617         (getusershell, setusershell, endusershell, readname, main):
53618         Define with prototypes.
53619
53620         * lib/group-member.c: Include group-member.h first.
53621         Include <stdlib.h> unconditionally.
53622
53623         * lib/hard-locale.c: Include hard-locale.h first.
53624         Include <stdlib.h>, <string.h> unconditionally.
53625
53626         * lib/hash.c (free, malloc): Remove decls.
53627         Include <stdlib.h> unconditionally.
53628
53629         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
53630         (getenv): Do not declare.
53631
53632         * lib/idcache.c: Include <string.h> unconditionally.
53633
53634         * lib/long-options.c: Include long-options.h first, to test interface.
53635         Include <stdlib.h> unconditionally.
53636
53637         * lib/makepath.c: Include makepath.h first, to test interface.
53638         Include <stdlib.h> and <string.h> unconditionally.
53639
53640         * lib/linebuffer.c: Include <stdlib.h>.
53641         (free): Remove decl.
53642
53643         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
53644         stddef.h. rpl_malloc returns void *, not char *.
53645         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
53646         prototype.
53647
53648         * lib/md5.h: Include <limits.h> unconditionally.
53649         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
53650         (__P): Remove; all uses removed.
53651         * lib/md5.c: Include "md5.h" first.
53652         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
53653         md5_buffer, md5_process_bytes, md5_process_block):
53654         Define with prototypes.
53655         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
53656         * lib/sha.c: Include "sha.h" first.
53657         Include <stdlib.h>, <string.h> unconditionally.
53658
53659         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
53660         * lib/memcmp.c (__ptr_t): Likewise.
53661         * lib/memrchr.c (__ptr_t): Likewise.
53662         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
53663         Include <string.h> unconditionally.
53664         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
53665         * lib/memchr.c: Include <stdlib.h> unconditionally.
53666         * lib/memchr.c (LONG_MAX): Remove.
53667         * lib/memrchr.c (LONG_MAX): Likewise.
53668         * lib/memchr.c (__memchr): Define via a prototype.
53669         * lib/memrchr.c (__memrchr): Likewise.
53670         * lib/memcmp.c (__P): Remove, and remove all uses.
53671         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
53672         Remove forward decls; no longer needed.
53673         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
53674         Use types required by C89 in prototype.
53675
53676         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
53677         * lib/savedir.c: Likewise.
53678         * lib/mkdir.c (free): Remove decl.
53679         * lib/rmdir.c (rmdir): Define with a prototype.
53680         * lib/savedir.c: Include savedir.h first, to test interface.
53681
53682         * lib/mktime.c (STDC_HEADERS): Remove.
53683         Include <stdlib.h>, <string.h> unconditionally.
53684
53685         * lib/modechange.c: Include <stdlib.h> unconditionally.
53686         (malloc): Remove decl.
53687
53688         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
53689         (free): Remove decl.
53690
53691         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
53692         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
53693         (This type really should be intptr_t, but that's a C99ism.)
53694         (_obstack_memcpy): Remove: all uses changed to memcpy.
53695         Include <string.h> unconditionally.
53696         (struct obstack): Assume __STDC__ for types of members
53697         chunkfun, freefun, extra_arg.
53698         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
53699         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
53700         obstack_begin, obstack_specify_allocation,
53701         obstack_specify_allocation_with_arg, obstack_chunkfun,
53702         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
53703         Remove unprototyped decls and the macros that use them.
53704         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
53705         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
53706         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
53707         (defined __STDC__ && __STDC__)]:
53708         Remove nonprototyped code.
53709         Include <stdlib.h> unconditionally.
53710         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
53711         _obstack_allocated_p, _obstack_free, obstack_free,
53712         _obstack_memory_used, print_and_abort):
53713         Define using prototypes.
53714         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
53715         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
53716         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
53717         obstack_next_free, obstack_object_size, obstack_room) [0]:
53718         Remove unused, unprototyped code.
53719
53720         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
53721
53722         * lib/physmem.c (physmem_total, physmem_available, main): Define
53723         with prototypes.
53724
53725         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
53726         (main): Define with a prototype.
53727
53728         * lib/posixver.c (getenv): Remove decl.
53729
53730         * lib/putenv.c (malloc): Returns void *, not char *.
53731         Include <string.h> unconditionally.
53732         (strchr, memcpy, NULL): Do not define.
53733
53734         * lib/readtokens.c: Include readtokens.h first, to test interface.
53735         Include <stdlib.h>, <string.h> unconditionally.
53736         (init_tokenbuffer): Define with a prototype.
53737
53738         * lib/regex.c (PARAMS): Remove.  All uses removed.
53739         All uses of _RE_ARGS removed, too.
53740         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53741         unconditionally.
53742         (bzero): Assume memset exists.
53743         (memcmp, memcpy, NULL): Remove.
53744         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
53745         char, or assignments to local vars of type signed char.
53746         (init_syntax_once, PREFIX(extract_number_and_incr),
53747         PREFIX(print_partial_compiled_pattern),
53748         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
53749         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
53750         PREFIX(regex_grow_registers), PREFIX(regex_compile),
53751         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
53752         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
53753         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
53754         wcs_compile_range, byte_compile_range, truncate_wchar,
53755         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
53756         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
53757         count_mbs_length, wcs_re_match_2_internal,
53758         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
53759         PREFIX(alt_match_null_string_p),
53760         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
53761         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
53762         regfree, PREFIX(extract_number)): Define with prototype.  Remove
53763         now-unnecessary declaration, if any.
53764         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
53765         regcomp, regexec):
53766         Remove now-unnecessary casts among pointer types.
53767         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
53768
53769         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
53770         (free): Remove decl.
53771
53772         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
53773
53774         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
53775         (free): Remove decl.
53776
53777         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
53778         * lib/xgetcwd.c: Likewise.
53779
53780         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
53781         (free): Remove decl.
53782
53783         * lib/strchrnul.c (strchrnul): Define with a prototype.
53784         Fix bug: c_in was not converted to char before searching.
53785
53786         The following changes are not K&R related:
53787
53788         * lib/group-member.h: Include <sys/types.h>, so that this file is
53789         self-contained.
53790         * lib/makepath.h: Likewise.
53791
53792         * lib/getusershell.c (readname, default_index, line_size, readname):
53793         Use size_t, not int, for sizes.
53794         (readname): If the size overflows, report an error instead of
53795         looping forever.
53796
53797 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53798
53799         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
53800         libc.
53801
53802 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53803
53804         * README: New section: portability guidelines.
53805
53806 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
53807
53808         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
53809         C89 spec.
53810
53811 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
53812
53813         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
53814
53815 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53816
53817         Assume C89 or better; remove K&R cruft.
53818         A few of these changes were first proposed by Derek Robert Price
53819         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
53820
53821         * lib/addext.c: Include <string.h> unconditionally.
53822         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
53823         Don't declare getenv or malloc.
53824
53825         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
53826         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
53827         (NULL): Remove.
53828         (find_stack_direction, alloca): Use prototypes.
53829
53830         * lib/atexit.c (atexit): Define using a prototype.
53831
53832         * lib/basename.c, dirname.c, stripslash.c:
53833         Include <string.h> unconditionally.
53834
53835         * lib/bcopy.c: Include <stddef.h>.
53836         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
53837
53838         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
53839
53840         * lib/error.h (error, error_at_line, error_print_progname)
53841         [! (defined (__STDC__) && __STDC__)]: Remove decls.
53842         * lib/error.c: Include error.h first, to check interface.
53843         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53844         (VA_START): Remove; all uses changeed to va_start.
53845         (exit, strerror): Remove decls.
53846         (error_print_progname): Prototype uncondionally.
53847         Don't include <errno.h>; no longer needed.
53848         (private_strerror): Remove.
53849         (error_tail): Always define.
53850         (error, error_at_line): Assume C89 or better; always use prototypes.
53851         * lib/fatal.c: Include "fatal.h" first, to test interface.
53852         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53853         (VA_START): Remove; all uses changed to va_start.
53854         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
53855         this case.
53856         (exit): Remove decl.
53857         (fatal): Prototype unconditionally.  Assume va_start works.
53858         Abort at end, to pacify gcc.
53859
53860         * lib/euidaccess.c (main): Define with a prototype.
53861
53862         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
53863
53864         * lib/exitfail.c: Include <stdlib.h> unconditionally.
53865
53866         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
53867         prototypes.
53868         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
53869         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
53870         (getenv): Remove decl.
53871         (fnmatch): Define using a prototype.
53872         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
53873         (FCT): Define using a prototype.
53874
53875         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
53876
53877         * lib/gethostname.c: Include <stddef.h>.
53878         (gethostname): Define with prototype.  Length is size_t, not int.
53879
53880 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53881
53882         Assume C89 or better; remove K&R cruft.
53883         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
53884         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
53885         string.h, getenv, malloc.
53886         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
53887         headers.
53888         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
53889         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
53890         do not check for strerror.
53891         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
53892         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
53893         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
53894         do not check for doprnt or vprintf.
53895         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
53896         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
53897
53898 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53899
53900         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
53901         getversion.c should have been removed then, but was accidentally
53902         preserved.
53903
53904         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
53905         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
53906
53907 2003-09-08  Karl Berry  <karl@gnu.org>
53908
53909         * config/config.sub, config.guess, srclistvars.sh: update from savannah
53910                 config, forget about prep.
53911
53912         * config/depcomp, missing: update from automake.
53913
53914 2003-09-07  Paul Eggert  <eggert@twinsun.com>
53915
53916         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
53917         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
53918
53919 2003-09-07  Paul Eggert  <eggert@twinsun.com>
53920
53921         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
53922         copy_tm_result.  Bug reported by Simon Josefsson in
53923         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
53924
53925 2003-09-06  Paul Eggert  <eggert@twinsun.com>
53926
53927         * m4/time_r.m4: New file.
53928         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
53929         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
53930         is. Check for timegm declaration.
53931         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
53932         Do not check for gmtime_r.
53933         Replace mktime if __mktime_internal does not exist and if mktime
53934         hasn't been replaced already.
53935
53936 2003-09-06  Paul Eggert  <eggert@twinsun.com>
53937
53938         * lib/time_r.c, lib/time_r.h: New files.
53939
53940         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
53941         __localtime_r.
53942         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
53943         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
53944
53945         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
53946         __gmtime_r.
53947         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
53948         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
53949         Include <time_r.h>.
53950
53951         * lib/timegm.c: Switch to glibc implementation, with the following
53952         changes:
53953         [defined HAVE_CONFIG_H]: Include <config.h>.
53954         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
53955         (__mktime_internal) [!defined _LIBC]: New decl.
53956         (__gmtime_r) [!defined _LIBC]: New macro and function.
53957         (timegm): Use a prototype, since gnulib assumes C89.
53958         Do not bother declaring tmp to be const, as it's not really usefu.
53959         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
53960         (timegm): Declare only if HAVE_DECL_TIMEGM.
53961
53962 2003-09-06  Paul Eggert  <eggert@twinsun.com>
53963
53964         * MODULES.html.sh (func_all_modules): Add time_r.
53965         * modules/time_r: New file.
53966         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
53967         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
53968
53969 2003-09-03  Paul Eggert  <eggert@twinsun.com>
53970
53971         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
53972         Bug reported by Lute Kamstra in
53973         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
53974
53975         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
53976         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
53977         course with correspondingly smaller numbers for tomorrow and
53978         yesterday.  From Tadayoshi Funaba.  Originally installed into
53979         sh-utils on 1999-08-07, but the patch got lost (I guess during the
53980         coreutils merge?).
53981
53982 2003-08-31  Simon Josefsson  <jas@extundo.com>
53983
53984         * modules/timegm: New file.
53985         * MODULES.html.sh (func_all_modules): Add timegm.
53986
53987 2003-08-31  Simon Josefsson  <jas@extundo.com>
53988
53989         * m4/timegm.m4: New file.
53990
53991 2003-08-31  Simon Josefsson  <jas@extundo.com>
53992
53993         * lib/timegm.h: New file.
53994         * lib/timegm.c: New file.  Based on
53995         wget-1.8.2/src/http.c:mktime_from_utc.
53996
53997 2003-08-31  Karl Berry  <karl@gnu.org>
53998
53999         * lib/argp.h: update from libc.
54000
54001 2003-08-28  Bruno Haible  <bruno@clisp.org>
54002
54003         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
54004         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
54005         followed by '#define fnmatch fnmatch_posix' gives an error.
54006
54007 2003-08-28  Bruno Haible  <bruno@clisp.org>
54008
54009         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
54010         warning on QNX, which defines O_BINARY to 000000.
54011
54012 2003-08-27  Jim Meyering  <jim@meyering.net>
54013
54014         * m4/mkstemp.m4: Require that the system mkstemp be able to create
54015         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
54016         would fail after 32.  Reported by Danny Levinson.  Details here:
54017         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
54018
54019 2003-08-24  Bruno Haible  <bruno@clisp.org>
54020
54021         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
54022         MSVC7 <stdio.h> is included later.
54023
54024 2003-08-22  Simon Josefsson  <jas@extundo.com>
54025
54026         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
54027
54028 2003-08-20  Karl Berry  <karl@gnu.org>
54029
54030         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
54031
54032 2003-08-20  Bruno Haible  <bruno@clisp.org>
54033
54034         * modules/progname: New file.
54035         * MODULES.html.sh (func_all_modules): Add progname.
54036
54037 2003-08-20  Bruno Haible  <bruno@clisp.org>
54038
54039         * lib/progname.h: New file, from GNU gettext.
54040         * lib/progname.c: New file, from GNU gettext.
54041         * lib/progreloc.c: New file, from GNU gettext.
54042
54043 2003-08-19  Jim Meyering  <jim@meyering.net>
54044
54045         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
54046         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
54047
54048 2003-08-19  Bruno Haible  <bruno@clisp.org>
54049
54050         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
54051         more.
54052
54053 2003-08-19  Bruno Haible  <bruno@clisp.org>
54054
54055         * lib/xstrdup.c: Assume <string.h> exists.
54056
54057 2003-08-18  Paul Eggert  <eggert@twinsun.com>
54058
54059         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
54060         in makefile rules.
54061
54062 2003-08-18  Jim Meyering  <jim@meyering.net>
54063
54064         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
54065         * m4/lib-ld.m4: Likewise.
54066
54067 2003-08-18  Jim Meyering  <jim@meyering.net>
54068
54069         * lib/setenv.h: Indent nested cpp directive.
54070         * lib/vasnprintf.c: Remove trailing blanks.
54071
54072 2003-08-17  Simon Josefsson  <jas@extundo.com>
54073
54074         * modules/xstrndup: New file.
54075         * MODULES.html.sh (func_all_modules): Add xstrndup.
54076
54077 2003-08-17  Simon Josefsson  <jas@extundo.com>
54078
54079         * modules/argp: Fix autoconf macro name. Add more dependencies.
54080
54081 2003-08-17  Simon Josefsson  <jas@extundo.com>
54082
54083         * m4/xstrndup.m4: New file.
54084
54085 2003-08-17  Simon Josefsson  <jas@extundo.com>
54086
54087         * m4/argp.m4: New file.
54088
54089 2003-08-17  Simon Josefsson  <jas@extundo.com>
54090             Bruno Haible  <bruno@clisp.org>
54091
54092         * lib/xstrndup.h: New file.
54093         * lib/xstrndup.c: New file.
54094
54095 2003-08-17  Bruno Haible  <bruno@clisp.org>
54096
54097         * modules/strndup (Files, Include): Add lib/strndup.h.
54098
54099 2003-08-17  Bruno Haible  <bruno@clisp.org>
54100
54101         * modules/euidaccess (Files): Add lib/euidaccess.h.
54102
54103 2003-08-17  Bruno Haible  <bruno@clisp.org>
54104
54105         * lib/strndup.h: New file.
54106
54107 2003-08-17  Bruno Haible  <bruno@clisp.org>
54108
54109         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
54110         like AC_GNU_SOURCE.
54111         * modules/extensions (configure.ac): Comment out the invocation of
54112         gl_USE_SYSTEM_EXTENSIONS.
54113
54114 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54115
54116         Merges from coreutils, etc.
54117         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
54118         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
54119         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
54120         fixing a typo.
54121         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
54122         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
54123
54124 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54125
54126         Document merge from coreutils.
54127         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
54128         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
54129         * modules/utime: Add m4/utimes-null.m4.
54130
54131 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54132
54133         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
54134         space, undoing this 2003-08-12 change:
54135         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54136
54137 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54138
54139         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
54140         strtoul.c from libc, undoing this 2003-08-12 change:
54141         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54142
54143 2003-08-16  Jim Meyering  <jim@meyering.net>
54144
54145         Merges from coreutils.
54146         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
54147         prefix.  Adjust cache variables similarly.  Create 500 rather than
54148         just 300 files, to exercise bug on Darwin6.5, too.
54149         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
54150         $missing_dir.
54151         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
54152         AM_SYS_POSIX_TERMIOS.
54153         Reported by mkc@mathdogs.com.
54154         Also change use of $am_cv_sys_posix_termios
54155         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
54156         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
54157         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
54158         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
54159         in /proc/mounts until it finds one with matching device number.  This
54160         is unnecessary when the FILE argument *is* a mount point.  No stat call
54161         is necessary in that case.  So, disable the statvfs-testing code on
54162         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
54163         as RedHat bug# 84846.
54164         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54165         to 1MB, so as not to render systems with no stack size limit (e.g.,
54166         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
54167         Include <unistd.h>.  On some systems,
54168         it is required for the definition of _SC_PAGESIZE.
54169
54170 2003-08-16  Jim Meyering  <jim@meyering.net>
54171
54172         Merge from coreutils.
54173         * lib/xstrtoimax.c: #else #if -> #elif.
54174         * lib/xstrtoumax.c: Likewise.
54175
54176 2003-08-16  Jim Meyering  <jim@meyering.net>
54177
54178         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
54179         * m4/utimes.m4: Removed.
54180         * m4/utimes-null.m4: Renamed from utimes.m4.
54181
54182         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54183         to 1MB, so as not to render systems with no stack size limit (e.g.,
54184         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
54185         Include <unistd.h>.  On some systems,
54186         it is required for the definition of _SC_PAGESIZE.
54187
54188 2003-08-16  Jim Meyering  <jim@meyering.net>
54189         and Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         Merges from coreutils, etc.
54192
54193         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
54194         using the latest version from cvs.  This avoids problems with #line
54195         directives using a vendor (Sun) compiler.
54196         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
54197         Don't set GETGROUPS_LIB here; now it's
54198         done via getgroups.m4's wrapper function.
54199         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
54200         rather than just in sh-util/configure.in, so that the
54201         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
54202         same.
54203         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
54204         AC_FUNC_GETLOADAVG where to find getloadavg.c.
54205         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
54206         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
54207         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
54208         Remove code that is now done by the newly-required macros.
54209         Append $(EXEEXT) to DF_PROG.
54210         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
54211         Do not invoke or require the following here,
54212         since prereq.m4 or some gnulib .m4 now does this for us:
54213         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
54214         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
54215         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
54216         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
54217         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
54218         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
54219         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
54220         AC_FUNC_OBSTACK.
54221         Do not replace the following functions, as this is now the job
54222         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
54223         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
54224         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
54225         atexit getpass, strdup, getpagesize.
54226         Replace 'raise'.
54227         Do not check for the following functions, as this is now the job
54228         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
54229         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
54230         setregid.
54231         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
54232         Check for sys/sysctl.h.
54233         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
54234         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
54235         of checking for ssize_t ourselves.
54236
54237         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
54238         Require every macro that gnulib/modules/* suggests for us.
54239         (jm_PREREQ_ADDEXT): New macro.
54240         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
54241         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
54242
54243         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
54244         (gl_PHYSMEM): Use it.
54245         Also check for `table' function.
54246         Check for new headers and functions.
54247         Add check for sys/sysmp.h.
54248         With suggestions from Kaveh Ghazi.
54249         Ignore headers that are present but cannot be compiled.  This
54250         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
54251         C 5.4.
54252
54253 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54254
54255         Document merge from coreutils.
54256         * modules/userspec: Depend on posixver.
54257         * modules/strftime: Depend on tzset.
54258
54259 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54260
54261         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
54262         rather than tab, after '#' in shell-script copyright notices.
54263         Suggested by Bruno Haible.
54264
54265 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54266
54267         * config/srclist-update: Use three spaces, rather than tab, after '#'
54268         in shell-script copyright notices.  Suggested by Bruno Haible.
54269         Remove unnecessary parenthesization in regular expression.
54270
54271 2003-08-15  Jim Meyering  <jim@meyering.net>
54272
54273         Merge from coreutils.
54274         * lib/xgethostname.c: Include <stdlib.h>.
54275         (xghostname): Don't exit for anything other than memory-related
54276         failure; just return NULL.
54277         * lib/userspec.c: Include "posixver.h".
54278         (parse_user_spec): Accept `.' as a separator only
54279         in pre-POSIX-200112 mode.
54280         * lib/strtoimax.c: Use #elif rather than #else #if.
54281         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
54282         Remove function, now that we can rely on a working tzset function.
54283         [!_LIBC]: Ensure that the required autoconf test has been run.
54284         [!defined _NL_CURRENT && HAVE_STRFTIME]:
54285         Use underlying_strftime for %r.
54286         * lib/sha.c: Merge in some clean-up and optimization changes from
54287         glibc.
54288         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
54289         Ensure that it is a multiple of 64.
54290         Rearrange loop exit tests so as to avoid performing an
54291         additional fread after encountering an error or EOF.
54292         * lib/realloc.c: Update copyright date.
54293
54294 2003-08-15  Jim Meyering  <jim@meyering.net>
54295         and Paul Eggert  <eggert@twinsun.com>
54296
54297         Merge from coreutils.
54298         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
54299         member but strut utmpx does not.  Needed for AIX 4.3.3.
54300         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
54301
54302 2003-08-15  Jim Meyering  <jim@meyering.net>
54303         and Paul Eggert  <eggert@cs.ucla.edu>
54304
54305         Merges from coreutils, etc.
54306         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
54307         Require gl_FUNC_TZSET_CLOBBER.
54308         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
54309         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
54310         members.
54311
54312 2003-08-14  Paul Eggert  <eggert@twinsun.com>
54313
54314         Help the merge from coreutils.
54315         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
54316         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
54317         * m4/tzset.m4: Use it too.
54318
54319 2003-08-14  Paul Eggert  <eggert@twinsun.com>
54320
54321         * modules/tzset: New file.
54322
54323 2003-08-14  Jim Meyering  <jim@meyering.net>
54324
54325         Merges from coreutils.
54326         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
54327         variable names, rather than @FNMATCH_H@.
54328         * modules/alloca: Likewise for $(ALLOCA_H).
54329
54330         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
54331         the three copies of the literal target, `fnmatch.h'.
54332         * modules/alloca (alloca.h): Likewise.
54333
54334 2003-08-14  Jim Meyering  <jim@meyering.net>
54335
54336         Merge from coreutils.
54337         * m4/tzset.m4: New file.
54338         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
54339         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
54340         otherwise, AIX 5.1 systems would end up using the latter.
54341         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
54342         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
54343         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
54344         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
54345
54346 2003-08-14  Jim Meyering  <jim@meyering.net>
54347
54348         Merge from coreutils.
54349         * lib/obstack.h: Whitespace changes.
54350         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
54351         and xcalloc return values.
54352         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
54353         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
54354         hang on OSF/1 5.1 for DIR on both local and remote file systems.
54355         Reported by (and fix confirmed by) Nelson H. F. Beebe.
54356         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
54357         error from mntctl.
54358         Use mntctl's return value to drive the entry-processing loop, since
54359         we can't rely on the value of the vmt_length member in the last
54360         entry.  On some systems doing so could result in exhausting
54361         virtual memory.  Based in part on a patch from Mike Jetzer.
54362
54363 2003-08-14  Jim Meyering  <jim@meyering.net>
54364         and Paul Eggert  <eggert@twinsun.com>
54365
54366         Merges from coreutils, plus other fixes.
54367         * lib/physmem.c: Merge in portability changes from gcc/libiberty
54368         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
54369         for credits and details.  Thanks to Kaveh Ghazi for helping
54370         to keep these files in sync.
54371         (ARRAY_SIZE): Define it.
54372         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
54373         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
54374         (memcasecmp): Don't assume size_t fits in unsigned int.
54375         Remove casts and duplicate code.
54376         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
54377         (memcpy): Remove definition.
54378         Merge in some clean-up and optimization changes from glibc.
54379         [BLOCKSIZE]: Move definition to top of file.
54380         Ensure that it is a multiple of 64.
54381         Rearrange loop exit tests so as to avoid performing an
54382         additional fread after encountering an error or EOF.
54383         * lib/md5.h (md5_uintptr): Define.
54384         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
54385         return to the initial working directory.  Preserve errno
54386         for caller.
54387         * lib/idcache.c: Include "xalloc.h".
54388         (xmalloc, xrealloc): Remove decls.
54389         (getuser): Remove casts no longer required in C89.
54390         * lib/human.c: Include stdio.h, for sprintf.
54391         * lib/group-member.c: Include "xalloc.h".
54392         (xmalloc, xrealloc): Remove decls.
54393         (get_group_info): Remove casts no longer required in C89.
54394         * lib/getusershell.c (readname): Remove casts no longer required in
54395         C89.
54396         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
54397         * lib/getline.c: Whitespace fix, from coreutils.
54398
54399 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54400
54401         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
54402         Check for isascii.
54403
54404         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54405         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54406         Undo previous (whitespace-only) change.
54407
54408 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54409
54410         * lib/exclude.c: Include <ctype.h>
54411         (IN_CTYPE_DOMAIN): New macro.
54412         (is_space): New fn.
54413         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
54414         and empty lines.
54415
54416         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54417         Undo previous (whitespace-only) change.
54418
54419 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54420
54421         * config/srclist-update: Change update back to the old behavior,
54422         leaving whitespace alone.  Use one 'sed' command rather than a
54423         pipeline.
54424         (fixlicense): Now a variable, not a function.
54425         (remove_trailing_blanks): Remove.
54426         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
54427         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54428         Undo previous (whitespace-only) change.
54429
54430 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54431
54432         Merge from coreutils.
54433         * modules/euidaccess: Add lib_SOURCES, include for new
54434         file euidaccess.h
54435
54436 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54437
54438         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54439         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54440         Normalize leading white space and remove trailing white space.
54441
54442         Merge from coreutils
54443         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
54444
54445         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
54446         0.12.1.  These files are now being upgraded automatically by
54447         ../config/srclist-update.
54448
54449 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54450
54451         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54452         Normalize leading white space and remove trailing white space.
54453         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
54454         notice, as per ../config/srclist-update.
54455
54456         Merge from coreutils.
54457         * lib/euidaccess.h: New file.
54458         * lib/euidaccess.c: Include it.
54459         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
54460         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
54461         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
54462
54463 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54464
54465         * config/srclist-update: Add copyright notice.
54466         (remove_id_lines, remove_trailing_blanks): New constants.
54467         (fixfile): Use them to normalize spacing a bit in copied files.
54468         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54469         Normalize leading white space and remove trailing white space.
54470
54471         * config/texinfo.tex: Sync with texinfo.
54472
54473         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
54474         strtoul.c from libc, to merge coreutils whitespace changes.
54475
54476         * config/srclist.txt: Get the following m4 files from gettext:
54477         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
54478         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
54479         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
54480         wint_t.m4.
54481
54482 2003-08-12  Karl Berry  <karl@gnu.org>
54483
54484         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
54485         been made.
54486
54487 2003-08-11  Paul Eggert  <eggert@twinsun.com>
54488
54489         * modules/gnu-source, m4/gnu-source.m4:
54490         Remove; we're assuming Autoconf 2.54 or later now.
54491         Suggested by Bruno Haible.
54492         * MODULES.html.sh (func_all_modules): Remove gnu-source.
54493
54494 2003-08-11  Bruno Haible  <bruno@clisp.org>
54495
54496         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
54497
54498 2003-08-11  Bruno Haible  <bruno@clisp.org>
54499
54500         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
54501         (vasnprintf): Use it instead of wcslen.
54502
54503 2003-08-11  Bruno Haible  <bruno@clisp.org>
54504
54505         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
54506         value to ensure that _Bool promotes to int. Use #define for _Bool when
54507         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
54508
54509 2003-08-10  Karl Berry  <karl@gnu.org>
54510
54511         * lib/regex.h: update from libc (whitespace fix).
54512
54513 2003-08-09  Paul Eggert  <eggert@twinsun.com>
54514
54515         Merge some files from coreutils.  These changes were
54516         originally made by Jim Meyering.
54517         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
54518         many older Unixes require this.
54519         * lib/alloca.c (alloca): Remove cast to argument of free;
54520         no longer needed in C89.
54521         * lib/alloca_.h, regex.h: Fix white space to match
54522         what GNU indent does.
54523
54524 2003-08-09  Paul Eggert  <eggert@twinsun.com>
54525
54526         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
54527         apparently Emacs's Unicode mode got confused before my 2003-08-05
54528         checkin.
54529
54530 2003-08-08  Paul Eggert  <eggert@twinsun.com>
54531
54532         * m4/extensions.m4: New file.
54533         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
54534         Require gl_USE_SYSTEM_EXTENSIONS.
54535         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
54536         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
54537
54538 2003-08-08  Paul Eggert  <eggert@twinsun.com>
54539
54540         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
54541         * modules/extensions, modules/gnu-source: New files.
54542         * modules/timespec, modules/unlocked-io: Depend on extensions.
54543
54544 2003-08-07  Paul Eggert  <eggert@twinsun.com>
54545
54546         * modules/restrict: New file.
54547         * MODULES.html.sh (func_all_modules): Add restrict.
54548         * modules/regex: Depend on restrict.
54549
54550 2003-08-07  Paul Eggert  <eggert@twinsun.com>
54551
54552         * m4/restrict.m4: New file.
54553         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
54554
54555 2003-08-07  Bruno Haible  <bruno@clisp.org>
54556
54557         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
54558         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
54559
54560 2003-08-07  Bruno Haible  <bruno@clisp.org>
54561
54562         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
54563         makes the module 'getndelim2' compatible with the module 'getline'.
54564
54565 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54566
54567         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
54568         byte with "\201" to avoid glitches when editing that source file
54569         with multi-gnome-terminal.
54570
54571 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54572
54573         * lib/bumpalloc.h: Remove.
54574
54575 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54576
54577         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
54578         * modules/bumpalloc: Remove.
54579
54580 2003-08-04  Paul Eggert  <eggert@twinsun.com>
54581
54582         * lib/getloadavg.c: Change copyright notice and spacing to conform to
54583         GNU coding style.
54584
54585         Merge from coreutils.
54586         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
54587         1. From glibc.
54588         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
54589         from Karl Berry, implemented by Jim Meyering.
54590         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
54591         from Dmitry V. Levin.
54592         Remove anachronistic cast of xrealloc.
54593         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
54594         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
54595         type. Otherwise, it wouldn't compile with at least /bin/cc on
54596         ymp-cray-unicos9.0.2.X.
54597         Combine two mostly-identical uses of alloca into one.
54598         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
54599
54600 2003-08-04  Dave Love  <d.love@dl.ac.uk>
54601
54602         [From Emacs.]
54603
54604         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
54605         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
54606         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
54607         obsolete NLIST_NAME_UNION.
54608         [__GNU__]: Undef BSD and FSCALE.
54609         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
54610
54611 2003-08-03  Paul Eggert  <eggert@twinsun.com>
54612
54613         * lib/stdbool_.h (_Bool): Make it signed char, instead of
54614         an enum type, so that it's guaranteed to promote to int.  See:
54615         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
54616
54617 2003-08-03  Karl Berry  <karl@gnu.org>
54618
54619         * config/depcomp: update from automake.
54620
54621 2003-07-31  Paul Eggert  <eggert@twinsun.com>
54622
54623         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
54624         (strerror): Don't assume that a printable int fits in 14 bytes.
54625
54626 2003-07-31  Bruno Haible  <bruno@clisp.org>
54627
54628         * modules/getpass-gnu: New file.
54629         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
54630
54631 2003-07-31  Bruno Haible  <bruno@clisp.org>
54632
54633         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
54634
54635 2003-07-24  Karl Berry  <karl@gnu.org>
54636
54637         * config/missing: update from automake.
54638
54639 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
54640             Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
54643         * lib/getline.c (getline, getdelim): Likewise.
54644         Remove _GNU_SOURCE define; now it's defined in config.h through
54645         m4/getline.m4.
54646
54647 2003-07-23  Karl Berry  <karl@gnu.org>
54648
54649         * config/config.sub: update from prep.
54650
54651 2003-07-22  Paul Eggert  <eggert@twinsun.com>
54652
54653         * modules/xalloc (Depends-on): Add exitfail.
54654         * modules/xmemcoll: Likewise.
54655
54656 2003-07-22  Paul Eggert  <eggert@twinsun.com>
54657
54658         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
54659         over-parenthesization in macros.
54660
54661         Sync with coreutils.
54662
54663         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
54664         required by C99.
54665
54666         Use `exit_failure' for xalloc and xmemcoll instead of their own
54667         private exit-failure variables.
54668         * lib/xalloc.h (xalloc_exit_failure): Remove.
54669         * lib/xmalloc.c: Likewise.  Include exitfail.h.
54670         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
54671         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
54672         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
54673         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
54674
54675 2003-07-20  Jim Meyering  <jim@meyering.net>
54676
54677         * modules/closeout (Depends-on): Add exitfail.
54678         Suggestion from Bruno Haible.
54679
54680 2003-07-19  Karl Berry  <karl@gnu.org>
54681
54682         * config/config.sub: update from prep.
54683
54684 2003-07-18  Paul Eggert  <eggert@twinsun.com>
54685
54686         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
54687         Remove.
54688         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
54689         to test that it can stand by itself.  Include "exitfail.h".
54690         Clients should set exit_failure instead.
54691         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
54692
54693 2003-07-18  Bruno Haible  <bruno@clisp.org>
54694
54695         * modules/getndelim2: New file.
54696         * modules/getline: Share files with module getndelim2.
54697         * modules/getnline: Depend on getndelim2 instead of sharing files with
54698         it. Add getnline.c to lib_SOURCES.
54699         * MODULES.html.sh (func_all_modules): Add getndelim2.
54700
54701 2003-07-18  Bruno Haible  <bruno@clisp.org>
54702
54703         * m4/getndelim2.m4: New file.
54704         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
54705         invoke gl_PREREQ_GETNDELIM2.
54706         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
54707         gl_PREREQ_GETNDELIM2.
54708         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
54709         gl_GETNDELIM2.
54710
54711 2003-07-18  Bruno Haible  <bruno@clisp.org>
54712
54713         * lib/getndelim2.h: New file.
54714         * lib/getndelim2.c: Make into a module of its own. Include config.h,
54715         getndelim2.h.
54716         (getndelim2): Make non-static. Change return type to ssize_t.
54717         * lib/getline.h: Change argument names.
54718         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
54719         * lib/getnline.c: Include getndelim2.h.
54720
54721 2003-07-18  Andreas Schwab  <schwab@suse.de>
54722
54723         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
54724
54725 2003-07-17  Karl Berry  <karl@gnu.org>
54726
54727         * config/config.sub: update from prep.
54728
54729 2003-07-17  Bruno Haible  <bruno@clisp.org>
54730
54731         * modules/getnline: New file.
54732         * modules/getline: Add lib/getndelim2.c to source file list.
54733         * MODULES.html.sh (func_all_modules): Add getnline.
54734
54735 2003-07-17  Bruno Haible  <bruno@clisp.org>
54736
54737         * m4/getnline.m4: New file.
54738
54739 2003-07-17  Bruno Haible  <bruno@clisp.org>
54740
54741         * m4/Makefile.am.in: Remove file.
54742         * m4/Makefile.am: Remove file.
54743         * m4/Makefile.in: Remove file.
54744
54745 2003-07-17  Bruno Haible  <bruno@clisp.org>
54746
54747         * lib/getnline.h: New file.
54748         * lib/getnline.c: New file.
54749         * lib/getndelim2.c: New file, extracted from getline.c.
54750         (getndelim2): Renamed from getdelim2, with added nmax argument.
54751         * lib/getline.c: Include getndelim2.c.
54752         (getdelim2): Moved out to getndelim2.c.
54753         (getline, getdelim): Update.
54754
54755 2003-07-17  Bruno Haible  <bruno@clisp.org>
54756
54757         * lib/Makefile.am: Remove file.
54758         * lib/Makefile.in: Remove file.
54759
54760 2003-07-17  Bruno Haible  <bruno@clisp.org>
54761
54762         * configure.in: Remove file.
54763         * Makefile.in: Remove file.
54764
54765 2003-07-17  Bruno Haible  <bruno@clisp.org>
54766
54767         * MODULES.html.sh: Put the </BODY> right before </HTML>.
54768
54769 2003-07-16  Karl Berry  <karl@gnu.org>
54770
54771         * config/srclist-update: was running fixlicense twice, which caused
54772                 texinfo.tex to be nullified for some reason.  Simplify,
54773                 $gplsrc is no longer needed as far as I can see?
54774
54775 2003-07-16  Jim Meyering  <jim@meyering.net>
54776
54777         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
54778
54779 2003-07-15  Paul Eggert  <eggert@twinsun.com>
54780
54781         * config/srclist.txt: Get the following files from gettext-runtime/intl
54782         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
54783         ref-del.sin.  From Bruno Haible.
54784         * config/srclist-update (fixfile): Change grep pattern again, since the
54785         previous fix didn't work (there was another trailing $).  Use
54786         '[$]' to escape the $s.
54787
54788 2003-07-15  Karl Berry  <karl@gnu.org>
54789
54790         * lib/vasnprintf.c: update from gettext.
54791
54792 2003-07-15  Karl Berry  <karl@gnu.org>
54793
54794         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
54795         gets expanded when surrounded by '$'.
54796
54797 2003-07-15  Jim Meyering  <jim@meyering.net>
54798
54799         * modules/save-cwd: Don't depend on error.  From Derek Price.
54800
54801 2003-07-15  Jim Meyering  <jim@meyering.net>
54802
54803         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
54804
54805 2003-07-14  Simon Josefsson  <jas@extundo.com>
54806
54807         * modules/mempcpy: New file.
54808         * MODULES.html.sh (func_all_modules): Add mempcpy.
54809
54810 2003-07-14  Simon Josefsson  <jas@extundo.com>
54811
54812         * m4/mempcpy.m4: New file.
54813
54814 2003-07-14  Simon Josefsson  <jas@extundo.com>
54815
54816         * lib/mempcpy.h: New file.
54817         * lib/mempcpy.c: New file.
54818
54819 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54820
54821         * modules/getdate, modules/posixtm: Depend on mktime.
54822
54823 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54824
54825         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
54826         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
54827         unicodeio.c, unicodeio.h, unlocked-io.h:
54828         Switch from LGPL to GPL.
54829
54830 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54831
54832         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
54833         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
54834         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
54835         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
54836         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
54837         updated automatically by ../config/srclist-update.  This changes
54838         their license from LPGL to GPL.
54839
54840 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54841
54842         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
54843         assumed to refer to the root of the most recent stable gettext version.
54844         * config/srclistvars.sh: Add defaults for eggert.
54845         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
54846         Match "This program" as well as "The program".  This is needed
54847         for gettext.
54848
54849 2003-07-14  Jim Meyering  <jim@meyering.net>
54850
54851         Don't emit diagnostics.  Let callers do that.
54852         * lib/save-cwd.c: Don't include "error.h".
54853         (save_cwd): Don't call error.  Ensure that errno is valid
54854         when returning nonzero.
54855
54856         * lib/save-cwd.h (restore_cwd): Update prototype.
54857         * lib/save-cwd.c (restore_cwd): Remove two parameters.
54858         Simplify.  Don't call error upon failure.  Let callers do that.
54859         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
54860         when auditing is enabled.  But don't bother updating the #if.
54861
54862 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
54863
54864         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
54865         it breaks C++ compilation.
54866         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
54867
54868 2003-07-10  Simon Josefsson  <jas@extundo.com>
54869
54870         * modules/strchrnul (Makefile.am): Add strchrnul.h.
54871
54872 2003-07-10  Jim Meyering  <jim@meyering.net>
54873
54874         * m4/clock_time.m4: Remove trailing blank.
54875         * m4/intmax_t.m4: Likewise.
54876
54877 2003-07-10  Jim Meyering  <jim@meyering.net>
54878
54879         * lib/vasnprintf.c: Remove trailing blanks.
54880         Make cpp indentation consistent.
54881
54882 2003-07-09  Paul Eggert  <eggert@twinsun.com>
54883
54884         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
54885         posixver.c, strftime.c, strnlen.c, strverscmp.c:
54886         Switch from LGPL to GPL.
54887
54888 2003-07-09  Paul Eggert  <eggert@twinsun.com>
54889
54890         * config/srclist.txt: Sort sublists.  Add
54891         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
54892         that differ from gnulib for one reason or another; we'd like this list
54893         to be smaller but for now let's document what we have.
54894
54895 2003-07-08  Paul Eggert  <eggert@twinsun.com>
54896
54897         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
54898         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
54899         and sweeter "eval x=$x".
54900         * config/srclist.txt: Get lib/argp* from glibc.
54901
54902 2003-07-07  Paul Eggert  <eggert@twinsun.com>
54903
54904         * lib/mktime.c: Fix some boundary cases and remove need for floating
54905         point.
54906
54907         Issue a compile-time diagnostic if time_t is floating point, or if
54908         two's complement arithmetic is not in effect, or if arithmetic
54909         right shift does not propagate the sign.  These assumptions were
54910         all in the original code but they weren't checked.
54911
54912         (TIME_T_MIDPOINT, verify): New macros.
54913         (__isleap): Remove; it has integer overflow problems.
54914         (leapyear): New function, without those problems.
54915         (ydhms_tm_diff): Remove; splitting into two parts.
54916         (ydhms_diff): New function, containing the arithmetic part of
54917         the old ydhms_tm_diff function.  Issue a compile-time
54918         diagnostic if we are not using C99 integer division.
54919         Avoid casts when possible.
54920         (guess_time_tm): New function, containing the checking part of
54921         the old ydhms_tm_diff function.  Return the new value, rather than
54922         the difference between it and the old.  Accept a new argument T
54923         so that *T specifies the old value.  Check for overflow in the result.
54924
54925         (__mktime_internal): Use a time_t offset, not a long int offset.
54926         This undoes the 2003-06-04 change, which is no longer needed now
54927         that we have better overflow checking.
54928         (localtime_offset): Likewise.
54929
54930         (__mktime_internal): Avoid harmful overflow on hosts where time_t
54931         and long are 64-bit but int is only 32-bit.
54932         (ydhms_diff): Use long int to store year1 and yday1.
54933         Issue a compile-time diagnostic if long int is not wide enough.
54934
54935         (__mktime_internal): Use long int to store adjusted year and yday.
54936         Use plain C rather than preprocessor commands, if that doesn't
54937         affect efficiency.
54938         Check for overflow (and try to repair) after each probe
54939         rather than checking only at the very end.  This avoids some bugs
54940         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
54941         does not equal GMT offset at maximum time).
54942         Use integer to check for overflow rather than floating point; this
54943         is more portable to non-IEEE hosts, and is a tad faster.
54944         When we detect that we are oscillating between two values,
54945         don't check whether tm_isdst has the requested value, since
54946         we already know the answer.  When tm_isdst has the wrong value,
54947         use a different heuristic to find the right one, based on the
54948         extreme values actually observed in practice in tz2003a,
54949         rather than the (overly optimistic) "previous 3 calendar quarters".
54950
54951         (not_equal_tm, print_tm, check_result): Use "const T" rather than
54952         "T const" to accommodate glibc style.
54953         (check_result): Use less-confusing report format.  "long" -> "long int.
54954         (main): Likewise.
54955         Don't loop if the iteration overflows time_t.
54956         Allow a negative step in the iteration.
54957
54958 2003-07-06  Karl Berry  <karl@gnu.org>
54959
54960         * config/depcomp: update from automake.
54961         * config/config.sub: update from prep.
54962
54963 2003-07-03  Karl Berry  <karl@gnu.org>
54964
54965         * config/config.guess: update from prep.
54966
54967 2003-07-01  Paul Eggert  <eggert@twinsun.com>
54968
54969         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
54970         xreadlink.c now includes it unconditionally.
54971
54972 2003-07-01  Paul Eggert  <eggert@twinsun.com>
54973
54974         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
54975         having it depend on HAVE_SYS_TYPES_H.
54976
54977 2003-07-01  Bruno Haible  <bruno@clisp.org>
54978
54979         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
54980         <sys/types.h> should be sufficient.
54981         Reported by Paul Eggert.
54982
54983 2003-06-26  Karl Berry  <karl@gnu.org>
54984
54985         * config/depcomp: update from automake.
54986
54987 2003-06-26  Bruno Haible  <bruno@clisp.org>
54988
54989         * modules/human: Depend on module stdbool.
54990
54991 2003-06-25  Bruno Haible  <bruno@clisp.org>
54992
54993         * modules/readlink: New file.
54994         * modules/xreadlink: Depend on it.
54995         * MODULES.html.sh (func_all_modules): Add readlink.
54996
54997 2003-06-25  Bruno Haible  <bruno@clisp.org>
54998
54999         * m4/readlink.m4: New file.
55000
55001 2003-06-25  Bruno Haible  <bruno@clisp.org>
55002
55003         * lib/readlink.c: New file.
55004
55005 2003-06-22  Karl Berry  <karl@gnu.org>
55006
55007         * config/srclist.txt: update mkinstalldirs from automake.
55008         * config/mkinstalldirs: update.
55009
55010 2003-06-22  Bruno Haible  <bruno@clisp.org>
55011
55012         Portability to mingw32.
55013         * m4/ssize_t.m4: New file, from GNU gettext.
55014         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
55015         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
55016
55017 2003-06-22  Bruno Haible  <bruno@clisp.org>
55018
55019         * modules/safe-read: Add m4/ssize_t.m4.
55020         * modules/xreadlink: Add m4/ssize_t.m4.
55021
55022 2003-06-20  Bruno Haible  <bruno@clisp.org>
55023
55024         Assume C89, so PARAMS isn't needed.
55025         * lib/unicodeio.h (PARAMS): Remove.
55026         * lib/unicodeio.c: Don't use PARAMS.
55027
55028 2003-06-18  Karl Berry  <karl@gnu.org>
55029
55030         * config/config.{guess,sub}: update from prep.
55031
55032 2003-06-18  Jim Meyering  <jim@meyering.net>
55033
55034         Merge changes from coreutils.
55035         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
55036         Remove explicit declarations of xmalloc and realloc.
55037         Include xalloc.h.
55038         (read_utmp): Remove anachronistic cast of xmalloc.
55039
55040 2003-06-17  Paul Eggert  <eggert@twinsun.com>
55041
55042         Assume C89, so PARAMS isn't needed.
55043         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
55044         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
55045         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
55046         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
55047         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
55048         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
55049         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
55050         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
55051         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
55052         lib/xstrtod.h, lib/xstrtol.h: Likewise.
55053         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
55054         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
55055         no longer needed. Anyway, config.h should always be included before any
55056         other file.
55057
55058 2003-06-11  Simon Josefsson  <jas@extundo.com>
55059
55060         * modules/sysexits: New file.
55061         * MODULES.html.sh (func_all_modules): Add sysexits.
55062
55063 2003-06-11  Simon Josefsson  <jas@extundo.com>
55064
55065         * lib/sysexit_.h: New file.
55066
55067 2003-06-11  Derek Price  <derek@ximbiot.com>
55068
55069         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
55070         necessary.
55071
55072 2003-06-11  Bruno Haible  <bruno@clisp.org>
55073
55074         * m4/sysexits.m4: New file.
55075
55076 2003-06-10  Simon Josefsson  <jas@extundo.com>
55077
55078         * lib/argp.h: New file, from glibc.
55079         * lib/argp-ba.c: New file, from glibc.
55080         * lib/argp-eexst.c: New file, from glibc.
55081         * lib/argp-fmtstream.c: New file, from glibc.
55082         * lib/argp-fmtstream.h: New file, from glibc.
55083         * lib/argp-fs-xinl.c: New file, from glibc.
55084         * lib/argp-help.c: New file, from glibc.
55085         * lib/argp-namefrob.h: New file, from glibc.
55086         * lib/argp-parse.c: New file, from glibc.
55087         * lib/argp-pv.c: New file, from glibc.
55088         * lib/argp-pvh.c: New file, from glibc.
55089         * lib/argp-xinl.c: New file, from glibc.
55090
55091 2003-06-10  Simon Josefsson  <jas@extundo.com>
55092
55093         * modules/strchrnul: New file.
55094
55095 2003-06-10  Simon Josefsson  <jas@extundo.com>
55096
55097         * modules/argp: New file.
55098
55099 2003-06-10  Simon Josefsson  <jas@extundo.com>
55100
55101         * m4/strchrnul.m4: New file.
55102
55103 2003-06-10  Simon Josefsson  <jas@extundo.com>
55104
55105         * lib/strchrnul.h: New file.
55106         * lib/strchrnul.c: New file.
55107
55108 2003-06-10  Bruno Haible  <bruno@clisp.org>
55109
55110         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
55111
55112 2003-06-07  Karl Berry  <karl@gnu.org>
55113
55114         * config/config.{guess,sub}: update from prep.
55115
55116 2003-06-07  Jim Meyering  <jim@meyering.net>
55117
55118         * modules/strtod: Use $(...) notation, not @...@ for
55119         AC_REPLACE'd variables.
55120         * modules/localcharset: Likewise.
55121
55122 2003-06-07  Jim Meyering  <jim@meyering.net>
55123
55124         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
55125         in place of my name in the copyright comment.
55126         Remove definition and uses of __P.
55127
55128         From coreutils.
55129         * lib/stat.c: Don't declare xmalloc explicitly.
55130         Instead, include "xalloc.h".
55131         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
55132         xrealloc, and xcalloc return values.
55133         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
55134         Improve comment.
55135         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
55136
55137 2003-06-07  Bruno Haible  <bruno@clisp.org>
55138
55139         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
55140         avoid AC_CONFIG_LINKS.
55141         * modules/fnmatch (Makefile.am): Use explicit creation rule for
55142         fnmatch.h, to avoid AC_CONFIG_LINKS.
55143         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
55144
55145 2003-06-07  Bruno Haible  <bruno@clisp.org>
55146
55147         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
55148         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
55149         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55150         directory.
55151         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
55152         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55153         directory.
55154
55155 2003-06-06  Jim Meyering  <jim@meyering.net>
55156
55157         Merge from coreutils.
55158         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
55159         Consolidate declarations and initializations of *_base* locals.
55160
55161         Merge from coreutils.
55162         This avoids a core dump on systems without GNU putenv,
55163         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
55164         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
55165         (unsetenv): New static function, from GNU libc.
55166         (rpl_putenv): Use it.
55167
55168         * lib/modechange.c: Remove trailing blanks.
55169
55170         Merge from coreutils.
55171         * lib/fsusage.c: Remove declaration of statfs.
55172         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
55173
55174         * lib/posixtm.c: Include <stdbool.h> unconditionally.
55175
55176 2003-06-06  Jim Meyering  <jim@meyering.net>
55177
55178         * lib/stdbool_.h: Renamed from stdbool.h.in.
55179
55180 2003-06-06  Jim Meyering  <jim@meyering.net>
55181             Bruno Haible  <bruno@clisp.org>
55182
55183         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
55184         Adjust Makefile.am snippet not to redirect directly to target.
55185         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
55186
55187 2003-06-05  Paul Eggert  <eggert@twinsun.com>
55188
55189         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
55190         mismatch, look in future quarters as well as past.  This fixes a
55191         bug when processing fall-backwards gaps immediately after a long
55192         period of daylight-saving time.
55193
55194         * lib/mktime.c: Assume freestanding C89 or better.
55195         (HAVE_LIMITS_H): Remove.  Assume it's 1.
55196         (__P): Remove; not used.
55197         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
55198         (mktime, not_equal_tm, print_tm, check_result,
55199         main): Use prototypes.  Use const * where appropriate.
55200         (main): Fix typo in testing code that uncovered by above changes.
55201         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
55202
55203 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55204
55205         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
55206         locale.h, localeconv.  This merges changes from coreutils.
55207
55208         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
55209         It can be removed after the next Autoconf is released.
55210         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
55211         needed.
55212
55213 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55214
55215         * lib/mktime.c: Fix Debian bug 177940
55216         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
55217         (localtime_offset): Now long int, not time_t, because we want it
55218         to be guaranteed to be signed.  All uses changed.
55219         (__mktime_internal): If overflow would occur when adding offset,
55220         don't add it.
55221
55222         Merge 'human' changes from coreutils.  Rewrite to support
55223         locale-specific notations like thousands separators.
55224         * lib/human.c: Simplify authorship notice.
55225         Include human.h immediately after config.h.
55226         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
55227         <limits.h>: Do not include, since human.h does.
55228         (SIZE_MAX, UINTMAX_MAX): New macros.
55229         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
55230         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
55231         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
55232         (power_letter): Renamed from suffixes.
55233         (generate_suffix_backwards): Remove.
55234         (adjust_value): Now takes int style (because of human.h changes)
55235         and long double value (for greater precision on some platforms).
55236         (group_number): New function.
55237         (human_readable): Use it.  Use integer options, not enum.
55238         Put the options before the sizes in the arg list.
55239         Support all the new options.
55240         The old human_readable function has been removed;
55241         use inttostr.h instead.
55242         (human_readable, default_block_size, humblock):
55243         Use uintmax_t, not int, for block sizes.
55244         (human_readable_inexact, block_size_types): Remove.
55245         (block_size_opts): New constant.
55246         (human_options): Renamed from human_block_size, with new signature
55247         that allows block sizes up to UINTMAX_MAX.  All callers changed.
55248         * lib/human.h: Add copyright and authorship notice.
55249         Include <limits.h> and <stdbool.h> unconditionally.
55250         (PARAMS): Remove.  All uses removed.
55251         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
55252         (enum human_inexact_style): Remove tag; now a nameless enum.
55253         (human_floor, human_ceiling, human_round_to_even): Now have
55254         values 2, 0, 1 rather than -1, 1, 0.
55255         (human_group_digits, human_suppress_point_zero, human_autoscale,
55256         human_base_1024, human_SI, human_B): New constants.
55257         (human_readable_inexact, human_block_size): Remove.
55258         (human_readable): Size args are now uintmax_t, not int.
55259         (human_options): New decl.
55260
55261         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
55262         unnecessary now that we assume C89 or better.  This change
55263         imported from coreutils.
55264
55265         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55266         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
55267         in the 2003-05-30 sync from glibc.
55268
55269         .h files should stand alone, but we shouldn't include <sys/types.h>
55270         if we can get away with just <stddef.h>.
55271
55272         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
55273         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
55274         rather than <sys/types.h>, as we merely need size_t.
55275         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
55276         to get size_t.
55277         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
55278         Include <stdio.h>, to get FILE.
55279         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
55280         memcasecmp.h has included <stddef.h> and all we need is size_t.
55281         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
55282         our interface, instead of including <sys/types.h>
55283
55284 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55285
55286         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
55287         now, as glibc mktime is buggy on non-glibc systems.
55288
55289 2003-06-03  Karl Berry  <karl@gnu.org>
55290
55291         * config/config.sub: update from prep.
55292
55293 2003-06-02  Paul Eggert  <eggert@twinsun.com>
55294
55295         [from coreutils]
55296         Fix some minor time-related bugs with POSIX time arguments.
55297         Some valid time stamps were being rejected (notably -1, and
55298         time stamps before 1900 on 64-bit hosts).  And some invalid
55299         time stamps were being accepted, e.g. September 31.
55300
55301         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
55302         that we can return (time_t) -1 successfully.
55303         * lib/posixtm.c: Likewise.
55304         [HAVE_STDBOOL_H]: Include <stdbool.h>.
55305         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
55306         (t): Remove static var.
55307         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
55308         of static var.  All uses changed.
55309         (year): Do not reject years before 1900; they can occur with
55310         64-bit time_t.
55311         (posix_time_parse): Do not check for out-of-range components;
55312         that is now the caller's responsibility, since our checks were
55313         only approximations.
55314         (posixtime): Use mktime to check for out-of-range components,
55315         since it knows them exactly.
55316         If mktime returns (time_t) -1, check whether an error actually occurred
55317         by invoking localtime on -1.
55318         (main) [TEST_POSIXTIME]: Check for input data errors, and report
55319         posixtime failures better.
55320         Improve the test data (in comments only).
55321
55322 2003-06-02  Karl Berry  <karl@gnu.org>
55323
55324         * config/mkinstalldirs (version): new variable.
55325         (--version): new option.
55326         (usage): improve message.
55327
55328 2003-05-30  Karl Berry  <karl@gnu.org>
55329
55330         * lib/mktime.c: update from libc.
55331
55332 2003-05-30  Bruno Haible  <bruno@clisp.org>
55333
55334         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
55335         * config/config.rpath: Upgrade to gettext-0.12.1.
55336
55337 2003-05-30  Bruno Haible  <bruno@clisp.org>
55338
55339         * m4/gettext.m4: Upgrade to gettext-0.12.1.
55340         * m4/nls.m4: New file, from gettext-0.12.1.
55341         * m4/po.m4: New file, from gettext-0.12.1.
55342         * m4/progtest.m4: Upgrade to gettext-0.12.1.
55343
55344 2003-05-30  Bruno Haible  <bruno@clisp.org>
55345
55346         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
55347         * lib/localcharset.h: Likewise.
55348         * lib/localcharset.c: Likewise.
55349
55350 2003-05-29  Karl Berry  <karl@gnu.org>
55351
55352         * config/config.rpath: update from gettext.
55353
55354 2003-05-28  Paul Eggert  <eggert@twinsun.com>
55355
55356         Assume the headers required for C89 freestanding compilers.
55357         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
55358         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
55359         * m4/human.m4 (gl_HUMAN): Likewise.
55360         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
55361         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
55362         * m4/userspec.m4 (gl_USERSPEC): Likewise.
55363         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
55364         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55365         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
55366
55367 2003-05-28  Paul Eggert  <eggert@twinsun.com>
55368
55369         Assume the headers required for C89 freestanding compilers.
55370         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
55371         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
55372         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
55373         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
55374         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
55375         define, since <limits.h> is guaranteed to do that.
55376         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
55377         * lib/exclude.c: Include <stdbool.h> unconditionally.
55378         * lib/tempname.c: Include <stddef.h> unconditionally.
55379         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
55380         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
55381         <stddef.h> does that.
55382         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
55383         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
55384         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
55385         needed.
55386         * lib/xstrtol.c: Likewise.
55387         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
55388         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
55389
55390         * lib/addext.c (addext): Use assignment rather than cast, to avoid
55391         warnings on some platforms.
55392
55393         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55394         arbitrarily.
55395
55396 2003-05-26  Jim Meyering  <jim@meyering.net>
55397
55398         Merge in a change from coreutils:
55399         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
55400         that is guaranteed to be `no'.  Use `no_such_member' to indicate
55401         that condition, rather than `-1' which is slightly misleading.
55402         Change the name of the cache variable to have the gl_ prefix.
55403         Prompted by a patch from Richard Dawe for DJGPP.
55404
55405 2003-05-24  Karl Berry  <karl@gnu.org>
55406
55407         * config/config.guess: update from prep.
55408
55409 2003-05-22  Karl Berry  <karl@gnu.org>
55410
55411         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
55412
55413 2003-05-20  Karl Berry  <karl@gnu.org>
55414
55415         * config/config.guess: update from prep.
55416
55417 2003-05-18  Karl Berry  <karl@gnu.org>
55418
55419         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
55420         might actually be set by the user.
55421
55422         * config/depcomp, install-sh, mdate-sh: update from automake.
55423
55424 2003-05-17  Bruno Haible  <bruno@clisp.org>
55425
55426         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
55427         invalid expansion for AC_EGREP_CPP.
55428         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
55429         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55430         Suggested by Akim Demaille <akim@epita.fr> in
55431         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
55432
55433 2003-05-12  Jim Meyering  <jim@meyering.net>
55434
55435         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
55436         the space-padded-by-default conversion specifiers, %e, %k, %l.
55437
55438 2003-05-12  Bruno Haible  <bruno@clisp.org>
55439
55440         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
55441         the string is longer than 4 KB.
55442
55443 2003-05-11  Karl Berry  <karl@gnu.org>
55444
55445         * config/config.{guess,sub}: update from prep.
55446
55447 2003-05-09  Bruno Haible  <bruno@clisp.org>
55448
55449         * modules/error: Add m4/strerror_r.m4 to file list.
55450
55451 2003-05-03  Bruno Haible  <bruno@clisp.org>
55452
55453         Upgrade to Unicode-4.0.
55454         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
55455         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
55456         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
55457         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
55458         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
55459         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
55460         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
55461         Change width of U+E0100..U+E01EF from 1 to 0.
55462
55463 2003-04-25  Jim Meyering  <jim@meyering.net>
55464
55465         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
55466         of type size_t, not int.
55467
55468 2003-04-25  Bruno Haible  <bruno@clisp.org>
55469
55470         * lib/copy-file.c: Include <stddef.h>, for size_t.
55471
55472 2003-04-21  Paul Eggert  <eggert@twinsun.com>
55473
55474         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
55475         code which expansion is under static control.  Patch imported from
55476         Akim Demaille's patch to Bison; see
55477         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
55478
55479 2003-04-14  Bruno Haible  <bruno@clisp.org>
55480
55481         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
55482
55483 2003-04-11  Jim Meyering  <jim@meyering.net>
55484
55485         Merge changes from Coreutils.
55486
55487         2003-03-22  Jim Meyering  <jim@meyering.net>
55488
55489         * lib/strftime.c (widen): Cast alloca return value to proper type.
55490
55491         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
55492
55493         From GNU libc.
55494         * lib/strftime.c (my_strftime): Handle very large width
55495         specifications for numeric values correctly.  Improve checks for
55496         overflow.
55497
55498         2003-01-19  Jim Meyering  <jim@meyering.net>
55499
55500         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
55501         definitions.
55502         (nl_get_alt_digit) [! defined my_strftime]: Define.
55503         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
55504         _nl_get_alt_digit and _nl_get_walt_digit.
55505
55506         * lib/strftime.c (my_strftime): Merge in locale-related changes from
55507         libc. These changes have no effect outside of _LIBC.
55508
55509 2003-04-10  Bruno Haible  <bruno@clisp.org>
55510
55511         * modules/findprog: New file.
55512         * MODULES.html.sh (func_all_modules): Add it.
55513
55514 2003-04-10  Bruno Haible  <bruno@clisp.org>
55515
55516         * m4/findprog.m4: New file.
55517         * m4/eaccess.m4: New file.
55518
55519 2003-04-10  Bruno Haible  <bruno@clisp.org>
55520
55521         * lib/findprog.h: New file, from GNU gettext.
55522         * lib/findprog.c: New file, from GNU gettext.
55523
55524 2003-04-05  Jim Meyering  <jim@meyering.net>
55525
55526         Merge changes from Coreutils.
55527
55528         * lib/exclude.h (PARAMS): Remove definition and uses.
55529         * lib/exclude.c: Remove uses of `PARAMS'.
55530
55531         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
55532         Add test-cases for DOS filenames. Declare program_name.
55533         (main): Set up program_name.  Patch by Rich Dawe.
55534
55535         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55536         error from mntctl.
55537         Use mntctl's return value to drive the entry-processing loop, since
55538         we can't rely on the value of the vmt_length member in the last
55539         entry.  On some systems doing so could result in exhausting
55540         virtual memory.  Based in part on a patch from Mike Jetzer.
55541
55542 2003-04-04  Bruno Haible  <bruno@clisp.org>
55543
55544         * modules/linebreak: New file.
55545         * MODULES.html.sh (func_all_modules): Add it.
55546
55547 2003-04-04  Bruno Haible  <bruno@clisp.org>
55548
55549         * m4/linebreak.m4: New file.
55550
55551 2003-04-04  Bruno Haible  <bruno@clisp.org>
55552
55553         * lib/linebreak.h: New file, from GNU gettext.
55554         * lib/linebreak.c: New file, from GNU gettext with slight
55555         modifications.
55556         * lib/lbrkprop.h: New file, from GNU gettext.
55557
55558 2003-04-03  Bruno Haible  <bruno@clisp.org>
55559
55560         * modules/utf8-ucs4: New file.
55561         * modules/utf16-ucs4: New file.
55562         * modules/ucs4-utf8: New file.
55563         * modules/ucs4-utf16: New file.
55564         * MODULES.html.sh (func_all_modules): Add them.
55565
55566 2003-04-03  Bruno Haible  <bruno@clisp.org>
55567
55568         * m4/utf-ucs4.m4: New file.
55569         * m4/ucs4-utf.m4: New file.
55570
55571 2003-04-03  Bruno Haible  <bruno@clisp.org>
55572
55573         * lib/utf8-ucs4.h: New file, from GNU gettext.
55574         * lib/utf16-ucs4.h: New file, from GNU gettext.
55575         * lib/ucs4-utf8.h: New file, from GNU gettext.
55576         * lib/ucs4-utf16.h: New file, from GNU gettext.
55577
55578 2003-04-02  Bruno Haible  <bruno@clisp.org>
55579
55580         * modules/binary-io: New file.
55581         * MODULES.html.sh (func_all_modules): Add it.
55582
55583 2003-04-02  Bruno Haible  <bruno@clisp.org>
55584
55585         * lib/binary-io.h: New file, from GNU gettext.
55586
55587 2003-04-01  Bruno Haible  <bruno@clisp.org>
55588
55589         * modules/pathname: New file.
55590         * MODULES.html.sh (func_all_modules): Add it.
55591
55592 2003-04-01  Bruno Haible  <bruno@clisp.org>
55593
55594         * lib/pathname.h: New file, from GNU gettext.
55595         * lib/concatpath.c: New file, from GNU gettext.
55596
55597 2003-03-30  Bruno Haible  <bruno@clisp.org>
55598
55599         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
55600
55601 2003-03-30  Bruno Haible  <bruno@clisp.org>
55602
55603         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
55604         function chown() doesn't exist.
55605
55606 2003-03-28  Bruno Haible  <bruno@clisp.org>
55607
55608         * modules/copy-file: New file.
55609         * MODULES.html.sh (func_all_modules): Add it.
55610
55611 2003-03-28  Bruno Haible  <bruno@clisp.org>
55612
55613         * m4/copy-file.m4: New file.
55614
55615 2003-03-28  Bruno Haible  <bruno@clisp.org>
55616
55617         * lib/copy-file.h: New file, from GNU gettext.
55618         * lib/copy-file.c: New file, from GNU gettext.
55619
55620 2003-03-18  Jim Meyering  <jim@meyering.net>
55621
55622         * lib/quote.c (quote_n): Fix typo in comment.
55623
55624 2003-03-18  Bruno Haible  <bruno@clisp.org>
55625
55626         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
55627         checking.
55628         * m4/onceonly_2_57.m4: Likewise.
55629
55630 2003-03-17  Bruno Haible  <bruno@clisp.org>
55631
55632         * m4/onceonly.m4: Require autoconf 2.54 or newer.
55633         (m4_quote): Remove macro.
55634         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
55635
55636 2003-03-14  Jim Meyering  <jim@meyering.net>
55637
55638         Merge changes from Coreutils.
55639         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
55640         to be const, in order to avoid warnings.
55641         (obstack_room): Likewise.
55642         (obstack_empty_p): Likewise.
55643
55644 2003-03-14  Bruno Haible  <bruno@clisp.org>
55645
55646         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
55647         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
55648
55649 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55650
55651         Merge changes from Bison.
55652         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
55653         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
55654         when compiling Bison 1.875's `bitset bset = obstack_alloc
55655         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
55656         * lib/hash.c: Include <stdbool.h> unconditionally.
55657
55658 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55659
55660         * m4/onceonly.m4 (m4_quote): New macro.
55661         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
55662         Quote AC_FOREACH variable-expansions properly.
55663
55664 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55665
55666         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
55667
55668 2003-03-09  Paul Eggert  <eggert@twinsun.com>
55669
55670         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
55671         Reported by Bruce Becker; see:
55672         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
55673
55674 2003-03-03  Paul Eggert  <eggert@twinsun.com>
55675             Bruno Haible  <bruno@clisp.org>
55676
55677         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
55678         Reported by John Hughes, see
55679         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
55680
55681 2003-02-20  Bruno Haible  <bruno@clisp.org>
55682
55683         * MODULES.html.sh (func_all_modules): Add poll.
55684
55685 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55686
55687         * modules/poll: New file.
55688
55689 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55690
55691         * lib/poll_.h: New file.
55692         * lib/poll.c: New file.
55693
55694 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55695
55696         * m4/poll.m4: New file.
55697
55698 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55699
55700         * modules/mathl: New file.
55701
55702 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55703
55704         * lib/mathl.h: New file.
55705         * lib/acosl.c: New file.
55706         * lib/asinl.c: New file.
55707         * lib/atanl.c: New file.
55708         * lib/ceill.c: New file.
55709         * lib/cosl.c: New file.
55710         * lib/expl.c: New file.
55711         * lib/floorl.c: New file.
55712         * lib/frexpl.c: New file.
55713         * lib/ldexpl.c: New file.
55714         * lib/logl.c: New file.
55715         * lib/sincosl.c: New file.
55716         * lib/sinl.c: New file.
55717         * lib/sqrtl.c: New file.
55718         * lib/tanl.c: New file.
55719         * lib/trigl.c: New file.
55720         * lib/trigl.h: New file.
55721
55722 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55723
55724         * m4/mathl.m4: New file.
55725
55726 2003-02-18  Bruno Haible  <bruno@clisp.org>
55727
55728         * MODULES.html.sh (func_all_modules): Add mathl.
55729
55730 2003-02-17  Bruno Haible  <bruno@clisp.org>
55731
55732         * modules/mkdtemp: New module.
55733         * MODULES.html.sh (func_all_modules): Add it.
55734
55735 2003-02-17  Bruno Haible  <bruno@clisp.org>
55736
55737         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
55738
55739 2003-02-17  Bruno Haible  <bruno@clisp.org>
55740
55741         * lib/mkdtemp.h: New file, from GNU gettext.
55742         * lib/mkdtemp.c: New file, from GNU gettext.
55743
55744 2003-02-02  Jim Meyering  <jim@meyering.net>
55745
55746         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
55747         e.g. glibc-2.2.93.
55748
55749 2003-01-31  Bruno Haible  <bruno@clisp.org>
55750
55751         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
55752         'rpl_rename'.
55753         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
55754         'rpl_strnlen'.
55755         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
55756         'rpl_strtod'.
55757         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
55758         'rpl_utime'.
55759
55760 2003-01-31  Bruno Haible  <bruno@clisp.org>
55761
55762         * lib/rename.c: #undef rename before defining rpl_rename.
55763         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
55764
55765 2003-01-30  Bruno Haible  <bruno@clisp.org>
55766
55767         * modules/vasnprintf, modules/vasprintf: New modules.
55768         * MODULES.html.sh (func_all_modules): Add them.
55769
55770 2003-01-30  Bruno Haible  <bruno@clisp.org>
55771
55772         * m4/signed.m4: New file, from GNU gettext.
55773         * m4/longdouble.m4: New file, from GNU gettext.
55774         * m4/wchar_t.m4: New file, from GNU gettext.
55775         * m4/wint_t.m4: New file, from GNU gettext.
55776         * m4/vasnprintf.m4: New file.
55777         * m4/vasprintf.m4: New file.
55778
55779 2003-01-30  Bruno Haible  <bruno@clisp.org>
55780
55781         * lib/printf-args.h: New file, from GNU gettext.
55782         * lib/printf-args.c: New file, from GNU gettext.
55783         * lib/printf-parse.h: New file, from GNU gettext.
55784         * lib/printf-parse.c: New file, from GNU gettext.
55785         * lib/vasnprintf.h: New file, from GNU gettext.
55786         * lib/vasnprintf.c: New file, from GNU gettext.
55787         * lib/asnprintf.c: New file, from GNU gettext.
55788         * lib/vasprintf.h: New file, from GNU gettext with modifications.
55789         * lib/vasprintf.c: New file, from GNU gettext.
55790         * lib/asprintf.c: New file, from GNU gettext.
55791
55792 2003-01-29  Bruno Haible  <bruno@clisp.org>
55793
55794         * modules/stpncpy: New module.
55795         * MODULES.html.sh (func_all_modules): Add it.
55796
55797 2003-01-29  Bruno Haible  <bruno@clisp.org>
55798
55799         * m4/stpncpy.m4: New file.
55800
55801 2003-01-29  Bruno Haible  <bruno@clisp.org>
55802
55803         * lib/stpncpy.h: New file, from GNU gettext with modifications.
55804         * lib/stpncpy.c: New file, from GNU gettext with modifications.
55805
55806 2003-01-28  Bruno Haible  <bruno@clisp.org>
55807
55808         * modules/c-ctype: New module.
55809         * MODULES.html.sh (func_all_modules): Add it.
55810
55811 2003-01-28  Bruno Haible  <bruno@clisp.org>
55812
55813         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
55814         Paul Eggert.
55815         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
55816         Paul Eggert.
55817
55818 2003-01-27  Bruno Haible  <bruno@clisp.org>
55819
55820         * modules/xsetenv: New module.
55821         * MODULES.html.sh (func_all_modules): Add it.
55822
55823 2003-01-27  Bruno Haible  <bruno@clisp.org>
55824
55825         * lib/xsetenv.h: New file, from GNU gettext.
55826         * lib/xsetenv.c: New file, from GNU gettext.
55827
55828 2003-01-23  Jim Meyering  <jim@meyering.net>
55829
55830         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
55831         from working on systems without dirfd (at least Irix and OSF1/Tru64).
55832
55833 2003-01-23  Bruno Haible  <bruno@clisp.org>
55834
55835         * modules/minmax: New module.
55836         * MODULES.html.sh (func_all_modules): Add it.
55837
55838 2003-01-23  Bruno Haible  <bruno@clisp.org>
55839
55840         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
55841         Eggert.
55842
55843 2003-01-22  Bruno Haible  <bruno@clisp.org>
55844
55845         * modules/exit: New module.
55846         * MODULES.html.sh (func_all_modules): Add it.
55847
55848 2003-01-22  Bruno Haible  <bruno@clisp.org>
55849
55850         * lib/exit.h: New file, from GNU gettext.
55851
55852 2003-01-19  Bruno Haible  <bruno@clisp.org>
55853
55854         * gnulib-tool: Recognize option --extract-maintainer.
55855         (func_get_maintainer): New function.
55856         * modules/*: Add Maintainer entry.
55857
55858 2003-01-16  Jim Meyering  <jim@meyering.net>
55859
55860         * m4/regex.m4: The `regex' struct is both input and output.
55861         Initialize it before each use.  Patch by Tim Waugh.
55862
55863 2003-01-16  Bruno Haible  <bruno@clisp.org>
55864
55865         * MODULES.html.sh: Add a table of contents. Add the module name as
55866         leftmost column. Add hyperlinks.
55867
55868 2003-01-15  Bruno Haible  <bruno@clisp.org>
55869
55870         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
55871
55872 2003-01-15  Bruno Haible  <bruno@clisp.org>
55873
55874         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
55875         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
55876         suffix.
55877
55878 2003-01-15  Bruno Haible  <bruno@clisp.org>
55879
55880         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
55881
55882 2003-01-15  Bruno Haible  <bruno@clisp.org>
55883
55884         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
55885         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
55886
55887 2003-01-14  Jim Meyering  <jim@meyering.net>
55888
55889         * lib/same.c (same_name): Tweak a comment.
55890
55891 2003-01-14  Bruno Haible  <bruno@clisp.org>
55892
55893         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
55894         when a string comparison is sufficient.
55895
55896 2003-01-14  Bruno Haible  <bruno@clisp.org>
55897
55898         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
55899         'unsigned int'.
55900
55901 2003-01-14  Bruno Haible  <bruno@clisp.org>
55902
55903         * lib/hash-pjw.c: Add comment about low quality of this function.
55904
55905 2003-01-13  Bruno Haible  <bruno@clisp.org>
55906
55907         * modules/stpcpy: Distribute lib/stpcpy.h.
55908         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
55909
55910 2003-01-13  Bruno Haible  <bruno@clisp.org>
55911
55912         * modules/*: Add a description.
55913         * modules/strpbrk: Fix Makefile.am snippet.
55914         * modules/strtoimax: Fix dependencies.
55915         * modules/strtoumax: Likewise.
55916
55917 2003-01-13  Bruno Haible  <bruno@clisp.org>
55918
55919         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
55920         * modules/alloca (Makefile.am): All object files depend on alloca.h.
55921         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
55922
55923 2003-01-13  Bruno Haible  <bruno@clisp.org>
55924
55925         * gnulib-tool (func_create_testdir): Store config/* files in the main
55926         directory.
55927         * config.rpath: Move to ...
55928         * config/config.rpath: ... here.
55929         * modules/gettext: Contains config/config.rpath, not config.rpath.
55930         * modules/iconv: Likewise.
55931
55932 2003-01-12  Paul Eggert  <eggert@twinsun.com>
55933
55934         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55935         to avoid collisions with libcurses and libreadline.
55936
55937         * m4/getstr.m4: Remove.
55938         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
55939
55940 2003-01-12  Paul Eggert  <eggert@twinsun.com>
55941
55942         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55943         to avoid collisions with libcurses and libreadline.
55944
55945         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
55946         * lib/getstr.h, getstr.c: Remove.
55947         * lib/getline.c: Include "getline.h", to check interface.
55948         Move body of old getstr.c here: this defines MIN_CHUNK and
55949         declares getdelim2, which is renamed from getstr.
55950         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
55951
55952         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
55953         All uses changed.
55954         * lib/linebuffer.h: Likewise.
55955         (readline): Remove backward-compatibility macro.
55956
55957 2003-01-12  Paul Eggert  <eggert@twinsun.com>
55958
55959         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55960         to avoid collisions with libcurses and libreadline.
55961         * getstr: Remove.
55962         * MODULES.html.sh: Remove getstr.
55963         * modules/getline: Depend on unlocked-io, not getstr.
55964
55965 2003-01-12  Jim Meyering  <jim@meyering.net>
55966
55967         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
55968
55969 2003-01-10  Bruno Haible  <bruno@clisp.org>
55970
55971         * modules/alloca: Change Makefile.am requirements. Simplify Include
55972         requirements. Add lib/alloca_.h to file list.
55973
55974 2003-01-10  Bruno Haible  <bruno@clisp.org>
55975
55976         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
55977
55978 2003-01-10  Bruno Haible  <bruno@clisp.org>
55979
55980         * lib/alloca_.h: New file.
55981         * lib/getdate.y: Unconditionally include alloca.h.
55982         * lib/makepath.c: Likewise.
55983         * lib/setenv.c: Likewise.
55984         * lib/userspec.c: Likewise.
55985
55986 2003-01-09  Karl Berry  <karl@gnu.org>
55987
55988         * MODULES.html.sh: include `dirname $0` in PATH, to find
55989         gnulib-tool.
55990
55991 2003-01-09  Bruno Haible  <bruno@clisp.org>
55992
55993         * modules/stdbool: Change configure.ac, Makefile.am requirements.
55994         Simplify Include requirements. Add lib/stdbool.h.in to file list.
55995
55996 2003-01-09  Bruno Haible  <bruno@clisp.org>
55997
55998         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
55999
56000 2003-01-09  Bruno Haible  <bruno@clisp.org>
56001
56002         * lib/stdbool.h.in: New file.
56003
56004 2003-01-09  Bruno Haible  <bruno@clisp.org>
56005
56006         * gnulib-tool (func_all_modules): Ignore files ending in ~.
56007         * MODULES.html.sh: Likewise.
56008
56009 2003-01-08  Jim Meyering  <jim@meyering.net>
56010
56011         * lib/full-write.c: Undefine and define-away `const' after inclusion
56012         of errno.h, not before.  Suggestion from Bruno Haible.
56013
56014 2003-01-08  Bruno Haible  <bruno@clisp.org>
56015
56016         * modules/full-read: Depend on full-write.
56017
56018 2003-01-08  Bruno Haible  <bruno@clisp.org>
56019
56020         * lib/safe-read.c: Include specification header first, to ensure its
56021         selfcontainedness.
56022         * lib/full-write.c: Likewise.
56023
56024 2003-01-07  Jim Meyering  <jim@meyering.net>
56025
56026         * lib/full-write.c: Rework so that it may serve to define full_read,
56027         too.
56028         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
56029
56030 2003-01-07  Bruno Haible  <bruno@clisp.org>
56031
56032         * lib/strtoimax.c: Include <stdint.h> as an alternative to
56033         <inttypes.h>.
56034         * lib/xstrtol.h: Likewise.
56035         * lib/xstrtoimax.c: Likewise.
56036         * lib/xstrtoumax.c: Likewise.
56037         * lib/human.h: Likewise.
56038
56039         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
56040         on systems that have <inttypes.h> but not <stdint.h>.
56041
56042 2003-01-07  Bruno Haible  <bruno@clisp.org>
56043
56044         * MODULES.html.sh: Add copyright notice.
56045         (missed_files): Omit CVS directory entries.
56046         (func_module): Make it work with sed-3.02.
56047         * MODULES.txt: Remove file.
56048
56049 2003-01-06  Jim Meyering  <jim@meyering.net>
56050
56051         * lib/version-etc.c: Update year in translatable copyright string.
56052
56053 2003-01-03  Karl Berry  <karl@gnu.org>
56054
56055         * config/config.{guess,sub}: update from prep.
56056
56057 2003-01-02  Karl Berry  <karl@gnu.org>
56058
56059         * doc/COPYING.DOC: belatedly updated to 1.2.
56060
56061 2003-01-01  Karl Berry  <karl@gnu.org>
56062
56063         * gnulib-tool (func_verify_module): report module name $module in
56064         error message, not $1.
56065         * gnulib-tool (create-testdir): don't complain if destdir couldn't
56066         be created, only if it doesn't exist.
56067         * gnulib-tool (last_checkin_date): don't expand the $Date here.
56068
56069 2002-12-31  Paul Eggert  <eggert@twinsun.com>
56070
56071         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
56072
56073 2002-12-31  Paul Eggert  <eggert@twinsun.com>
56074
56075         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
56076         memcmp if strcoll doesn't work.
56077
56078 2002-12-31  Bruno Haible  <bruno@clisp.org>
56079
56080         * lib/utime.c (utime_null): No need to call ftruncate if the file was
56081         nonempty.
56082
56083 2002-12-31  Bruno Haible  <bruno@clisp.org>
56084
56085         * lib/memcoll.c (STRCOLL): New macro.
56086         (memcoll): Use it.
56087
56088 2002-12-31  Bruno Haible  <bruno@clisp.org>
56089
56090         * lib/localcharset.h: New file.
56091         * lib/localcharset.c: Include it.
56092         * lib/unicodeio.c: Likewise.
56093
56094 2002-12-31  Bruno Haible  <bruno@clisp.org>
56095
56096         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
56097         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
56098
56099 2002-12-31  Bruno Haible  <bruno@clisp.org>
56100
56101         * lib/getline.h: Include <stddef.h>, for size_t.
56102
56103         * lib/unicodeio.h: Include <stddef.h>, for size_t.
56104         * lib/unicodeio.c: Don't include <stddef.h>.
56105
56106 2002-12-31  Bruno Haible  <bruno@clisp.org>
56107
56108         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
56109         HAVE_TM_ZONE.
56110
56111 2002-12-24  Karl Berry  <karl@gnu.org>
56112
56113         * config/config.guess: update from prep.
56114
56115 2002-12-24  Bruno Haible  <bruno@clisp.org>
56116
56117         General infrasructure.
56118         * m4/README: Rewritten.
56119         * m4/onceonly.m4: New file.
56120         * m4/onceonly_2_57.m4: New file.
56121
56122         Module atexit.
56123         * m4/atexit.m4: New file.
56124
56125         Module strtod.
56126         * m4/strtod.m4: New file.
56127
56128         Module strtol.
56129         * m4/strtol.m4: New file.
56130
56131         Module strtoul.
56132         * m4/strtoul.m4: New file.
56133
56134         Module memchr.
56135         * m4/memchr.m4: New file.
56136
56137         Module memcmp.
56138         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
56139         (jm_FUNC_MEMCMP): Invoke it.
56140
56141         Module memcpy.
56142         * m4/memcpy.m4: New file.
56143
56144         Module memmove.
56145         * m4/memmove.m4: New file.
56146
56147         Module memset.
56148         * m4/memset.m4: New file.
56149
56150         Module strcspn.
56151         * m4/strcspn.m4: New file.
56152
56153         Module strpbrk.
56154         * m4/strpbrk.m4: New file.
56155
56156         Module strstr.
56157         * m4/strstr.m4: New file.
56158
56159         Module strerror.
56160         * m4/strerror.m4: New file.
56161
56162         Module mktime.
56163         * m4/mktime.m4: Renamed from jm-mktime.m4.
56164         (gl_PREREQ_MKTIME): New macro.
56165         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
56166
56167         Module malloc.
56168         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
56169         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
56170         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
56171
56172         Module realloc.
56173         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
56174         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
56175         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
56176
56177         Module strftime.
56178         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
56179         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
56180         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
56181         gl_TM_GMTOFF.
56182         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
56183
56184         Module xalloc.
56185         * m4/xalloc.m4: New file.
56186
56187         Module alloca.
56188         * m4/alloca.m4: New file.
56189
56190         Module putenv.
56191         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
56192         (jm_FUNC_PUTENV): Invoke it.
56193
56194         Module setenv.
56195         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
56196         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
56197         when invoked twice.
56198         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
56199         gt_FUNC_SETENV.
56200
56201         Module memrchr.
56202         * m4/memrchr.m4: New file.
56203
56204         Module stpcpy.
56205         * m4/stpcpy.m4: New file.
56206
56207         Module strcase.
56208         * m4/strcase.m4: New file.
56209
56210         Module strdup.
56211         * m4/strdup.m4: New file.
56212
56213         Module strnlen.
56214         * m4/strnlen.m4: New file.
56215
56216         Module strndup.
56217         * m4/strndup.m4: New file.
56218
56219         Module xstrtod.
56220         * m4/xstrtod.m4: New file.
56221
56222         Module xstrtol.
56223         * m4/xstrtol.m4: New file.
56224
56225         Module getdate.
56226         * m4/getdate.m4: New file.
56227
56228         Module unlocked-io.
56229         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
56230         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
56231         * m4/jm-glibc-io.m4n: Remove file.
56232
56233         Module long-options.
56234         * m4/long-options.m4: New file.
56235
56236         Module md5.
56237         * m4/md5.m4: New file.
56238
56239         Module sha.
56240         * m4/sha.m4: New file.
56241
56242         Module getstr.
56243         * m4/getstr.m4: New file.
56244
56245         Module getline.
56246         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
56247         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
56248         <sys/types.h>, for size_t. Use the function name gnu_getline, not
56249         simply getline. Infoke gl_PREREQ_GETLINE.
56250
56251         Module obstack.
56252         * m4/obstack.m4: New file.
56253
56254         Module hash.
56255         * m4/hash.m4: New file.
56256
56257         Module readtokens.
56258         * m4/readtokens.m4: New file.
56259
56260         Module strverscmp.
56261         * m4/strverscmp.m4: New file.
56262
56263         Module stdbool.
56264         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
56265         OSF/1.
56266
56267         Module strtoll.
56268         * m4/strtoll.m4: New file.
56269
56270         Module strtoull.
56271         * m4/strtoull.m4: New file.
56272
56273         Module strtoimax.
56274         * m4/strtoimax.m4: New file.
56275
56276         Module strtoumax.
56277         * m4/strtoumax.m4: New file.
56278
56279         Module xstrtoimax.
56280         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
56281         jm_AC_PREREQ_XSTRTOIMAX.
56282         Moved the strtol prerequisites to strtol.m4.
56283         Moved the strtoll prerequisites to strtoll.m4.
56284         Moved the strtoimax prerequisites to strtoimax.m4.
56285
56286         Module xstrtoumax.
56287         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
56288         jm_AC_PREREQ_XSTRTOUMAX.
56289         Moved the strtoul prerequisites to strtoul.m4.
56290         Moved the strtoull prerequisites to strtoull.m4.
56291         Moved the strtoumax prerequisites to strtoumax.m4.
56292
56293         Module chown.
56294         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
56295         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
56296
56297         Module dup2.
56298         * m4/dup2.m4: New file.
56299
56300         Module ftruncate.
56301         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
56302         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
56303
56304         Module getgroups.
56305         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
56306         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
56307
56308         Module gettimeofday.
56309         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
56310         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
56311         gl_PREREQ_GETTIMEOFDAY.
56312
56313         Module mkdir.
56314         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
56315         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
56316
56317         Module mkstemp.
56318         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
56319         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
56320         jm_AC_TYPE_UINTMAX_T.
56321         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
56322
56323         Module stat.
56324         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
56325         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
56326
56327         Module lstat.
56328         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
56329         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
56330
56331         Module timespec.
56332         * m4/timespec.m4 (gl_TIMESPEC): New macro.
56333         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
56334         * m4/st_mtim.m4: Indentation.
56335
56336         Module nanosleep.
56337         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
56338         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
56339         gl_PREREQ_NANOSLEEP.
56340
56341         Module regex.
56342         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
56343         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
56344         (gl_REGEX): New macro.
56345
56346         Module rename.
56347         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
56348         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
56349
56350         Module rmdir.
56351         * m4/rmdir.m4: New file.
56352
56353         Module utime.
56354         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
56355         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
56356         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
56357
56358         Module dirname.
56359         * m4/dirname.m4: New file.
56360
56361         Module getopt.
56362         * m4/getopt.m4: New file.
56363
56364         Module unistd-safer.
56365         * m4/unistd-safer.m4: New file.
56366
56367         Module fnmatch.
56368         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
56369         declaration.
56370         (gl_PREREQ_FNMATCH_EXTRA): New macro.
56371         (gl_FUNC_FNMATCH_POSIX): New macro.
56372         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
56373         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
56374         simply fnmatch.
56375
56376         Module exclude.
56377         * m4/exclude.m4: New file.
56378
56379         Module human.
56380         * m4/human.m4: New file.
56381
56382         Module acl.
56383         * m4/acl.m4: Nop.
56384
56385         Module backupfile.
56386         * m4/backupfile.m4: New file.
56387         * m4/d-ino.m4: Indentation.
56388
56389         Module fsusage.
56390         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
56391         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
56392         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
56393
56394         Module dirfd.
56395         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
56396         requirements.
56397
56398         Module euidaccess.
56399         * m4/euidaccess.m4: New file.
56400
56401         Module file-type.
56402         * m4/file-type.m4: New file.
56403
56404         Module fileblocks.
56405         * m4/fileblocks.m4: New file.
56406
56407         Module filemode.
56408         * m4/filemode.m4: New file.
56409
56410         Module isdir.
56411         * m4/isdir.m4: New file.
56412
56413         Module lchown.
56414         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
56415         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
56416
56417         Module makepath.
56418         * m4/makepath.m4: New file.
56419
56420         Module modechange.
56421         * m4/modechange.m4: New file.
56422
56423         Module mountlist.
56424         * m4/mountlist.m4: New file.
56425         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
56426         Indentation.
56427
56428         Module path-concat.
56429         * m4/path-concat.m4: New file.
56430
56431         Module pathmax.
56432         * m4/pathmax.m4: New file.
56433
56434         Module same.
56435         * m4/same.m4: New file.
56436
56437         Module save-cwd.
56438         * m4/save-cwd.m4: New file.
56439
56440         Module savedir.
56441         * m4/savedir.m4: New file.
56442
56443         Module xgetcwd.
56444         * m4/xgetcwd.m4: New file.
56445         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
56446
56447         Module xreadlink.
56448         * m4/xreadlink.m4: New file.
56449
56450         Module safe-read.
56451         * m4/safe-read.m4: New file.
56452
56453         Module safe-write.
56454         * m4/safe-write.m4: New file.
56455
56456         Module closeout.
56457         * m4/closeout.m4: New file.
56458
56459         Module stdio-safer.
56460         * m4/stdio-safer.m4: New file.
56461
56462         Module getpass.
56463         * m4/getpass.m4: New file.
56464
56465         Module getugroups.
56466         * m4/getugroups.m4: New file.
56467
56468         Module group-member.
56469         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
56470         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
56471
56472         Module idcache.
56473         * m4/idcache.m4: New file.
56474
56475         Module userspec.
56476         * m4/userspec.m4: New file.
56477
56478         Module gettime.
56479         * m4/clock_time.m4: New file.
56480         * m4/gettime.m4: New file.
56481
56482         Module settime.
56483         * m4/settime.m4: New file.
56484
56485         Module posixtm.
56486         * m4/posixtm.m4: New file.
56487
56488         Module gethostname.
56489         * m4/gethostname.m4: New file.
56490
56491         Module canon-host.
56492         * m4/canon-host.m4: New file.
56493
56494         Module gettext.
56495         * m4/codeset.m4: New file, from gettext-0.11.5.
56496         * m4/gettext.m4: New file, from gettext-0.11.5.
56497         * m4/glibc21.m4: New file, from gettext-0.11.5.
56498         * m4/iconv.m4: New file, from gettext-0.11.5.
56499         * m4/intdiv0.m4: New file, from gettext-0.11.5.
56500         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
56501         * m4/inttypes.m4: New file, from gettext-0.11.5.
56502         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
56503         * m4/isc-posix.m4: New file, from gettext-0.11.5.
56504         * m4/lcmessage.m4: New file, from gettext-0.11.5.
56505         * m4/lib-ld.m4: New file, from gettext-0.11.5.
56506         * m4/lib-link.m4: New file, from gettext-0.11.5.
56507         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
56508         * m4/progtest.m4: New file, from gettext-0.11.5.
56509         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
56510         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
56511         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
56512
56513         Module localcharset.
56514         * m4/localcharset.m4: New file.
56515
56516         Module hard-locale.
56517         * m4/hard-locale.m4: New file.
56518
56519         Module mbswidth.
56520         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
56521         onceonly macros.
56522         * m4/mbrtowc.m4: Add comment.
56523
56524         Module memcasecmp.
56525         * m4/memcasecmp.m4: New file.
56526
56527         Module memcoll.
56528         * m4/memcoll.m4: New file.
56529
56530         Module unicodeio.
56531         * m4/unicodeio.m4: New file.
56532
56533         Module rpmatch.
56534         * m4/rpmatch.m4: New file.
56535
56536         Module yesno.
56537         * m4/yesno.m4: New file.
56538
56539         Module exitfail.
56540         * m4/exitfail.m4: New file.
56541
56542         Module c-stack.
56543         * m4/c-stack.m4 (gl_C_STACK): New macro.
56544         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
56545
56546         Module error.
56547         * m4/error.m4 (gl_ERROR): New macro.
56548         (jm_PREREQ_ERROR): Use onceonly macros.
56549
56550         Module fatal.
56551         * m4/fatal.m4: New file.
56552
56553         Module getloadavg.
56554         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
56555         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
56556
56557         Module getpagesize.
56558         * m4/getpagesize.m4: New file.
56559
56560         Module getusershell.
56561         * m4/getusershell.m4: New file.
56562
56563         Module physmem.
56564         * m4/physmem.m4: New file.
56565
56566         Module posixver.
56567         * m4/posixver.m4: New file.
56568
56569         Module quotearg.
56570         * m4/quotearg.m4: New file.
56571
56572         Module quote.
56573         * m4/quote.m4: New file.
56574
56575         Module readutmp.
56576         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
56577
56578         Module sig2str.
56579         * m4/sig2str.m4: New file.
56580
56581         Other.
56582         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
56583         ulonglong.m4.
56584         * m4/intmax_t.m4: New file.
56585         * m4/d-type.m4: Indentation.
56586         * m4/jm-macros.m4: Update.
56587         * m4/prereq.m4 (jm_PREREQ): Update.
56588         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
56589         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
56590         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
56591         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
56592         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
56593         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
56594         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
56595         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
56596         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
56597         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
56598         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
56599         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
56600         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
56601         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
56602         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
56603         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
56604         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
56605         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
56606         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
56607
56608 2002-12-24  Bruno Haible  <bruno@clisp.org>
56609
56610         * MODULES.txt: Update according to m4/ changes.
56611
56612         Module gettext.
56613         * config.rpath: New file, from gettext-0.11.5.
56614
56615         * modules/*: New module descriptions.
56616         * gnulib-tool: New file.
56617         * MODULES.html.sh: New file.
56618
56619 2002-12-21  Karl Berry  <karl@gnu.org>
56620
56621         * doc/fdl.texi: update to version 1.2.
56622
56623 2002-12-19  Karl Berry  <karl@gnu.org>
56624
56625         * config/config.guess: update from prep.
56626
56627 2002-12-18  Bruno Haible  <bruno@clisp.org>
56628
56629         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
56630         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
56631
56632 2002-12-17  Bruno Haible  <bruno@clisp.org>
56633
56634         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
56635         stdlib.h, string.h.
56636
56637 2002-12-17  Bruno Haible  <bruno@clisp.org>
56638
56639         * lib/canon-host.c (strdup): Remove unused declaration.
56640
56641         * lib/fsusage.c: Include full_read.h.
56642         (get_fs_usage): Use full_read instead of safe_read.
56643
56644         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
56645
56646 2002-12-12  Karl Berry  <karl@gnu.org>
56647
56648         * config/config.guess: update from prep.
56649
56650 2002-12-11  Bruno Haible  <bruno@clisp.org>
56651
56652         * m4/setenv.m4: New file, from gettext-0.11.5.
56653
56654 2002-12-11  Bruno Haible  <bruno@clisp.org>
56655
56656         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
56657         not unsetenv().
56658         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
56659         modifications:
56660
56661         2002-12-11  Bruno Haible  <bruno@clisp.org>
56662
56663                 * setenv.c (alloca): Fall back to malloc.
56664                 (freea): New macro.
56665                 (setenv): Use freea() to free memory allocated with alloca().
56666
56667         2002-11-13  Bruno Haible  <bruno@clisp.org>
56668
56669                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
56670                 function declarations.
56671                 * unsetenv.c (unsetenv): Likewise.
56672
56673         2002-03-04  Bruno Haible  <bruno@clisp.org>
56674
56675                 Portability to AIX 4.3.3.
56676                 * unsetenv.c: New file, extracted from setenv.c.
56677                 * setenv.c: Move the unsetenv() function to unsetenv.c.
56678
56679         2001-12-20  Bruno Haible  <bruno@clisp.org>
56680
56681                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
56682                 use malloc instead. For SunOS 4.
56683
56684         2001-12-11  Bruno Haible  <bruno@clisp.org>
56685
56686                 * setenv.c: Declare alloca.
56687                 (compar_fn_t): New typedef.
56688                 (KNOWN_VALUE, STORE_VALUE): Use it.
56689
56690         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
56691         setenv.h.
56692
56693 2002-12-10  Paul Eggert  <eggert@twinsun.com>
56694
56695         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
56696         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
56697         Choose values that are less likely to collide with system fnmatch
56698         options.
56699         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
56700         defined (e.g., a pure POSIX system).
56701         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
56702         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
56703
56704 2002-12-06  Paul Eggert  <eggert@twinsun.com>
56705
56706         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
56707         a pain in practice to deal with generated m4 files.  This change
56708         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
56709
56710         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
56711         and jm-glibc-io.m4, as they are no longer a special case.
56712         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
56713         kludge and the auto-generation stuff.  Check only whether the
56714         functions are declared, not whether they exist, since older hosts
56715         that don't declare the functions can't use the optimization anyway.
56716
56717 2002-12-06  Jim Meyering  <jim@meyering.net>
56718
56719         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
56720
56721         Merge in changes from libc's misc/error.c, in preparation
56722         for the merge of gnulib's changes back into libc.
56723
56724         * lib/error.c (_): Define only if not already defined.
56725         Move definition to follow all #include directives.
56726         Include unlocked-io.h only if !_LIBC.
56727         [_LIBC]: Include <libio/libioP.h>.
56728         [USE_IN_LIBIO]: Include <libio/iolibio.h>
56729         (fflush): Tweak definition to use INTUSE.
56730         (putc): Define.
56731
56732 2002-12-05  Paul Eggert  <eggert@twinsun.com>
56733
56734         * lib/alloca.c [defined emacs]: Include "lisp.h".
56735         (xalloc_die) [defined emacs]: New macro.
56736         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
56737         [! defined emacs]: Include <xalloc.h>.
56738         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
56739         (pointer): Typedef to POINTER_TYPE *.
56740         (malloc): Remove decl; we now always use xmalloc.
56741         (alloca): Use old-style definition, since Emacs needs this.
56742         Check for arithmetic overflow when computing combined size.
56743
56744 2002-12-04  Paul Eggert  <eggert@twinsun.com>
56745
56746         Do not generate unlocked-io.h automatically, since it's easier to
56747         maintain it by hand.
56748
56749         * lib/unlocked-io.h: New file, from GNU diffutils,
56750         but with proper copyright notice and attribution.
56751         * lib/gen-uio: Remove.
56752         * lib/Makefile.am: Add copyright notice.
56753         (libfetish_a_SOURCES): Add unlocked-io.h.
56754         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
56755         (DISTCLEANFILES, io_functions): Remove macros.
56756         (EXTRA_DIST): Remove gen_uio.
56757         (unlocked-io.h): Remove rule.
56758
56759 2002-12-04  Jim Meyering  <jim@meyering.net>
56760
56761         Reflect the fact that stat.c and lstat.c are no longer generated.
56762         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
56763         (DISTCLEANFILES): Likewise.
56764         (EXTRA_DIST): Likewise.
56765         (all_local): Don't depend on stat.c or lstat.c.
56766         (stat.c, lstat.c): Remove rules.
56767         (EXTRA_DIST): Remove xstat.in.
56768
56769         * lib/xstat.in: Remove file.  Contents moved into stat.c.
56770         * lib/stat.c: New file.  Contents mostly from xstat.in.
56771         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
56772         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
56773
56774         * lib/safe-read.c: Rework so that it may serve to define safe_write,
56775         too.
56776         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
56777
56778 2002-12-03  Jim Meyering  <jim@meyering.net>
56779
56780         * lib/safe-read.c, safe-write.c: Change variable names and comments,
56781         but not semantics, to minimize the differences between these two files.
56782         (safe_read): Change comment to mention SAFE_READ_ERROR.
56783
56784         * lib/safe-read.c (IS_EINTR): Define.
56785         (safe_read): Use IS_EINTR in place of in-function cpp directives.
56786
56787 2002-12-02  Jim Meyering  <jim@meyering.net>
56788
56789         * lib/safe-read.c (EINTR): Define.
56790         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
56791         (INT_MAX): Provide fallback.
56792         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
56793
56794         * lib/safe-read.h (SAFE_READ_ERROR): Define.
56795
56796 2002-12-02  Bruno Haible  <bruno@clisp.org>
56797
56798         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
56799         Define, taken from safe-read.c.
56800         (INT_MAX): Provide fallback.
56801         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
56802         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
56803
56804         * lib/safe-read.c (EINTR): Remove definition.
56805         (safe_read): Don't use EINTR if it is absent.
56806
56807 2002-12-01  Jim Meyering  <jim@meyering.net>
56808
56809         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
56810         zero.
56811         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
56812
56813 2002-11-27  Paul Eggert  <eggert@twinsun.com>
56814
56815         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
56816         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
56817         with `if (! (value < limit)) abort ();', for readability.
56818
56819 2002-11-26  Karl Berry  <karl@gnu.org>
56820
56821         * lib/strdup.c: copy from libc again, with jim's ok.
56822         * lib/.cppi-disable: re-add strdup.c
56823
56824 2002-11-25  Karl Berry  <karl@gnu.org>
56825
56826         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
56827         instead of "strtol.c".
56828
56829 2002-11-25  Karl Berry  <karl@gnu.org>
56830
56831         * config/install-sh: update from automake for variable quoting, $0 in
56832         error msgs, etc.
56833
56834         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
56835         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
56836         entry.
56837
56838 2002-11-25  Jim Meyering  <jim@meyering.net>
56839
56840         * lib/mktime.c: Sync from libc, now that it has the latest fix.
56841
56842 2002-11-24  Karl Berry  <karl@gnu.org>
56843
56844         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
56845         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
56846
56847 2002-11-24  Jim Meyering  <jim@meyering.net>
56848
56849         Update from coreutils:
56850
56851         * lib/mktime.c: Merge in changes from libc.
56852
56853         Avoid a link-time failure on some Linux systems.
56854         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
56855         (otherwise).
56856         (__mon_yday): Declare with the STATIC attribute.
56857         (__mktime_internal): Likewise.
56858         Based on a report from Greg Schafer.
56859
56860 2002-11-23  Jim Meyering  <jim@meyering.net>
56861
56862         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
56863         Use `unsigned', not `int', as type of index.
56864
56865         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
56866
56867         * lib/fsusage.c: Remove unneeded parentheses around operands of
56868         `defined'.
56869
56870 2002-11-22  Paul Eggert  <eggert@twinsun.com>
56871
56872         * lib/quotearg.h: Allow multiple inclusion by surrounding with
56873         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
56874         so that we can be included first.
56875         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
56876         * lib/quotearg.c: Include quotearg.h immediately after config.h.
56877         No need to include stddef.h or sys/types.h any more.
56878         Surround local include files with "", not "<>".
56879         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
56880         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
56881         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
56882         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
56883         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
56884         (ISPRINT): Remove; no longer needed now that we assume C89.
56885
56886         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
56887         Preserve errno.
56888
56889         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
56890         quotearg_char): Use SIZE_MAX rather than
56891         (size_t) -1 when we are talking about "infinity".
56892
56893         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
56894
56895 2002-11-22  Paul Eggert  <eggert@twinsun.com>
56896
56897         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
56898         hint that one should use `if (! x) abort ();' rather than `assert
56899         (x);', and anyway it's one less thing to worry about configuring.
56900         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
56901         hash_rehash, hash_insert): Use abort rather than assert.
56902
56903 2002-11-22  Bruno Haible  <bruno@clisp.org>
56904
56905         * lib/safe-read.h: Assume C89. Add comments.
56906         (safe_read): Change return type to size_t.
56907         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
56908         byte counts > SSIZE_MAX correctly.
56909         * lib/safe-write.h: New file.
56910         * lib/safe-write.c: New file.
56911         * lib/full-read.h: New file.
56912         * lib/full-read.c: New file.
56913         * lib/full-write.h: Assume C89. Add comments.
56914         * lib/full-write.c: Include safe-write.h.
56915         (full_write): Rewritten to use safe_write.
56916         Suggested by Jim Meyering and Paul Eggert.
56917
56918 2002-11-21  Jim Meyering  <jim@meyering.net>
56919
56920         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
56921
56922         Merge in changes from the coreutils.
56923
56924         2002-09-25  Paul Eggert  <eggert@twinsun.com>
56925         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
56926         <stdint.h>.
56927         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
56928         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
56929         int.  Work more efficiently if X is the same width as uintmax_t.
56930         Do not compare X to -1, to avoid bogus compiler warning.
56931         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
56932         Don't assume that f_frsize and f_bsize are the same type.
56933
56934         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
56935         warning on FreeBSD.
56936
56937         * lib/makepath.c (make_path): Restore umask *before* creating the final
56938         component.
56939         (make_path): Minor reformatting.
56940
56941         * lib/xmalloc.c: Adjust to work with new autoconf macros,
56942         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
56943         HAVE_MALLOC/HAVE_REALLOC.
56944
56945         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
56946         dummy ones.  At least on GNU/Linux systems, `auto' means something
56947         else.
56948         From Michael Stone.
56949
56950 2002-11-21  Bruno Haible  <bruno@clisp.org>
56951
56952         Remove case insensitive option matching.
56953         * lib/argmatch.h (argcasematch): Remove declaration.
56954         (ARGCASEMATCH): Remove macro.
56955         (__xargmatch_internal): Remove case_sensitive argument.
56956         (XARGMATCH): Update.
56957         (XARGCASEMATCH): Remove macro.
56958         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
56959         case_sensitive argument.
56960         (argcasematch): Remove function.
56961         (__xargmatch_internal): Remove case_sensitive argument.
56962         (main): Use XARGMATCH instead of XARGCASEMATCH.
56963
56964         * lib/xmalloc.c: Change compile-time error message. Add comment about
56965         required autoconf version.
56966
56967 2002-11-20  Paul Eggert  <eggert@twinsun.com>
56968
56969         Merge argmatch cleanups from Bison.  Assume C89.
56970
56971         * lib/argmatch.c: Include config.h here, not in argmatch.h.
56972         Include stdlib.h, for EXIT_FAILURE.
56973         Always include <string.h>, since we assume C89.
56974         (EXIT_FAILURE): Remove pre-C89 bug workaround.
56975         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
56976         Include <stddef.h> instead, since it's all we need for size_t.
56977         (PARAMS): Remove.  All uses removed.
56978         (ARRAY_CARDINALITY): Do not bother to #undef.
56979         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
56980         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
56981         Remove unnecessary parentheses.
56982         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
56983         Insert necessary parentheses.
56984         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
56985         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
56986
56987 2002-11-19  Bruno Haible  <bruno@clisp.org>
56988
56989         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
56990         * lib/mbswidth.h: Include <stddef.h>, for size_t.
56991
56992         * lib/mbswidth.h (PARAMS): Remove macro.
56993         (mbswidth, mbsnwidth): Use ANSI C function declarations.
56994         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
56995
56996         * lib/gcd.h (PARAMS): Remove macro.
56997         (gcd): Use ANSI C function declarations.
56998         * lib/gcd.c (gcd): Likewise.
56999
57000 2002-11-15  Bruno Haible  <bruno@clisp.org>
57001
57002         * lib/strcspn.c: Include <stddef.h>.
57003         (strcspn): Use ANSI C function declaration. Change return type to
57004         size_t. Use NULL.
57005         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
57006         (strpbrk): Use NULL.
57007         * lib/strpbrk.h (PARAMS): Remove macro.
57008         (strpbrk): Use ANSI C function declaration.
57009         * lib/strstr.c: Don't include <sys/types.h>.
57010         * lib/strstr.h (PARAMS): Remove macro.
57011         (strstr): Use ANSI C function declarations.
57012
57013 2002-11-14  Karl Berry  <karl@gnu.org>
57014
57015         * config/mkinstalldirs: `do' on separate line, instead of
57016         `for var; do'.
57017
57018 2002-11-06  Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
57021         * lib/gcd.c (gcd): Likewise.
57022
57023 2002-11-05  Bruno Haible  <bruno@clisp.org>
57024
57025         * lib/gcd.h: New file, from gettext-0.11.5.
57026         * lib/gcd.c: New file, from gettext-0.11.5.
57027
57028 2002-11-05  Bruno Haible  <bruno@clisp.org>
57029
57030         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57031         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57032         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57033         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57034
57035         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
57036         <libintl.h>.
57037         * lib/makepath.c: Include gettext.h instead of <locale.h> and
57038         <libintl.h>.
57039
57040         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
57041         * lib/human.c: Include gettext.h instead of <libintl.h>.
57042         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
57043         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
57044         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
57045         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
57046         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
57047         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
57048         (textdomain): Remove definition.
57049         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
57050
57051         * lib/long-options.c: Remove include of <libintl.h> and definition of
57052         _.
57053         * lib/same.c: Remove include of <libintl.h> and definition of _.
57054
57055 2002-11-04  Owen Taylor  <otaylor@redhat.com>
57056
57057         * lib/config.charset: A few additions for Solaris.
57058
57059 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
57060
57061         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
57062         * lib/localcharset.c (locale_charset): Declare as extern "C".
57063
57064 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
57065
57066         * lib/config.charset: msdos in uk_UA uses CP1125.
57067
57068 2002-11-04  Bruno Haible  <bruno@clisp.org>
57069
57070         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
57071         * lib/strcase.h: New file, from GNU gettext-0.11.5.
57072         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
57073         * lib/strstr.h: New file, from GNU gettext-0.11.5.
57074         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
57075
57076 2002-11-04  Bruno Haible  <bruno@clisp.org>
57077
57078         * lib/localcharset.c (locale_charset): Don't return an empty string.
57079
57080 2002-11-04  Bruno Haible  <bruno@clisp.org>
57081
57082         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
57083         aliases.
57084
57085 2002-11-04  Bruno Haible  <bruno@clisp.org>
57086
57087         * lib/config.charset: Update for newest glibc. Add canonical names
57088         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
57089
57090 2002-11-04  Bruno Haible  <bruno@clisp.org>
57091
57092         * lib/config.charset: Add support for NetBSD.
57093
57094 2002-11-04  Bruno Haible  <bruno@clisp.org>
57095
57096         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
57097
57098 2002-11-01  Bruno Haible  <bruno@clisp.org>
57099
57100         * configure.in: Add AC_CONFIG_AUX_DIR call.
57101         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
57102         test/Makefile.
57103         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
57104
57105 2002-09-28  Karl Berry  <karl@gnu.org>
57106
57107         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
57108         installed automake until the next release, since changes have been
57109         made.
57110
57111 2002-09-25  Karl Berry  <karl@gnu.org>
57112
57113         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
57114         * lib/getopt*: copy from libc/posix.
57115         * lib/gettext.h: copy from gettext.
57116         * lib/.cppi-disable: add strdup.c, gettext.h.
57117
57118 2002-09-25  Karl Berry  <karl@gnu.org>
57119
57120         * config/srclist.txt: enable gettext.h check.
57121         * config/config.{guess,sub}: update from prep.
57122         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
57123                 from automake 1.6.3.
57124         See srclist*.
57125
57126 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
57127
57128         * regex.c (PATFETCH): Remove the translating fetch.
57129         (PATFETCH_RAW): Rename to PATFETCH.
57130         (set_image_of_range): New fun.
57131         (SET_RANGE_TABLE_WORK_AREA): Use it.
57132         (regex_compile): Don't translate the pattern chars so eagerly.
57133         Only do it when inserting an `exactn' bytecode or when handling
57134         a char-range.
57135         (mutually_exclusive_p): Avoid empty statement.
57136
57137 2002-07-06  Jim Meyering  <meyering@lucent.com>
57138
57139         * m4/README: Don't mention Makefile.am.in.
57140         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
57141
57142 2002-07-01  Jim Meyering  <meyering@lucent.com>
57143
57144         * lib/c-stack.c: Include sys/time.h.
57145         From Volker Borchert.
57146
57147 2002-06-26  Paul Eggert  <eggert@twinsun.com>
57148
57149         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
57150
57151 2002-06-26  Paul Eggert  <eggert@twinsun.com>
57152
57153         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
57154         New macro.  Use it uniformly instead of
57155         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
57156         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
57157         reported by Vin Shelton.
57158
57159 2002-06-22  Paul Eggert  <eggert@twinsun.com>
57160
57161         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
57162         Do not assume SA_SIGINFO behavior.
57163         Bug reported by Jim Meyering on NetBSD 1.5.2.
57164
57165 2002-06-22  Jim Meyering  <meyering@lucent.com>
57166
57167         * m4/c-stack.m4: New file, from diffutils-2.8.2.
57168         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
57169
57170         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
57171         now that configure.ac uses AC_GNU_SOURCE.
57172         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
57173         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
57174
57175         Update to latest tools.  Suggestions from Paul Eggert.
57176         * m4/stdbool.m4: New file, from diffutils-2.8.2.
57177         * m4/gnu-source.m4: Update from diffutils-2.8.2.
57178         * m4/fnmatch.m4: Likewise.
57179         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
57180         to AC_HEADER_STDBOOL
57181
57182 2002-06-22  Jim Meyering  <meyering@lucent.com>
57183
57184         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
57185         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
57186
57187 2002-06-22  Jim Meyering  <meyering@lucent.com>
57188
57189         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
57190
57191         * lib/exitfail.c, exitfail.h: Likewise.
57192         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
57193
57194         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
57195         of fnmatch.h.
57196         (EXTRA_DIST): Add fnmatch_loop.c.
57197         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
57198
57199         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
57200         * lib/fnmatch.c: Update from diffutils-2.8.2.
57201         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
57202         * lib/fnmatch.h: Remove file.
57203
57204 2002-06-21  Jim Meyering  <meyering@lucent.com>
57205
57206         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
57207         * m4/mbrtowc.m4: Likewise.
57208
57209         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
57210         * m4/mbswidth.m4: Reflect name change:
57211         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
57212         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
57213
57214         * m4/lib-link.m4: Update from gettext-0.11.2.
57215         * m4/gettext.m4: Likewise.
57216
57217         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
57218         From Alfred M. Szmidt.
57219
57220 2002-06-18  Paul Eggert  <eggert@twinsun.com>
57221
57222         * lib/file-type.h: Report an error if neither S_ISREG nor
57223         S_IFREG is defined, instead of using a test specific to glibc
57224         2.2.  This should be safe, since POSIX requires S_ISREG and
57225         Unix Version 7 had S_IFREG.  We don't need to check for
57226         <sys/types.h> since we don't use any symbols that it defines.
57227
57228 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
57229
57230         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
57231         $@-t, so that each temporary file name is unique and valid in the first
57232         8 characters, for operation under DOS.
57233
57234 2002-06-15  Paul Eggert  <eggert@twinsun.com>
57235
57236         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
57237
57238 2002-06-15  Jim Meyering  <meyering@lucent.com>
57239
57240         Work even with DJGPP 2.03, which lacks support for symlinks.
57241         From Richard Dawe.
57242         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
57243         is defined.
57244         * lib/lchown.c (S_ISLNK): Likewise.
57245
57246 2002-06-15  Jim Meyering  <meyering@lucent.com>
57247
57248         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
57249         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
57250         have been included before this file.
57251
57252 2002-06-14  Jim Meyering  <meyering@lucent.com>
57253
57254         * lib/file-type.h: Use the version from diffutils-2.8.2.
57255         * lib/file-type.c: Likewise.
57256
57257 2002-06-07  Jim Meyering  <meyering@lucent.com>
57258
57259         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
57260         They're needed at least for NetBSD 1.5.2.
57261         ($statxfs_includes): Include those same headers.
57262         ($statxfs_includes): Include sys/vfs.h if available.
57263         ($statxfs_includes): Likewise for sys/statvfs.h.
57264         Check for the following members in both structs statfs and statvfs:
57265         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
57266
57267 2002-06-01  Jim Meyering  <meyering@lucent.com>
57268
57269         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
57270         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
57271
57272 2002-05-28  Jim Meyering  <meyering@lucent.com>
57273
57274         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
57275         Reported by Volker Borchert.
57276
57277 2002-05-27  Jim Meyering  <meyering@lucent.com>
57278
57279         Fix a problem seen only on nonconforming systems whereby ls.c's
57280         use of localtime, and then of gettimeofday would cause trouble:
57281         the localtime call used to initialize rpl_gettimeofday's save
57282         mechanism would clobber ls's current local time information so
57283         that in any long listing the first file would always be listed
57284         with date 1970-01-01.  Analysis by Volker Borchert.
57285
57286         * lib/gettimeofday.c (localtime): Undefine.
57287         (rpl_localtime): New function.
57288
57289 2002-05-27  Jim Meyering  <meyering@lucent.com>
57290
57291         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
57292         localtime.
57293
57294         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
57295         use the replacement function; it wouldn't resolve at link time.
57296         Reported by Volker Borchert.
57297
57298 2002-05-22  Jim Meyering  <meyering@lucent.com>
57299
57300         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
57301         file-type.h.
57302         * lib/file-type.h: New file.
57303         * lib/file-type.c (file_type): New file/function.  Extracted from
57304         diffutils.
57305
57306 2002-04-30  Jim Meyering  <meyering@lucent.com>
57307
57308         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
57309
57310 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57311
57312         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
57313
57314 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57315
57316         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
57317         Do not check for alloca.h (no longer used) or stdbool.h (was never
57318         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
57319
57320 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57321
57322         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
57323
57324 2002-04-29  Jim Meyering  <meyering@lucent.com>
57325
57326         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
57327         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
57328         Use AC_FUNC_STRNLEN here instead.
57329
57330         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
57331         With autoconf-2.53a, it's part of AC_PROG_CC.
57332
57333 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57334
57335         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
57336         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
57337
57338 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57339
57340         * lib/sig2str.h, lib/sig2str.c: New files.
57341         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
57342
57343 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57344
57345         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
57346         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
57347         of 127, since 64 is the largest conceivable number for ancient
57348         nonstandard hosts.
57349         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
57350
57351 2002-04-28  Jim Meyering  <meyering@lucent.com>
57352
57353         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
57354
57355 2002-04-24  Jim Meyering  <meyering@lucent.com>
57356
57357         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
57358         (jm_PREREQ): Use it.
57359
57360         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
57361         mach/mach.h fcntl.h.
57362         Check for this function: setlocale.
57363
57364 2002-04-24  Jim Meyering  <meyering@lucent.com>
57365
57366         * lib/gettext.h: New file, from Gettext.
57367         * lib/Makefile.am (INCLUDES): Remove -I../intl.
57368         (libfetish_a_SOURCES): Add gettext.h.
57369
57370 2002-04-16  Jim Meyering  <meyering@lucent.com>
57371
57372         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
57373         ut_pid, ut_id, ut_exit.
57374
57375 2002-04-16  Jim Meyering  <meyering@lucent.com>
57376
57377         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
57378         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
57379         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
57380
57381 2002-04-12  Jim Meyering  <meyering@lucent.com>
57382
57383         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
57384         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
57385         existence of the getmntinfo function.  Needed for Darwin 5.3.
57386
57387         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
57388         This is necessary at least on Darwin 5.3.
57389
57390         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
57391         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
57392         strnlen.o in the library, and that makes some versions of ranlib
57393         object.
57394
57395 2002-04-12  Jim Meyering  <meyering@lucent.com>
57396
57397         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
57398
57399 2002-04-09  Jim Meyering  <meyering@lucent.com>
57400
57401         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
57402         to be more precise.  Rather than saying we're checking whether the
57403         function `works', say what we're testing.
57404         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
57405         Reported by Bruno Haible.
57406
57407 2002-03-10  Jim Meyering  <meyering@lucent.com>
57408
57409         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
57410         Suggestion from Santiago Vila.
57411
57412 2002-03-08  Jim Meyering  <meyering@lucent.com>
57413
57414         * lib/rename.c: Mention that this wrapper is needed also on
57415         mips-dec-ultrix4.4 systems.
57416
57417 2002-03-02  Jim Meyering  <meyering@lucent.com>
57418
57419         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
57420         not HAVE_CLOCK_SETTIME.
57421
57422 2002-02-27  Paul Eggert  <eggert@twinsun.com>
57423
57424         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
57425         Check for clock_settime.
57426
57427 2002-02-27  Paul Eggert  <eggert@twinsun.com>
57428
57429         * lib/nanosleep.h: Rename to....
57430         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
57431
57432         * lib/gettime.c: New file.
57433         * lib/settime.c: New file.
57434         * lib/stime.c: Remove.
57435
57436         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
57437         timespec.h.  Remove nanosleep.h.
57438
57439 2002-02-25  Paul Eggert  <eggert@twinsun.com>
57440
57441         * m4/acl.m4: New file.
57442         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
57443         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
57444
57445 2002-02-25  Paul Eggert  <eggert@twinsun.com>
57446
57447         * lib/acl.c, lib/acl.h: New files.
57448         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
57449
57450 2002-02-24  Jim Meyering  <meyering@lucent.com>
57451
57452         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
57453         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
57454         cause trouble.  Reported by Nelson Beebe.
57455
57456 2002-02-23  Paul Eggert  <eggert@twinsun.com>
57457
57458         * lib/path-concat.c (xpath_concat): Reorder code to pacify
57459         compilers that don't know that xalloc_die never returns.
57460
57461 2002-02-20  Jim Meyering  <meyering@lucent.com>
57462
57463         * lib/getdate.c: Regenerate using bison-1.33.
57464
57465 2002-02-17  Jim Meyering  <meyering@lucent.com>
57466
57467         * config/config.guess (main): Don't use `head -1'; it's no longer
57468         portable. Use `sed 1q' instead.
57469
57470 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
57471
57472         * m4/codeset.m4: Upgrade to gettext-0.11.
57473         * m4/gettext.m4: Upgrade to gettext-0.11.
57474         * m4/glibc21.m4: Upgrade to gettext-0.11.
57475         * m4/iconv.m4: Upgrade to gettext-0.11.
57476         * m4/isc-posix.m4: Upgrade to gettext-0.11.
57477         * m4/lcmessage.m4: Upgrade to gettext-0.11.
57478         * m4/lib-ld.m4: New file, from gettext-0.11.
57479         * m4/lib-link.m4: New file, from gettext-0.11.
57480         * m4/lib-prefix.m4: New file, from gettext-0.11.
57481         * m4/progtest.m4: Upgrade to gettext-0.11.
57482
57483 2002-02-15  Paul Eggert  <eggert@twinsun.com>
57484
57485         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
57486         (jm_PREREQ): Use it.
57487
57488 2002-02-15  Paul Eggert  <eggert@twinsun.com>
57489
57490         * lib/posixver.c, lib/posixver.h: New files.
57491         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57492
57493 2002-02-02  Paul Eggert  <eggert@twinsun.com>
57494             Bruno Haible  <bruno@clisp.org>
57495
57496         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
57497         (fwrite_success_callback): New declaration.
57498         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
57499         print_unicode_char. Call failure callback instead of error.
57500         (fwrite_success_callback): New function.
57501         (exit_failure_callback): New function.
57502         (fallback_failure_callback): New function.
57503         (print_unicode_char): Call unicode_to_mb.
57504
57505 2002-01-26  Jim Meyering  <meyering@lucent.com>
57506
57507         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
57508         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
57509
57510 2002-01-26  Jim Meyering  <meyering@lucent.com>
57511
57512         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
57513
57514 2002-01-22  Paul Eggert  <eggert@twinsun.com>
57515
57516         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
57517
57518 2002-01-22  Jim Meyering  <meyering@lucent.com>
57519
57520         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
57521         Otherwise, some versions of automake would omit the rule that makes
57522         Makefile from Makefile.in.
57523
57524 2002-01-21  Paul Eggert  <eggert@twinsun.com>
57525
57526         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
57527         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57528         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
57529         (memcoll): Set errno to zero if there is no error.
57530
57531         * lib/quotearg.c (quotearg_buffer_restyled):
57532         Fix bug with quoting buffers containing NUL when backslashing escapes.
57533         This bug was exposed by the other changes in this patch.
57534         (quotearg_n_options): New arg ARGSIZE.
57535         All callers changed.
57536         (quoting_options_from_style): New function.
57537         (quotearg_n_style): Use it.
57538         (quotearg_n_style_mem): New function.
57539
57540         * lib/quotearg.h (quotearg_n_style_mem): New function.
57541
57542 2002-01-19  Jim Meyering  <meyering@lucent.com>
57543
57544         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
57545         Remove useless quotes: DF_PROG="df".
57546         * m4/strnlen.m4: New file.
57547
57548 2002-01-16  Paul Eggert  <eggert@twinsun.com>
57549
57550         * lib/backupfile.c (ISDIGIT): Comment fix.
57551         * lib/getdate.y (ISDIGIT): Likewise.
57552         * lib/posixtm.c (ISDIGIT, year): Likewise.
57553         * lib/strverscmp.c (ISDIGIT): Likewise.
57554         * lib/userspec.c (ISDIGIT): Likewise.
57555
57556 2002-01-16  Jim Meyering  <meyering@lucent.com>
57557
57558         * lib/getdate.y: Add three semicolons, each just before a closing
57559         brace. Bison (as of version 1.31) no longer papers over that mistake.
57560
57561 2002-01-05  Jim Meyering  <meyering@lucent.com>
57562
57563         * lib/version-etc.c (version_etc_copyright): Update copyright year.
57564
57565 2001-12-19  Paul Eggert  <eggert@twinsun.com>
57566
57567         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
57568         not silently exit merely because the output buffer happens to
57569         have nothing pending.
57570
57571 2001-12-18  Paul Eggert  <eggert@twinsun.com>
57572
57573         See the big note in ../ChangeLog.
57574         * lib/human.c (suffixes): Prefer K to k for 1024.
57575         (generate_suffix_backwards): New function.
57576         (human_readable_inexact): Use it.
57577         * lib/xstrtol.c (__xstrtol): If there is no number but there
57578         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
57579         Accept 'K' as well as 'k'.
57580
57581 2001-12-15  Jim Meyering  <meyering@lucent.com>
57582
57583         * lib/regex.h (__restrict_arr): Update from libc.
57584
57585         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
57586         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
57587         (STREQ): Define.
57588
57589 2001-12-14  Jim Meyering  <meyering@lucent.com>
57590
57591         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
57592         Suggestion from Bruno Haible.
57593
57594 2001-12-10  Jim Meyering  <meyering@lucent.com>
57595
57596         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
57597         xrealloc, Instead, include "xalloc.h".
57598         (initbuffer): Don't cast xmalloc return value to char*.
57599         (readline): Reword comment.
57600         Don't cast xrealloc return value to char*
57601         Return NULL, not 0.
57602
57603 2001-12-09  Jim Meyering  <meyering@lucent.com>
57604
57605         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
57606         about `signed and unsigned type in conditional expression'.
57607         * lib/posixtm.c (posix_time_parse): Likewise.
57608
57609         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
57610
57611         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
57612         to avoid a pedantic warning.
57613
57614         * lib/getstr.c: Don't include assert.h.
57615         (getstr): Remove warning-evoking assertions.
57616         Return -1 if offset parameter is out of bounds.
57617         Change the type of a local from int to size_t.
57618
57619         * lib/strftime.c (my_strftime_localtime_r): Include this function
57620         definition in the `#if ! HAVE_TM_GMTOFF' block.
57621
57622         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
57623         Include xalloc.h instead.
57624
57625 2001-12-02  Jim Meyering  <meyering@lucent.com>
57626
57627         * lib/tempname.c: Don't declare getenv, thus reverting the change of
57628         2001-11-18.  It's no longer necessary, now that stdlib.h is always
57629         included.
57630
57631         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
57632         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
57633
57634 2001-11-30  Akim Demaille  <akim@epita.fr>
57635
57636         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
57637         before being defined.
57638
57639 2001-11-27  Paul Eggert  <eggert@twinsun.com>
57640
57641         * lib/quotearg.h (quotearg_n, quotearg_n_style):
57642         First arg is int, not unsigned.
57643         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
57644         (SIZE_MAX, UINT_MAX): New macros.
57645         (quotearg_n_options): Abort if N is negative.
57646         Avoid overflow check on hosts where size_t is 64 bits and int
57647         is 32 bits, as overflow is impossible there.
57648         Fix off-by-one typo that caused unnecessary reallocation.
57649
57650 2001-11-27  Jim Meyering  <meyering@lucent.com>
57651
57652         * lib/tempname.c: Merge with version from libc.
57653         * lib/regex.c: Likewise.
57654
57655         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
57656         systems for which STDC_HEADERS is 0, it was not included, resulting in
57657         a warning about an integer-to-pointer conversion problem with getenv.
57658         Reported by Volker Borchert.
57659
57660 2001-11-26  Jim Meyering  <meyering@lucent.com>
57661
57662         * lib/gtod.h: Remove file.
57663         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
57664         * lib/gettimeofday.c: Don't include gtod.h.
57665         (GTOD_init): Remove function.
57666         (rpl_gettimeofday): Do its job here instead, rather than aborting.
57667         Suggestion from Volker Borchert.
57668
57669 2001-11-23  Jim Meyering  <meyering@lucent.com>
57670
57671         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
57672         it.
57673         * lib/hash.c (struct hash_table): Define it here instead.
57674
57675 2001-11-22  Jim Meyering  <meyering@lucent.com>
57676
57677         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
57678
57679 2001-11-20  Jim Meyering  <meyering@lucent.com>
57680
57681         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
57682         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
57683
57684 2001-11-19  Jim Meyering  <meyering@lucent.com>
57685
57686         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
57687         directory.  Use "conftestXXXXXX" as the template.
57688         Suggestion from Paul Eggert.
57689
57690         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
57691         immediately, so the test doesn't mistakenly hit the max-open-files
57692         limit.
57693
57694 2001-11-18  Paul Eggert  <eggert@twinsun.com>
57695
57696         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
57697         (TEMPORARIES): New macro.
57698         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
57699         removes an artificial limitation (e.g. HP-UX 10.20, where
57700         TMP_MAX is 17576).
57701
57702 2001-11-18  Jim Meyering  <meyering@lucent.com>
57703
57704         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
57705
57706 2001-11-18  Jim Meyering  <meyering@lucent.com>
57707
57708         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
57709         on SunOS 4.
57710
57711         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
57712         files will be created before anything else.
57713
57714 2001-11-17  Paul Eggert  <eggert@twinsun.com>
57715
57716         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
57717         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
57718
57719 2001-11-17  Jim Meyering  <meyering@lucent.com>
57720
57721         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
57722         Prompted by a report from Bob Proulx.
57723
57724         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
57725         Instead, require UTILS_FUNC_MKSTEMP.
57726
57727 2001-11-17  Jim Meyering  <meyering@lucent.com>
57728
57729         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
57730         Now, that's done as part of AC_FUNC_STRTOD.
57731
57732 2001-11-17  Jim Meyering  <meyering@lucent.com>
57733
57734         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
57735         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
57736         rather than group writable.  Patch by Juan F. Codagnone.
57737
57738         * lib/readtokens.c: Remove explicit declarations of xmalloc and
57739         xrealloc, Instead, include "xalloc.h".
57740
57741         * lib/mountlist.c: Include unlocked-io.h after all system headers.
57742         Remove explicit declarations of xmalloc, xrealloc,
57743         and xstrdup.  Instead, include "xalloc.h".
57744
57745         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
57746         unlocked-io.h.
57747         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
57748         Likewise.
57749         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
57750
57751         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
57752         Reported by Padraig Brady.
57753
57754         * lib/mkstemp.c: #undef mkstemp.
57755         Include config.h.
57756         (rpl_mkstemp): Rename from mkstemp.
57757         Protoize.
57758
57759 2001-11-16  Jim Meyering  <meyering@lucent.com>
57760
57761         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
57762         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
57763         determine the amount of total physical memory, use pstat_getstatic.
57764         HPUX-11 doesn't define _SC_PHYS_PAGES.
57765         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
57766         If sysconf couldn't be used to determine the amount of available
57767         physical memory, use both pstat_getstatic and pstat_getdynamic.
57768         Based on a patch from Bob Proulx.
57769
57770 2001-11-10  Jim Meyering  <meyering@lucent.com>
57771
57772         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
57773         (jm_PREREQ): Use it.
57774
57775 2001-11-09  Jim Meyering  <meyering@lucent.com>
57776
57777         * m4/jm-macros.m4: Require autoconf-2.52f.
57778         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
57779         Use these AC_-prefixed names, not the AM_-prefixed ones.
57780
57781         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
57782
57783 2001-11-05  Jim Meyering  <meyering@lucent.com>
57784
57785         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
57786
57787 2001-11-04  Jim Meyering  <meyering@lucent.com>
57788
57789         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
57790         $DEFS.
57791
57792 2001-11-03  Jim Meyering  <meyering@lucent.com>
57793
57794         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
57795         of AC_DEFUN.
57796
57797         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
57798         know the name of the variable in the macro definition.
57799
57800 2001-11-03  Jim Meyering  <meyering@lucent.com>
57801
57802         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
57803         in argmatch_to_argument call.
57804
57805         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
57806         argument.
57807
57808         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
57809         e.g., a fault due to an attempt to free a NULL pointer.
57810
57811 2001-11-01  Jim Meyering  <meyering@lucent.com>
57812
57813         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
57814         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
57815
57816 2001-11-01  Jim Meyering  <meyering@lucent.com>
57817
57818         * lib/dirfd.c, lib/dirfd.h: New files.
57819         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
57820
57821         * lib/hash.c (hash_print) [TESTING]: Clean up.
57822
57823 2001-10-22  Paul Eggert  <eggert@twinsun.com>
57824
57825         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
57826         to avoid a warning if -Wall.
57827
57828 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
57829
57830         * README: New file
57831         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
57832         (per RMS's instructions, this is now the canonical source)
57833         * lgpl/, gpl/: New directories.
57834
57835 2001-10-21  Paul Eggert  <eggert@twinsun.com>
57836
57837         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
57838
57839 2001-10-21  Jim Meyering  <meyering@lucent.com>
57840
57841         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
57842         this code would end up calling gettext even in packages built
57843         with --disable-nls.
57844         * lib/getopt.c (_): Likewise.
57845         * lib/regex.c (_): Likewise.
57846
57847 2001-10-20  Paul Eggert  <eggert@twinsun.com>
57848
57849         * m4/error.m4 (jm_PREREQ_ERROR):
57850         Do not invoke AC_CHECK_FUNCS with strerror_r, as
57851         AC_FUNC_STRERROR_R does that.
57852         Check for strerror declaration.
57853
57854         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
57855         are supposed to have them these days.
57856         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
57857         Merge changes from latest Autoconf CVS.
57858         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
57859         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
57860         POSIX decided to standardize on the int flavor of strerror_r.
57861
57862 2001-10-20  Paul Eggert  <eggert@twinsun.com>
57863
57864         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
57865         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
57866         Use strerror_r that is only a macro, even if it is not a function.
57867         (strerror): Check for HAVE_DECL_STRERROR before declaring.
57868         (private_strerror): Use prototypes, not old-style function definition.
57869         (print_errno_message): New function.
57870         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
57871         char*-flavored one.
57872         (error_tail, error, error_at_line): Use it.
57873
57874 2001-10-11  Jim Meyering  <meyering@lucent.com>
57875
57876         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
57877         and quote_n (1, ... to avoid clobbering a buffer.
57878
57879 2001-10-05  Jim Meyering  <meyering@lucent.com>
57880
57881         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
57882         hash-pjw.h.
57883         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
57884         * lib/hash-pjw.h: New file.
57885
57886 2001-09-30  Jim Meyering  <meyering@lucent.com>
57887
57888         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
57889         `struct fsstat' has the `f_fstypename' member.
57890         Use that to define FS_TYPE, which is now used to make
57891         the getfsstat link test tighter.
57892
57893 2001-09-30  Jim Meyering  <meyering@lucent.com>
57894
57895         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
57896         Include <sys/ucred.h>, for Apple Darwin.
57897         Include sys/mount.h and sys/fs_types.h only if available.
57898         (FS_TYPE): Define.
57899         (read_filesystem_list): Use FS_TYPE.
57900
57901 2001-09-29  Paul Eggert  <eggert@twinsun.com>
57902
57903         * lib/exclude.c (excluded_filename): 0 -> false, since it's
57904         a boolean context.
57905
57906 2001-09-29  Jim Meyering  <meyering@lucent.com>
57907
57908         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57909         [one-argument getmntent function]): Include stdio.h before mntent.h.
57910         SunOS 4.1.x needs it for the declaration of `FILE'.
57911         Patch by Volker Borchert.
57912
57913         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57914         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
57915         sys/fs_types.h, and make the link-test for getfsstat guard #include
57916         directives with appropriate #if HAVE_*_H tests so that we can
57917         detect getfsstat on Apple Darwin1.3.7 systems.
57918         Reported by Nelson Beebe.
57919         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
57920
57921 2001-09-28  Paul Eggert  <eggert@twinsun.com>
57922
57923         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
57924         #defines strtoimax.  Also treat the other strto* functions
57925         like strtoimax.
57926
57927         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
57928         Check for strtoul and strtoumax,
57929         as those declarations are made even in the signed case.
57930         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
57931         Likewise, for strtol and strtoimax.
57932
57933 2001-09-28  Paul Eggert  <eggert@twinsun.com>
57934
57935         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
57936         #defines strtoimax.  Also treat the other strto* functions
57937         like strtoimax.
57938
57939         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
57940         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
57941         (strtoimax, strtoumax): Do not declare if already defined as a macro.
57942
57943 2001-09-26  Jim Meyering  <meyering@lucent.com>
57944
57945         Most macros in unlocked-io.h had the wrong number of arguments.
57946         * lib/gen-uio: New script.
57947         (USE_UNLOCKED_IO): Define to 1 if not already defined.
57948         * lib/unlocked-io.hin: Remove file.
57949         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
57950         rather than trying to embed it here.
57951         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
57952         Reported by Padraig Brady.
57953
57954 2001-09-25  Volker Borchert  <bt@teknon.de>
57955
57956         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
57957         `result'.
57958
57959 2001-09-24  Jim Meyering  <meyering@lucent.com>
57960
57961         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
57962
57963 2001-09-23  Jim Meyering  <meyering@lucent.com>
57964
57965         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
57966         instead of the mere test for existence of mntent.h.  The latter
57967         would get a false-positive on AIX 3.4 systems.
57968         In the outer getmntent if-block, don't die if neither of the getmntent
57969         tests succeeds.  Instead, just fall through and continue with the
57970         remaining tests.
57971
57972 2001-09-23  Jim Meyering  <meyering@lucent.com>
57973
57974         * lib/mountlist.c: Remove useless parentheses in #if directives.
57975         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
57976         the deprecated MOUNTED symbol is no longer defined in mntent.h.
57977
57978 2001-09-22  Jim Meyering  <meyering@lucent.com>
57979
57980         * m4/gettext.m4: New file.  From gettext.
57981         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
57982         * m4/progtest.m4: Likewise
57983         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
57984         * m4/glibc21.m4: Likewise.
57985
57986         * m4/libintl.m4: Remove.  No longer used.
57987
57988 2001-09-22  Jim Meyering  <meyering@lucent.com>
57989
57990         * lib/localcharset.c: Update from latest gettext.
57991         * lib/config.charset: Likewise.
57992
57993 2001-09-20  Jim Meyering  <meyering@lucent.com>
57994
57995         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
57996         strtoimax.
57997         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
57998         strtoumax.
57999
58000 2001-09-20  Jim Meyering  <meyering@lucent.com>
58001
58002         * lib/xstrtol.c (strtoimax): Guard declaration with
58003         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
58004         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
58005         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
58006         (strtoumax): Likewise, for completeness (it wasn't necessary).
58007
58008 2001-09-17  Paul Eggert  <eggert@twinsun.com>
58009
58010         * lib/strtoimax.c (HAVE_LONG_LONG):
58011         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
58012         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
58013         to work around bug in IBM C compiler.
58014
58015 2001-09-17  Jim Meyering  <meyering@lucent.com>
58016
58017         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
58018         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
58019         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
58020         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
58021         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
58022         whenever the right hand side need not be expanded by the shell.
58023
58024 2001-09-16  Paul Eggert  <eggert@twinsun.com>
58025
58026         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
58027         library.  It's not correct, as some older glibcs are buggy.
58028         fnmatch wasn't fixed until glibc 2.2.
58029
58030         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
58031         special shell magic here.
58032
58033 2001-09-16  Jim Meyering  <meyering@lucent.com>
58034
58035         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
58036         * m4/jm-macros.m4: Require it.
58037
58038 2001-09-16  Jim Meyering  <meyering@lucent.com>
58039
58040         * lib/mkdir.c: New file.
58041
58042 2001-09-15  Jim Meyering  <meyering@lucent.com>
58043
58044         * m4/jm-macros.m4: Check for help2man.
58045
58046 2001-09-11  Jim Meyering  <meyering@lucent.com>
58047
58048         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
58049         The body, by Paul Eggert, was moved here from configure.in.
58050         * m4/jm-macros.m4: Require UTILS_HOST_OS.
58051
58052 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58053
58054         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
58055         (jm_PREREQ): Use it.
58056
58057 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58058
58059         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
58060         Use ssize_t, not int, to store result of readlink.
58061         Check for ssize_t overflow as well as size_t overflow,
58062         as POSIX says the result of readlink is implementation-defined
58063         when ssize_t overflows.
58064         Remove unnecessary cast to char*.
58065         Use free+malloc instead of realloc, as the storage doesn't need
58066         to be preserved and it's clearer and can be more efficient that way.
58067         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
58068         * lib/xreadlink.h (xreadlink): Update prototype.
58069
58070 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58071
58072         * lib/xgetcwd.c: Revert some of the previous change; intead,
58073         fix the HAVE_GETCWD_NULL code to behave more like the
58074         !HAVE_GETCWD_NULL code used to.
58075
58076         Include "xalloc.h".
58077         (xgetcwd): Do not return NULL when memory is exhausted; instead,
58078         invoke xalloc_die.
58079
58080 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58081
58082         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
58083         sys/param.h, as pathmax.h includes them.
58084
58085 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58086
58087         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
58088         (jm_PREREQ_XGETCWD): New macro.
58089
58090         * m4/getcwd.m4: New file.
58091
58092 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58093
58094         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
58095         like the HAVE_GETCWD_NULL code.
58096         Include pathmax.h if not HAVE_GETCWD.
58097         Do not include xalloc.h.
58098         (INITIAL_BUFFER_SIZE): New symbol.
58099         Do not use xmalloc / xrealloc, since the caller is responsible for
58100         handling errors.  Preserve errno around `free' during failure.
58101         Do not overrun buffer when using getwd.
58102
58103 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58104
58105         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
58106         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
58107         getcwd (NULL, 0).
58108
58109 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58110
58111         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
58112         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
58113         spotted by Jim Meyering.
58114
58115 2001-09-03  Jim Meyering  <meyering@lucent.com>
58116
58117         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
58118         failure.
58119
58120 2001-09-02  Jim Meyering  <meyering@lucent.com>
58121
58122         * lib/error.c: Update from GNU libc.
58123
58124 2001-09-01  Jim Meyering  <meyering@lucent.com>
58125
58126         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
58127         Used by df.
58128
58129 2001-09-01  Jim Meyering  <meyering@lucent.com>
58130
58131         * lib/xreadlink.c: New file.
58132         * lib/xreadlink.h: New file.
58133         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
58134         xreadlink.h.
58135
58136         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
58137         doesn't conflict with sparc Solaris 7's definition in
58138         /usr/include/sys/int_types.h.
58139
58140         * lib/exclude.c: Use `""', not `<>' to #include non-system header
58141         files.
58142         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
58143         and strncasecmp as r-values.  Unixware didn't have declarations.
58144
58145 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58146
58147         * lib/xstrtol.h: Add copyright notice.
58148         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
58149         LONGINT_INVALID_SUFFIX_CHAR.
58150
58151 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58152
58153         * lib/xstrtol.c (strtoimax): New decl.
58154
58155 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58156
58157         * lib/xgetcwd.c: Don't include pathmax.h.
58158         Include stdlib.h and unistd.h if available.
58159         Include xalloc.h.
58160         (xmalloc, xstrdup, free): Remove decls.
58161         (xgetcwd): Don't assume sizes fit in unsigned.
58162         Check for overflow when computing sizes.
58163         Simplify reallocation code.
58164
58165 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58166
58167         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
58168         a directory's st_size can have an arbitrary value, so the old
58169         usage could waste an arbitrary amount of memory.  All uses
58170         changed.
58171         * lib/savedir.h: Update prototype.
58172
58173 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58174
58175         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
58176
58177         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
58178         old strtoimax.c.
58179
58180         Also, make the following further changes to make this file's
58181         configuration more similar to that of strtol.c:
58182         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
58183         (strtoumax, uintmax_t, strtoull, strtol): Remove.
58184         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
58185         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
58186         changed to signed values.
58187
58188         And make the following changes as well:
58189         Fix copyright notice, as 1999 was missing.
58190         (verify): New macro.
58191         (strtoimax): Check sizes at compile-time, not run-time.
58192         Prefer strtol to strtoll if both work.
58193         (main): Remove; it was not that useful and was a pain to maintain.
58194
58195         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
58196
58197 2001-08-31  Jim Meyering  <meyering@lucent.com>
58198
58199         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
58200         Use an initial, malloc'd, buffer of length 128 rather than
58201         a statically allocated one of length 1024.
58202
58203 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58204
58205         Simplify code, partly by assuming autoconf 2.52 semantics.
58206
58207         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
58208
58209         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
58210         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
58211         All uses removed.
58212         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
58213         Move AC_REQUIRE to next-to-top level, to avoid confusion.
58214         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
58215         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
58216         jm_AC_HEADER_INTTYPES_H.
58217         * m4/jm-macros.m4 (jm_MACROS): Likewise.
58218
58219         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
58220
58221         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58222         Quote first arg of AC_DEFUN.
58223         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
58224         since they are needed to parse the include file even if we need
58225         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
58226         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
58227         but with opposite signedness.
58228
58229 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58230
58231         Merge 'exclude' changes from tar 1.13.22.
58232         This fixes one or two unlikely storage allocation overflow bugs,
58233         but doesn't change user-visible behavior otherwise.
58234
58235 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58236
58237         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
58238         (jm_PREREQ_EXCLUDE): New macro.
58239
58240 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58241
58242         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
58243         tm to be declared.
58244
58245 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58246
58247         * lib/hash.c: Remove '2001' from copyright notice.
58248
58249 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58250
58251         * lib/full-write.h: New file.
58252         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
58253         * lib/full-write.c: Correct credits, as cccp.c no longer
58254         exists and anyway it was so heavily changed from the old cccp
58255         code as to be unrecognizable.  Include full-write.h.
58256         (full_write) Return size_t, with short writes meaning failure.
58257         All callers changed.  This fixes a bug with large buffers
58258         on 64-bit hosts.
58259         * lib/utime.c: Include full-write.h.
58260
58261 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58262
58263         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
58264         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
58265         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
58266         Include if available.
58267         (<xalloc.h>): Include
58268         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
58269         (verify): New macro.  Use it to verify that EXCLUDE macros do not
58270         collide with FNM macros.
58271         (struct patopts): New struct.
58272         (struct exclude): Use it, as exclude patterns now come with options.
58273         (new_exclude): Support above changes.
58274         (new_exclude, add_exclude_file):
58275         Initial size must now be a power of two to simplify overflow checking.
58276         (free_exclude, fnmatch_no_wildcards): New function.
58277         (excluded_filename): No longer requires options arg, as the options
58278         are determined by add_exclude.  Now returns bool, not int.
58279         (excluded_filename, add_exclude):
58280         Add support for the fancy new exclusion options.
58281         (add_exclude, add_exclude_file): Now takes int options arg.
58282         Check for arithmetic overflow when computing sizes.
58283         (add_exclude_file): xrealloc might modify errno, so don't
58284         realloc until after errno might be used.
58285
58286         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
58287         New macros.
58288         (free_exclude): New decl.
58289         (add_exclude, add_exclude_file): Now takes int options arg.
58290         (excluded_filename): No longer requires options arg, as the options
58291         are determined by add_exclude.  Now returns bool, not int.
58292
58293 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58294
58295         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
58296
58297 2001-08-27  Jim Meyering  <meyering@lucent.com>
58298
58299         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
58300
58301         * lib/version-etc.c (N_): Remove definition.
58302         Revert most of last change.
58303         Instead, simply don't mark the `Copyright...' string for translation.
58304         Based on advice from Paul Eggert.
58305
58306         * lib/strtoxmax.c: Tweak comment.
58307
58308 2001-08-26  Jim Meyering  <meyering@lucent.com>
58309
58310         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
58311
58312         * m4/xstrtoimax.m4: New file.
58313         * m4/xstrtoumax.m4: Add comments explaining why we
58314         AC_REPLACE_FUNCS(strtol).
58315
58316 2001-08-26  Jim Meyering  <meyering@lucent.com>
58317
58318         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
58319         of copyright with `%s' so translators don't get an untranslated
58320         message in 2002.
58321         (COPYRIGHT_YEAR): Define.
58322         (version_etc): Use fprintf rather than fputs.
58323         Suggestion from Ulrich Drepper.
58324
58325         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
58326
58327         * lib/strtoll.c: New file, from GNU libc.
58328         * lib/xstrtoimax.c: New file.
58329
58330         * lib/xstrtol.h: Add xstrtoimax.
58331         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
58332         * lib/strtoimax.c: New file.  Likewise, but first define
58333         STRTOUXMAX_SIGNED.
58334
58335         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
58336         ...
58337         * lib/strtoxmax.c: ... then renamed to this.
58338
58339 2001-08-18  Paul Eggert  <eggert@twinsun.com>
58340
58341         * m4/inttypes.m4: Add AC_PREREQ(2.13).
58342         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
58343         (jm_AC_TYPE_INTMAX_T): New macro.
58344         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
58345
58346         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
58347
58348         * m4/longlong.m4: Renamed from ulonglong.m4.
58349         * m4/inttypes.m4: Renamed from inttypes_h.m4.
58350         * m4/uintmax_t.m4: Removed.
58351
58352 2001-08-13  Paul Eggert  <eggert@twinsun.com>
58353
58354         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
58355         Port to Solaris 8, where 'sed' requires a space after the 'r'
58356         command, and where sh dislikes "$/".  Clean up the spacing a bit.
58357         Redirect output to $tmp just once.
58358
58359 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
58360
58361         * lib/addext.c (<errno.h>): Include.
58362         (errno): Declare if not defined.
58363         (addext): Work correctly when pathconf returns -1 and leaves
58364         errno alone because there is no limit.  Also, work even if
58365         pathconf returns a value greater than SIZE_MAX.
58366
58367 2001-08-12  Jim Meyering  <meyering@lucent.com>
58368
58369         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
58370         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
58371         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
58372         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
58373         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
58374         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
58375         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
58376         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
58377         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
58378         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
58379         utime.m4, utimes.m4, xstrtoumax.m4:
58380         Quote the first argument in each use of AC_DEFUN.
58381
58382 2001-08-12  Jim Meyering  <meyering@lucent.com>
58383
58384         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
58385         Simply `return getcwd (NULL, 0);'.
58386         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
58387         Use 1300 as initial value for length, not PATH_MAX.
58388
58389         * lib/pathmax.h: Clean up cpp syntax.
58390
58391 2001-08-12  Jim Meyering  <meyering@lucent.com>
58392
58393         * lib/gettimeofday.c: New file.
58394         * lib/gtod.h: New file.
58395         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
58396
58397 2001-08-05  Jim Meyering  <meyering@lucent.com>
58398
58399         * m4/jm-macros.m4: Require autoconf-2.52.
58400
58401 2001-08-04  Jim Meyering  <meyering@lucent.com>
58402
58403         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
58404         stmt, to get in sync with glibc.
58405
58406 2001-08-03  Paul Eggert  <eggert@twinsun.com>
58407
58408         The following changes are from gettext 0.10.39 as maintained by
58409         Bruno Haible.
58410
58411         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
58412         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
58413         with inverted sense.  All uses changed.
58414
58415         * lib/mbswidth.c: Don't include <limits.h>.
58416         Include <stdlib.h> and <string.h> unconditionally.
58417         (iswcntrl, mbsinit, ISCNTRL): New macros.
58418         (mbsnwidth): Use K&R style function declarations.
58419         Don't bother checking for MB_LEN_MAX == 1, since the compiler
58420         can optimize it when MB_CUR_MAX == 1.
58421         The width of control characters is zero, not 1.
58422
58423 2001-08-03  Paul Eggert  <eggert@twinsun.com>
58424
58425         The following changes are from gettext 0.10.39 as maintained by
58426         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
58427
58428         * m4/codeset.m4: Upgrade to serial AM1.
58429         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
58430         all uses changed.  Quote first arg of AC_DEFUN.
58431         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
58432
58433         * m4/iconv.m4: Upgrade to serial AM2.
58434         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
58435         Add --with-libconv-prefix.
58436         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
58437         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
58438         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
58439         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
58440         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
58441
58442         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
58443         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
58444         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
58445         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
58446         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
58447         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
58448         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
58449         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
58450         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
58451
58452         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
58453         string.h any more.
58454
58455         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
58456         not the default value.
58457
58458         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
58459         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
58460         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
58461         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
58462         Also check for iswcntrl, used for wcwidth fallback.
58463         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
58464         to Autoconf 2.13.
58465
58466 2001-08-03  Jim Meyering  <meyering@lucent.com>
58467
58468         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
58469         as it was in the original.  Reported by Paul Eggert.
58470
58471 2001-07-16  Jim Meyering  <meyering@lucent.com>
58472
58473         * m4/gettimeofday.m4: New file.
58474         Prompted by a report from Bernhard Baehr.
58475
58476 2001-07-15  Jim Meyering  <meyering@lucent.com>
58477
58478         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
58479         stuff. Now it's in ../Makefile.cfg.
58480
58481 2001-07-15  Jim Meyering  <meyering@lucent.com>
58482
58483         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
58484         (BUILT_SOURCES): Add unlocked-io.h.
58485         (io_functions): Define.
58486         (unlocked-io.h): New rule.
58487         (DISTCLEANFILES): Add unlocked-io.h.
58488         (all-local): Depend on unlocked-io.h, to ensure it is created.
58489
58490         * lib/unlocked-io.hin: New file
58491
58492         * lib/regex.c: Update from glibc.
58493
58494 2001-07-05  Jim Meyering  <meyering@lucent.com>
58495
58496         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
58497         recommendation.
58498         (libfetish_a_SOURCES): Put all .h files here instead.
58499         Remove a thus-exposed (better checks in automake) duplicate and
58500         two unnecessary .h files.
58501
58502 2001-07-04  Jim Meyering  <meyering@lucent.com>
58503
58504         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
58505         that generates jm-glibc-io.m4 so that it doesn't trigger any make
58506         distcheck failure.
58507
58508 2001-07-02  Jim Meyering  <meyering@lucent.com>
58509
58510         The following changes were prompted by suggestions from Bruno Haible.
58511
58512         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
58513         is now generated.
58514         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
58515         definition of EXTRA_DIST.
58516         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
58517         ensure that the generated file is created/updated whenever the list
58518         of $(unlocked_functions) is changed.
58519         (jm-glibc-io.m4): New rule.
58520         (unlocked-io.h): New rule -- currently unused.
58521
58522 2001-06-24  Jim Meyering  <meyering@lucent.com>
58523
58524         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
58525         unmatched right bracket, rather than kludging it with an extra,
58526         falsely-matching quote in a comment.  Patch by Akim Demaille.
58527
58528 2001-06-11  Jim Meyering  <meyering@lucent.com>
58529
58530         * lib/regex.c: Update from GNU libc.
58531
58532 2001-05-27  Jim Meyering  <meyering@lucent.com>
58533
58534         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
58535         Check for ut_type in struct utmp.
58536
58537 2001-05-27  Jim Meyering  <meyering@lucent.com>
58538
58539         * lib/readutmp.h (UT_TYPE): Define.
58540
58541 2001-05-24  Jim Meyering  <meyering@lucent.com>
58542
58543         * lib/argmatch.c: Include "quote.h".
58544         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
58545         quote function.  Reported by Göran Uddeborg.
58546
58547 2001-05-22  Jim Meyering  <meyering@lucent.com>
58548
58549         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
58550         now that we use the package-supplied version unconditionally.
58551         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
58552
58553 2001-05-21  Jim Meyering  <meyering@lucent.com>
58554
58555         * m4/regex.m4: Change a couple backticks to single quotes to avoid
58556         shell syntax errors.
58557
58558 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
58559
58560         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
58561
58562 2001-05-20  Paul Eggert  <eggert@twinsun.com>
58563
58564         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
58565         Don't bother to check library strftime, since
58566         we'll be using our own my_strftime function anyway.
58567         Define my_strftime instead of strftime.
58568
58569 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
58570
58571         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
58572         which is not yet declared.
58573
58574 2001-05-15  Jim Meyering  <meyering@lucent.com>
58575
58576         * m4/regex.m4: Use proper quoting so brackets appear in the test
58577         program.
58578         Reported by, and with help from, Bruno Haible.
58579
58580 2001-05-13  Jim Meyering  <meyering@lucent.com>
58581
58582         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
58583         undefined.
58584
58585 2001-05-11  Paul Eggert  <eggert@twinsun.com>
58586
58587         dirname code cleanup.  base_name now behaves more compatibly
58588         with POSIX basename when given file names that have trailing
58589         slashes, and similarly for dir_name.  Add new primitives
58590         base_len and dir_len.  Put the directory-name-related decls
58591         into dirname.h.
58592
58593         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
58594         * lib/backupfile.c (base_name): Likewise.
58595         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
58596         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
58597         * lib/makepath.c (strip_trailing_slashes): Likewise.
58598         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
58599         ISSLASH): Likewise.
58600         * lib/rename.c (strip_trailing_slashes): Likewise.
58601         * lib/same.c (base_name): Likewise.
58602         * lib/stripslash.c (ISSLASH): Likewise.
58603
58604         * lib/addext.c: Include <dirname.h> after size_t is defined.
58605         * lib/backupfile.c: Likewise.
58606
58607         * lib/addext.c (addext): Use base_len to trim redundant
58608         trailing slashes instead of doing it ourselves.
58609         But do not trim the last slash if it is not redundant.
58610
58611         * lib/backupfile.c (find_backup_file_name,
58612         max_backup_version): Use base_len instead of rolling it ourselves.
58613         Handle the case of "" and (on DOS) "C:" correctly.
58614
58615         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
58616         needed. Include <string.h>, <dirname.h>.
58617         (base_name): Allow file names ending in slashes, other than names
58618         that are all slashes.  In this case, return the basename followed
58619         by the slashes.  This is more general, and can be used in places
58620         where the original base_name purposely had an assertion failure.
58621         (base_len): New function.
58622
58623         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
58624         Do not include <assert.h>; no longer needed.
58625         Include xalloc.h.
58626         (memrchr): Remove decl.
58627         (dir_name_r): Remove.
58628         (dir_len): Renamed from dirlen.  All callers changed.
58629         Rewrite in terms of base_name, for simplicity and consistency.
58630         (dir_name): Never return NULL.  All callers changed.
58631         Do not include <stdlib.h> in test program; no longer needed.
58632         return 0; is fine for test program.
58633
58634         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
58635         New macros.
58636         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
58637
58638         * lib/path-concat.c (path_concat): Use base_len to compute
58639         base length, not strlen; this means we cannot rely on memcpy
58640         to null-terminate.
58641
58642         * lib/same.c (STREQ): Remove.
58643         (same_name): Handle the case where the basename ends in trailing '/'.
58644
58645         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
58646         a slash was stripped.  Do not strip the last slash after a
58647         file system prefix.
58648
58649 2001-05-11  Paul Eggert  <eggert@twinsun.com>
58650
58651         * lib/Makefile.am (libfetish_a_SOURCES):
58652         Add strftime.c, since we now compile it on all hosts.
58653
58654         * lib/strftime.c (my_strftime):
58655         Define to nstrftime if emacs, but only if my_strftime is not defined.
58656         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
58657         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
58658         Add one more extra argument: a nanoseconds value.
58659         All uses changed.
58660         (ns): New macro.
58661         (my_strftime function): Add %N format.
58662         (emacs_strftimeu): Renamed from emacs_strftime,
58663         with extra ut argument.
58664
58665 2001-05-09  Paul Eggert  <eggert@twinsun.com>
58666
58667         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
58668
58669 2001-04-21  Jim Meyering  <meyering@lucent.com>
58670
58671         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
58672         doesn't interfere.
58673
58674 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
58675
58676         * m4/ftruncate.m4: Check for chsize.
58677         Link with ftruncate.o unconditionally if ftruncate is missing.
58678         This was required when cross-compiling to i586-mingw32msvc.
58679
58680 2001-04-08  Jim Meyering  <meyering@lucent.com>
58681
58682         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
58683         recomputed; that's necessary when the offset spans a DST transition.
58684         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
58685
58686 2001-04-02  Jim Meyering  <meyering@lucent.com>
58687
58688         * lib/regex.h, regex.c: Update from GNU libc.
58689
58690 2001-03-24  Jim Meyering  <meyering@lucent.com>
58691
58692         * m4/jm-macros.m4: Require autoconf-2.49d.
58693
58694 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
58695
58696         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
58697
58698 2001-03-19  Paul Eggert  <eggert@twinsun.com>
58699
58700         * lib/version-etc.c (version_etc_copyright): Update to 2001.
58701
58702 2001-03-17  Jim Meyering  <meyering@lucent.com>
58703
58704         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
58705         now that the version in autoconf is equivalent.
58706         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
58707
58708         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
58709         Suggestion from Akim Demaille.
58710
58711         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
58712         (jm_PREREQ_TEMPNAME): New function.
58713
58714 2001-03-16  Paul Eggert  <eggert@twinsun.com>
58715
58716         * lib/tempname.c (uint64_t): Define to uintmax_t if
58717         not defined, and if UINT64_MAX is not defined.
58718         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
58719         Reported by John David Anglin.
58720
58721 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
58722
58723         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
58724         resolve alias if codeset is empty.
58725         * lib/config.charset (BeOS): Use wildcard syntax.
58726
58727 2001-03-13  Jim Meyering  <meyering@lucent.com>
58728
58729         * lib/path-concat.c (path_concat)
58730         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
58731         concatenating e.g., `C:' and `foo'.
58732         From Bruno Haible.
58733
58734 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
58735
58736         * lib/localcharset.c (locale_charset): Don't use
58737         setlocale(LC_CTYPE,NULL). Don't return NULL.
58738         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
58739
58740 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
58741
58742         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
58743         support for DOS/DJGPP.
58744
58745 2001-03-01  Paul Eggert  <eggert@twinsun.com>
58746
58747         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
58748         lacks mkstemp.  Compile our own tempname.c if we compile our own
58749         mkstemp.c, as mkstemp relies on tempname.
58750
58751 2001-03-01  Jim Meyering  <meyering@lucent.com>
58752
58753         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
58754         AH_VERBATIM really does output its argument verbatim.
58755
58756 2001-02-28  Paul Eggert  <eggert@twinsun.com>
58757
58758         * lib/Makefile.am (libfetish_a_SOURCES):
58759         Add dup-safer.c, fopen-safer.c.
58760         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
58761
58762         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
58763         * lib/unistd-safer.h: New files.
58764
58765 2001-02-25  Paul Eggert  <eggert@twinsun.com>
58766
58767         The mkstemp replacement is taken from glibc 2.2.2, with some
58768         portability fixes for use outside glibc, as follows:
58769
58770         * lib/tempname.c (struct_stat64): New macro.
58771         (direxists, __gen_tempname): Use it.
58772         This avoids a portability problem with Solaris 8.
58773
58774         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
58775         (<stddef.h>, <stdint.h>, <string.h>):
58776         Include only if STDC_HEADERS || _LIBC.
58777         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
58778         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
58779         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
58780         (__set_errno): Define this macro if <errno.h> doesn't.
58781         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
58782         Define these macros if <stdio.h> doesn't.
58783         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
58784         Define these macros if <sys/stat.h>
58785         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
58786         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
58787         __xstat64): Define if not _LIBC.
58788         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
58789         (__gen_tempname): Invoke gettimeofday only if
58790         HAVE_GETTIMEOFDAY || _LIBC;
58791         otherwise, fall back on plain "time".
58792         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
58793
58794         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
58795
58796         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
58797
58798 2001-02-18  Paul Eggert  <eggert@twinsun.com>
58799
58800         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
58801
58802 2001-02-17  Paul Eggert  <eggert@twinsun.com>
58803
58804         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
58805         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
58806         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
58807         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58808
58809 2001-02-17  Paul Eggert  <eggert@twinsun.com>
58810
58811         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
58812         Remove workaround macros for hosts that have mbrtowc but not
58813         mbstate_t, as we now insist on proper declarations for both
58814         before using mbrtowc.
58815
58816 2001-02-17  Jim Meyering  <meyering@lucent.com>
58817
58818         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
58819         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
58820         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
58821         UnixWare 7.1.1.
58822
58823         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
58824         rather than AC_CACHE_VAL.
58825
58826 2001-02-17  Jim Meyering  <meyering@lucent.com>
58827
58828         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
58829         around included file name.
58830
58831         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
58832
58833         * lib/strftime.c: Update from GNU libc (the only changes were to
58834         comments).
58835
58836 2001-02-17  Jim Meyering  <meyering@lucent.com>
58837
58838         * lib/regex.c: Update from libc.
58839
58840 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
58841
58842         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
58843         clash.
58844
58845 2001-02-16  Paul Eggert  <eggert@twinsun.com>
58846
58847         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
58848         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
58849         Reported by Mark Hounschell via Paul Eggert.
58850
58851 2001-02-07  Jim Meyering  <meyering@lucent.com>
58852
58853         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
58854
58855 2001-02-05  Jim Meyering  <meyering@lucent.com>
58856
58857         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
58858         it includes the patch required for `large file' support with at least
58859         HP-UX's 10.20 /bin/cc.
58860
58861 2001-02-03  Jim Meyering  <meyering@lucent.com>
58862
58863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
58864         AS_IF, now that it works once again (mysteriously).
58865         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58866
58867 2001-01-30  Jim Meyering  <meyering@lucent.com>
58868
58869         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
58870         * m4/chown.m4: Rename conftestchown to conftest.chown.
58871         * m4/rename.m4: s/conftestdir/conftest.d1/ and
58872         s/conftestdir2/conftest.d2/.
58873         * m4/utimes.m4: s/conftestdata/conftest.data/
58874         Inspired by Pavel Roskin's change in autoconf.
58875
58876 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
58877
58878         * lib/config.charset: Update for FreeBSD 4.2.
58879
58880 2001-01-27  Jim Meyering  <meyering@lucent.com>
58881
58882         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
58883         a use of AS_IF.
58884         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58885
58886 2001-01-26  Jim Meyering  <meyering@lucent.com>
58887
58888         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
58889         quotearg.c includes it.
58890
58891 2001-01-26  Jim Meyering  <meyering@lucent.com>
58892
58893         * lib/quotearg.c: Include stddef.h.
58894         * lib/quote.c: Include stddef.h.
58895         Reported by Axel Kittenberger.
58896
58897         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
58898         line in double quotes so that it evokes a better diagnostic.
58899         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
58900         Reported by Axel Kittenberger.
58901
58902 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
58903
58904         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
58905         as if it was a `charset'.
58906
58907 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
58908
58909         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
58910         has const.
58911
58912 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
58913
58914         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
58915         to avoid a warning.  Add back 'const' to inptr.
58916
58917 2001-01-20  Jim Meyering  <meyering@lucent.com>
58918
58919         Be sure that headers are checked before used in code compiled
58920         for the type checks.
58921         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
58922         In place of that, invoke jm_CHECK_ALL_TYPES.
58923         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
58924         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
58925         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
58926         The check for ssize_t was mistakenly run before the test for unistd.h.
58927
58928         The configure-time check for stdbool.h was missing.
58929         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
58930         (jm_PREREQ_HASH): New function.
58931
58932 2001-01-17  Jim Meyering  <meyering@lucent.com>
58933
58934         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
58935         for autoconf-2.49c.
58936         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
58937
58938 2001-01-16  Jim Meyering  <meyering@lucent.com>
58939
58940         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
58941         From Bruno Haible.
58942
58943 2001-01-14  Jim Meyering  <meyering@lucent.com>
58944
58945         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
58946         foo and bar.  Create conftestdir/ in the script, not in the C code.
58947         Remove directories in the script, not in the C code.
58948         Remove conftestdir{,2} before trying to create the directory.
58949         Make the entire configure script fail if the mkdir fails.
58950
58951 2001-01-14  Jim Meyering  <meyering@lucent.com>
58952
58953         * lib/rename.c: New file.  From Volker Borchert.
58954         Include stdlib.h, string.h or strings.h, and xalloc.h.
58955         Use strip_trailing_slashes rather than open-coding it.
58956
58957 2001-01-03  Paul Eggert  <eggert@twinsun.com>
58958
58959         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
58960
58961 2001-01-03  Jim Meyering  <meyering@lucent.com>
58962
58963         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
58964         of local `inptr' to avoid warning with some system declarations of
58965         iconv.
58966
58967 2001-01-02  Volker Borchert  <bt@teknon.de>
58968
58969         * m4/rename.m4: New file.
58970         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
58971
58972 2001-01-01  Jim Meyering  <meyering@lucent.com>
58973
58974         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
58975         even on systems with utmpx.h.  It's necessary for the declaration of
58976         utmp's ut_user member.  Reported by Andreas Jaeger.
58977
58978         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
58979         available. They are required for the declarations of getgrgid and
58980         getpwuid resp.
58981         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
58982         Reported by Andreas Jaeger.
58983
58984 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
58985
58986         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
58987         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
58988         so `make install' also works in VPATH builds.
58989
58990 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
58991
58992         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
58993         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
58994         can be used in subdirectories.
58995
58996 2000-12-29  Paul Eggert  <eggert@twinsun.com>
58997
58998         * lib/modechange.c: Do not assume that mode_t uses the
58999         traditional octal encoding.  E.g. "chmod 1 FOO" should set
59000         the other-execute bit of FOO even if S_IXOTH != 1.
59001
59002         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
59003         WOTH, XOTH, ALLM): New macros.
59004         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
59005          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
59006         Use them.
59007         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
59008         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
59009         (mode_compile):
59010         No need to use uintmax_t; unsigned long is long enough.
59011         Don't bother to get suffix since we don't use it.
59012
59013 2000-12-26  Jim Meyering  <meyering@lucent.com>
59014
59015         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
59016         better with autoheader.
59017
59018 2000-12-24  Jim Meyering  <meyering@lucent.com>
59019
59020         * lib/hash.c (is_prime): Return explicit boolean values.
59021         (hash_get_first): Return NULL to appease Irix5.6's 89.
59022         Reported by Nelson Beebe.
59023
59024 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
59025
59026         * lib/localcharset.c (locale_charset): Add support for Win32.
59027
59028 2000-12-18  Paul Eggert  <eggert@twinsun.com>
59029
59030         * lib/physmem.h, lib/physmem.c: New files.
59031
59032         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
59033         (noinst_HEADERS): Add physmem.h.
59034
59035         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
59036         't' for compatibility with Solaris 8 sort.
59037
59038 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
59039
59040         * lib/config.charset: Add support for BeOS.
59041
59042 2000-12-17  Jim Meyering  <meyering@lucent.com>
59043
59044         * m4/dos.m4 (jm_AC_DOS): New file and macro.
59045         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
59046
59047 2000-12-16  Jim Meyering  <meyering@lucent.com>
59048
59049         This bug had a serious impact on chown: `chown N:M FILE' (for integer
59050         N and M) would have treated it like `chown N:N FILE'.
59051
59052         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
59053
59054 2000-12-16  Jim Meyering  <meyering@lucent.com>
59055
59056         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
59057         SHELLS_FILE to a file name that's useful on djgpp systems.
59058         Include stdlib.h.
59059         (ADDITIONAL_DEFAULT_SHELLS): Define.
59060         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
59061         Based mostly on a patch from Prashant TR.
59062
59063 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
59064
59065         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
59066         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
59067         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
59068
59069 2000-12-08  Andreas Schwab  <schwab@suse.de>
59070
59071         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
59072         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
59073
59074 2000-12-07  Jim Meyering  <meyering@lucent.com>
59075
59076         * lib/stripslash.c (ISSLASH): Define.
59077         (strip_trailing_slashes): Use ISSLASH rather than comparing against
59078         `/'.
59079         From Prashant TR.
59080
59081         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
59082         (dir_name_r): Declare this function as static.
59083         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
59084         manifest itself on a name containing a mix of slashes and
59085         backslashes.
59086         Make this function work with names starting with a DOS-style
59087         drive letter and colon prefix.
59088         (dir_name): Append `.' if necessary.
59089         Based mostly on patches from Prashant TR and Eli Zaretskii.
59090
59091         * lib/dirname.h (dir_name_r): Remove prototype.
59092
59093 2000-12-06  Paul Eggert  <eggert@twinsun.com>
59094
59095         * m4/off_t-format.m4: Remove this file.
59096         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
59097
59098 2000-12-06  Jim Meyering  <meyering@lucent.com>
59099
59100         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
59101         replacement strtoull, we may well need the replacement strtoul, too.
59102         Check for declarations of strtoul and strtoull.
59103         Check for strtol.  Mainly as a cue to cause automake to include
59104         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
59105         Check for limits.h -- strtol.c needs it.
59106
59107 2000-12-05  Jim Meyering  <meyering@lucent.com>
59108
59109         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
59110
59111 2000-12-04  Jim Meyering  <meyering@lucent.com>
59112
59113         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
59114         Also include memory.h, stdlib.h, unistd.h if appropriate.
59115         Reported by Andreas Jaeger (conflicting declaration of malloc).
59116
59117 2000-12-02  Jim Meyering  <meyering@lucent.com>
59118
59119         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
59120         * m4/jm-macros.m4 (jm_MACROS): require it.
59121
59122 2000-12-02  Jim Meyering  <meyering@lucent.com>
59123
59124         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
59125
59126 2000-12-01  Paul Eggert  <eggert@twinsun.com>
59127
59128         * lib/memrchr.c: Include <config.h> before any system include file.
59129
59130 2000-11-30  Jim Meyering  <meyering@lucent.com>
59131
59132         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
59133
59134 2000-11-30  Jim Meyering  <meyering@lucent.com>
59135
59136         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
59137
59138 2000-11-29  Paul Eggert  <eggert@twinsun.com>
59139
59140         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
59141
59142 2000-11-26  Jim Meyering  <meyering@lucent.com>
59143
59144         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
59145
59146 2000-11-22  Paul Eggert  <eggert@twinsun.com>
59147
59148         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
59149         size of (size_t) -1; it's not portable.
59150
59151 2000-11-17  Jim Meyering  <meyering@lucent.com>
59152
59153         * lib/strstr.c: Update from GNU libc.
59154
59155 2000-11-17  Akim Demaille  <akim@epita.fr>
59156
59157         * lib/obstack.h: Formatting changes.
59158         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
59159         prevent type checking.
59160         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
59161         cast the value to (void *): assigning a `foo *' to a `void *'
59162         variable is valid.
59163         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
59164
59165 2000-11-16  Jim Meyering  <meyering@lucent.com>
59166
59167         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
59168
59169 2000-11-11  Jim Meyering  <meyering@lucent.com>
59170
59171         * lib/error.c: Add a couple #includes, merging from GNU libc version.
59172
59173 2000-11-10  Jim Meyering  <meyering@lucent.com>
59174
59175         * lib/obstack.h: Update from GNU libc.
59176         * lib/obstack.c: Likewise.
59177
59178 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
59179
59180         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
59181
59182 2000-11-06  Paul Eggert  <eggert@twinsun.com>
59183
59184         * lib/getusershell.c (setusershell): Use rewind rather than
59185         fseek/fseeko, to avoid configuration hassles with fseeko.
59186         Don't bother opening SHELLS_FILE if shellstream is NULL;
59187         it's not necessary.
59188
59189 2000-11-05  Jim Meyering  <meyering@lucent.com>
59190
59191         * lib/makepath.h (make_dir): Declare.
59192         * lib/makepath.c (make_dir): Remove `static' attribute.
59193         Tweak a comment.
59194
59195 2000-11-04  Jim Meyering  <meyering@lucent.com>
59196
59197         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
59198
59199 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
59200
59201         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
59202         last one in a bucket, advance to the next bucket.
59203
59204 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
59205
59206         * lib/fnmatch.c: Do not comment out all the code if we are using
59207         the GNU C library, because in some cases we are replacing buggy
59208         code in the GNU C library itself.
59209
59210 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
59211
59212         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
59213         (regex_compile): Catch bogus \(\1\).
59214
59215 2000-10-30  Paul Eggert  <eggert@twinsun.com>
59216
59217         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
59218         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
59219         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
59220
59221 2000-10-30  Paul Eggert  <eggert@twinsun.com>
59222
59223         * lib/error.h, getline.h, modechange.h:
59224         Remove "2000" from Copyright line, as the file hasn't been
59225         changed this year other than in the copyright notice.
59226
59227         * lib/xalloc.h: Add "2000" to Copyright line, as this file
59228         was changed this year.
59229
59230 2000-10-29  Jim Meyering  <meyering@lucent.com>
59231
59232         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
59233         renaming.
59234         * m4/ls-mntd-fs.m4: Likewise
59235
59236 2000-10-29  Jim Meyering  <meyering@lucent.com>
59237
59238         * lib/xstat.in: Fix grammar in comment.
59239
59240 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
59241
59242         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
59243         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
59244         doesn't define __restrict_arr.
59245
59246 2000-10-28  Jim Meyering  <meyering@lucent.com>
59247
59248         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
59249         (jm_PREREQ_MEMCHR): New function.
59250
59251 2000-10-28  Jim Meyering  <meyering@lucent.com>
59252
59253         * lib/memchr.c: Update from libc.
59254         Adjust for portability:
59255         [HAVE_STDLIB_H]: Include stdlib.h.
59256         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
59257         Undef __memchr, too.
59258         [!weak_alias]: Define __memchr to memchr.
59259
59260         * lib/regex.c: Update from libc.
59261         * lib/regex.h: Likewise.
59262         * lib/getopt1.c: Likewise.
59263         * lib/memcmp.c: Likewise.
59264
59265         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
59266         Avoid using fseek, when possible -- it's broken by design.
59267         Patch by Ulrich Drepper.
59268
59269 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
59270
59271         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
59272         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
59273         Giving in to popular pressure to shut up the compiler with casts.
59274
59275 2000-10-26  Jim Meyering  <meyering@lucent.com>
59276
59277         * lib/strftime.c: Update from libc.
59278
59279 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
59280
59281         * regex.c: More `unsigned char' -> `re_char' changes.
59282         Also change several `int' into `re_wchar_t'.
59283         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
59284         (PUSH_FAILURE_POINTER): Don't cast any more.
59285         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
59286         We want GCC to complain, since this piece of code makes
59287         re_match non-reentrant, which *should* be fixed.
59288         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
59289         (EXTEND_BUFFER): Use RETALLOC.
59290         (SET_LIST_BIT): Don't cast.
59291         (re_wchar_t): New type.
59292         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
59293         that those two functions will always properly return.
59294         (IMMEDIATE_QUIT_CHECK): Cast to void.
59295         (analyse_first): Use recursion rather than an explicit stack.
59296         (re_compile_fastmap): Can't fail anymore.
59297         (re_search_2): Don't check re_compile_fastmap for failure.
59298         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
59299         Now also sets the new value (passed in a new argument).
59300         (re_match_2_internal): Use it.
59301         Also, use a new var `reg' of type size_t when looping through regs
59302         rather than reuse the inappropriate `mcnt'.
59303
59304 2000-10-25  Jim Meyering  <meyering@lucent.com>
59305
59306         * lib/obstack.c: Update from libc.
59307
59308 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
59309
59310         * regex.c (regex_compile): Change the way of handling a range from
59311         a char less than 256 to a char not less than 256.
59312
59313 2000-10-24  Andrew Innes  <andrewi@gnu.org>
59314
59315         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
59316         NT-Emacs only.
59317         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
59318         so that re_search functions only quit when callers expect them to.
59319
59320 2000-10-23  Jim Meyering  <meyering@lucent.com>
59321
59322         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
59323         wrong.  That set_locale call must not have any side effects.
59324         From Paul Eggert.
59325
59326 2000-10-22  Jim Meyering  <meyering@lucent.com>
59327
59328         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
59329         [CYCLIC]: Remove now-unused definition.
59330
59331         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
59332         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
59333         Suggestion from Ulrich Drepper.
59334
59335 2000-10-21  Jim Meyering  <meyering@lucent.com>
59336
59337         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
59338         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
59339         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
59340
59341 2000-10-21  Jim Meyering  <meyering@lucent.com>
59342
59343         * lib/dirname.c (memrchr): Declare if necessary.
59344         (dir_name): Remove the restriction that there be no
59345         trailing slashes.  Now, this code skips past them, effectively
59346         ignoring them.
59347         [TEST_DIRNAME] (main): New unit tests.
59348
59349         * lib/memrchr.c: New file from GNU libc.
59350         Undef __memrchr, too.
59351         [!weak_alias]: Define __memrchr to memrchr.
59352         Guard weak_alias use with `#ifdef weak_alias'.
59353
59354 2000-10-21  Jim Meyering  <meyering@lucent.com>
59355
59356         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
59357         (dir_name): Use dir_name_r.
59358         * lib/dirname.h (dir_name_r): Declare it.
59359
59360 2000-10-17  Jim Meyering  <meyering@lucent.com>
59361
59362         * lib/quote.h (PARAMS): Define and use.
59363         Reported by Akim Demaille.
59364
59365         * lib/getopt.c: Update from libc.
59366
59367 2000-10-16  Jim Meyering  <meyering@lucent.com>
59368
59369         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
59370         setlocale.
59371         From Jan Fedak.
59372
59373 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
59374
59375         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
59376
59377 2000-09-25  Jim Meyering  <meyering@lucent.com>
59378
59379         * lib/md5.h (rol): Define (from GnuPG).
59380
59381         * lib/sha.c: Give credit (GnuPG) where due.
59382         (M): Use rol rather than open-coding it.
59383         Add a FIXME comment.
59384
59385 2000-09-21  Jim Meyering  <meyering@lucent.com>
59386
59387         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
59388         Reported by Michael Stone.
59389
59390 2000-09-20  Jim Meyering  <meyering@lucent.com>
59391
59392         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
59393         (noinst_HEADERS): Add sha.h.
59394         Based on code from Scott G. Miller and from GnuPG.
59395
59396 2000-09-18  Jim Meyering  <meyering@lucent.com>
59397
59398         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
59399         LIBS. Otherwise, everyone ends up linking with -lelf for some
59400         configurations.
59401         Reported by Mike Stone.
59402
59403 2000-09-15  Jim Meyering  <meyering@lucent.com>
59404
59405         * lib/regex.c: Update from libc.
59406
59407 2000-09-10  Jim Meyering  <meyering@lucent.com>
59408
59409         * lib/getopt.c (_getopt_internal): Update from glibc.
59410
59411 2000-09-09  Jim Meyering  <meyering@lucent.com>
59412
59413         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
59414         think it should be used as a general replacement for isascii.
59415         * lib/fnmatch.c: Likewise.
59416         * lib/mbswidth.c: Likewise
59417         * lib/regex.c: Likewise.
59418
59419         Don't use atoi.
59420         * lib/userspec.c: Include sys/param.h and limits.h.
59421         Include xstrtol.h.
59422         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59423         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
59424         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
59425         UID, GID.  Check range.
59426
59427 2000-09-06  Jim Meyering  <meyering@lucent.com>
59428
59429         * lib/getopt.c (_getopt_internal): Update from glibc.
59430
59431 2000-08-30  Jim Meyering  <meyering@lucent.com>
59432
59433         * lib/strftime.c: Merge in changes from GNU libc.
59434
59435 2000-08-26  Jim Meyering  <meyering@lucent.com>
59436
59437         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
59438         * m4/fpending.m4: New file.
59439
59440 2000-08-26  Jim Meyering  <meyering@lucent.com>
59441
59442         * lib/closeout.c: Include "__fpending.h".
59443         (close_stdout_status): Return right away if there's nothing to flush.
59444
59445         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
59446         * lib/__fpending.c: New file.
59447         * lib/__fpending.h: New file.
59448
59449 2000-08-20  Jim Meyering  <meyering@lucent.com>
59450
59451         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
59452         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
59453         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
59454
59455 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
59456
59457         Improve fileutils installation on systems where running
59458         programs (like install) can't be unlinked.
59459         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
59460         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
59461
59462 2000-08-07  Paul Eggert  <eggert@twinsun.com>
59463
59464         Standardize on "memory exhausted" instead of "Memory exhausted"
59465         or "virtual memory exhausted".
59466         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
59467         "virtual memory exhausted".
59468         * lib/same.c (same_name): Invoke xalloc_die instead of printing
59469         our own message.
59470         * lib/userspec.c (parse_user_spec): Likewise.
59471         * lib/bumpalloc.h: comment fix
59472         * lib/same.c, userspec.c: Include xalloc.h.
59473
59474         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
59475         not char *const and pointing to a constant array.
59476         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
59477         (xrealloc): Comment fix.
59478
59479         * lib/userspec.c (parse_user_spec):
59480         Don't translate a message until just before returning,
59481         to avoid unnecessary translation.
59482
59483 2000-08-07  Jim Meyering  <meyering@lucent.com>
59484
59485         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
59486         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
59487         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
59488         getgroups.c, gethostname.c, getopt.h, group-member.c,
59489         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
59490         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
59491         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
59492         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
59493         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
59494         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
59495         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
59496         yesno.c: Back out Copyright date changes for each file with no change
59497         this year.  This eases coordination with other programs using the same
59498         source code modules.  From Paul Eggert.
59499
59500 2000-08-06  Paul Eggert  <eggert@twinsun.com>
59501
59502         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
59503         not char, for compatibility with glibc 2.1.3 strftime.c.
59504
59505 2000-08-03  Greg McGary  <greg@mcgary.org>
59506
59507         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
59508         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
59509         (EXTEND_BUFFER): Use them.
59510
59511 2000-08-01  Jim Meyering  <meyering@lucent.com>
59512
59513         * lib/dirname.c (ISSLASH): Define.
59514         (BACKSLASH_IS_PATH_SEPARATOR): Define.
59515         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
59516         both `\' and `/' may be use as path separators.
59517         Based on a patch from Prashant TR.
59518
59519 2000-07-31  Paul Eggert  <eggert@twinsun.com>
59520
59521         * lib/quotearg.c (quotearg_n_options): Don't make the initial
59522         slot vector a constant, since it might get modified.
59523
59524 2000-07-31  Jim Meyering  <meyering@lucent.com>
59525
59526         * lib/xmalloc.c: Use `virtual memory exhausted', not
59527         `Memory exhausted'.
59528         * lib/obstack.c (print_and_abort): Likewise.
59529
59530 2000-07-30  Paul Eggert  <eggert@twinsun.com>
59531
59532         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
59533         buffer, so that the caller can always quote one small
59534         component of a "memory exhausted" message in slot 0.
59535         From a suggestion by Jim Meyering.
59536
59537 2000-07-30  Jim Meyering  <meyering@lucent.com>
59538
59539         * lib/makepath.c (make_path): Quote the other instance, too.
59540
59541         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
59542         (STATIC_BUF_SIZE): Define.
59543         (quotearg_n_options): Use only statically allocated storage when
59544         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
59545         than STATIC_BUF_SIZE.
59546
59547 2000-07-29  Jim Meyering  <meyering@lucent.com>
59548
59549         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
59550         * lib/dirname.c (dir_name): Likewise.
59551
59552         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
59553         `/'.
59554
59555         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
59556         (dir_name): Assert that there are no trailing slashes.
59557
59558 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
59559
59560         * lib/mbswidth.h (mbswidth): Add a flags argument.
59561         (mbswidth): New declaration.
59562         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
59563         * lib/mbswidth.c (mbswidth): Add a flags argument.
59564         (mbsnwidth): New function.
59565
59566 2000-07-24  Jim Meyering  <meyering@lucent.com>
59567
59568         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
59569
59570 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59571
59572         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
59573
59574 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59575
59576         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
59577         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
59578         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
59579         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
59580         invoke multibyte primitives.
59581
59582 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59583
59584         * lib/quotearg.c:
59585         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
59586         so that mbstate_t is always defined.
59587
59588         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
59589         be 1 in at least one GCC installation, and this configuration
59590         error is likely to be common.  Ignoring MB_LEN_MAX hurts
59591         performance on hosts that have mbrtowc but have only unibyte
59592         locales, but I assume these hosts are rare.
59593
59594 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59595
59596         * lib/mbswidth.c (_XOPEN_SOURCE):
59597         Don't define; this causes problems on Solaris 7.
59598         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
59599
59600 2000-07-23  Jim Meyering  <meyering@lucent.com>
59601
59602         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
59603         too: getgrgid, getpwuid, getuid.
59604
59605 2000-07-23  Jim Meyering  <meyering@lucent.com>
59606
59607         * lib/basename.c (base_name): Add an assertion.
59608
59609 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
59610
59611         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
59612         shadow its mbsinit function.
59613
59614 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
59615
59616         * lib/mbswidth.h: New file.
59617         * lib/mbswidth.c: New file.
59618         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
59619         (noinst_HEADERS): Add mbswidth.h.
59620
59621 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
59622
59623         * lib/config.charset: Add support for FreeBSD. Improve support for
59624         HP-UX and IRIX 6.
59625
59626 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
59627
59628         * m4/mbswidth.m4: New file.
59629         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
59630
59631 2000-07-15  Jim Meyering  <meyering@lucent.com>
59632
59633         * lib/makepath.c: Include quote.h.
59634         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
59635         corresponding argument in a `quote (...)' call.
59636         Give better diagnostics.
59637
59638         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
59639         (noinst_HEADERS): Add quote.h.
59640
59641         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
59642         from tar's src/misc.c.
59643         * lib/quote.h: New file.  Prototypes for same.
59644
59645 2000-07-14  Paul Eggert  <eggert@twinsun.com>
59646
59647         From a suggestion by Bruno Haible.
59648         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
59649         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
59650         to decide whether to define the BeOS workaround macro;
59651         this adjusts to the change to AC_MBSTATE_T.
59652
59653 2000-07-14  Jim Meyering  <meyering@lucent.com>
59654
59655         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
59656         jm_AC_TYPE_UINTMAX_T.
59657
59658 2000-07-13  Paul Eggert  <eggert@twinsun.com>
59659
59660         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
59661
59662         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
59663         quotearg_buffer_restyled): Add support for
59664         clocale_quoting_style.  Undo previous change to
59665         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
59666         and "{RIGHT QUOTATION MARK}" msgids.
59667
59668 2000-07-10  Paul Eggert  <eggert@twinsun.com>
59669
59670         From a suggestion by Bruno Haible.
59671         * m4/mbstate_t.m4 (AC_MBSTATE_T):
59672         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
59673         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
59674         and mbstate_t, to a single-part test that simply defines mbstate_t.
59675         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
59676         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
59677
59678 2000-07-10  Jim Meyering  <meyering@lucent.com>
59679
59680         * m4/strerror_r.m4: Mirror the correction made in autoconf.
59681
59682         * m4/gnu-source.m4: Output to confdefs.h directly.
59683         Suggestion from Akim Demaille.
59684
59685 2000-07-09  Paul Eggert  <eggert@twinsun.com>
59686
59687         The old behavior of quoting `like this' doesn't look good with
59688         newer, ISO-style fonts.  See:
59689         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
59690
59691         Instead, quote "like this" by default.  Let the translator
59692         tailor the locale-specific quoting behavior by providing
59693         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
59694
59695         * lib/quotearg.c (N_): New macro.
59696         (gettext_default): New function.
59697         (quotearg_buffer_restyled): Use
59698         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
59699         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
59700
59701 2000-07-09  Jim Meyering  <meyering@lucent.com>
59702
59703         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
59704         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
59705
59706         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
59707         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
59708
59709 2000-07-09  Jim Meyering  <meyering@lucent.com>
59710
59711         * lib/Most files: Update copyright dates to include 2000.
59712
59713 2000-07-08  Jim Meyering  <meyering@lucent.com>
59714
59715         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
59716         if not defined.
59717         (xgethostname): Remove now-unnecessary #ifdef.
59718         Move declaration of `err' into loop where it's used.
59719
59720 2000-07-05  Paul Eggert  <eggert@twinsun.com>
59721         and Bruno Haible  <haible@clisp.cons.org>
59722
59723         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
59724         only if the test for an object-type mbstate_t fails.  This
59725         prevents us from mistakenly reporting that mbstate_t is a
59726         system object type after we "#define mbstate_t int" to work
59727         around its lack.
59728
59729 2000-07-05  Paul Eggert  <eggert@twinsun.com>
59730         and Bruno Haible  <haible@clisp.cons.org>
59731
59732         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
59733
59734 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59735
59736         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
59737         to strerror_r.
59738         Include <ctype.h> for use of isalpha.
59739
59740 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59741
59742         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
59743         by allocating a larger buffer. Test the gethostname return value for
59744         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
59745         returns an error and ENAMETOOLONG isn't defined.
59746
59747 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59748
59749         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
59750         dimension.
59751
59752 2000-07-04  Jim Meyering  <meyering@lucent.com>
59753
59754         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
59755         of the deprecated AC_CHECKING.
59756
59757 2000-07-04  Jim Meyering  <meyering@lucent.com>
59758
59759         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
59760         Reported by Bruno Haible.
59761
59762 2000-07-04  Jim Meyering  <meyering@lucent.com>
59763
59764         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
59765         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
59766         lacks mbrtowc.
59767
59768 2000-07-03  Paul Eggert  <eggert@twinsun.com>
59769
59770         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
59771         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
59772
59773 2000-07-03  Paul Eggert  <eggert@twinsun.com>
59774         and Bruno Haible  <haible@clisp.cons.org>
59775
59776         * lib/quotearg.c (mbrtowc):
59777         Assign to *pwc, and return 1 only if result is nonzero.
59778         (iswprint): Use ISPRINT when substituting our own mbrtowc.
59779
59780 2000-07-03  Jim Meyering  <meyering@lucent.com>
59781
59782         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
59783
59784 2000-07-03  Jim Meyering  <meyering@lucent.com>
59785
59786         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
59787         This is necessary to get a definition of e.g., UTMP_FILE on
59788         HP-UX 10.20.
59789         From Bob Proulx.
59790
59791 2000-07-02  Jim Meyering  <meyering@lucent.com>
59792
59793         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
59794
59795         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
59796         AC_LIBOBJ(function_name).
59797         * m4/chown.m4: Likewise.
59798         * m4/fnmatch.m4: Likewise.
59799         * m4/ftruncate.m4: Likewise.
59800         * m4/getgroups.m4: Likewise.
59801         * m4/getline.m4: Likewise.
59802         * m4/group-member.m4: Likewise.
59803         * m4/jm-macros.m4: Likewise.
59804         * m4/lstat.m4: Likewise.
59805         * m4/malloc.m4: Likewise.
59806         * m4/memcmp.m4: Likewise.
59807         * m4/nanosleep.m4: Likewise.
59808         * m4/putenv.m4: Likewise.
59809         * m4/realloc.m4: Likewise.
59810         * m4/regex.m4: Likewise.
59811         * m4/stat.m4: Likewise.
59812         * m4/strftime.m4: Likewise.
59813
59814 2000-07-02  Jim Meyering  <meyering@lucent.com>
59815
59816         * lib/quotearg.c (mbstate_t): Don't define here.
59817
59818 2000-07-02  Jim Meyering  <meyering@lucent.com>
59819
59820         * lib/nanosleep.c (SIGCONT): Define if not already defined.
59821
59822 2000-07-01  Jim Meyering  <meyering@lucent.com>
59823
59824         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
59825
59826 2000-07-01  Jim Meyering  <meyering@lucent.com>
59827
59828         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
59829         problem.
59830
59831 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
59832
59833         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
59834         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
59835
59836 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
59837
59838         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
59839         per change in ../m4/ls-mntd-fs.m4.
59840         (read_filesystem_list): Ignore symbolic links.
59841
59842 2000-06-29  Jim Meyering  <meyering@lucent.com>
59843
59844         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
59845         for declaration of strcmp.
59846
59847         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
59848
59849         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
59850         Avoid warning by casting result to `char *' to remove `const'.
59851
59852 2000-06-28  Jim Meyering  <meyering@lucent.com>
59853
59854         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
59855         included by quotearg.c, for which we perform this test.  From
59856         Bruno Haible.
59857
59858 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
59859
59860         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
59861         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
59862         <utmpx.h> exists, put readutmp.o into LIBOBJS.
59863
59864 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
59865
59866         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
59867
59868 2000-06-26  Paul Eggert  <eggert@twinsun.com>
59869
59870         savedir now sets errno on failure and invokes xmalloc to get memory.
59871         Fix a couple of other minor bugs while we're at it.
59872
59873         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
59874         (NAMLEN): Remove macro.
59875         (malloc, realloc): Remove decls.
59876         (stpcpy): Likewise.
59877         ("xalloc.h"): Include.
59878         (NAME_SIZE_DEFAULT): New macro.
59879         (savedir): Use xmalloc / xrealloc to allocate memory.
59880         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
59881         Skip "" directory entries.
59882         Use strlen to calculate directory entry length, since the old method
59883         is rarely used these days and isn't worth supporting.
59884         Don't use a pointer after freeing it.
59885         Check for integer overflow when calculating allocation size.
59886         Use memcpy to copy entries, instead of stpcpy.
59887         Set errno properly when returning NULL.
59888         Check for readdir error.
59889
59890 2000-06-26  Jim Meyering  <meyering@lucent.com>
59891
59892         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
59893
59894 2000-06-25  Jim Meyering  <meyering@lucent.com>
59895
59896         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
59897         Linux header bug when _XOPEN_SOURCE is defined to 500.
59898
59899 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
59900
59901         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
59902         deficiency.
59903
59904 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
59905
59906         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
59907         Include xalloc.h.
59908         Don't include <stdlib.h>.  Don't declare malloc, realloc.
59909
59910 2000-06-24  Jim Meyering  <meyering@lucent.com>
59911
59912         * m4/strerror_r.m4: Revive this file -- to try out an experimental
59913         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
59914         for which strerror does return char*, but which lacks a conveniently
59915         accessible declaration of the function.  If the compile-test says
59916         strerror_r doesn't work, then resort to a `run'-test that works on
59917         BeOS and segfaults on DEC Unix.
59918
59919 2000-06-24  Jim Meyering  <meyering@lucent.com>
59920
59921         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
59922
59923 2000-06-23  Paul Eggert  <eggert@twinsun.com>
59924
59925         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
59926         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
59927
59928 2000-06-23  Paul Eggert  <eggert@twinsun.com>
59929
59930         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
59931         (mbrtowc, mbstate_t): Define substitutes if
59932         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
59933         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
59934         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
59935
59936 2000-06-23  Jim Meyering  <meyering@lucent.com>
59937
59938         * m4/afs.m4: Add missing AC_MSG_RESULT.
59939         Reported by Bruno Haible.
59940
59941         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
59942         Suggestion from Bruno Haible.
59943
59944 2000-06-23  Jim Meyering  <meyering@lucent.com>
59945
59946         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
59947
59948 2000-06-21  Jim Meyering  <meyering@lucent.com>
59949
59950         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
59951
59952 2000-06-21  Jim Meyering  <meyering@lucent.com>
59953
59954         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
59955         (noinst_HEADERS): Add getstr.h.
59956
59957         * lib/getline.c (getstr): Move into a separate file.
59958         * lib/getstr.c (getstr): New file, extracted from getline.c, with
59959         the following changes: new parameter, delim2; both delim[12]
59960         parameters have type `int', not `char'.  The latter would lose
59961         with 8-bit delimiters.
59962         * lib/getstr.h: New file.
59963
59964 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
59965
59966         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
59967         than 1024, return a memory chunk of least possible size, instead
59968         of size PATH_MAX + 2. In the loop, increment the size proportionally.
59969         Use free/xmalloc instead of xrealloc to avoid copying for very long
59970         paths.
59971
59972 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
59973
59974         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
59975         the empty string.
59976
59977 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
59978
59979         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
59980         address, not strdup.  Include <stdlib.h> and don't declare free().
59981
59982 2000-06-19  Jim Meyering  <meyering@lucent.com>
59983
59984         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
59985
59986 2000-06-18  Jim Meyering  <meyering@lucent.com>
59987
59988         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
59989
59990         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
59991         `checking whether...' message to be consistent with that of the
59992         lstat test.
59993
59994 2000-06-18  Jim Meyering  <meyering@lucent.com>
59995
59996         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
59997         Besides, these days every porting target provides a mkdir function.
59998
59999         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
60000         needed. (this snippet comes from src/system.h).
60001
60002 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
60003
60004         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
60005
60006 2000-06-15  Paul Eggert  <eggert@twinsun.com>
60007
60008         * lib/human.c (adjust_value): New function.
60009         (human_readable_inexact): Apply rounding style even when
60010         printing approximate values.
60011
60012 2000-06-14  Paul Eggert  <eggert@twinsun.com>
60013
60014         * lib/human.c (human_readable_inexact): Allow an input block
60015         size that is not a multiple of the output block size, and vice versa.
60016         Reported by Piergiorgio Sartor.
60017
60018 2000-06-14  Paul Eggert  <eggert@twinsun.com>
60019
60020         * lib/getdate.y (get_date): Apply relative times after time
60021         zone indicator, not before.  Reported by Todd A. Jacobs.
60022
60023 2000-06-13  Jim Meyering  <meyering@lucent.com>
60024
60025         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
60026
60027         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
60028
60029 2000-06-12  Paul Eggert  <eggert@twinsun.com>
60030
60031         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
60032
60033 2000-06-12  Jim Meyering  <meyering@lucent.com>
60034
60035         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
60036         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
60037         optional argument.
60038         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
60039         the optional argument, `lib'.
60040
60041 2000-06-08  Jim Meyering  <meyering@lucent.com>
60042
60043         * m4/largefile.m4: Remove file (now that it's part of autoconf).
60044
60045 2000-06-04  Paul Eggert  <eggert@twinsun.com>
60046
60047         Rewrite largefile configuration so that we don't need to run
60048         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
60049         AC_CANONICAL_HOST in configure.in -- jmm]
60050
60051         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
60052         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
60053         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
60054         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
60055         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
60056         All uses changed.
60057         Instead of inspecting the output of getconf, try to compile the
60058         test program without and with the macro definition.
60059         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
60060         for getconf.  Instead, check for the needed flags by compiling
60061         test programs.
60062
60063 2000-06-04  Paul Eggert  <eggert@twinsun.com>
60064
60065         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
60066
60067 2000-06-04  Jim Meyering  <meyering@lucent.com>
60068
60069         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
60070         SunOS 4.1.4 for which gid_t is an unsigned type.
60071
60072 2000-06-03  Jim Meyering  <meyering@lucent.com>
60073
60074         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
60075         now that autoconf requires that.
60076
60077         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
60078         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
60079         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
60080
60081 2000-06-03  Jim Meyering  <meyering@lucent.com>
60082
60083         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
60084
60085 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
60086
60087         * m4/glibc21.m4: New file.
60088         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
60089
60090 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
60091
60092         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
60093         newer, don't install charset.alias.
60094         * lib/config.charset: Change the Linux/glibc rules so they become empty
60095         on glibc-2.1 or newer.
60096
60097 2000-06-02  Jim Meyering  <meyering@lucent.com>
60098
60099         * lib/mountlist.c: Back out last change.  Instead, do this...
60100         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
60101         me_dummy member using the same `ignore'-testing code.
60102         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
60103         fs_type strings.
60104         From Mark D. Roth.
60105
60106 2000-05-29  Jim Meyering  <meyering@lucent.com>
60107
60108         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
60109         mounts with the `ignore' attribute.  Based on a patch from
60110         Mark D. Roth.
60111
60112 2000-05-28  Jim Meyering  <meyering@lucent.com>
60113
60114         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
60115         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60116         * m4/stat.m4: Likewise.
60117         * m4/lstat.m4: Likewise.
60118         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
60119
60120         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
60121         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
60122
60123 2000-05-26  Jim Meyering  <meyering@lucent.com>
60124
60125         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
60126
60127 2000-05-24  Jim Meyering  <meyering@lucent.com>
60128
60129         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
60130         autoconf requires that.
60131         * m4/lib-check.m4: Likewise.
60132         * m4/jm-macros.m4: Likewise.
60133         * m4/strftime.m4: Likewise.
60134
60135         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
60136         AC_CHECK_DECLS, now that autoconf requires that.
60137
60138 2000-05-22  Jim Meyering  <meyering@lucent.com>
60139
60140         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60141         * m4/lstat.m4: Likewise.
60142
60143 2000-05-22  Jim Meyering  <meyering@lucent.com>
60144
60145         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
60146
60147 2000-05-20  Jim Meyering  <meyering@lucent.com>
60148
60149         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
60150         (jm_PREREQ): Use it.
60151
60152 2000-05-18  Jim Meyering  <meyering@lucent.com>
60153
60154         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
60155         back, too, since it may have been modified by allocate_entry.
60156         (hash_delete): Rewrite to use neither the assignment operator
60157         nor the comma operator in an if-expression.
60158
60159 2000-05-15  Paul Eggert  <eggert@twinsun.com>
60160
60161         * lib/closeout.c:
60162         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
60163         Remove; no longer needed.
60164         "quotearg.h": Add include.
60165         (file_name): Do not bother to explicitly initialize to NULL; it's less
60166         efficient on some hosts.
60167         (close_stdout_status): Remove test as to whether stdout was already
60168         closed; it breaks for the case "echo x | sort >&-".
60169         Quote file name colons.
60170         Do not assume that _("write error") lacks format strings.
60171
60172 2000-05-15  Jim Meyering  <meyering@lucent.com>
60173
60174         * lib/version-etc.c (version_etc_copyright): Update the copyright
60175         string used in all --version output.
60176
60177 2000-05-14  Jim Meyering  <meyering@lucent.com>
60178
60179         * lib/closeout.c (close_stdout_set_file_name): New function.
60180         (close_stdout_status): Use new file-scoped global.
60181         Return right away if fstat says the stdout file descriptor is invalid.
60182         * lib/closeout.h (close_stdout_set_file_name): Declare.
60183
60184 2000-05-10  Jim Meyering  <meyering@lucent.com>
60185
60186         * lib/closeout.c [default_exit_status]: New file-scoped variable.
60187         (close_stdout_set_status): New function.
60188         * lib/closeout.h (close_stdout_set_status): Declare.
60189
60190 2000-05-09  Jim Meyering  <meyering@lucent.com>
60191
60192         * m4/gettext.m4: Rename this...
60193         * m4/libintl.m4: ...to this.
60194
60195 2000-05-08  Jim Meyering  <meyering@lucent.com>
60196
60197         * lib/long-options.c: Don't include closeout.h.
60198         (parse_long_options): Don't call close_stdout for --version.
60199
60200 2000-05-06  Paul Eggert  <eggert@twinsun.com>
60201
60202         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
60203         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
60204         2.1.3 bug.  This avoids a clash when files like regex.c define
60205         _GNU_SOURCE.
60206
60207 2000-05-06  Jim Meyering  <meyering@lucent.com>
60208
60209         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
60210         (AC_REPLACE_FUNCS): Add strnlen.
60211
60212         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
60213         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
60214
60215         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
60216         AC_SEARCH_LIBS call for nanosleep.
60217         (LIB_NANOSLEEP): Set and AC_SUBST.
60218
60219 2000-05-06  Jim Meyering  <meyering@lucent.com>
60220
60221         * lib/strnlen.c: Undefine __strnlen and strnlen.
60222         [!weak_alias]: Define __strnlen to strnlen.
60223
60224         * lib/atexit.c: New file, from libiberty.
60225
60226 2000-05-06  Jim Meyering  <meyering@lucent.com>
60227
60228         * lib/closeout.c (close_stdout_status): Also check for errors on the
60229         stderr stream.
60230
60231 2000-05-05  Jim Meyering  <meyering@lucent.com>
60232
60233         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
60234         AC_SEARCH_LIBS call for clock_gettime.
60235         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
60236
60237         * m4/search-libs.m4: Update from autoconf.
60238
60239         su doesn't work on Solaris 2.6.
60240         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
60241         <shadow.h>.  Reported by Dragos Harabor.
60242
60243 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
60244
60245         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
60246         memcpy instead of xmalloc, xrealloc, path_concat.
60247         (locale_charset): Treat empty environment variables as absent.
60248         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
60249
60250 2000-05-04  Jim Meyering  <meyering@lucent.com>
60251
60252         * lib/getopt.c: Update from glibc.
60253         * lib/obstack.c: Likewise.
60254         * lib/obstack.h: Likewise.
60255         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
60256         file
60257
60258         * lib/regex.h: Likewise.
60259         * lib/strndup.c: Likewise.
60260         * lib/strnlen.c: New file, from glibc.
60261
60262 2000-05-03  Jim Meyering  <meyering@lucent.com>
60263
60264         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
60265
60266 2000-05-02  Paul Eggert  <eggert@twinsun.com>
60267
60268         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
60269         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
60270         compile-time test, rather than inspecting host and OS, to
60271         decide whether to define _LARGEFILE_SOURCE.
60272
60273 2000-05-01  Jim Meyering  <meyering@lucent.com>
60274
60275         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
60276
60277         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
60278         Based on a patch from Bruno Haible.
60279
60280 2000-05-01  Jim Meyering  <meyering@lucent.com>
60281
60282         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
60283
60284 2000-04-29  Jim Meyering  <meyering@lucent.com>
60285
60286         * lib/path-concat.c: Declare strdup only if it's not defined.
60287         * lib/canon-host.c: Likewise.
60288
60289 2000-04-28  Jim Meyering  <meyering@lucent.com>
60290
60291         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
60292         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
60293         is included first, then limits.h is included by locale.h by libintl.h.
60294         From John David Anglin.
60295
60296 2000-04-25  Jim Meyering  <meyering@lucent.com>
60297
60298         * lib/makepath.c (S_IRWXUGO): Define.
60299         (make_path): Always perform explicit chmod if MODE specifies any
60300         of the `special' permission bits.  Prompted by a bug report against
60301         install from Mate Wierdl and Joost van Baal.
60302
60303 2000-04-18  Jim Meyering  <meyering@lucent.com>
60304
60305         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
60306         (jm_PREREQ): Use it.
60307
60308 2000-04-18  Jim Meyering  <meyering@lucent.com>
60309
60310         * lib/README: New file.
60311
60312         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
60313         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
60314
60315 2000-04-17  Jim Meyering  <meyering@lucent.com>
60316
60317         Get it right :-)
60318         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
60319         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
60320         Suggestion from Akim Demaille.
60321
60322 2000-04-17  Jim Meyering  <meyering@lucent.com>
60323
60324         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
60325         the definition of it to rpl_strftime also defined-away the system's
60326         declaration.
60327
60328 2000-04-15  Jim Meyering  <meyering@lucent.com>
60329
60330         Use `C' to denote so-called `contiguous' files, the same way
60331         that tar does.
60332         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
60333         (ftypelet): Use S_ISCTG.
60334         From Michael Deutschmann.
60335
60336 2000-04-14  Jim Meyering  <meyering@lucent.com>
60337
60338         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
60339         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
60340         clobbered.
60341
60342 2000-04-14  Jim Meyering  <meyering@lucent.com>
60343
60344         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
60345
60346 2000-04-13  Jim Meyering  <meyering@lucent.com>
60347
60348         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
60349         AH_VERBATIM to insert required #ifndef into config.h.in.
60350         Suggestion from Akim Demaille.
60351
60352 2000-04-12  Jim Meyering  <meyering@lucent.com>
60353
60354         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
60355         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
60356         Christian Krackowizer.
60357
60358         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
60359         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
60360         (AC_SYS_LARGEFILE): Require.
60361         (AM_C_PROTOTYPES): Require.
60362
60363 2000-04-08  Jim Meyering  <meyering@lucent.com>
60364
60365         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
60366         names don't conflict.  Reported by Eli Zaretskii.
60367
60368 2000-04-07  Jim Meyering  <meyering@lucent.com>
60369
60370         * lib/putenv.c: Move inclusion of errno.h so it follows that of
60371         sys/types.h, to work around system header problems on AIX 3.2.5.
60372         From Bruno Haible.
60373
60374 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
60375
60376         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
60377         bug.  Deal with the different error behavior of Irix iconv.
60378
60379 2000-04-05  Paul Eggert  <eggert@twinsun.com>
60380
60381         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
60382         IRIX if the installer said otherwise.
60383
60384 2000-04-05  Jim Meyering  <meyering@lucent.com>
60385
60386         Portability tweaks required for ultrix4.3.
60387         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
60388         (jm_CHECK_DECLS): Add getutent to the list of functions.
60389         (_jm_DECL_HEADERS): Add utmpx.h.
60390         From John David Anglin.
60391
60392         * m4/strftime.m4: Back out the 2000-04-02 change.
60393         Instead of that change, simply undefine putenv in the test program.
60394
60395 2000-04-05  Jim Meyering  <meyering@lucent.com>
60396
60397         Portability tweaks required for ultrix4.3.
60398         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
60399         getutent.
60400         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
60401         * lib/canon-host.c: Declare strdup.
60402         * lib/path-concat.c: Likewise.
60403         From John David Anglin.
60404
60405 2000-04-04  Jim Meyering  <meyering@lucent.com>
60406
60407         Be more DOS 8.3-friendly.
60408         * lib/ref-add.sin: Renamed from ref-add.sed.in.
60409         * lib/ref-del.sin: Renamed from ref-del.sed.in.
60410         * lib/Makefile.am: Reflect renaming.
60411         Reported by Eli Zaretskii.
60412
60413         Use a temporary file name that won't clash with `charset.alias'
60414         in the DOS 8.3 name space.
60415         * lib/Makefile.am (charset_tmp): Define.
60416         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
60417         (uninstall-local): Likewise.
60418         Reported by Eli Zaretskii.
60419
60420 2000-04-03  Jim Meyering  <meyering@lucent.com>
60421
60422         * m4/gettext.m4: Fix typo in comment.
60423
60424         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
60425         textutils/configure.in).  Suggestion from Paul Eggert.
60426         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
60427
60428 2000-04-02  Paul Eggert  <eggert@twinsun.com>
60429
60430         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
60431         variable in the shell rather than using putenv, which isn't
60432         portable.  This avoids the configure-time inter-test dependency
60433         on the potentially-renamed putenv function.
60434
60435 2000-03-30  Paul Eggert  <eggert@twinsun.com>
60436
60437         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
60438         before checking struct stat.st_blksize, so that
60439         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
60440
60441 2000-03-29  Paul Eggert  <eggert@twinsun.com>
60442
60443         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
60444         since strftime.c uses HAVE_STRFTIME to decide whether to use
60445         the underlying strftime.
60446
60447 2000-03-29  Paul Eggert  <eggert@twinsun.com>
60448
60449         * lib/time/strftime.c (my_strftime): Make sure we call the system
60450         strftime, not ourselves, when invoking the underlying strftime.
60451
60452 2000-03-24  Jim Meyering  <meyering@lucent.com>
60453
60454         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
60455         (charset_alias): Define.
60456         (install-exec-local): Factor out common code.
60457         (uninstall-local): Split lines longer than 80.
60458         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
60459         (SUFFIXES): Define.
60460         (.sed.in.sed): New rule.  Don't redirect directly to $@.
60461         (CLEANFILES): Add ref-add.sed and ref-del.sed.
60462
60463 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
60464
60465         * lib/config.charset: Output a line containing "Packages using this
60466         file".
60467         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
60468         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
60469         ref-del.sed): New rules.
60470
60471 2000-03-17  Jim Meyering  <meyering@lucent.com>
60472
60473         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
60474         Otherwise, include <strings.h>
60475
60476 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
60477
60478         * lib/unicodeio.c (utf8_wctomb): New function.
60479         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
60480         format instead of in UCS-4 with platform dependent endianness.
60481
60482 2000-03-10  Jim Meyering  <meyering@lucent.com>
60483
60484         * m4/lib-check.m4: Look for getspnam in -lgen, too.
60485         From Marco Franzen.
60486
60487 2000-03-07  Paul Eggert  <eggert@twinsun.com>
60488
60489         * lib/savedir.c (savedir): Work even if directory size is
60490         negative; this can happen with some screwy NFS configurations.
60491
60492 2000-03-06  Jim Meyering  <meyering@lucent.com>
60493
60494         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
60495         if it's NULL (because we ran out of memory).  From Bruno Haible.
60496
60497 2000-03-05  Jim Meyering  <meyering@lucent.com>
60498
60499         * lib/localcharset.c ("path-concat.h"): Include.
60500         (get_charset_aliases): Use path_concat instead of ANSI string
60501         concatenation.
60502
60503         * lib/unicodeio.h (PARAMS): Define.
60504         Use it to guard prototype.
60505
60506 2000-03-04  Jim Meyering  <meyering@lucent.com>
60507
60508         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
60509         for lib/localcharset.c.
60510
60511 2000-03-04  Jim Meyering  <meyering@lucent.com>
60512
60513         * lib/Makefile.am (install-exec-local): Create $(libdir) before
60514         installing into it.
60515         (uninstall-local): Uncomment this rule so `make distcheck' works
60516         once again.
60517
60518         * lib/unicodeio.c (<errno.h>): Include it.
60519         (errno): Declare if not defined.
60520
60521         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
60522
60523         * lib/config.charset: New version, incorporating remarks from a linux
60524         i18n mailing list.  From Bruno Haible.
60525
60526 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
60527
60528         * m4/codeset.m4: New file.
60529         * m4/iconv.m4: New file.
60530         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
60531
60532 2000-03-03  Jim Meyering  <meyering@lucent.com>
60533
60534         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
60535
60536 2000-03-02  Jim Meyering  <meyering@lucent.com>
60537
60538         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
60539         the messages come out on separate lines.
60540
60541         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
60542         rather than jm_CHECK_DECLARATIONS.
60543         * m4/decl.m4: Remove now-unused file.
60544
60545         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
60546         geteuid.
60547
60548 2000-03-02  Jim Meyering  <meyering@lucent.com>
60549
60550         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
60551
60552 2000-03-01  Jim Meyering  <meyering@lucent.com>
60553
60554         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
60555         * lib/unicodeio.c: Likewise.
60556
60557 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
60558
60559         * lib/config.charset: New file.
60560         * lib/localcharset.c: New file.
60561         * lib/unicodeio.h, lib/unicodeio.c: New files.
60562         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
60563         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
60564         (noinst_HEADERS): Add unicodeio.h.
60565         (all-local, install-exec-local, charset.alias): New targets.
60566
60567 2000-02-28  Paul Eggert  <eggert@twinsun.com>
60568
60569         * lib/quotearg.c (ALERT_CHAR): New macro.
60570         (quotearg_buffer_restyled): Use it.
60571
60572 2000-02-27  Jim Meyering  <meyering@lucent.com>
60573
60574         * m4/check-decl.m4: Add getenv to the list.
60575
60576 2000-02-27  Jim Meyering  <meyering@lucent.com>
60577
60578         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
60579         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
60580
60581         * lib/backupfile.c: Guard inclusion of stdlib.h with
60582         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
60583         Declare malloc if needed.
60584
60585         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
60586         `#ifndef HAVE_DECL..'
60587         now that autoconf always defines the HAVE_DECL_ symbols.
60588         * lib/human.c: Likewise.
60589         * lib/same.c: Likewise.
60590         * lib/strtoumax.c: Likewise.
60591
60592         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
60593         declaration check was not run.
60594         * lib/hash.c: Likewise.
60595         * lib/human.c: Likewise.
60596         * lib/same.c: Likewise.
60597         * lib/strtoumax.c: Likewise.
60598
60599         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
60600         `.', then first look up the entire `.'-containing string as a login
60601         name.
60602
60603 2000-02-23  Jim Meyering  <meyering@lucent.com>
60604
60605         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
60606         in place of my hack.
60607
60608 2000-02-18  Paul Eggert  <eggert@twinsun.com>
60609
60610         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
60611         (textint): New typedef.
60612         (parser_control): Member year changed from int to textint.
60613         All uses changed.
60614         (YYSTYPE): Removed; replaced by %union with int and textint members.
60615         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
60616         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
60617         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
60618         (tSNUMBER, tUNUMBER): Now of type <textintval>.
60619         (date, number, to_year): Use width of number in digits, not its value,
60620         to determine whether it's a 2-digit year, or a 2-digit time.
60621         (yylex): Store number of digits of numeric tokens.
60622         Reported by John Kendall.
60623
60624         (parser_control): Changed from struct parser_control to typedef (for
60625         consistency).  All uses changed.
60626
60627         (tID): Removed; not used.
60628         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
60629
60630 2000-02-14  Paul Eggert  <eggert@twinsun.com>
60631
60632         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
60633         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
60634
60635 2000-02-12  Jim Meyering  <meyering@lucent.com>
60636
60637         * lib/userspec.c (ISDIGIT): Define it.
60638         (isdigit): Remove definition.
60639         (is_number): Use ISDIGIT, not isdigit.
60640         <libintl.h>: Include.
60641         (_ and N_): Define.
60642         (parse_user_spec): Mark translatable strings.
60643
60644 2000-02-10  Jim Meyering  <meyering@lucent.com>
60645
60646         With these changes, nanosleep.[ch] are finally enough like the other
60647         lib/* replacement files to compile on a few more losing systems.
60648
60649         * lib/nanosleep.h: Don't include config.h.
60650         Remove prototype from declaration of nanosleep.
60651         (PARAMS): Remove now-unneeded definition.
60652         * lib/nanosleep.c: #undef nanosleep.
60653         (rpl_nanosleep): Rename from nanosleep.
60654
60655 2000-02-10  Jim Meyering  <meyering@lucent.com>
60656
60657         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
60658         gnu_nanosleep to rpl_nanosleep.
60659
60660 2000-02-09  Jim Meyering  <meyering@lucent.com>
60661
60662         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
60663         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
60664
60665 2000-02-08  Akim Demaille  <akim@epita.fr>
60666
60667         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
60668         `[' and `]' and remove uses of `changequote'.
60669         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
60670         (AC_SYS_LARGEFILE): Likewise.
60671         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
60672         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
60673         of changequote.
60674         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
60675         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
60676         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
60677         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
60678
60679 2000-02-05  Jim Meyering  <meyering@lucent.com>
60680
60681         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
60682         Remove explicit use of AC_HEADER_TIME.  It is required by
60683         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
60684         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
60685         in autoconf whereby the expansion of the latter ended up preceding
60686         the expansion of its prerequisite, AC_HEADER_TIME.
60687         Reported by Volker Borchert.
60688
60689 2000-02-03  Jim Meyering  <meyering@lucent.com>
60690
60691         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
60692
60693 2000-02-03  Jim Meyering  <meyering@lucent.com>
60694
60695         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
60696         rather than with `#if HAVE_UTMPNAME'.
60697
60698 2000-02-02  Jim Meyering  <meyering@lucent.com>
60699
60700         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
60701         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
60702         Reported by Eli Zaretskii.
60703
60704 2000-02-01  Jim Meyering  <meyering@lucent.com>
60705
60706         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
60707
60708 2000-01-31  Jim Meyering  <meyering@lucent.com>
60709
60710         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
60711         functions.  Add the time.h and sys/time.h headers along with the
60712         AC_REQUIRE'ment of AC_HEADER_TIME.
60713
60714 2000-01-31  Jim Meyering  <meyering@lucent.com>
60715
60716         * lib/nanosleep.h (nanosleep): Guard declaration with
60717         `#if ! HAVE_DECL_NANOSLEEP'.
60718         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
60719         the declaration in that vendor's sys/timers.h.
60720         Reported by Christian Krackowizer.
60721
60722         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
60723         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
60724         (ISPRINT): Likewise.
60725         Reported by Tom Tromey.
60726
60727 2000-01-30  Jim Meyering  <meyering@lucent.com>
60728
60729         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
60730
60731         * m4/prereq.m4 (utmp_includes): Define.
60732         Check for ut_user and ut_name members in both struct utmpx
60733         and struct utmp.
60734
60735 2000-01-30  Jim Meyering  <meyering@lucent.com>
60736
60737         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
60738         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
60739         header files where only utmpx.ut_user is declared.
60740
60741         * lib/readutmp.h (UT_USER): Define.
60742
60743 2000-01-29  Jim Meyering  <meyering@lucent.com>
60744
60745         * m4/lib-check.m4: New file containing library-related checks from
60746         fileutils and sh-utils (textutils had none).
60747
60748 2000-01-28  Jim Meyering  <meyering@lucent.com>
60749
60750         * m4/perl.m4: Change format of warning message to look more like that
60751         from the missing script.  Suggestion from François Pinard.
60752
60753 2000-01-25  Jim Meyering  <meyering@lucent.com>
60754
60755         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
60756         well as time.h in the compile check.
60757         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
60758         Fix typo in cross-compiling case: s/yes/no/.
60759
60760 2000-01-23  Jim Meyering  <meyering@lucent.com>
60761
60762         * m4/jm-macros.m4: Move df-related tests here from
60763         fileutils/configure.in
60764
60765         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
60766         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
60767
60768         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
60769         s/space/ac_fsusage_space/.
60770         (jm_FILE_SYSTEM_USAGE): Take two parameters.
60771
60772         * m4/ftruncate.m4: New file (derived from part of
60773         fileutils/configure.in).
60774         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
60775         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
60776
60777         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
60778         AC_SUBST these here, rather than just in sh-util/configure.in, so
60779         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
60780         all the same.
60781         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
60782         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
60783         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
60784         (AC_SUBST(POW_LIBM)): Likewise.
60785         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
60786
60787 2000-01-23  Jim Meyering  <meyering@lucent.com>
60788
60789         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
60790         obstack.c.
60791
60792 2000-01-22  Jim Meyering  <meyering@lucent.com>
60793
60794         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
60795
60796         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
60797
60798         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
60799         configure.in
60800         (AC_CHECK_HEADERS): Likewise for sh-utils.
60801         (AC_CHECK_HEADERS): Likewise for textutils.
60802         Merge the three lists of headers.
60803
60804         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
60805         from fileutils' configure.in.
60806
60807         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
60808         code. Moved tests into their own function (_jm_DECL_HEADERS) in
60809         check-decl.m4.
60810
60811         * m4/check-decl.m4: Use #if rather than #ifdef.
60812         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
60813         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
60814         (_jm_DECL_HEADERS): Define new function.
60815         (jm_CHECK_DECLARATIONS): Require it.
60816
60817 2000-01-22  Jim Meyering  <meyering@lucent.com>
60818
60819         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
60820         [! HAVE_DECL_STRTOULL]: Declare strtoull.
60821         Required for some AIX systems.  Reported by Christian Krackowizer.
60822         [TESTING] (main): New function.
60823
60824         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
60825         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
60826         letters.
60827
60828         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
60829         iswprint.
60830
60831         * lib/strverscmp.c (ISDIGIT): Define.
60832         (strverscmp): Use ISDIGIT, not isdigit.
60833
60834 2000-01-19  Jim Meyering  <meyering@lucent.com>
60835
60836         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
60837         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
60838         defines `struct timespec' in <sys/time.h>
60839
60840         * m4/c-bs-a.m4: Remove uses of changequote altogether.
60841         Thanks to Akim for explaining.
60842
60843 2000-01-17  Paul Eggert  <eggert@twinsun.com>
60844
60845         * lib/nanosleep.c (nanosleep):
60846         Don't use SA_INTERRUPT to decide whether to call sigaction, as
60847         POSIX.1 doesn't require SA_INTERRUPT and some systems
60848         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
60849         it's been part of POSIX.1 since day 1 (in 1988).
60850
60851 2000-01-17  Jim Meyering  <meyering@lucent.com>
60852
60853         * lib/interlock: Remove unused file.  Reported by François Pinard.
60854
60855 2000-01-16  Paul Eggert  <eggert@twinsun.com>
60856
60857         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
60858         alert, backslash, formfeed, and vertical tab unnecessarily in
60859         shell quoting style.
60860
60861 2000-01-16  Jim Meyering  <meyering@lucent.com>
60862
60863         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
60864         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
60865         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
60866         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
60867
60868 2000-01-16  Jim Meyering  <meyering@lucent.com>
60869
60870         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
60871         because the latter didn't work.
60872
60873 2000-01-15  Jim Meyering  <meyering@lucent.com>
60874
60875         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
60876         (AC_REPLACE_FUNCS): Add memcpy and memset.
60877         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
60878         Add strpbrk.
60879         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
60880
60881 2000-01-12  Jim Meyering  <meyering@lucent.com>
60882
60883         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
60884         (jm_PREREQ): Use it.
60885         (jm_PREREQ_READUTMP): New macro.
60886         (jm_PREREQ): Use it.
60887
60888 2000-01-11  Paul Eggert  <eggert@twinsun.com>
60889
60890         Quote multibyte characters correctly.
60891         * m4/c-bs-a.m4: New file.
60892         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
60893         (jm_PREREQ): Use it.
60894
60895 2000-01-11  Paul Eggert  <eggert@twinsun.com>
60896
60897         * m4/uintmax_t.m4: Port to autoconf 2.13.
60898
60899 2000-01-08  Jim Meyering  <meyering@ascend.com>
60900
60901         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
60902         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
60903
60904 2000-01-04  Jim Meyering  <meyering@ascend.com>
60905
60906         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
60907         jm_STRUCT_DIRENT_D_TYPE.
60908         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
60909         jm_STRUCT_DIRENT_D_INO.
60910         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
60911         jm_STRUCT_UTIMBUF.
60912         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
60913         renamings.
60914         * m4/utime.m4: Likewise.
60915
60916         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
60917         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
60918
60919 2000-01-03  Paul Eggert  <eggert@twinsun.com>
60920
60921         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
60922         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
60923
60924 2000-01-02  Jim Meyering  <meyering@ascend.com>
60925
60926         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
60927         remember if this is necessary.
60928
60929 1999-12-26  Jim Meyering  <meyering@ascend.com>
60930
60931         * m4/jm-macros.m4: Use it here.
60932         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
60933
60934 1999-12-23  Jim Meyering  <meyering@ascend.com>
60935
60936         * m4/jm-macros.m4: Check for clock_gettime (moved from
60937         fileutils/configure.in)
60938         Check for gettimeofday.
60939
60940 1999-12-20  Jim Meyering  <meyering@ascend.com>
60941
60942         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
60943         autoconf-2.14a-1999-12-20.
60944
60945 1999-12-19  Jim Meyering  <meyering@ascend.com>
60946
60947         * m4/lstat-slash.m4: New file.
60948         * m4/jm-macros.m4: Use the new macro:
60949         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60950
60951 1999-12-07  Jim Meyering  <meyering@ascend.com>
60952
60953         * m4/perl.m4: Require that File::Compare be available, too.
60954         Too many systems seem to lack it.
60955
60956         * m4/strftime.m4: Add checks for most of the cpp macros tested in
60957         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
60958
60959 1999-11-18  Paul Eggert  <eggert@twinsun.com>
60960
60961         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
60962         problem with the QNX 4.25 shell, which doesn't propagate exit
60963         status of failed commands inside shell assignments.
60964
60965 1999-11-17  Jim Meyering  <meyering@ascend.com>
60966
60967         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
60968
60969 1999-11-07  Jim Meyering  <meyering@ascend.com>
60970
60971         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
60972
60973 1999-11-06  Jim Meyering  <meyering@ascend.com>
60974
60975         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
60976         * m4/jm-macros.m4 (jm_MACROS): Use it here.
60977
60978 1999-11-05  Jim Meyering  <meyering@ascend.com>
60979
60980         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
60981         configure.in of textutils, fileutils, and sh-utils into this one
60982         (shared between those packages) file.
60983         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
60984         AC_STRUCT_ST_BLKSIZE.
60985
60986 1999-11-03  Jim Meyering  <meyering@ascend.com>
60987
60988         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
60989         of AC_CHECK_TYPE checks includes unistd.h.
60990         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
60991         Suggestion from Akim Demaille.
60992
60993 1999-10-30  Jim Meyering  <meyering@ascend.com>
60994
60995         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
60996         m4-quoted string.
60997         * m4/ls-mntd-fs.m4: Likewise.
60998         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
60999         * m4/jm-winsz1.m4: Likewise.
61000
61001         * m4/const.m4: Remove file, since the fix made it into the experimental
61002         version of autoconf.
61003         * m4/mktime.m4: Likewise.
61004
61005         * m4/check-type.m4: Remove file, now that the latest version of
61006         AC_CHECK_TYPE takes a third arg to specify additional #includes.
61007
61008         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
61009         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
61010         AC_CHECK_TYPE.
61011
61012 1999-10-04  Jim Meyering  <meyering@ascend.com>
61013
61014         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
61015
61016 1999-09-22  Paul Eggert  <eggert@twinsun.com>
61017
61018         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
61019         2.95.1 bug with HP-UX 10.20.
61020
61021 1999-09-17  Jim Meyering  <meyering@ascend.com>
61022
61023         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
61024         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
61025         due to missing strdup (against sh-utils-2.0).
61026
61027 1999-08-29  Jim Meyering  <meyering@ascend.com>
61028
61029         * m4/jm-macros.m4: Require jm_BISON.
61030         * m4/bison.m4: New file.
61031
61032 1999-08-17  Paul Eggert  <eggert@twinsun.com>
61033
61034         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
61035         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
61036
61037 1999-08-05  Jim Meyering  <meyering@ascend.com>
61038
61039         * m4/getline.m4: Rename test file from conftestdata to conftest.data
61040         to avoid conflicts with `conftest' on 8+3 filesystems.
61041         Suggestion from Eli Zaretskii.
61042
61043 1999-08-04  Jim Meyering  <meyering@ascend.com>
61044
61045         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
61046         fileutils and sh-utils (textutils's getline test was inadequate).
61047         (AM_FUNC_GETLINE): Run this test.
61048         (AC_CHECK_FUNCS): Check for getdelim.
61049         Reported by Bob Proulx.
61050
61051 1999-08-02  Jim Meyering  <meyering@ascend.com>
61052
61053         * m4/jm-macros.m4: Add a comment.
61054
61055 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61056
61057         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
61058         <inttypes.h> defines strtoumax as a macro (and not as a
61059         function).
61060
61061 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61062
61063         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
61064         that we can shift, multiply and divide unsigned long long
61065         values; Ultrix cc can't do it.
61066
61067 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61068
61069         * m4/mktime.m4: New file, which is a preview of what should appear
61070         in the next public autoconf release.
61071
61072 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61073
61074         * m4/lfs.m4: Remove this file.
61075         * m4/largefile.m4: New file.  It contains the old contents of
61076         lfs.m4, except that all names with prefix AC_LFS have been
61077         changed to use the prefix AC_SYS_LARGEFILE instead, to be
61078         compatible with future autoconf versions.  Also, some minor m4
61079         quoting problems have been fixed.
61080
61081 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61082
61083         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
61084         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
61085         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
61086         and simplify the shell code.
61087
61088 1999-08-01  Jim Meyering  <meyering@ascend.com>
61089
61090         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
61091         m4.
61092
61093 1999-07-20  Jim Meyering  <meyering@ascend.com>
61094
61095         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
61096
61097 1999-07-15  Jim Meyering  <meyering@ascend.com>
61098
61099         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
61100
61101 1999-05-22  Jim Meyering  <meyering@ascend.com>
61102
61103         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
61104
61105 1999-05-20  Jim Meyering  <meyering@ascend.com>
61106
61107         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
61108         Add a colon after each `then' in case $4 is empty.
61109
61110 1999-05-16  Jim Meyering  <meyering@ascend.com>
61111
61112         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
61113
61114 1999-05-10  Jim Meyering  <meyering@ascend.com>
61115
61116         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
61117
61118         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
61119         AC_FUNC_MKTIME.
61120
61121 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
61122
61123         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
61124
61125 1999-05-04  Paul Eggert  <eggert@twinsun.com>
61126
61127         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
61128         not CPPFLAGS, so that linking works correctly in IRIX.
61129
61130 1999-04-30  Paul Eggert  <eggert@twinsun.com>
61131
61132         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
61133
61134 1999-04-20  Paul Eggert  <eggert@twinsun.com>
61135
61136         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
61137         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
61138         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
61139         jm_AC_TYPE_UNSIGNED_LONG_LONG.
61140         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
61141
61142         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
61143
61144 1999-04-20  Jim Meyering  <meyering@ascend.com>
61145
61146         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
61147         AC_REPLACE xstroull if necessary.  From Paul Eggert.
61148         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
61149
61150 1999-04-18  Jim Meyering  <meyering@ascend.com>
61151
61152         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
61153         * m4/jm-macros.m4: Use it.
61154
61155 1999-04-06  Jim Meyering  <meyering@ascend.com>
61156
61157         * m4/strftime.m4: Remove test for %f.
61158
61159 1999-03-29  Jim Meyering  <meyering@ascend.com>
61160
61161         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
61162         superset of the AC_TYPE_* checks in the textutils, fileutils,
61163         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
61164         AC_TYPE_PID_T.
61165
61166 1999-03-28  Jim Meyering  <meyering@ascend.com>
61167
61168         * m4/jm-macros.m4: Define GNU_PACKAGE here.
61169         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
61170         replaced e.g., in the *.sh files of the sh-utils.
61171
61172 1999-03-20  Jim Meyering  <meyering@ascend.com>
61173
61174         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
61175         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
61176         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
61177
61178 1999-03-19  Jim Meyering  <meyering@ascend.com>
61179
61180         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
61181
61182 1999-03-12  Jim Meyering  <meyering@ascend.com>
61183
61184         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
61185
61186 1999-03-07  Jim Meyering  <meyering@ascend.com>
61187
61188         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
61189         declared.
61190
61191 1999-02-17  Jim Meyering  <meyering@ascend.com>
61192
61193         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
61194         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
61195
61196 1999-02-07  Jim Meyering  <meyering@ascend.com>
61197
61198         * m4/group-member.m4: New file -- extracted from sh-utils'
61199         configure.in.
61200
61201         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
61202         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
61203
61204 1999-02-06  Jim Meyering  <meyering@ascend.com>
61205
61206         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
61207         * m4/fnmatch.m4: Likewise.
61208         * m4/getgroups.m4: Likewise.
61209         * m4/lstat.m4: Likewise.
61210         * m4/malloc.m4: Likewise.
61211         * m4/putenv.m4: Likewise.
61212         * m4/realloc.m4: Likewise.
61213         * m4/regex.m4: Likewise.
61214         * m4/stat.m4: Likewise.
61215         * m4/strftime.m4: Likewise.
61216         Suggestion from Alain Magloire.
61217
61218         * m4/chown.m4: Use `.$ac_objext', not `.o'.
61219         * m4/fnmatch.m4: Likewise.
61220         * m4/getgroups.m4: Likewise.
61221         * m4/getline.m4: Likewise.
61222         * m4/lstat.m4: Likewise.
61223         * m4/malloc.m4: Likewise.
61224         * m4/memcmp.m4: Likewise.
61225         * m4/putenv.m4: Likewise.
61226         * m4/realloc.m4: Likewise.
61227         * m4/regex.m4: Likewise.
61228         * m4/stat.m4: Likewise.
61229         * m4/strftime.m4: Likewise.
61230         Suggestion from Alain Magloire.
61231
61232         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
61233         an argument.
61234
61235         * m4/regex.m4: Add a run-time Test for proper operation of
61236         re_compile_pattern.
61237
61238 1999-01-31  Jim Meyering  <meyering@ascend.com>
61239
61240         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
61241
61242 1999-01-30  Jim Meyering  <meyering@ascend.com>
61243
61244         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
61245
61246         * m4/jm-mktime.m4: Make this a wrapper around the official
61247         AM_FUNC_MKTIME rather than my private copy, now that the official one
61248         is up to date.
61249         * m4/mktime.m4: Remove file.
61250
61251         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
61252         * m4/uptime.m4: Likewise.
61253         * m4/uintmax_t.m4: Likewise.
61254
61255 1999-01-28  Jim Meyering  <meyering@ascend.com>
61256
61257         * m4/jm-macros.m4: Use jm_AFS.
61258         * m4/afs.m4: New file (from fileutils' configure.in).
61259
61260         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
61261         * m4/chown.m4: Likewise.
61262         * m4/d-ino.m4: Likewise.
61263         * m4/d-type.m4: Likewise.
61264         * m4/fnmatch.m4: Likewise.
61265         * m4/getgroups.m4: Likewise.
61266         * m4/gettext.m4: Likewise.
61267         * m4/jm-mktime.m4: Likewise.
61268         * m4/jm-winsz2.m4: Likewise.
61269         * m4/lcmessage.m4: Likewise.
61270         * m4/ls-mntd-fs.m4: Likewise.
61271         * m4/malloc.m4: Likewise.
61272         * m4/memcmp.m4: Likewise.
61273         * m4/putenv.m4: Likewise.
61274         * m4/realloc.m4: Likewise.
61275         * m4/st_mtim.m4: Likewise.
61276         * m4/strftime.m4: Likewise.
61277
61278 1999-01-16  Jim Meyering  <meyering@ascend.com>
61279
61280         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
61281         (ARGMATCH_DIE_DECL): Define.
61282
61283 1999-01-12  Jim Meyering  <meyering@ascend.com>
61284
61285         * m4/Makefile.am.in: Rewrite to avoid using fmt.
61286         Reported by Lars Hecking.
61287
61288 1999-01-10  Jim Meyering  <meyering@ascend.com>
61289
61290         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
61291         gross kludge.
61292         * m4/inttypes_h.m4: Likewise.
61293         * m4/lstat.m4: Likewise.
61294         * m4/malloc.m4: Likewise.
61295         * m4/readdir.m4: Likewise.
61296         * m4/realloc.m4: Likewise.
61297         * m4/st_dm_mode.m4: Likewise.
61298         * m4/stat.m4: Likewise.
61299         * m4/utimbuf.m4: Likewise.
61300         * m4/utimes.m4: Likewise.
61301
61302         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
61303         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
61304         comments in config.h.in are meaningful.
61305
61306         * m4/jm-macros.m4: Require autoconf-2.13 here.
61307
61308         * m4/regex.m4: By default, don't use the included regex.c on systems
61309         with glibc 2.  Suggestion from Uli Drepper.
61310
61311 1999-01-02  Jim Meyering  <meyering@ascend.com>
61312
61313         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
61314
61315 1998-12-18  Jim Meyering  <meyering@ascend.com>
61316
61317         * m4/Makefile.am.in (Makefile.am): Simplify rule.
61318         Based on a suggestion from Lars Hecking.
61319
61320 1998-11-16  Paul Eggert  <eggert@twinsun.com>
61321
61322         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
61323
61324 1998-11-16  Jim Meyering  <meyering@ascend.com>
61325
61326         * m4/lfs.m4: Double-quote the `uname...` expression.
61327
61328 1998-11-14  Jim Meyering  <meyering@ascend.com>
61329
61330         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
61331         * m4/stat.m4: Likewise.
61332
61333 1998-11-03  Jim Meyering  <meyering@ascend.com>
61334
61335         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
61336         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
61337
61338 1998-10-18  Jim Meyering  <meyering@ascend.com>
61339
61340         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
61341
61342 1998-10-17  Jim Meyering  <meyering@ascend.com>
61343
61344         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
61345         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
61346         calls for those previously hard-coded headers.  Instead, take a new
61347         parameter.
61348         (jm_CHECK_DECLARATIONS): Reflect interface change.
61349         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
61350         (jm_CHECK_DECL_LOCALTIME_R): New macro.
61351
61352         * m4/mktime.m4: Test for spring-forward gap before long-running test.
61353
61354 1998-10-14  Jim Meyering  <meyering@ascend.com>
61355
61356         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
61357         instead of "TZ=America/Vancouver".  From Paul Eggert.
61358
61359 1998-10-11  Jim Meyering  <meyering@ascend.com>
61360
61361         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
61362         This adds a test for a recently added compatibility fix for mktime.c.
61363         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
61364
61365 1998-09-27  Jim Meyering  <meyering@ascend.com>
61366
61367         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
61368
61369         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
61370         ../configure.in, including a change from Gordon Matzigkeit to allow
61371         cross-compiling for the Hurd.
61372
61373         * m4/glibc.m4: New file/macro to test for the GNU C Library
61374         versions 1 and 2.  From Gordon Matzigkeit.
61375         Indent.
61376
61377 1998-09-21  Jim Meyering  <meyering@ascend.com>
61378
61379         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
61380
61381 1998-08-18  Paul Eggert  <eggert@twinsun.com>
61382
61383         Port nanosecond-resolution times to UnixWare 2.1.2 and
61384         pedantic Solaris 2.6.
61385
61386         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
61387         AC_STRUCT_ST_MTIM.
61388         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
61389         Generate name of ns member, instead of just 1 or undef.
61390         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
61391
61392 1998-08-15  Jim Meyering  <meyering@ascend.com>
61393
61394         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
61395         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
61396         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
61397         instead of jm_TYPE_SSIZE_T.
61398
61399 1998-08-12  Jim Meyering  <meyering@ascend.com>
61400
61401         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
61402
61403 1998-08-02  Jim Meyering  <meyering@ascend.com>
61404
61405         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
61406         in acconfig.h manually.
61407
61408 1998-07-31  Paul Eggert  <eggert@twinsun.com>
61409
61410         * m4/st_mtim.m4: New file.
61411
61412 1998-07-28  Jim Meyering  <meyering@ascend.com>
61413
61414         * m4/utimes.m4: Undef stat.
61415
61416 1998-07-25  Jim Meyering  <meyering@ascend.com>
61417
61418         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
61419         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
61420
61421 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
61422
61423         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
61424         uid and gid actually remain unchanged.
61425
61426 1998-07-07  Jim Meyering  <meyering@ascend.com>
61427
61428         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
61429
61430 1998-07-04  Jim Meyering  <meyering@ascend.com>
61431
61432         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
61433         to prove that this macro can be used in packages without regex.c.
61434
61435 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
61436
61437         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
61438         is to be used.
61439
61440 1998-07-03  Jim Meyering  <meyering@ascend.com>
61441
61442         * m4/gettext.m4: Add -lintl if it's found to be necessary.
61443
61444         * m4/gettext.m4: New file -- from gettext-0.10.35.
61445         * m4/lcmessage.m4: Likewise.
61446         * m4/progtest.m4: Likewise.
61447
61448         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
61449         * m4/jm-macros.m4: Require the new macro.
61450
61451 1998-06-29  Jim Meyering  <meyering@ascend.com>
61452
61453         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
61454         for the definition of NGROUPS (used in a system header included
61455         by sys/mount.h).
61456
61457 1998-06-28  Jim Meyering  <meyering@ascend.com>
61458
61459         * m4/ls-mntd-fs.m4: New file.
61460         * m4/fstypename.m4: New file.
61461
61462         * m4/jm-macros.m4: Require the new macro.
61463         * m4/jm-glibc-io.m4: New file.
61464
61465 1998-05-19  Jim Meyering  <meyering@ascend.com>
61466
61467         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
61468         * m4/lchown.m4: New file.
61469
61470         * m4/Makefile.am.in: New file.
61471         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
61472
61473 1998-05-14  Jim Meyering  <meyering@ascend.com>
61474
61475         * m4/Makefile.am (EXTRA_DIST): Add them.
61476         * m4/jm-macros.m4: New file.
61477         * m4/utimbuf.m4: New file.
61478
61479 1998-05-12  Jim Meyering  <meyering@ascend.com>
61480
61481         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
61482
61483 1998-05-11  Jim Meyering  <meyering@ascend.com>
61484
61485         * m4/isc-posix.m4: New file.
61486
61487 1998-05-10  Jim Meyering  <meyering@ascend.com>
61488
61489         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
61490
61491 1998-05-09  Jim Meyering  <meyering@ascend.com>
61492
61493         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
61494         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
61495         with automake.
61496
61497         * m4/ssize_t.m4: New file.
61498         * m4/mktime.m4: Remove file -- the new automake has this now.
61499
61500 1998-04-26  Jim Meyering  <meyering@ascend.com>
61501
61502         * m4/assert.m4: New file.
61503         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
61504
61505 1998-04-05  Jim Meyering  <meyering@ascend.com>
61506
61507         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
61508         (jm_PREREQ): Use it here.
61509
61510 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
61511
61512         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
61513         in acconfig.h.
61514
61515 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
61516
61517         * m4/prereq.m4: New file.
61518         * m4/error.m4: New file.
61519         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
61520
61521 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
61522
61523         * m4/getline.m4: Don't set am_cv_func_working_getline before the
61524         cache-check for the same variable -- that defeated the purpose of
61525         the test; the test program was never run.  This was a problem only
61526         on systems with losing getline functions -- HP-UX 10.20 is one.
61527         Reported by Bjorn Helgaas.
61528
61529 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
61530
61531         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
61532
61533 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
61534
61535         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
61536
61537         * m4/const.m4: New file.  Use an initializer in this declaration
61538         typedef int charset[2]; const charset x;
61539         Reported by Bob Glickstein.
61540
61541 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
61542
61543         * m4/chown.m4: Fix reversed types on -1 args to chown.
61544         From Kaveh Ghazi.
61545
61546 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
61547
61548         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
61549         Add lseek and memchr.
61550
61551         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
61552         T.E.Dickey <dickey@clark.net> said that some older preprocessors
61553         have a 20-character limit on names.
61554
61555 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
61556
61557         * m4/inttypes_h.m4: New file.
61558         * m4/uintmax_t.m4: New file.
61559         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
61560
61561
61562         -----
61563
61564         Local Variables:
61565         coding: utf-8
61566         End:
61567
61568         Copyright (C) 1997-2010 Free Software Foundation, Inc.
61569
61570         Copying and distribution of this file, with or without
61571         modification, are permitted provided the copyright notice
61572         and this notice are preserved.