d891134b7be3b29bf83496c1a4aa1e7af9e13e32
[gnulib.git] / ChangeLog
1 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2
3         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
4         VC_LIST_ALWAYS_EXCLUDE_REGEX.
5
6 2010-01-12  Eric Blake  <ebb9@byu.net>
7
8         build: guarantee AS_VAR_IF
9         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
10         (gl_AS_VAR_IF): Move...
11         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
12         Reported by Simon Josefsson.
13
14 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15
16         * lib/stdio.in.h: Fix typo.
17
18 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19
20         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
21         libgpg-error.
22
23 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24
25         * tests/test-xalloc-die.sh: Use $EXEEXT.
26
27 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28             Bruno Haible  <bruno@clisp.org>
29
30         getlogin, getlogin_r: Avoid test failure.
31         * tests/test-getlogin.c: Include <stdio.h>.
32         (main): Skip the test when the function fails because stdin is not a
33         tty.
34         * tests/test-getlogin_r.c: Include <stdio.h>.
35         (main): Skip the test when the function fails because stdin is not a
36         tty.
37
38 2010-01-11  Eric Blake  <ebb9@byu.net>
39
40         tests: avoid more large file warnings
41         * tests/test-fflush.c: Avoid warning about ftell use.
42         * tests/test-fseek.c: Avoid warning about fseek use.
43
44 2010-01-10  Bruno Haible  <bruno@clisp.org>
45
46         nproc: Work better on Linux when /proc and /sys are not mounted.
47         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
48         as lower bound when, on glibc/Linux systems,
49         sysconf (_SC_NPROCESSORS_CONF) returns 1.
50         Suggested by Pádraig Brady <P@draigbrady.com>.
51         Reported by Dmitry V. Levin <ldv@altlinux.org>.
52
53         nproc: Refactor.
54         * lib/nproc.c (num_processors_via_affinity_mask): New function,
55         extracted from num_processors.
56         (num_processors): Call it.
57
58 2010-01-11  Jim Meyering  <meyering@redhat.com>
59
60         utimecmp: avoid new warning from upcoming gcc-4.5.0
61         * lib/utimecmp.c (BILLION): Define using #define rather than an
62         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
63
64 2010-01-11  Eric Blake  <ebb9@byu.net>
65
66         math: add portability warnings for classification macros
67         * modules/math (Depends-on): Add warn-on-use.
68         (Makefile.am): Provide new substitutions.
69         * m4/math_h.m4 (gl_MATH_H): Require inline.
70         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
71         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
72         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
73         implement warnings.
74
75         unistd: warn on use of environ without module
76         * modules/unistd (Depends-on): Add warn-on-use.
77         (Makefile.am): Provide new substitutions.
78         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
79         * lib/unistd.in.h (environ): Wrap with a warning helper function.
80
81         stdio: warn on suspicious uses
82         * modules/stdio (Depends-on): Add warn-on-use.
83         (Makefile.am): Provide new substitutions.
84         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
85         fseeko.
86         * lib/stdio.in.h (gets): Always warn on use.
87         (fseek, ftell): Adjust when warnings are issued, and honor
88         _GL_NO_LARGE_FILES as a way to silence the warning.
89         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
90         any warning about large file offsets.
91         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
92         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
93         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
94         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
95         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
96         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
97         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
98         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
99
100         warn-on-use: new module
101         * modules/warn-on-use: New file.
102         * build-aux/warn-on-use.h: Likewise.
103         * m4/warn-on-use.m4: Likewise.
104         * MODULES.html.sh (Support for building): Mention it.
105
106 2010-01-10  Bruno Haible  <bruno@clisp.org>
107
108         Tests for module 'unistr/u32-strdup'.
109         * modules/unistr/u32-strdup-tests: New file.
110         * tests/unistr/test-u32-strdup.c: New file.
111
112         Tests for module 'unistr/u16-strdup'.
113         * modules/unistr/u16-strdup-tests: New file.
114         * tests/unistr/test-u16-strdup.c: New file.
115
116         Tests for module 'unistr/u8-strdup'.
117         * modules/unistr/u8-strdup-tests: New file.
118         * tests/unistr/test-u8-strdup.c: New file.
119         * tests/unistr/test-strdup.h: New file.
120
121         Tests for module 'unistr/u32-strncmp'.
122         * modules/unistr/u32-strncmp-tests: New file.
123         * tests/unistr/test-u32-strncmp.c: New file.
124
125         Tests for module 'unistr/u16-strncmp'.
126         * modules/unistr/u16-strncmp-tests: New file.
127         * tests/unistr/test-u16-strncmp.c: New file.
128
129         Tests for module 'unistr/u8-strncmp'.
130         * modules/unistr/u8-strncmp-tests: New file.
131         * tests/unistr/test-u8-strncmp.c: New file.
132         * tests/unistr/test-strncmp.h: New file.
133
134         Tests for module 'unistr/u32-strcoll'.
135         * modules/unistr/u32-strcoll-tests: New file.
136         * tests/unistr/test-u32-strcoll.c: New file.
137
138         Tests for module 'unistr/u16-strcoll'.
139         * modules/unistr/u16-strcoll-tests: New file.
140         * tests/unistr/test-u16-strcoll.c: New file.
141
142         Tests for module 'unistr/u8-strcoll'.
143         * modules/unistr/u8-strcoll-tests: New file.
144         * tests/unistr/test-u8-strcoll.c: New file.
145
146         Tests for module 'unistr/u32-strcmp'.
147         * modules/unistr/u32-strcmp-tests: New file.
148         * tests/unistr/test-u32-strcmp.c: New file.
149         * tests/unistr/test-u32-strcmp.h: New file.
150
151         Tests for module 'unistr/u16-strcmp'.
152         * modules/unistr/u16-strcmp-tests: New file.
153         * tests/unistr/test-u16-strcmp.c: New file.
154         * tests/unistr/test-u16-strcmp.h: New file.
155
156         Tests for module 'unistr/u8-strcmp'.
157         * modules/unistr/u8-strcmp-tests: New file.
158         * tests/unistr/test-u8-strcmp.c: New file.
159         * tests/unistr/test-u8-strcmp.h: New file.
160         * tests/unistr/test-strcmp.h: New file.
161
162         Tests for module 'unistr/u32-strncat'.
163         * modules/unistr/u32-strncat-tests: New file.
164         * tests/unistr/test-u32-strncat.c: New file.
165
166         Tests for module 'unistr/u16-strncat'.
167         * modules/unistr/u16-strncat-tests: New file.
168         * tests/unistr/test-u16-strncat.c: New file.
169
170         Tests for module 'unistr/u8-strncat'.
171         * modules/unistr/u8-strncat-tests: New file.
172         * tests/unistr/test-u8-strncat.c: New file.
173         * tests/unistr/test-strncat.h: New file.
174
175         Tests for module 'unistr/u32-strcat'.
176         * modules/unistr/u32-strcat-tests: New file.
177         * tests/unistr/test-u32-strcat.c: New file.
178
179         Tests for module 'unistr/u16-strcat'.
180         * modules/unistr/u16-strcat-tests: New file.
181         * tests/unistr/test-u16-strcat.c: New file.
182
183         Tests for module 'unistr/u8-strcat'.
184         * modules/unistr/u8-strcat-tests: New file.
185         * tests/unistr/test-u8-strcat.c: New file.
186         * tests/unistr/test-strcat.h: New file.
187
188         Tests for module 'unistr/u32-stpncpy'.
189         * modules/unistr/u32-stpncpy-tests: New file.
190         * tests/unistr/test-u32-stpncpy.c: New file.
191
192         Tests for module 'unistr/u16-stpncpy'.
193         * modules/unistr/u16-stpncpy-tests: New file.
194         * tests/unistr/test-u16-stpncpy.c: New file.
195
196         Tests for module 'unistr/u8-stpncpy'.
197         * modules/unistr/u8-stpncpy-tests: New file.
198         * tests/unistr/test-u8-stpncpy.c: New file.
199         * tests/unistr/test-stpncpy.h: New file.
200
201         Tests for module 'unistr/u32-strncpy'.
202         * modules/unistr/u32-strncpy-tests: New file.
203         * tests/unistr/test-u32-strncpy.c: New file.
204
205         Tests for module 'unistr/u16-strncpy'.
206         * modules/unistr/u16-strncpy-tests: New file.
207         * tests/unistr/test-u16-strncpy.c: New file.
208
209         Tests for module 'unistr/u8-strncpy'.
210         * modules/unistr/u8-strncpy-tests: New file.
211         * tests/unistr/test-u8-strncpy.c: New file.
212         * tests/unistr/test-strncpy.h: New file.
213
214         Tests for module 'unistr/u32-stpcpy'.
215         * modules/unistr/u32-stpcpy-tests: New file.
216         * tests/unistr/test-u32-stpcpy.c: New file.
217
218         Tests for module 'unistr/u16-stpcpy'.
219         * modules/unistr/u16-stpcpy-tests: New file.
220         * tests/unistr/test-u16-stpcpy.c: New file.
221
222         Tests for module 'unistr/u8-stpcpy'.
223         * modules/unistr/u8-stpcpy-tests: New file.
224         * tests/unistr/test-u8-stpcpy.c: New file.
225         * tests/unistr/test-stpcpy.h: New file.
226
227         Tests for module 'unistr/u32-strcpy'.
228         * modules/unistr/u32-strcpy-tests: New file.
229         * tests/unistr/test-u32-strcpy.c: New file.
230
231         Tests for module 'unistr/u16-strcpy'.
232         * modules/unistr/u16-strcpy-tests: New file.
233         * tests/unistr/test-u16-strcpy.c: New file.
234
235         Tests for module 'unistr/u8-strcpy'.
236         * modules/unistr/u8-strcpy-tests: New file.
237         * tests/unistr/test-u8-strcpy.c: New file.
238         * tests/unistr/test-strcpy.h: New file.
239
240         Tests for module 'unistr/u32-strnlen'.
241         * modules/unistr/u32-strnlen-tests: New file.
242         * tests/unistr/test-u32-strnlen.c: New file.
243
244         Tests for module 'unistr/u16-strnlen'.
245         * modules/unistr/u16-strnlen-tests: New file.
246         * tests/unistr/test-u16-strnlen.c: New file.
247
248         Tests for module 'unistr/u8-strnlen'.
249         * modules/unistr/u8-strnlen-tests: New file.
250         * tests/unistr/test-u8-strnlen.c: New file.
251         * tests/unistr/test-strnlen.h: New file.
252
253         Tests for module 'unistr/u32-strlen'.
254         * modules/unistr/u32-strlen-tests: New file.
255         * tests/unistr/test-u32-strlen.c: New file.
256
257         Tests for module 'unistr/u16-strlen'.
258         * modules/unistr/u16-strlen-tests: New file.
259         * tests/unistr/test-u16-strlen.c: New file.
260
261         Tests for module 'unistr/u8-strlen'.
262         * modules/unistr/u8-strlen-tests: New file.
263         * tests/unistr/test-u8-strlen.c: New file.
264
265         Tests for module 'unistr/u32-prev'.
266         * modules/unistr/u32-prev-tests: New file.
267         * tests/unistr/test-u32-prev.c: New file.
268
269         Tests for module 'unistr/u16-prev'.
270         * modules/unistr/u16-prev-tests: New file.
271         * tests/unistr/test-u16-prev.c: New file.
272
273         Tests for module 'unistr/u8-prev'.
274         * modules/unistr/u8-prev-tests: New file.
275         * tests/unistr/test-u8-prev.c: New file.
276
277         Tests for module 'unistr/u32-next'.
278         * modules/unistr/u32-next-tests: New file.
279         * tests/unistr/test-u32-next.c: New file.
280
281         Tests for module 'unistr/u16-next'.
282         * modules/unistr/u16-next-tests: New file.
283         * tests/unistr/test-u16-next.c: New file.
284
285         Tests for module 'unistr/u8-next'.
286         * modules/unistr/u8-next-tests: New file.
287         * tests/unistr/test-u8-next.c: New file.
288
289         Tests for module 'unistr/u32-strmbtouc'.
290         * modules/unistr/u32-strmbtouc-tests: New file.
291         * tests/unistr/test-u32-strmbtouc.c: New file.
292
293         Tests for module 'unistr/u16-strmbtouc'.
294         * modules/unistr/u16-strmbtouc-tests: New file.
295         * tests/unistr/test-u16-strmbtouc.c: New file.
296
297         Tests for module 'unistr/u8-strmbtouc'.
298         * modules/unistr/u8-strmbtouc-tests: New file.
299         * tests/unistr/test-u8-strmbtouc.c: New file.
300
301         Tests for module 'unistr/u32-strmblen'.
302         * modules/unistr/u32-strmblen-tests: New file.
303         * tests/unistr/test-u32-strmblen.c: New file.
304
305         Tests for module 'unistr/u16-strmblen'.
306         * modules/unistr/u16-strmblen-tests: New file.
307         * tests/unistr/test-u16-strmblen.c: New file.
308
309         Tests for module 'unistr/u8-strmblen'.
310         * modules/unistr/u8-strmblen-tests: New file.
311         * tests/unistr/test-u8-strmblen.c: New file.
312
313         Tests for module 'unistr/u32-cpy-alloc'.
314         * modules/unistr/u32-cpy-alloc-tests: New file.
315         * tests/unistr/test-u32-cpy-alloc.c: New file.
316
317         Tests for module 'unistr/u16-cpy-alloc'.
318         * modules/unistr/u16-cpy-alloc-tests: New file.
319         * tests/unistr/test-u16-cpy-alloc.c: New file.
320
321         Tests for module 'unistr/u8-cpy-alloc'.
322         * modules/unistr/u8-cpy-alloc-tests: New file.
323         * tests/unistr/test-u8-cpy-alloc.c: New file.
324         * tests/unistr/test-cpy-alloc.h: New file.
325
326         Tests for module 'unistr/u32-mbsnlen'.
327         * modules/unistr/u32-mbsnlen-tests: New file.
328         * tests/unistr/test-u32-mbsnlen.c: New file.
329
330         Tests for module 'unistr/u16-mbsnlen'.
331         * modules/unistr/u16-mbsnlen-tests: New file.
332         * tests/unistr/test-u16-mbsnlen.c: New file.
333
334         Tests for module 'unistr/u8-mbsnlen'.
335         * modules/unistr/u8-mbsnlen-tests: New file.
336         * tests/unistr/test-u8-mbsnlen.c: New file.
337
338         Tests for module 'unistr/u32-chr'.
339         * modules/unistr/u32-chr-tests: New file.
340         * tests/unistr/test-u32-chr.c: New file.
341
342         Tests for module 'unistr/u16-chr'.
343         * modules/unistr/u16-chr-tests: New file.
344         * tests/unistr/test-u16-chr.c: New file.
345
346         Tests for module 'unistr/u8-chr'.
347         * modules/unistr/u8-chr-tests: New file.
348         * tests/unistr/test-u8-chr.c: New file.
349         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
350
351         Tests for module 'unistr/u32-cmp2'.
352         * modules/unistr/u32-cmp2-tests: New file.
353         * tests/unistr/test-u32-cmp2.c: New file.
354
355         Tests for module 'unistr/u16-cmp2'.
356         * modules/unistr/u16-cmp2-tests: New file.
357         * tests/unistr/test-u16-cmp2.c: New file.
358
359         Tests for module 'unistr/u8-cmp2'.
360         * modules/unistr/u8-cmp2-tests: New file.
361         * tests/unistr/test-u8-cmp2.c: New file.
362         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
363
364         Tests for module 'unistr/u32-cmp'.
365         * modules/unistr/u32-cmp-tests: New file.
366         * tests/unistr/test-u32-cmp.c: New file.
367
368         Tests for module 'unistr/u16-cmp'.
369         * modules/unistr/u16-cmp-tests: New file.
370         * tests/unistr/test-u16-cmp.c: New file.
371
372         Tests for module 'unistr/u8-cmp'.
373         * modules/unistr/u8-cmp-tests: New file.
374         * tests/unistr/test-u8-cmp.c: New file.
375         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
376
377         Tests for module 'unistr/u32-set'.
378         * modules/unistr/u32-set-tests: New file.
379         * tests/unistr/test-u32-set.c: New file.
380
381         Tests for module 'unistr/u16-set'.
382         * modules/unistr/u16-set-tests: New file.
383         * tests/unistr/test-u16-set.c: New file.
384
385         Tests for module 'unistr/u8-set'.
386         * modules/unistr/u8-set-tests: New file.
387         * tests/unistr/test-u8-set.c: New file.
388         * tests/unistr/test-set.h: New file.
389
390         Tests for module 'unistr/u32-move'.
391         * modules/unistr/u32-move-tests: New file.
392         * tests/unistr/test-u32-move.c: New file.
393
394         Tests for module 'unistr/u16-move'.
395         * modules/unistr/u16-move-tests: New file.
396         * tests/unistr/test-u16-move.c: New file.
397
398         Tests for module 'unistr/u8-move'.
399         * modules/unistr/u8-move-tests: New file.
400         * tests/unistr/test-u8-move.c: New file.
401         * tests/unistr/test-move.h: New file.
402
403         Tests for module 'unistr/u32-cpy'.
404         * modules/unistr/u32-cpy-tests: New file.
405         * tests/unistr/test-u32-cpy.c: New file.
406
407         Tests for module 'unistr/u16-cpy'.
408         * modules/unistr/u16-cpy-tests: New file.
409         * tests/unistr/test-u16-cpy.c: New file.
410
411         Tests for module 'unistr/u8-cpy'.
412         * modules/unistr/u8-cpy-tests: New file.
413         * tests/unistr/test-u8-cpy.c: New file.
414         * tests/unistr/test-cpy.h: New file.
415
416 2010-01-09  Bruno Haible  <bruno@clisp.org>
417
418         Tests for module 'unistr/u32-uctomb'.
419         * modules/unistr/u32-uctomb-tests: New file.
420         * tests/unistr/test-u32-uctomb.c: New file.
421
422         Tests for module 'unistr/u16-uctomb'.
423         * modules/unistr/u16-uctomb-tests: New file.
424         * tests/unistr/test-u16-uctomb.c: New file.
425
426         Tests for module 'unistr/u8-uctomb'.
427         * modules/unistr/u8-uctomb-tests: New file.
428         * tests/unistr/test-u8-uctomb.c: New file.
429
430         Tests for module 'unistr/u32-mbtoucr'.
431         * modules/unistr/u32-mbtoucr-tests: New file.
432         * tests/unistr/test-u32-mbtoucr.c: New file.
433
434         Tests for module 'unistr/u16-mbtoucr'.
435         * modules/unistr/u16-mbtoucr-tests: New file.
436         * tests/unistr/test-u16-mbtoucr.c: New file.
437
438         Tests for module 'unistr/u8-mbtoucr'.
439         * modules/unistr/u8-mbtoucr-tests: New file.
440         * tests/unistr/test-u8-mbtoucr.c: New file.
441
442         Tests for module 'unistr/u32-mbtouc'.
443         * modules/unistr/u32-mbtouc-tests: New file.
444         * tests/unistr/test-u32-mbtouc.c: New file.
445
446         Tests for module 'unistr/u16-mbtouc'.
447         * modules/unistr/u16-mbtouc-tests: New file.
448         * tests/unistr/test-u16-mbtouc.c: New file.
449
450         Tests for module 'unistr/u8-mbtouc'.
451         * modules/unistr/u8-mbtouc-tests: New file.
452         * tests/unistr/test-u8-mbtouc.c: New file.
453
454         Tests for module 'unistr/u32-mbtouc-unsafe'.
455         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
456         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
457         * tests/unistr/test-u32-mbtouc.h: New file.
458
459         Tests for module 'unistr/u16-mbtouc-unsafe'.
460         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
461         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
462         * tests/unistr/test-u16-mbtouc.h: New file.
463
464         Tests for module 'unistr/u8-mbtouc-unsafe'.
465         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
466         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
467         * tests/unistr/test-u8-mbtouc.h: New file.
468
469         Tests for module 'unistr/u32-mblen'.
470         * modules/unistr/u32-mblen-tests: New file.
471         * tests/unistr/test-u32-mblen.c: New file.
472
473         Tests for module 'unistr/u16-mblen'.
474         * modules/unistr/u16-mblen-tests: New file.
475         * tests/unistr/test-u16-mblen.c: New file.
476
477         Tests for module 'unistr/u8-mblen'.
478         * modules/unistr/u8-mblen-tests: New file.
479         * tests/unistr/test-u8-mblen.c: New file.
480
481         Tests for module 'unistr/u32-to-u16'.
482         * modules/unistr/u32-to-u16-tests: New file.
483         * tests/unistr/test-u32-to-u16.c: New file.
484
485         Tests for module 'unistr/u32-to-u8'.
486         * modules/unistr/u32-to-u8-tests: New file.
487         * tests/unistr/test-u32-to-u8.c: New file.
488
489         Tests for module 'unistr/u16-to-u32'.
490         * modules/unistr/u16-to-u32-tests: New file.
491         * tests/unistr/test-u16-to-u32.c: New file.
492
493         Tests for module 'unistr/u16-to-u8'.
494         * modules/unistr/u16-to-u8-tests: New file.
495         * tests/unistr/test-u16-to-u8.c: New file.
496
497         Tests for module 'unistr/u8-to-u32'.
498         * modules/unistr/u8-to-u32-tests: New file.
499         * tests/unistr/test-u8-to-u32.c: New file.
500
501         Tests for module 'unistr/u8-to-u16'.
502         * modules/unistr/u8-to-u16-tests: New file.
503         * tests/unistr/test-u8-to-u16.c: New file.
504
505         Tests for module 'unistr/u32-check'.
506         * modules/unistr/u32-check-tests: New file.
507         * tests/unistr/test-u32-check.c: New file.
508
509         Tests for module 'unistr/u16-check'.
510         * modules/unistr/u16-check-tests: New file.
511         * tests/unistr/test-u16-check.c: New file.
512
513         Tests for module 'unistr/u8-check'.
514         * modules/unistr/u8-check-tests: New file.
515         * tests/unistr/test-u8-check.c: New file.
516
517         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
518         (category_equals): New function.
519         (main): Add more tests.
520         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
521
522         * tests/unictype/test-bidi_byname.c (main): Add more tests.
523
524 2010-01-10  Bruno Haible  <bruno@clisp.org>
525
526         unistr/u*-strcoll: Try harder to distinguish different strings.
527         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
528         compare s1 and s2 to see if they are different.
529
530 2010-01-10  Bruno Haible  <bruno@clisp.org>
531
532         unistr/u*-stpncpy: Fix the return value.
533         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
534         description of the return value consistent with stpncpy in glibc.
535         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
536         written non-NUL unit.
537
538 2010-01-10  Bruno Haible  <bruno@clisp.org>
539
540         unistr/u*-next: Add missing dependencies.
541         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
542         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
543         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
544
545 2010-01-10  Bruno Haible  <bruno@clisp.org>
546
547         unistr/u8-mbsnlen: Fix return value for incomplete character.
548         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
549         u8_mblen.
550         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
551         Remove unistr/u8-mblen.
552         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
553         u16_mblen.
554         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
555         Remove unistr/u16-mblen.
556
557 2010-01-10  Bruno Haible  <bruno@clisp.org>
558
559         wchar: Fix compilation error when <wchar.h> is used from coreutils.
560         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
561         Reported by Brian Gough <bjg@gnu.org> and
562         Chris Clayton <chris2553@googlemail.com> via
563         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
564
565 2010-01-09  Bruno Haible  <bruno@clisp.org>
566
567         unistr/u16-to-u32: Reject invalid input.
568         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
569         u16_mbtouc.
570         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
571         Remove unistr/u16-mbtouc.
572
573         unistr/u16-to-u8: Reject invalid input.
574         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
575         u16_mbtouc.
576         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
577         Remove unistr/u16-mbtouc.
578
579         unistr/u8-to-u32: Reject invalid input.
580         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
581         u8_mbtouc.
582         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
583         Remove unistr/u8-mbtouc.
584
585         unistr/u8-to-u16: Reject invalid input.
586         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
587         u8_mbtouc.
588         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
589         Remove unistr/u8-mbtouc.
590
591 2010-01-09  Bruno Haible  <bruno@clisp.org>
592
593         Tests for module 'getlogin'.
594         * modules/getlogin-tests: New file.
595         * tests/test-getlogin.c: New file.
596
597         New module 'getlogin'.
598         * lib/unistd.in.h (getlogin): New declaration.
599         * lib/getlogin.c: New file.
600         * m4/getlogin.m4: New file.
601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
602         HAVE_GETLOGIN.
603         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
604         HAVE_GETLOGIN.
605         * modules/getlogin: New file.
606         * doc/posix-functions/getlogin.texi: Mention the new module.
607         Reported by John W. Eaton <jwe@gnu.org>.
608
609 2010-01-09  Bruno Haible  <bruno@clisp.org>
610
611         getlogin_r: Support for native Windows.
612         * lib/getlogin_r.c: Include <windows.h>
613         (getlogin_r): Implement for native Windows.
614         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
615         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
616         via John W. Eaton <jwe@gnu.org>.
617
618 2010-01-09  Bruno Haible  <bruno@clisp.org>
619
620         getlogin_r: Small fixes.
621         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
622         succeeds.
623         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
624         before testing whether getlogin_r is declared. No need to set
625         HAVE_DECL_GETLOGIN_R to 1.
626         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
627
628 2010-01-09  Bruno Haible  <bruno@clisp.org>
629
630         * lib/unistd.in.h (getlogin_r): Add comment.
631
632 2010-01-09  Bruno Haible  <bruno@clisp.org>
633
634         Tests for module 'getlogin_r'.
635         * modules/getlogin_r-tests: New file.
636         * tests/test-getlogin_r.c: New file.
637
638 2010-01-09  Jim Meyering  <meyering@redhat.com>
639
640         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
641         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
642         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
643
644 2010-01-08  Simon Josefsson  <simon@josefsson.org>
645
646         * lib/dup2.c (rpl_dup2): Improve comment.
647
648 2010-01-08  Eric Blake  <ebb9@byu.net>
649
650         maint.mk: allow packages to add makefile @@ exceptions
651         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
652         (sc_makefile_check): Rename...
653         (sc_makefile_at_at_check): ...to this, and use hook.
654
655         dup2: work around mingw bug
656         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
657         Reported by Simon Josefsson.
658
659 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
660
661         glob: Fix C++ compilation.
662         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
663         C++.
664
665 2010-01-07  Bruno Haible  <bruno@clisp.org>
666
667         Fix indentation of wctype.in.h, broken since 2007-01-06.
668         * lib/wctype.in.h: Fix indentation of preprocessor directives.
669
670 2010-01-07  Bruno Haible  <bruno@clisp.org>
671
672         mbslen: Avoid collision with system function.
673         * lib/string.in.h [MirBSD]: Include <wchar.h>.
674         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
675         * m4/mbslen.m4: New file.
676         * modules/mbslen (Files): Add it.
677         (configure.ac): Invoke gl_MBSLEN.
678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
679         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
680         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
681         via Ian Beckwith <ianb@erislabs.net>.
682
683 2010-01-07  Bruno Haible  <bruno@clisp.org>
684
685         dirent: Document the last fix.
686         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
687
688 2010-01-07  Bruno Haible  <bruno@clisp.org>
689
690         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
691         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
692         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
693         va_list are defined.
694         * doc/posix-headers/stdio.texi: Document the bug of missing types.
695         Reported by Eric Blake.
696
697 2010-01-07  Bruno Haible  <bruno@clisp.org>
698
699         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
700         * modules/xlist (Depends-on): Add 'list',
701         * modules/xoset (Depends-on): Add 'oset'.
702         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
703
704 2010-01-07  Bruno Haible  <bruno@clisp.org>
705
706         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
707         * doc/posix-functions/strncasecmp.texi: Likewise.
708
709 2010-01-07  Bruno Haible  <bruno@clisp.org>
710
711         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
712
713 2010-01-07  John W. Eaton  <jwe@octave.org>
714
715         wctype: allow C++ use
716         * lib/wctype.in.h: Add extern "C" block for C++.
717
718 2010-01-06  Eric Blake  <ebb9@byu.net>
719
720         maint.mk: detect incorrect GFDL usage
721         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
722
723 2010-01-06  Jim Meyering  <meyering@redhat.com>
724         and Eric Blake  <ebb9@byu.net>
725
726         maint.mk: ignore multi-line copyright in NEWS
727         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
728
729 2010-01-06  Eric Blake  <ebb9@byu.net>
730
731         select: add missing dependency
732         * modules/select-tests (Depends-on): Move sockets dependency...
733         * modules/select (Depends-on): ...here.
734         Reported by Ian Beckwith.
735
736         doc: regenerate INSTALL
737         * doc/INSTALL: Reflect recent autoconf update.
738         * doc/INSTALL.ISO: Likewise.
739         * doc/INSTALL.UTF-8: Likewise.
740
741         pread: fix compilation on glibc
742         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
743         Reported by Ralf Wildenhues.
744
745         dirent: fix test failure
746         * lib/dirent.in.h (includes): Guarantee ino_t.
747         Reported by Ralf Wildenhues.
748
749 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
750
751         linkat, renameat: avoid bad free
752         * lib/at-func2.c (at_func2): Fix typo.
753         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
754
755 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
756
757         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
758         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
759         to avoid failure of symlink test later.
760
761 2010-01-06  Eric Blake  <ebb9@byu.net>
762
763         stdio, unistd: guarantee ssize_t
764         * lib/unistd.in.h (includes): Ensure that types required by POSIX
765         2008 are exposed when needed.
766         * lib/stdio.in.h (includes): Likewise.
767         Reported by Ralf Wildenhues.
768
769 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
770
771         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
772         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
773         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
774
775 2010-01-06  Jim Meyering  <meyering@redhat.com>
776
777         readtokens: this module *does* require xalloc.h
778         It uses only functions that were omitted by the old syntax-check rule.
779         * lib/readtokens.c: Include "xalloc.h" once again.
780         * modules/readtokens (Depends-on): Add xalloc.
781         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
782
783 2010-01-05  Eric Blake  <ebb9@byu.net>
784
785         maint: support 'make announcement' from a VPATH build
786         * top/maint.mk (announcement): Look for correct NEWS file.
787
788 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
789
790         utimens (fdutimens): ignore a negative FD, per contract
791         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
792         when we have a valid file descriptor.  Otherwise, using a brand
793         new glibc (with just-patched futimens that now fails with EBADF)
794         would cause this function to fail with ENOSYS.
795         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
796         See also http://bugzilla.redhat.com/552320.
797
798 2010-01-05  Eric Blake  <ebb9@byu.net>
799
800         strcase: document what it provides
801         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
802         gnulib module.
803         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
804         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
805
806 2010-01-05  Jim Meyering  <meyering@redhat.com>
807
808         maint: remove useless inclusions of "xalloc.h"
809         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
810         * lib/readtokens.c: Likewise.
811         * lib/same.c: Likewise.
812         * modules/getloadavg (Depends-on): Remove xalloc.
813         * modules/readtokens: Likewise.
814         * modules/same: Likewise.
815
816         maint.mk: include 4 more function names in alloca.h-checking regexp
817         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
818         regexp.  Before, we would give a false-positive (saying alloca.h
819         is included unnecessarily) when the only uses involved omitted symbols.
820
821         xalloc.h: use consistent formatting
822         * lib/xalloc.h: Move declarations to start in the first column.
823
824 2010-01-05  Eric Blake  <ebb9@byu.net>
825
826         mkdir: avoid xalloc
827         * lib/mkdir.c (includes): Drop unused header.
828         Reported by John W. Eaton.
829
830 2010-01-04  Jim Meyering  <meyering@redhat.com>
831
832         nl_langinfo: avoid configure-time syntax error
833         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
834         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
835         the empty string.  Don't let that provoke a shell syntax error.
836
837         regcomp, regexec, fnmatch: avoid array bounds read error
838         * lib/regcomp.c (build_equiv_class): From glibc:
839         Use only the low 24 bits of a findidx return value as an index
840         into the weights array.  Patch by Ulrich Drepper:
841         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
842         * lib/regexec.c (check_node_accept_bytes): Likewise.
843         * lib/fnmatch_loop.c (FCT): Likewise.
844
845         regcomp: skip collseq lookup when there are no rules
846         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
847         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
848
849         regcomp: recognize ill-formed { } expressions
850         * lib/regcomp.c (parse_dup_op): From glibc:
851         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
852
853         regcomp: fix typo in comment
854         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
855         s/satisfy/satisfies/.
856
857         regcomp: sync from glibc: remove dead store
858         * lib/regcomp.c (duplicate_node_closure): Remove useless
859         search_duplicated_node call and dead store.
860
861         regcomp: sync from glibc; always use nl_langinfo
862         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
863         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
864         * modules/regex (Depends-on): Add nl_langinfo.
865
866 2010-01-04  Eric Blake  <ebb9@byu.net>
867
868         fdopendir: fix configure test
869         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
870
871 2010-01-01  Bruno Haible  <bruno@clisp.org>
872
873         wchar: Remove unused configure check.
874         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
875
876 2010-01-01  Eric Blake  <ebb9@byu.net>
877
878         headers: make check of system header explicit
879         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
880         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
881         ourselves.
882         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
883         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
884         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
885         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
886         internals.
887         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
888         missing.
889         Suggested by Bruno Haible.
890
891 2010-01-01  Jim Meyering  <meyering@redhat.com>
892
893         ChangeLog: tweak to eliminate unnecessary copyright line
894         * ChangeLog: Remove a copyright line that was mistakenly updated
895         by today's update-copyright run.  Reported by Eric Blake.
896
897         test-update-copyright: don't let envvar setting cause test failure
898         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
899
900 2010-01-01  Bruno Haible  <bruno@clisp.org>
901
902         localename: Avoid gcc warning.
903         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
904         function if it is not used.
905
906 2010-01-01  Jim Meyering  <meyering@redhat.com>
907
908         update nearly all FSF copyright year lists to include 2010
909         Use the same procedure as for 2009, outlined in
910         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
911
912         version-etc: set COPYRIGHT_YEAR to 2010
913         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
914
915 2009-12-31  Eric Blake  <ebb9@byu.net>
916
917         doc: correct availability of cygwin 1.5.x getopt
918         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
919         variables.
920         * doc/posix-functions/opterr.texi (opterr): Likewise.
921         * doc/posix-functions/optind.texi (optind): Likewise.
922         * doc/posix-functions/optopt.texi (optopt): Likewise.
923         * doc/posix-functions/tzname.texi (tzname): Likewise.
924
925         openat: update maintainer
926         * modules/openat (Maintainer): Add myself.
927
928         utimens: avoid shadowing warning
929         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
930         buffers into one, to avoid shadowing, as well as avoiding a
931         redundant stat.
932         Reported by Jim Meyering.
933
934         test-dup2: avoid compiler warning
935         * tests/test-dup2.c (is_inheritable): Only define if used.
936
937 2010-01-01  Bruno Haible  <bruno@clisp.org>
938
939         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
940         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
941         defined, use wctomb instead of wcrtomb.
942
943 2010-01-01  Bruno Haible  <bruno@clisp.org>
944
945         iconv: Reject native Solaris iconv.
946         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
947         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
948
949 2009-12-31  Bruno Haible  <bruno@clisp.org>
950
951         * tests/test-signal.c (main): Remove test of 'SIG'.
952
953 2009-12-31  Bruno Haible  <bruno@clisp.org>
954
955         spawn: Fix incomplete fix.
956         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
957         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
958         warnings for GNULIB_POSIXCHECK again.
959         Reported by Eric Blake.
960
961 2009-12-31  Bruno Haible  <bruno@clisp.org>
962
963         Avoid namespace pollution on glibc systems.
964         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
965         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
966         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
967         glibc systems.
968
969 2009-12-31  Bruno Haible  <bruno@clisp.org>
970
971         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
972         (gl_REPLACE_WCHAR_H): Turn into a no-op.
973         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
974         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
975         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
976         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
977         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
978
979 2009-12-31  Bruno Haible  <bruno@clisp.org>
980
981         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
982         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
983         afterwards.
984
985 2009-12-31  Bruno Haible  <bruno@clisp.org>
986
987         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
988         SYS_UTSNAME_H.
989
990 2009-12-31  Bruno Haible  <bruno@clisp.org>
991
992         spawn: Fix misapplied patch.
993         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
994         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
995         warnings for GNULIB_POSIXCHECK.
996
997 2009-12-31  Bruno Haible  <bruno@clisp.org>
998
999         times: Update after sys_times changed.
1000         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
1001         * modules/times (Files): Add it.
1002         (configure.ac): Invoke gl_FUNC_TIMES.
1003
1004 2009-12-31  Bruno Haible  <bruno@clisp.org>
1005
1006         Use AC_C_INLINE where necessary.
1007         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
1008         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1009         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
1010         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
1011         * m4/mbfile.m4 (gl_MBFILE): Likewise.
1012         * m4/mbiter.m4 (gl_MBITER): Likewise.
1013         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1014         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1015         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
1016         * modules/u64 (configure.ac): Likewise.
1017
1018 2009-12-31  Bruno Haible  <bruno@clisp.org>
1019
1020         Use AC_C_INLINE instead of module 'inline' where possible.
1021         * modules/inline (Description): Clarify purpose.
1022         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
1023         * modules/count-one-bits (Depends-on): Remove inline.
1024         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
1025         * modules/openat (Depends-on): Remove inline.
1026         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
1027         instead of depending on module 'inline'.
1028         * modules/filevercmp (Depends-on, configure.ac): Likewise.
1029         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
1030         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
1031         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
1032         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
1033         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
1034         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
1035         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
1036         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
1037         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
1038         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
1039         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
1040         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
1041         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
1042         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
1043         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
1044         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
1045         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
1046         Likewise.
1047         * modules/unictype/property-ascii-hex-digit (Depends-on,
1048         configure.ac): Likewise.
1049         * modules/unictype/property-bidi-arabic-digit (Depends-on,
1050         configure.ac): Likewise.
1051         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
1052         configure.ac): Likewise.
1053         * modules/unictype/property-bidi-block-separator (Depends-on,
1054         configure.ac): Likewise.
1055         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
1056         configure.ac): Likewise.
1057         * modules/unictype/property-bidi-common-separator (Depends-on,
1058         configure.ac): Likewise.
1059         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
1060         Likewise.
1061         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
1062         configure.ac): Likewise.
1063         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
1064         configure.ac): Likewise.
1065         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
1066         configure.ac): Likewise.
1067         * modules/unictype/property-bidi-european-digit (Depends-on,
1068         configure.ac): Likewise.
1069         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
1070         configure.ac): Likewise.
1071         * modules/unictype/property-bidi-left-to-right (Depends-on,
1072         configure.ac): Likewise.
1073         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
1074         configure.ac): Likewise.
1075         * modules/unictype/property-bidi-other-neutral (Depends-on,
1076         configure.ac): Likewise.
1077         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
1078         Likewise.
1079         * modules/unictype/property-bidi-segment-separator (Depends-on,
1080         configure.ac): Likewise.
1081         * modules/unictype/property-bidi-whitespace (Depends-on,
1082         configure.ac): Likewise.
1083         * modules/unictype/property-combining (Depends-on, configure.ac):
1084         Likewise.
1085         * modules/unictype/property-composite (Depends-on, configure.ac):
1086         Likewise.
1087         * modules/unictype/property-currency-symbol (Depends-on,
1088         configure.ac): Likewise.
1089         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
1090         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
1091         Likewise.
1092         * modules/unictype/property-default-ignorable-code-point (Depends-on,
1093         configure.ac): Likewise.
1094         * modules/unictype/property-deprecated (Depends-on, configure.ac):
1095         Likewise.
1096         * modules/unictype/property-diacritic (Depends-on, configure.ac):
1097         Likewise.
1098         * modules/unictype/property-extender (Depends-on, configure.ac):
1099         Likewise.
1100         * modules/unictype/property-format-control (Depends-on, configure.ac):
1101         Likewise.
1102         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
1103         Likewise.
1104         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
1105         Likewise.
1106         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
1107         Likewise.
1108         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
1109         Likewise.
1110         * modules/unictype/property-hyphen (Depends-on, configure.ac):
1111         Likewise.
1112         * modules/unictype/property-id-continue (Depends-on, configure.ac):
1113         Likewise.
1114         * modules/unictype/property-id-start (Depends-on, configure.ac):
1115         Likewise.
1116         * modules/unictype/property-ideographic (Depends-on, configure.ac):
1117         Likewise.
1118         * modules/unictype/property-ids-binary-operator (Depends-on,
1119         configure.ac): Likewise.
1120         * modules/unictype/property-ids-trinary-operator (Depends-on,
1121         configure.ac): Likewise.
1122         * modules/unictype/property-ignorable-control (Depends-on,
1123         configure.ac): Likewise.
1124         * modules/unictype/property-iso-control (Depends-on, configure.ac):
1125         Likewise.
1126         * modules/unictype/property-join-control (Depends-on, configure.ac):
1127         Likewise.
1128         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
1129         Likewise.
1130         * modules/unictype/property-line-separator (Depends-on, configure.ac):
1131         Likewise.
1132         * modules/unictype/property-logical-order-exception (Depends-on,
1133         configure.ac): Likewise.
1134         * modules/unictype/property-lowercase (Depends-on, configure.ac):
1135         Likewise.
1136         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
1137         * modules/unictype/property-non-break (Depends-on, configure.ac):
1138         Likewise.
1139         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
1140         Likewise.
1141         * modules/unictype/property-numeric (Depends-on, configure.ac):
1142         Likewise.
1143         * modules/unictype/property-other-alphabetic (Depends-on,
1144         configure.ac): Likewise.
1145         * modules/unictype/property-other-default-ignorable-code-point
1146         (Depends-on, configure.ac): Likewise.
1147         * modules/unictype/property-other-grapheme-extend (Depends-on,
1148         configure.ac): Likewise.
1149         * modules/unictype/property-other-id-continue (Depends-on,
1150         configure.ac): Likewise.
1151         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
1152         Likewise.
1153         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
1154         Likewise.
1155         * modules/unictype/property-other-math (Depends-on, configure.ac):
1156         Likewise.
1157         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
1158         Likewise.
1159         * modules/unictype/property-paired-punctuation (Depends-on,
1160         configure.ac): Likewise.
1161         * modules/unictype/property-paragraph-separator (Depends-on,
1162         configure.ac): Likewise.
1163         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
1164         Likewise.
1165         * modules/unictype/property-pattern-white-space (Depends-on,
1166         configure.ac): Likewise.
1167         * modules/unictype/property-private-use (Depends-on, configure.ac):
1168         Likewise.
1169         * modules/unictype/property-punctuation (Depends-on, configure.ac):
1170         Likewise.
1171         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
1172         Likewise.
1173         * modules/unictype/property-radical (Depends-on, configure.ac):
1174         Likewise.
1175         * modules/unictype/property-sentence-terminal (Depends-on,
1176         configure.ac): Likewise.
1177         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
1178         Likewise.
1179         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
1180         * modules/unictype/property-terminal-punctuation (Depends-on,
1181         configure.ac): Likewise.
1182         * modules/unictype/property-titlecase (Depends-on, configure.ac):
1183         Likewise.
1184         * modules/unictype/property-unassigned-code-value (Depends-on,
1185         configure.ac): Likewise.
1186         * modules/unictype/property-unified-ideograph (Depends-on,
1187         configure.ac): Likewise.
1188         * modules/unictype/property-uppercase (Depends-on, configure.ac):
1189         Likewise.
1190         * modules/unictype/property-variation-selector (Depends-on,
1191         configure.ac): Likewise.
1192         * modules/unictype/property-white-space (Depends-on, configure.ac):
1193         Likewise.
1194         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
1195         Likewise.
1196         * modules/unictype/property-xid-start (Depends-on, configure.ac):
1197         Likewise.
1198         * modules/unictype/property-zero-width (Depends-on, configure.ac):
1199         Likewise.
1200         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
1201         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
1202         Likewise.
1203
1204 2009-12-31  Bruno Haible  <bruno@clisp.org>
1205
1206         Remove unnecessary AC_C_INLINE invocation.
1207         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
1208         since 2009-08-21.
1209
1210 2009-12-31  Jim Meyering  <meyering@redhat.com>
1211
1212         maint.mk: don't require explicit gpg_key_ID in cfg.mk
1213         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
1214         With this change, we can all remove the gpg_key_ID = ... definition
1215         from our respective cfg.mk files.
1216
1217         maint.mk: create announcement template in ~/, not in /tmp
1218         * top/maint.mk (emit_upload_commands): Adjust.
1219         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
1220         Remove temporary file, .ci-msg.
1221
1222 2009-12-31  Eric Blake  <ebb9@byu.net>
1223
1224         link-warning: always build headers with link warnings
1225         * modules/arpa_inet (Makefile.am): Always build replacement
1226         header.
1227         * modules/ctype (Makefile.am): Likewise.
1228         * modules/dirent (Makefile.am): Likewise.
1229         * modules/inttypes (Makefile.am): Likewise.
1230         * modules/langinfo (Makefile.am): Likewise.
1231         * modules/locale (Makefile.am): Likewise.
1232         * modules/spawn (Makefile.am): Likewise.
1233         * modules/sys_file (Makefile.am): Likewise.
1234         * modules/sys_ioctl (Makefile.am): Likewise.
1235         * modules/sys_select (Makefile.am): Likewise.
1236         * modules/sys_socket (Makefile.am): Likewise.
1237         * modules/sys_times (Makefile.am): Likewise.
1238         * modules/sys_utsname (Makefile.am): Likewise.
1239         * modules/sys_wait (Makefile.am): Likewise.
1240         * modules/wchar (Makefile.am): Likewise.
1241         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
1242         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
1243         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
1244         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
1245         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
1246         Likewise.
1247         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1248         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1249         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
1250         Likewise.
1251         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
1252         Likewise.
1253         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
1254         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
1255         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
1256         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1257         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1258         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1259         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1260         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
1261         (gl_WCHAR_H_DEFAULTS): Likewise.
1262
1263 2009-12-31  Eric Blake  <ebb9@byu.net>
1264
1265         signal, spawn: use link warnings
1266         * lib/signal.in.h (sigset_t): Make unconditional.
1267         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
1268         (sigpending, sigprocmask, sigaction): Add link warnings.
1269         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
1270         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
1271         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
1272         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
1273         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
1274         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
1275         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
1276         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
1277         (posix_spawn_file_actions_destroy)
1278         (posix_spawn_file_actions_addopen)
1279         (posix_spawn_file_actions_addclose)
1280         (posix_spawwn_file_actions_adddup2): Likewise.
1281         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
1282         * tests/test-signal.c (main): Enhance test.
1283
1284         spawn: improve wrapper support
1285         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
1286         (gl_SPAWN_H_DEFAULTS): New defaults.
1287         * modules/spawn (Makefile.am): Substitute them.
1288         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
1289         Only declare if missing or broken.
1290
1291         sys_times, sys_utsname: use include_next
1292         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
1293         header.
1294         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
1295         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1296         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1297         * modules/sys_times (Depends-on): Add include_next.
1298         (Makefile.am): Substitute additional values.
1299         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1300         * lib/sys_times.in.h (includes): Include native header, if
1301         available.
1302         * lib/sys_utsname.in.h (includes): Likewise.
1303         * tests/test-sys_times.c (main): Enhance test.
1304
1305         fdutimensat: revert prior patch
1306         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
1307         utimens.h.
1308         Reported by Bruno Haible.
1309
1310 2009-12-30  Eric Blake  <ebb9@byu.net>
1311
1312         sys_wait: drop link-warning dependency
1313         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
1314         link-warning efforts.
1315         * lib/sys_wait.in.h: Likewise.
1316
1317         fdutimensat: remove bogus dependency
1318         * modules/fdutimensat (Depends-on): Drop inline.
1319
1320         unistd: fix typo
1321         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
1322
1323 2009-12-30  Bruno Haible  <bruno@clisp.org>
1324
1325         Fix compilation error with Solaris cc.
1326         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
1327         * lib/unicase/u16-is-invariant.c: Likewise.
1328         * lib/unicase/u32-is-invariant.c: Likewise.
1329         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1330
1331 2009-12-30  Bruno Haible  <bruno@clisp.org>
1332
1333         Fix test crash.
1334         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
1335         locales.
1336         Reported by Simon Josefsson <simon@josefsson.org>.
1337
1338 2009-12-30  Bruno Haible  <bruno@clisp.org>
1339
1340         Fix compilation error on most platforms.
1341         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
1342         Reported by Simon Josefsson <simon@josefsson.org>
1343         and Nelson H. F. Beebe <beebe@math.utah.edu>.
1344
1345 2009-12-30  Eric Blake  <ebb9@byu.net>
1346
1347         futimens, utimensat: work around ntfs-3g bug
1348         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
1349         a ctime bug is present, and expand workaround to cover ntfs-3g.
1350         * lib/utimens.c (fdutimens, lutimens): Likewise.
1351         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
1352         (validate_timespec): Adjust return value.
1353         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
1354         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1355         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
1356
1357 2009-12-29  Eric Blake  <ebb9@byu.net>
1358
1359         link-warning: make usage consistent
1360         * modules/ctype (Depends-on): Add link-warning.
1361         (Makefile.am): Update rules accordingly.
1362         * modules/langinfo (Depends-on, Makefile.am): Likewise.
1363         * modules/locale (Depends-on, Makefile.am): Likewise.
1364         * modules/sys_file (Makefile.am): Likewise.
1365         * modules/getopt-posix (Makefile.am): Delete unused link warning
1366         efforts.
1367         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
1368         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
1369         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
1370         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
1371
1372         stdio: remove unused variables
1373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
1374         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
1375         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1376
1377         tests: test more substitute headers
1378         * modules/ctype-tests: New file.
1379         * modules/dirent-tests: Likewise.
1380         * modules/spawn-tests: Likewise.
1381         * modules/sys_file-tests: Likewise.
1382         * modules/sys_ioctl-tests: Likewise.
1383         * modules/sys_wait-tests: Likewise.
1384         * tests/test-ctype.c: Likewise.
1385         * tests/test-dirent.c: Likewise.
1386         * tests/test-spawn.c: Likewise.
1387         * tests/test-sys_file.c: Likewise.
1388         * tests/test-sys_ioctl.c: Likewise.
1389         * tests/test-sys_wait.c: Likewise.
1390         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
1391         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
1392         whether or not flock is in use.
1393
1394         tests: remove License section from module
1395         * modules/arpa_inet-tests: Remove unneeded section.
1396         * modules/byteswap-tests: Likewise.
1397         * modules/ceilf-tests: Likewise.
1398         * modules/ceill-tests: Likewise.
1399         * modules/crypto/des-tests: Likewise.
1400         * modules/crypto/gc-arcfour-tests: Likewise.
1401         * modules/crypto/gc-arctwo-tests: Likewise.
1402         * modules/crypto/gc-des-tests: Likewise.
1403         * modules/crypto/gc-hmac-md5-tests: Likewise.
1404         * modules/crypto/gc-hmac-sha1-tests: Likewise.
1405         * modules/crypto/gc-md2-tests: Likewise.
1406         * modules/crypto/gc-md4-tests: Likewise.
1407         * modules/crypto/gc-md5-tests: Likewise.
1408         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
1409         * modules/crypto/gc-rijndael-tests: Likewise.
1410         * modules/crypto/gc-sha1-tests: Likewise.
1411         * modules/crypto/gc-tests: Likewise.
1412         * modules/crypto/md2-tests: Likewise.
1413         * modules/crypto/md4-tests: Likewise.
1414         * modules/fcntl-h-tests: Likewise.
1415         * modules/floorf-tests: Likewise.
1416         * modules/floorl-tests: Likewise.
1417         * modules/frexp-nolibm-tests: Likewise.
1418         * modules/frexp-tests: Likewise.
1419         * modules/frexpl-nolibm-tests: Likewise.
1420         * modules/frexpl-tests: Likewise.
1421         * modules/getaddrinfo-tests: Likewise.
1422         * modules/inttypes-tests: Likewise.
1423         * modules/isfinite-tests: Likewise.
1424         * modules/isinf-tests: Likewise.
1425         * modules/ldexpl-tests: Likewise.
1426         * modules/locale-tests: Likewise.
1427         * modules/math-tests: Likewise.
1428         * modules/netdb-tests: Likewise.
1429         * modules/netinet_in-tests: Likewise.
1430         * modules/printf-frexp-tests: Likewise.
1431         * modules/printf-frexpl-tests: Likewise.
1432         * modules/priv-set-tests: Likewise.
1433         * modules/random_r-tests: Likewise.
1434         * modules/round-tests: Likewise.
1435         * modules/roundf-tests: Likewise.
1436         * modules/roundl-tests: Likewise.
1437         * modules/search-tests: Likewise.
1438         * modules/select-tests: Likewise.
1439         * modules/signal-tests: Likewise.
1440         * modules/stdbool-tests: Likewise.
1441         * modules/stddef-tests: Likewise.
1442         * modules/stdint-tests: Likewise.
1443         * modules/stdio-tests: Likewise.
1444         * modules/stdlib-tests: Likewise.
1445         * modules/string-tests: Likewise.
1446         * modules/strings-tests: Likewise.
1447         * modules/sys_select-tests: Likewise.
1448         * modules/sys_socket-tests: Likewise.
1449         * modules/sys_stat-tests: Likewise.
1450         * modules/sys_time-tests: Likewise.
1451         * modules/sys_utsname-tests: Likewise.
1452         * modules/sysexits-tests: Likewise.
1453         * modules/time-tests: Likewise.
1454         * modules/trunc-tests: Likewise.
1455         * modules/truncf-tests: Likewise.
1456         * modules/truncl-tests: Likewise.
1457         * modules/tsearch-tests: Likewise.
1458         * modules/unistd-tests: Likewise.
1459         * modules/wchar-tests: Likewise.
1460         * modules/wctype-tests: Likewise.
1461
1462         tests: fix license on several tests
1463         * tests/test-des.c: Update to GPLv3+.
1464         * tests/test-flock.c: Likewise.
1465         * tests/test-fsync.c: Likewise.
1466         * tests/test-futimens.h: Likewise.
1467         * tests/test-gc-arcfour.c: Likewise.
1468         * tests/test-gc-arctwo.c: Likewise.
1469         * tests/test-gc-des.c: Likewise.
1470         * tests/test-gc-hmac-md5.c: Likewise.
1471         * tests/test-gc-hmac-sha1.c: Likewise.
1472         * tests/test-gc-md2.c: Likewise.
1473         * tests/test-gc-md4.c: Likewise.
1474         * tests/test-gc-md5.c: Likewise.
1475         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1476         * tests/test-gc-rijndael.c: Likewise.
1477         * tests/test-gc-sha1.c: Likewise.
1478         * tests/test-gc.c: Likewise.
1479         * tests/test-getcwd.c: Likewise.
1480         * tests/test-link.c: Likewise.
1481         * tests/test-link.h: Likewise.
1482         * tests/test-lutimens.h: Likewise.
1483         * tests/test-md2.c: Likewise.
1484         * tests/test-md4.c: Likewise.
1485         * tests/test-mkdir.h: Likewise.
1486         * tests/test-rename.c: Likewise.
1487         * tests/test-rename.h: Likewise.
1488         * tests/test-safe-alloc.c: Likewise.
1489         * tests/test-utimens-common.h: Likewise.
1490         * tests/test-utimens.h: Likewise.
1491
1492         maint: sync license texts
1493         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
1494         * doc/gpl-3.0.texi: Revert copyright year update.
1495         * doc/lgpl-3.0.texi: Likewise.
1496
1497 2009-12-29  Jim Meyering  <meyering@redhat.com>
1498
1499         update nearly all FSF copyright year lists to include 2009
1500         The files named by the following are exempted:
1501             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
1502               test -f "$dst" && { echo "$dst"; continue; }
1503               test -d "$dst" || continue
1504               echo "$dst"/$(basename "$src")
1505             done > exempt
1506             git ls-files tests/unictype >> exempt
1507         In the remaining files, convert to all-interval notation if
1508         - there is already at least one year interval like 2000-2003
1509         - the file is maintained by me
1510         - the file is in lib/uni*/, where that style already prevails
1511         Otherwise, use update-copyright's default.
1512
1513 2009-12-29  Simon Josefsson  <simon@josefsson.org>
1514         and Eric Blake  <ebb9@byu.net>
1515
1516         tests: don't require debug system() to pass
1517         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
1518         * tests/test-rmdir.h (test_rmdir_func): Likewise.
1519         * tests/test-unlink.h (test_unlink_func): Likewise.
1520         * tests/test-fstatat.c (main): ...into callers.
1521         * tests/test-lstat.c (main): Likewise.
1522         * tests/test-rmdir.c (main): Likewise.
1523         * tests/test-unlink.c (main): Likewise.
1524         * tests/test-unlinkat.c (main): Likewise.
1525         * tests/test-areadlink-with-size.c (main): Don't require a
1526         debug-only system call to pass, aiding cross-testing to mingw.
1527         * tests/test-areadlink.c (main): Likewise.
1528         * tests/test-areadlinkat-with-size.c (main): Likewise.
1529         * tests/test-areadlinkat.c (main): Likewise.
1530         * tests/test-canonicalize-lgpl.c (main): Likewise.
1531         * tests/test-canonicalize.c (main): Likewise.
1532         * tests/test-chown.c (main): Likewise.
1533         * tests/test-fchownat.c (main): Likewise.
1534         * tests/test-lchown.c (main): Likewise.
1535         * tests/test-fdutimensat.c (main): Likewise.
1536         * tests/test-futimens.c (main): Likewise.
1537         * tests/test-link.c (main): Likewise.
1538         * tests/test-linkat.c (main): Likewise.
1539         * tests/test-mkdir.c (main): Likewise.
1540         * tests/test-mkdirat.c (main): Likewise.
1541         * tests/test-mkfifo.c (main): Likewise.
1542         * tests/test-mkfifoat.c (main): Likewise.
1543         * tests/test-mknod.c (main): Likewise.
1544         * tests/test-readlink.c (main): Likewise.
1545         * tests/test-remove.c (main): Likewise.
1546         * tests/test-rename.c (main): Likewise.
1547         * tests/test-renameat.c (main): Likewise.
1548         * tests/test-symlink.c (main): Likewise.
1549         * tests/test-symlinkat.c (main): Likewise.
1550         * tests/test-utimens.c (main): Likewise.
1551         * tests/test-utimensat.c (main): Likewise.
1552
1553 2009-12-29  Simon Josefsson  <simon@josefsson.org>
1554
1555         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
1556         on $(UNUSED_PARAMETER_H) to avoid build failure.
1557
1558 2009-12-28  Jim Meyering  <meyering@redhat.com>
1559
1560         update-copyright: you may specify a max. line length other than 72
1561         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
1562
1563         maint: use consistent FSF copyright line syntax
1564         * lib/posixtm.c: Add missing comma in FSF copyright line.
1565         * lib/posixtm.h: Likewise.
1566         * lib/getugroups.c: Add missing ", Inc.".
1567
1568         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
1569         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
1570         FSF copyright line.  Remove trailing blanks.
1571
1572 2009-12-28  Eric Blake  <ebb9@byu.net>
1573
1574         test-dup2: reduce dependencies
1575         * modules/cloexec (Configure.ac): Set witness.
1576         * modules/dup2-tests (Depends-on): Drop cloexec.
1577         * tests/test-dup2.c (main): Skip portion of test if cloexec module
1578         not present.
1579         Suggested by Bruno Haible.
1580
1581 2009-12-26  Bruno Haible  <bruno@clisp.org>
1582
1583         Remove an unneeded dependency.
1584         * modules/fseterr (Depends-on): Remove dup2.
1585
1586 2009-12-26  Eric Blake  <ebb9@byu.net>
1587
1588         tests: use macros.h in more places
1589         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
1590         (ASSERT_STREAM): Provide default of stderr.
1591         * tests/test-dirent-safer.c: Include macros.h, using alternate
1592         stream for assertions.
1593         * tests/test-dup-safer.c: Likewise.
1594         * tests/test-freopen-safer.c: Likewise.
1595         * tests/test-getopt.c: Likewise.
1596         * tests/test-openat-safer.c: Likewise.
1597         * tests/test-pipe.c: Likewise.
1598         * tests/test-popen-safer.c: Likewise.
1599         * modules/dirent-safer-tests (Files): Include macros.h.
1600         * modules/unistd-safer-tests (Files): Likewise.
1601         * modules/freopen-safer-tests (Files): Likewise.
1602         * modules/getopt-posix-tests (Files): Likewise.
1603         * modules/openat-safer-tests (Files): Likewise.
1604         * modules/pipe-tests (Files): Likewise.
1605
1606 2009-12-26  Bruno Haible  <bruno@clisp.org>
1607
1608         javacomp: Portability fix.
1609         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
1610         that it also works on Solaris.
1611
1612 2009-12-26  Bruno Haible  <bruno@clisp.org>
1613
1614         localename: Fix storage allocation of gl_locale_name_thread's result.
1615         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
1616         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
1617         all platforms that have 'uselocale'.
1618         (gl_locale_name_thread_unsafe): New function, extracted from
1619         gl_locale_name_thread.
1620         (gl_locale_name_thread): Call struniq on all platforms that have
1621         'uselocale'.
1622         * tests/test-localename.c (test_locale_name_thread): Check that the
1623         resulting strings are permanently allocated.
1624         * modules/localename-tests (Depends-on): Add strdup.
1625
1626 2009-12-26  Bruno Haible  <bruno@clisp.org>
1627
1628         * tests/test-localename.c (categories): Fill in the strings.
1629
1630 2009-12-26  Jim Meyering  <meyering@redhat.com>
1631
1632         isdir: complete the removal of m4/isdir.m4
1633         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
1634
1635         isdir: clean up, since at least grep still uses it
1636         * lib/isdir.c: Include "isdir.h".
1637         (S_ISDIR): Remove now-unneeded definition.
1638         * modules/isdir (Files): Add lib/isdir.h.
1639         * lib/isdir.h: New file, with declaration.
1640         * m4/isdir.m4: Remove file -- unneeded.
1641
1642 2009-12-25  Bruno Haible  <bruno@clisp.org>
1643
1644         selinux-h: Make generated .h files standalone.
1645         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
1646         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
1647         * lib/se-selinux.in.h: Likewise.
1648         * modules/selinux-h (Depends-on): Add unused-parameter.
1649         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
1650         selinux/selinux.h and selinux/context.h.
1651         Suggested by Eric Blake.
1652
1653 2009-12-25  Bruno Haible  <bruno@clisp.org>
1654
1655         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
1656         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
1657         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
1658         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
1659         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
1660
1661 2009-12-24  Bruno Haible  <bruno@clisp.org>
1662
1663         openat: Fix warning.
1664         * lib/openat-proc.c: Include <unistd.h>.
1665
1666 2009-12-24  Bruno Haible  <bruno@clisp.org>
1667
1668         New module 'unused-parameter'.
1669         * build-aux/unused-parameter.h: New file, extracted from earlier
1670         gnulib-common.m4.
1671         * modules/unused-parameter: New file.
1672         * lib/unistr.h: Include unused-parameter.h.
1673         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
1674         _GL_UNUSED.
1675         * modules/unistr/base (Depends-on): Add unused-parameter.
1676
1677 2009-12-24  Bruno Haible  <bruno@clisp.org>
1678
1679         Add missing dependencies to 'extensions' module.
1680         * m4/extensions.m4: Add comment.
1681         * modules/accept4 (Depends-on): Add extensions.
1682         * modules/dup3 (Depends-on): Likewise.
1683         * modules/fcntl (Depends-on): Likewise.
1684         * modules/futimens (Depends-on): Likewise.
1685         * modules/mknod (Depends-on): Likewise.
1686         * modules/pipe2 (Depends-on): Likewise.
1687         * modules/stat-time (Depends-on): Likewise.
1688         * modules/strcasestr-simple (Depends-on): Likewise.
1689         * modules/strsignal (Depends-on): Likewise.
1690         * modules/utimensat (Depends-on): Likewise.
1691         * modules/localcharset (Depends-on): Likewise. Needed because of
1692         gl_FCNTL_O_FLAGS.
1693         * modules/wcrtomb (Depends-on): Likewise. Needed because of
1694         AC_TYPE_MBSTATE_T.
1695         * modules/wcsnrtombs (Depends-on): Likewise.
1696         * modules/wcsrtombs (Depends-on): Likewise.
1697
1698 2009-12-24  Bruno Haible  <bruno@clisp.org>
1699
1700         binary-io: Avoid gcc warning due to SET_BINARY.
1701         * lib/binary-io.h (SET_BINARY): Cast the result to void.
1702         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
1703
1704 2009-12-24  Bruno Haible  <bruno@clisp.org>
1705
1706         Avoid future namespace pollution on glibc systems.
1707         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
1708         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
1709         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
1710         glibc systems.
1711
1712 2009-12-24  Bruno Haible  <bruno@clisp.org>
1713
1714         Refactor common macros used in tests.
1715         * tests/macros.h: New file.
1716         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
1717         and/or <stdlib.h>, if appropriate.
1718         (ASSERT, SIZEOF): Remove macros.
1719         * tests/test-areadlink-with-size.c: Likewise.
1720         * tests/test-areadlinkat.c: Likewise.
1721         * tests/test-areadlinkat-with-size.c: Likewise.
1722         * tests/test-argmatch.c: Likewise.
1723         * tests/test-argv-iter.c: Likewise.
1724         * tests/test-array-mergesort.c: Likewise.
1725         * tests/test-array_list.c: Likewise.
1726         * tests/test-array_oset.c: Likewise.
1727         * tests/test-avltree_list.c: Likewise.
1728         * tests/test-avltree_oset.c: Likewise.
1729         * tests/test-avltreehash_list.c: Likewise.
1730         * tests/test-base64.c: Likewise.
1731         * tests/test-binary-io.c: Likewise.
1732         * tests/test-bitrotate.c: Likewise.
1733         * tests/test-btowc.c: Likewise.
1734         * tests/test-byteswap.c: Likewise.
1735         * tests/test-c-ctype.c: Likewise.
1736         * tests/test-c-stack.c: Likewise.
1737         * tests/test-c-strcasecmp.c: Likewise.
1738         * tests/test-c-strcasestr.c: Likewise.
1739         * tests/test-c-strncasecmp.c: Likewise.
1740         * tests/test-c-strstr.c: Likewise.
1741         * tests/test-canonicalize-lgpl.c: Likewise.
1742         * tests/test-canonicalize.c: Likewise.
1743         * tests/test-carray_list.c: Likewise.
1744         * tests/test-ceilf1.c: Likewise.
1745         * tests/test-ceilf2.c: Likewise.
1746         * tests/test-ceill.c: Likewise.
1747         * tests/test-chown.c: Likewise.
1748         * tests/test-cloexec.c: Likewise.
1749         * tests/test-copy-acl.c: Likewise.
1750         * tests/test-copy-file.c: Likewise.
1751         * tests/test-count-one-bits.c: Likewise.
1752         * tests/test-dprintf-posix.c: Likewise.
1753         * tests/test-dup2.c: Likewise.
1754         * tests/test-dup3.c: Likewise.
1755         * tests/test-duplocale.c: Likewise.
1756         * tests/test-fbufmode.c: Likewise.
1757         * tests/test-fchdir.c: Likewise.
1758         * tests/test-fchownat.c: Likewise.
1759         * tests/test-fcntl-safer.c: Likewise.
1760         * tests/test-fcntl.c: Likewise.
1761         * tests/test-fdopendir.c: Likewise.
1762         * tests/test-fdutimensat.c: Likewise.
1763         * tests/test-fflush2.c: Likewise.
1764         * tests/test-file-has-acl.c: Likewise.
1765         * tests/test-filevercmp.c: Likewise.
1766         * tests/test-flock.c: Likewise.
1767         * tests/test-floorf1.c: Likewise.
1768         * tests/test-floorf2.c: Likewise.
1769         * tests/test-floorl.c: Likewise.
1770         * tests/test-fnmatch.c: Likewise.
1771         * tests/test-fopen.h: Likewise.
1772         * tests/test-fpending.c: Likewise.
1773         * tests/test-fprintf-posix.c: Likewise.
1774         * tests/test-fpurge.c: Likewise.
1775         * tests/test-freadable.c: Likewise.
1776         * tests/test-freadahead.c: Likewise.
1777         * tests/test-freading.c: Likewise.
1778         * tests/test-freadptr.c: Likewise.
1779         * tests/test-freadptr2.c: Likewise.
1780         * tests/test-freadseek.c: Likewise.
1781         * tests/test-freopen.c: Likewise.
1782         * tests/test-frexp.c: Likewise.
1783         * tests/test-frexpl.c: Likewise.
1784         * tests/test-fseek.c: Likewise.
1785         * tests/test-fseeko.c: Likewise.
1786         * tests/test-fstatat.c: Likewise.
1787         * tests/test-fstrcmp.c: Likewise.
1788         * tests/test-fsync.c: Likewise.
1789         * tests/test-ftell.c: Likewise.
1790         * tests/test-ftello.c: Likewise.
1791         * tests/test-func.c: Likewise.
1792         * tests/test-futimens.c: Likewise.
1793         * tests/test-fwritable.c: Likewise.
1794         * tests/test-fwriting.c: Likewise.
1795         * tests/test-getcwd.c: Likewise.
1796         * tests/test-getdate.c: Likewise.
1797         * tests/test-getdelim.c: Likewise.
1798         * tests/test-getdtablesize.c: Likewise.
1799         * tests/test-getgroups.c: Likewise.
1800         * tests/test-getline.c: Likewise.
1801         * tests/test-getndelim2.c: Likewise.
1802         * tests/test-glob.c: Likewise.
1803         * tests/test-hash.c: Likewise.
1804         * tests/test-i-ring.c: Likewise.
1805         * tests/test-iconv-utf.c: Likewise.
1806         * tests/test-iconv.c: Likewise.
1807         * tests/test-idpriv-drop.c: Likewise.
1808         * tests/test-idpriv-droptemp.c: Likewise.
1809         * tests/test-inet_ntop.c: Likewise.
1810         * tests/test-inet_pton.c: Likewise.
1811         * tests/test-isblank.c: Likewise.
1812         * tests/test-isfinite.c: Likewise.
1813         * tests/test-isinf.c: Likewise.
1814         * tests/test-isnan.c: Likewise.
1815         * tests/test-isnand.h: Likewise.
1816         * tests/test-isnanf.h: Likewise.
1817         * tests/test-isnanl.h: Likewise.
1818         * tests/test-lchown.c: Likewise.
1819         * tests/test-ldexpl.c: Likewise.
1820         * tests/test-link.c: Likewise.
1821         * tests/test-linkat.c: Likewise.
1822         * tests/test-linked_list.c: Likewise.
1823         * tests/test-linkedhash_list.c: Likewise.
1824         * tests/test-localename.c: Likewise.
1825         * tests/test-lseek.c: Likewise.
1826         * tests/test-lstat.c: Likewise.
1827         * tests/test-mbmemcasecmp.c: Likewise.
1828         * tests/test-mbmemcasecoll.c: Likewise.
1829         * tests/test-mbrtowc.c: Likewise.
1830         * tests/test-mbscasecmp.c: Likewise.
1831         * tests/test-mbscasestr1.c: Likewise.
1832         * tests/test-mbscasestr2.c: Likewise.
1833         * tests/test-mbscasestr3.c: Likewise.
1834         * tests/test-mbscasestr4.c: Likewise.
1835         * tests/test-mbschr.c: Likewise.
1836         * tests/test-mbscspn.c: Likewise.
1837         * tests/test-mbsinit.c: Likewise.
1838         * tests/test-mbsncasecmp.c: Likewise.
1839         * tests/test-mbsnrtowcs.c: Likewise.
1840         * tests/test-mbspbrk.c: Likewise.
1841         * tests/test-mbspcasecmp.c: Likewise.
1842         * tests/test-mbsrchr.c: Likewise.
1843         * tests/test-mbsrtowcs.c: Likewise.
1844         * tests/test-mbsspn.c: Likewise.
1845         * tests/test-mbsstr1.c: Likewise.
1846         * tests/test-mbsstr2.c: Likewise.
1847         * tests/test-mbsstr3.c: Likewise.
1848         * tests/test-memchr.c: Likewise.
1849         * tests/test-memchr2.c: Likewise.
1850         * tests/test-memcmp.c: Likewise.
1851         * tests/test-memmem.c: Likewise.
1852         * tests/test-memrchr.c: Likewise.
1853         * tests/test-mkdir.c: Likewise.
1854         * tests/test-mkdirat.c: Likewise.
1855         * tests/test-mkfifo.c: Likewise.
1856         * tests/test-mkfifoat.c: Likewise.
1857         * tests/test-mknod.c: Likewise.
1858         * tests/test-nanosleep.c: Likewise.
1859         * tests/test-nl_langinfo.c: Likewise.
1860         * tests/test-obstack-printf.c: Likewise.
1861         * tests/test-open.c: Likewise.
1862         * tests/test-openat.c: Likewise.
1863         * tests/test-pipe-filter-gi1.c: Likewise.
1864         * tests/test-pipe-filter-gi2-main.c: Likewise.
1865         * tests/test-pipe-filter-ii1.c: Likewise.
1866         * tests/test-pipe-filter-ii2-main.c: Likewise.
1867         * tests/test-pipe2.c: Likewise.
1868         * tests/test-popen.h: Likewise.
1869         * tests/test-posixtm.c: Likewise.
1870         * tests/test-pread.c: Likewise.
1871         * tests/test-printf-frexp.c: Likewise.
1872         * tests/test-printf-frexpl.c: Likewise.
1873         * tests/test-printf-posix.c: Likewise.
1874         * tests/test-priv-set.c: Likewise.
1875         * tests/test-quotearg.c: Likewise.
1876         * tests/test-random_r.c: Likewise.
1877         * tests/test-rawmemchr.c: Likewise.
1878         * tests/test-rbtree_list.c: Likewise.
1879         * tests/test-rbtree_oset.c: Likewise.
1880         * tests/test-rbtreehash_list.c: Likewise.
1881         * tests/test-readlink.c: Likewise.
1882         * tests/test-remove.c: Likewise.
1883         * tests/test-rename.c: Likewise.
1884         * tests/test-renameat.c: Likewise.
1885         * tests/test-rmdir.c: Likewise.
1886         * tests/test-round1.c: Likewise.
1887         * tests/test-roundf1.c: Likewise.
1888         * tests/test-roundl.c: Likewise.
1889         * tests/test-safe-alloc.c: Likewise.
1890         * tests/test-sameacls.c: Likewise.
1891         * tests/test-set-mode-acl.c: Likewise.
1892         * tests/test-setenv.c: Likewise.
1893         * tests/test-sigaction.c: Likewise.
1894         * tests/test-signbit.c: Likewise.
1895         * tests/test-sleep.c: Likewise.
1896         * tests/test-snprintf-posix.c: Likewise.
1897         * tests/test-snprintf.c: Likewise.
1898         * tests/test-sprintf-posix.c: Likewise.
1899         * tests/test-stat-time.c: Likewise.
1900         * tests/test-stat.c: Likewise.
1901         * tests/test-strcasestr.c: Likewise.
1902         * tests/test-strchrnul.c: Likewise.
1903         * tests/test-strerror.c: Likewise.
1904         * tests/test-striconv.c: Likewise.
1905         * tests/test-striconveh.c: Likewise.
1906         * tests/test-striconveha.c: Likewise.
1907         * tests/test-strsignal.c: Likewise.
1908         * tests/test-strstr.c: Likewise.
1909         * tests/test-strtod.c: Likewise.
1910         * tests/test-strverscmp.c: Likewise.
1911         * tests/test-symlink.c: Likewise.
1912         * tests/test-symlinkat.c: Likewise.
1913         * tests/test-trunc1.c: Likewise.
1914         * tests/test-trunc2.c: Likewise.
1915         * tests/test-truncf1.c: Likewise.
1916         * tests/test-truncf2.c: Likewise.
1917         * tests/test-truncl.c: Likewise.
1918         * tests/test-uname.c: Likewise.
1919         * tests/test-unlink.c: Likewise.
1920         * tests/test-unlinkat.c: Likewise.
1921         * tests/test-unsetenv.c: Likewise.
1922         * tests/test-usleep.c: Likewise.
1923         * tests/test-utimens.c: Likewise.
1924         * tests/test-utimensat.c: Likewise.
1925         * tests/test-vasnprintf-posix.c: Likewise.
1926         * tests/test-vasnprintf-posix2.c: Likewise.
1927         * tests/test-vasnprintf.c: Likewise.
1928         * tests/test-vasprintf-posix.c: Likewise.
1929         * tests/test-vasprintf.c: Likewise.
1930         * tests/test-vdprintf-posix.c: Likewise.
1931         * tests/test-vfprintf-posix.c: Likewise.
1932         * tests/test-vprintf-posix.c: Likewise.
1933         * tests/test-vsnprintf-posix.c: Likewise.
1934         * tests/test-vsnprintf.c: Likewise.
1935         * tests/test-vsprintf-posix.c: Likewise.
1936         * tests/test-wcrtomb.c: Likewise.
1937         * tests/test-wcsnrtombs.c: Likewise.
1938         * tests/test-wcsrtombs.c: Likewise.
1939         * tests/test-wctype.c: Likewise.
1940         * tests/test-wcwidth.c: Likewise.
1941         * tests/test-xfprintf-posix.c: Likewise.
1942         * tests/test-xmemdup0.c: Likewise.
1943         * tests/test-xprintf-posix.c: Likewise.
1944         * tests/test-xvasprintf.c: Likewise.
1945         * tests/unicase/test-locale-language.c: Likewise.
1946         * tests/unicase/test-mapping-part1.h: Likewise.
1947         * tests/unicase/test-predicate-part1.h: Likewise.
1948         * tests/unicase/test-u8-casecmp.c: Likewise.
1949         * tests/unicase/test-u8-casecoll.c: Likewise.
1950         * tests/unicase/test-u8-casefold.c: Likewise.
1951         * tests/unicase/test-u8-is-cased.c: Likewise.
1952         * tests/unicase/test-u8-is-casefolded.c: Likewise.
1953         * tests/unicase/test-u8-is-lowercase.c: Likewise.
1954         * tests/unicase/test-u8-is-titlecase.c: Likewise.
1955         * tests/unicase/test-u8-is-uppercase.c: Likewise.
1956         * tests/unicase/test-u8-tolower.c: Likewise.
1957         * tests/unicase/test-u8-totitle.c: Likewise.
1958         * tests/unicase/test-u8-toupper.c: Likewise.
1959         * tests/unicase/test-u16-casecmp.c: Likewise.
1960         * tests/unicase/test-u16-casecoll.c: Likewise.
1961         * tests/unicase/test-u16-casefold.c: Likewise.
1962         * tests/unicase/test-u16-is-cased.c: Likewise.
1963         * tests/unicase/test-u16-is-casefolded.c: Likewise.
1964         * tests/unicase/test-u16-is-lowercase.c: Likewise.
1965         * tests/unicase/test-u16-is-titlecase.c: Likewise.
1966         * tests/unicase/test-u16-is-uppercase.c: Likewise.
1967         * tests/unicase/test-u16-tolower.c: Likewise.
1968         * tests/unicase/test-u16-totitle.c: Likewise.
1969         * tests/unicase/test-u16-toupper.c: Likewise.
1970         * tests/unicase/test-u32-casecmp.c: Likewise.
1971         * tests/unicase/test-u32-casecoll.c: Likewise.
1972         * tests/unicase/test-u32-casefold.c: Likewise.
1973         * tests/unicase/test-u32-is-cased.c: Likewise.
1974         * tests/unicase/test-u32-is-casefolded.c: Likewise.
1975         * tests/unicase/test-u32-is-lowercase.c: Likewise.
1976         * tests/unicase/test-u32-is-titlecase.c: Likewise.
1977         * tests/unicase/test-u32-is-uppercase.c: Likewise.
1978         * tests/unicase/test-u32-tolower.c: Likewise.
1979         * tests/unicase/test-u32-totitle.c: Likewise.
1980         * tests/unicase/test-u32-toupper.c: Likewise.
1981         * tests/unicase/test-ulc-casecmp.c: Likewise.
1982         * tests/unicase/test-ulc-casecoll.c: Likewise.
1983         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1984         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
1985         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1986         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1987         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
1988         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
1989         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1990         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1991         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1992         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
1993         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1994         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1995         * tests/unictype/test-bidi_byname.c: Likewise.
1996         * tests/unictype/test-bidi_name.c: Likewise.
1997         * tests/unictype/test-bidi_of.c: Likewise.
1998         * tests/unictype/test-bidi_test.c: Likewise.
1999         * tests/unictype/test-block_list.c: Likewise.
2000         * tests/unictype/test-block_of.c: Likewise.
2001         * tests/unictype/test-block_test.c: Likewise.
2002         * tests/unictype/test-categ_and.c: Likewise.
2003         * tests/unictype/test-categ_and_not.c: Likewise.
2004         * tests/unictype/test-categ_byname.c: Likewise.
2005         * tests/unictype/test-categ_name.c: Likewise.
2006         * tests/unictype/test-categ_none.c: Likewise.
2007         * tests/unictype/test-categ_of.c: Likewise.
2008         * tests/unictype/test-categ_or.c: Likewise.
2009         * tests/unictype/test-categ_test_withtable.c: Likewise.
2010         * tests/unictype/test-combining.c: Likewise.
2011         * tests/unictype/test-decdigit.c: Likewise.
2012         * tests/unictype/test-digit.c: Likewise.
2013         * tests/unictype/test-mirror.c: Likewise.
2014         * tests/unictype/test-numeric.c: Likewise.
2015         * tests/unictype/test-pr_byname.c: Likewise.
2016         * tests/unictype/test-pr_test.c: Likewise.
2017         * tests/unictype/test-predicate-part1.h: Likewise.
2018         * tests/unictype/test-scripts.c: Likewise.
2019         * tests/unictype/test-sy_c_ident.c: Likewise.
2020         * tests/unictype/test-sy_java_ident.c: Likewise.
2021         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
2022         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
2023         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
2024         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
2025         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
2026         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
2027         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
2028         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
2029         * tests/uninorm/test-canonical-decomposition.c: Likewise.
2030         * tests/uninorm/test-compat-decomposition.c: Likewise.
2031         * tests/uninorm/test-composition.c: Likewise.
2032         * tests/uninorm/test-decomposing-form.c: Likewise.
2033         * tests/uninorm/test-decomposition.c: Likewise.
2034         * tests/uninorm/test-u8-nfc.c: Likewise.
2035         * tests/uninorm/test-u8-nfd.c: Likewise.
2036         * tests/uninorm/test-u8-nfkc.c: Likewise.
2037         * tests/uninorm/test-u8-nfkd.c: Likewise.
2038         * tests/uninorm/test-u8-normcmp.c: Likewise.
2039         * tests/uninorm/test-u8-normcoll.c: Likewise.
2040         * tests/uninorm/test-u16-nfc.c: Likewise.
2041         * tests/uninorm/test-u16-nfd.c: Likewise.
2042         * tests/uninorm/test-u16-nfkc.c: Likewise.
2043         * tests/uninorm/test-u16-nfkd.c: Likewise.
2044         * tests/uninorm/test-u16-normcmp.c: Likewise.
2045         * tests/uninorm/test-u16-normcoll.c: Likewise.
2046         * tests/uninorm/test-u32-nfc.c: Likewise.
2047         * tests/uninorm/test-u32-nfd.c: Likewise.
2048         * tests/uninorm/test-u32-nfkc.c: Likewise.
2049         * tests/uninorm/test-u32-nfkd.c: Likewise.
2050         * tests/uninorm/test-u32-normalize-big.c: Likewise.
2051         * tests/uninorm/test-u32-normcmp.c: Likewise.
2052         * tests/uninorm/test-u32-normcoll.c: Likewise.
2053         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
2054         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
2055         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
2056         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
2057         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
2058         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
2059         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
2060         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
2061         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
2062         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
2063         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
2064         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
2065         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
2066         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
2067         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
2068         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
2069         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
2070         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
2071         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
2072         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
2073         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
2074         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
2075         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
2076         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
2077         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
2078         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
2079         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
2080         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
2081         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
2082         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
2083         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
2084         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
2085         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
2086         * tests/uniwidth/test-u8-strwidth.c: Likewise.
2087         * tests/uniwidth/test-u8-width.c: Likewise.
2088         * tests/uniwidth/test-u16-strwidth.c: Likewise.
2089         * tests/uniwidth/test-u16-width.c: Likewise.
2090         * tests/uniwidth/test-u32-strwidth.c: Likewise.
2091         * tests/uniwidth/test-u32-width.c: Likewise.
2092         * tests/uniwidth/test-uc_width.c: Likewise.
2093         * tests/uniwidth/test-uc_width2.c: Likewise.
2094         * modules/acl-tests (Files): Add tests/macros.h.
2095         * modules/areadlink-tests (Files): Likewise.
2096         * modules/areadlink-with-size-tests (Files): Likewise.
2097         * modules/areadlinkat-tests (Files): Likewise.
2098         * modules/areadlinkat-with-size-tests (Files): Likewise.
2099         * modules/argmatch-tests (Files): Likewise.
2100         * modules/argv-iter-tests (Files): Likewise.
2101         * modules/array-list-tests (Files): Likewise.
2102         * modules/array-mergesort-tests (Files): Likewise.
2103         * modules/array-oset-tests (Files): Likewise.
2104         * modules/avltree-list-tests (Files): Likewise.
2105         * modules/avltree-oset-tests (Files): Likewise.
2106         * modules/avltreehash-list-tests (Files): Likewise.
2107         * modules/base64-tests (Files): Likewise.
2108         * modules/binary-io-tests (Files): Likewise.
2109         * modules/bitrotate-tests (Files): Likewise.
2110         * modules/btowc-tests (Files): Likewise.
2111         * modules/byteswap-tests (Files): Likewise.
2112         * modules/c-ctype-tests (Files): Likewise.
2113         * modules/c-stack-tests (Files): Likewise.
2114         * modules/c-strcase-tests (Files): Likewise.
2115         * modules/c-strcasestr-tests (Files): Likewise.
2116         * modules/c-strstr-tests (Files): Likewise.
2117         * modules/canonicalize-lgpl-tests (Files): Likewise.
2118         * modules/canonicalize-tests (Files): Likewise.
2119         * modules/carray-list-tests (Files): Likewise.
2120         * modules/ceilf-tests (Files): Likewise.
2121         * modules/ceill-tests (Files): Likewise.
2122         * modules/chown-tests (Files): Likewise.
2123         * modules/cloexec-tests (Files): Likewise.
2124         * modules/copy-file-tests (Files): Likewise.
2125         * modules/count-one-bits-tests (Files): Likewise.
2126         * modules/dprintf-posix-tests (Files): Likewise.
2127         * modules/dup2-tests (Files): Likewise.
2128         * modules/dup3-tests (Files): Likewise.
2129         * modules/duplocale-tests (Files): Likewise.
2130         * modules/fbufmode-tests (Files): Likewise.
2131         * modules/fchdir-tests (Files): Likewise.
2132         * modules/fcntl-safer-tests (Files): Likewise.
2133         * modules/fcntl-tests (Files): Likewise.
2134         * modules/fdopendir-tests (Files): Likewise.
2135         * modules/fdutimensat-tests (Files): Likewise.
2136         * modules/fflush-tests (Files): Likewise.
2137         * modules/filevercmp-tests (Files): Likewise.
2138         * modules/flock-tests (Files): Likewise.
2139         * modules/floorf-tests (Files): Likewise.
2140         * modules/floorl-tests (Files): Likewise.
2141         * modules/fnmatch-tests (Files): Likewise.
2142         * modules/fopen-safer-tests (Files): Likewise.
2143         * modules/fopen-tests (Files): Likewise.
2144         * modules/fpending-tests (Files): Likewise.
2145         * modules/fprintf-posix-tests (Files): Likewise.
2146         * modules/fpurge-tests (Files): Likewise.
2147         * modules/freadable-tests (Files): Likewise.
2148         * modules/freadahead-tests (Files): Likewise.
2149         * modules/freading-tests (Files): Likewise.
2150         * modules/freadptr-tests (Files): Likewise.
2151         * modules/freadseek-tests (Files): Likewise.
2152         * modules/freopen-tests (Files): Likewise.
2153         * modules/frexp-nolibm-tests (Files): Likewise.
2154         * modules/frexp-tests (Files): Likewise.
2155         * modules/frexpl-nolibm-tests (Files): Likewise.
2156         * modules/frexpl-tests (Files): Likewise.
2157         * modules/fseek-tests (Files): Likewise.
2158         * modules/fseeko-tests (Files): Likewise.
2159         * modules/fstrcmp-tests (Files): Likewise.
2160         * modules/fsync-tests (Files): Likewise.
2161         * modules/ftell-tests (Files): Likewise.
2162         * modules/ftello-tests (Files): Likewise.
2163         * modules/func-tests (Files): Likewise.
2164         * modules/futimens-tests (Files): Likewise.
2165         * modules/fwritable-tests (Files): Likewise.
2166         * modules/fwriting-tests (Files): Likewise.
2167         * modules/getcwd-tests (Files): Likewise.
2168         * modules/getdate-tests (Files): Likewise.
2169         * modules/getdelim-tests (Files): Likewise.
2170         * modules/getdtablesize-tests (Files): Likewise.
2171         * modules/getgroups-tests (Files): Likewise.
2172         * modules/getline-tests (Files): Likewise.
2173         * modules/getndelim2-tests (Files): Likewise.
2174         * modules/glob-tests (Files): Likewise.
2175         * modules/hash-tests (Files): Likewise.
2176         * modules/i-ring-tests (Files): Likewise.
2177         * modules/iconv-tests (Files): Likewise.
2178         * modules/iconv_open-utf-tests (Files): Likewise.
2179         * modules/idpriv-drop-tests (Files): Likewise.
2180         * modules/idpriv-droptemp-tests (Files): Likewise.
2181         * modules/inet_ntop-tests (Files): Likewise.
2182         * modules/inet_pton-tests (Files): Likewise.
2183         * modules/isblank-tests (Files): Likewise.
2184         * modules/isfinite-tests (Files): Likewise.
2185         * modules/isinf-tests (Files): Likewise.
2186         * modules/isnan-tests (Files): Likewise.
2187         * modules/isnand-nolibm-tests (Files): Likewise.
2188         * modules/isnand-tests (Files): Likewise.
2189         * modules/isnanf-nolibm-tests (Files): Likewise.
2190         * modules/isnanf-tests (Files): Likewise.
2191         * modules/isnanl-nolibm-tests (Files): Likewise.
2192         * modules/isnanl-tests (Files): Likewise.
2193         * modules/lchown-tests (Files): Likewise.
2194         * modules/ldexpl-tests (Files): Likewise.
2195         * modules/link-tests (Files): Likewise.
2196         * modules/linkat-tests (Files): Likewise.
2197         * modules/linked-list-tests (Files): Likewise.
2198         * modules/linkedhash-list-tests (Files): Likewise.
2199         * modules/localename-tests (Files): Likewise.
2200         * modules/lseek-tests (Files): Likewise.
2201         * modules/lstat-tests (Files): Likewise.
2202         * modules/mbmemcasecmp-tests (Files): Likewise.
2203         * modules/mbmemcasecoll-tests (Files): Likewise.
2204         * modules/mbrtowc-tests (Files): Likewise.
2205         * modules/mbscasecmp-tests (Files): Likewise.
2206         * modules/mbscasestr-tests (Files): Likewise.
2207         * modules/mbschr-tests (Files): Likewise.
2208         * modules/mbscspn-tests (Files): Likewise.
2209         * modules/mbsinit-tests (Files): Likewise.
2210         * modules/mbsncasecmp-tests (Files): Likewise.
2211         * modules/mbsnrtowcs-tests (Files): Likewise.
2212         * modules/mbspbrk-tests (Files): Likewise.
2213         * modules/mbspcasecmp-tests (Files): Likewise.
2214         * modules/mbsrchr-tests (Files): Likewise.
2215         * modules/mbsrtowcs-tests (Files): Likewise.
2216         * modules/mbsspn-tests (Files): Likewise.
2217         * modules/mbsstr-tests (Files): Likewise.
2218         * modules/memchr-tests (Files): Likewise.
2219         * modules/memchr2-tests (Files): Likewise.
2220         * modules/memcmp-tests (Files): Likewise.
2221         * modules/memmem-tests (Files): Likewise.
2222         * modules/memrchr-tests (Files): Likewise.
2223         * modules/mkdir-tests (Files): Likewise.
2224         * modules/mkfifo-tests (Files): Likewise.
2225         * modules/mkfifoat-tests (Files): Likewise.
2226         * modules/mknod-tests (Files): Likewise.
2227         * modules/nanosleep-tests (Files): Likewise.
2228         * modules/nl_langinfo-tests (Files): Likewise.
2229         * modules/obstack-printf-tests (Files): Likewise.
2230         * modules/open-tests (Files): Likewise.
2231         * modules/openat-tests (Files): Likewise.
2232         * modules/pipe-filter-gi-tests (Files): Likewise.
2233         * modules/pipe-filter-ii-tests (Files): Likewise.
2234         * modules/pipe2-tests (Files): Likewise.
2235         * modules/popen-safer-tests (Files): Likewise.
2236         * modules/popen-tests (Files): Likewise.
2237         * modules/posixtm-tests (Files): Likewise.
2238         * modules/pread-tests (Files): Likewise.
2239         * modules/printf-frexp-tests (Files): Likewise.
2240         * modules/printf-frexpl-tests (Files): Likewise.
2241         * modules/printf-posix-tests (Files): Likewise.
2242         * modules/priv-set-tests (Files): Likewise.
2243         * modules/quotearg-tests (Files): Likewise.
2244         * modules/random_r-tests (Files): Likewise.
2245         * modules/rawmemchr-tests (Files): Likewise.
2246         * modules/rbtree-list-tests (Files): Likewise.
2247         * modules/rbtree-oset-tests (Files): Likewise.
2248         * modules/rbtreehash-list-tests (Files): Likewise.
2249         * modules/readlink-tests (Files): Likewise.
2250         * modules/remove-tests (Files): Likewise.
2251         * modules/rename-tests (Files): Likewise.
2252         * modules/renameat-tests (Files): Likewise.
2253         * modules/rmdir-tests (Files): Likewise.
2254         * modules/round-tests (Files): Likewise.
2255         * modules/roundf-tests (Files): Likewise.
2256         * modules/roundl-tests (Files): Likewise.
2257         * modules/safe-alloc-tests (Files): Likewise.
2258         * modules/setenv-tests (Files): Likewise.
2259         * modules/sigaction-tests (Files): Likewise.
2260         * modules/signbit-tests (Files): Likewise.
2261         * modules/sleep-tests (Files): Likewise.
2262         * modules/snprintf-posix-tests (Files): Likewise.
2263         * modules/snprintf-tests (Files): Likewise.
2264         * modules/sprintf-posix-tests (Files): Likewise.
2265         * modules/stat-tests (Files): Likewise.
2266         * modules/stat-time-tests (Files): Likewise.
2267         * modules/strcasestr-tests (Files): Likewise.
2268         * modules/strchrnul-tests (Files): Likewise.
2269         * modules/strerror-tests (Files): Likewise.
2270         * modules/striconv-tests (Files): Likewise.
2271         * modules/striconveh-tests (Files): Likewise.
2272         * modules/striconveha-tests (Files): Likewise.
2273         * modules/strsignal-tests (Files): Likewise.
2274         * modules/strstr-tests (Files): Likewise.
2275         * modules/strtod-tests (Files): Likewise.
2276         * modules/strverscmp-tests (Files): Likewise.
2277         * modules/symlink-tests (Files): Likewise.
2278         * modules/symlinkat-tests (Files): Likewise.
2279         * modules/trunc-tests (Files): Likewise.
2280         * modules/truncf-tests (Files): Likewise.
2281         * modules/truncl-tests (Files): Likewise.
2282         * modules/uname-tests (Files): Likewise.
2283         * modules/unicase/cased-tests (Files): Likewise.
2284         * modules/unicase/ignorable-tests (Files): Likewise.
2285         * modules/unicase/locale-language-tests (Files): Likewise.
2286         * modules/unicase/tolower-tests (Files): Likewise.
2287         * modules/unicase/totitle-tests (Files): Likewise.
2288         * modules/unicase/toupper-tests (Files): Likewise.
2289         * modules/unicase/u8-casecmp-tests (Files): Likewise.
2290         * modules/unicase/u8-casecoll-tests (Files): Likewise.
2291         * modules/unicase/u8-casefold-tests (Files): Likewise.
2292         * modules/unicase/u8-is-cased-tests (Files): Likewise.
2293         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
2294         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
2295         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
2296         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
2297         * modules/unicase/u8-tolower-tests (Files): Likewise.
2298         * modules/unicase/u8-totitle-tests (Files): Likewise.
2299         * modules/unicase/u8-toupper-tests (Files): Likewise.
2300         * modules/unicase/u16-casecmp-tests (Files): Likewise.
2301         * modules/unicase/u16-casecoll-tests (Files): Likewise.
2302         * modules/unicase/u16-casefold-tests (Files): Likewise.
2303         * modules/unicase/u16-is-cased-tests (Files): Likewise.
2304         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
2305         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
2306         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
2307         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
2308         * modules/unicase/u16-tolower-tests (Files): Likewise.
2309         * modules/unicase/u16-totitle-tests (Files): Likewise.
2310         * modules/unicase/u16-toupper-tests (Files): Likewise.
2311         * modules/unicase/u32-casecmp-tests (Files): Likewise.
2312         * modules/unicase/u32-casecoll-tests (Files): Likewise.
2313         * modules/unicase/u32-casefold-tests (Files): Likewise.
2314         * modules/unicase/u32-is-cased-tests (Files): Likewise.
2315         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
2316         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
2317         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
2318         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
2319         * modules/unicase/u32-tolower-tests (Files): Likewise.
2320         * modules/unicase/u32-totitle-tests (Files): Likewise.
2321         * modules/unicase/u32-toupper-tests (Files): Likewise.
2322         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
2323         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
2324         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
2325         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
2326         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
2327         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
2328         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
2329         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
2330         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
2331         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
2332         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
2333         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
2334         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
2335         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
2336         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
2337         * modules/unictype/bidicategory-name-tests (Files): Likewise.
2338         * modules/unictype/bidicategory-of-tests (Files): Likewise.
2339         * modules/unictype/bidicategory-test-tests (Files): Likewise.
2340         * modules/unictype/block-list-tests (Files): Likewise.
2341         * modules/unictype/block-of-tests (Files): Likewise.
2342         * modules/unictype/block-test-tests (Files): Likewise.
2343         * modules/unictype/category-C-tests (Files): Likewise.
2344         * modules/unictype/category-Cc-tests (Files): Likewise.
2345         * modules/unictype/category-Cf-tests (Files): Likewise.
2346         * modules/unictype/category-Cn-tests (Files): Likewise.
2347         * modules/unictype/category-Co-tests (Files): Likewise.
2348         * modules/unictype/category-Cs-tests (Files): Likewise.
2349         * modules/unictype/category-L-tests (Files): Likewise.
2350         * modules/unictype/category-Ll-tests (Files): Likewise.
2351         * modules/unictype/category-Lm-tests (Files): Likewise.
2352         * modules/unictype/category-Lo-tests (Files): Likewise.
2353         * modules/unictype/category-Lt-tests (Files): Likewise.
2354         * modules/unictype/category-Lu-tests (Files): Likewise.
2355         * modules/unictype/category-M-tests (Files): Likewise.
2356         * modules/unictype/category-Mc-tests (Files): Likewise.
2357         * modules/unictype/category-Me-tests (Files): Likewise.
2358         * modules/unictype/category-Mn-tests (Files): Likewise.
2359         * modules/unictype/category-N-tests (Files): Likewise.
2360         * modules/unictype/category-Nd-tests (Files): Likewise.
2361         * modules/unictype/category-Nl-tests (Files): Likewise.
2362         * modules/unictype/category-No-tests (Files): Likewise.
2363         * modules/unictype/category-P-tests (Files): Likewise.
2364         * modules/unictype/category-Pc-tests (Files): Likewise.
2365         * modules/unictype/category-Pd-tests (Files): Likewise.
2366         * modules/unictype/category-Pe-tests (Files): Likewise.
2367         * modules/unictype/category-Pf-tests (Files): Likewise.
2368         * modules/unictype/category-Pi-tests (Files): Likewise.
2369         * modules/unictype/category-Po-tests (Files): Likewise.
2370         * modules/unictype/category-Ps-tests (Files): Likewise.
2371         * modules/unictype/category-S-tests (Files): Likewise.
2372         * modules/unictype/category-Sc-tests (Files): Likewise.
2373         * modules/unictype/category-Sk-tests (Files): Likewise.
2374         * modules/unictype/category-Sm-tests (Files): Likewise.
2375         * modules/unictype/category-So-tests (Files): Likewise.
2376         * modules/unictype/category-Z-tests (Files): Likewise.
2377         * modules/unictype/category-Zl-tests (Files): Likewise.
2378         * modules/unictype/category-Zp-tests (Files): Likewise.
2379         * modules/unictype/category-Zs-tests (Files): Likewise.
2380         * modules/unictype/category-and-not-tests (Files): Likewise.
2381         * modules/unictype/category-and-tests (Files): Likewise.
2382         * modules/unictype/category-byname-tests (Files): Likewise.
2383         * modules/unictype/category-name-tests (Files): Likewise.
2384         * modules/unictype/category-none-tests (Files): Likewise.
2385         * modules/unictype/category-of-tests (Files): Likewise.
2386         * modules/unictype/category-or-tests (Files): Likewise.
2387         * modules/unictype/category-test-withtable-tests (Files): Likewise.
2388         * modules/unictype/combining-class-tests (Files): Likewise.
2389         * modules/unictype/ctype-alnum-tests (Files): Likewise.
2390         * modules/unictype/ctype-alpha-tests (Files): Likewise.
2391         * modules/unictype/ctype-blank-tests (Files): Likewise.
2392         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
2393         * modules/unictype/ctype-digit-tests (Files): Likewise.
2394         * modules/unictype/ctype-graph-tests (Files): Likewise.
2395         * modules/unictype/ctype-lower-tests (Files): Likewise.
2396         * modules/unictype/ctype-print-tests (Files): Likewise.
2397         * modules/unictype/ctype-punct-tests (Files): Likewise.
2398         * modules/unictype/ctype-space-tests (Files): Likewise.
2399         * modules/unictype/ctype-upper-tests (Files): Likewise.
2400         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
2401         * modules/unictype/decimal-digit-tests (Files): Likewise.
2402         * modules/unictype/digit-tests (Files): Likewise.
2403         * modules/unictype/mirror-tests (Files): Likewise.
2404         * modules/unictype/numeric-tests (Files): Likewise.
2405         * modules/unictype/property-alphabetic-tests (Files): Likewise.
2406         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
2407         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
2408         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
2409         Likewise.
2410         * modules/unictype/property-bidi-block-separator-tests (Files):
2411         Likewise.
2412         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
2413         Likewise.
2414         * modules/unictype/property-bidi-common-separator-tests (Files):
2415         Likewise.
2416         * modules/unictype/property-bidi-control-tests (Files): Likewise.
2417         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
2418         Likewise.
2419         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
2420         Likewise.
2421         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
2422         Likewise.
2423         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
2424         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
2425         Likewise.
2426         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
2427         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
2428         Likewise.
2429         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
2430         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
2431         * modules/unictype/property-bidi-segment-separator-tests (Files):
2432         Likewise.
2433         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
2434         * modules/unictype/property-byname-tests (Files): Likewise.
2435         * modules/unictype/property-combining-tests (Files): Likewise.
2436         * modules/unictype/property-composite-tests (Files): Likewise.
2437         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
2438         * modules/unictype/property-dash-tests (Files): Likewise.
2439         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
2440         * modules/unictype/property-default-ignorable-code-point-tests (Files):
2441         Likewise.
2442         * modules/unictype/property-deprecated-tests (Files): Likewise.
2443         * modules/unictype/property-diacritic-tests (Files): Likewise.
2444         * modules/unictype/property-extender-tests (Files): Likewise.
2445         * modules/unictype/property-format-control-tests (Files): Likewise.
2446         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
2447         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
2448         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
2449         * modules/unictype/property-hex-digit-tests (Files): Likewise.
2450         * modules/unictype/property-hyphen-tests (Files): Likewise.
2451         * modules/unictype/property-id-continue-tests (Files): Likewise.
2452         * modules/unictype/property-id-start-tests (Files): Likewise.
2453         * modules/unictype/property-ideographic-tests (Files): Likewise.
2454         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
2455         * modules/unictype/property-ids-trinary-operator-tests (Files):
2456         Likewise.
2457         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
2458         * modules/unictype/property-iso-control-tests (Files): Likewise.
2459         * modules/unictype/property-join-control-tests (Files): Likewise.
2460         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
2461         * modules/unictype/property-line-separator-tests (Files): Likewise.
2462         * modules/unictype/property-logical-order-exception-tests (Files):
2463         Likewise.
2464         * modules/unictype/property-lowercase-tests (Files): Likewise.
2465         * modules/unictype/property-math-tests (Files): Likewise.
2466         * modules/unictype/property-non-break-tests (Files): Likewise.
2467         * modules/unictype/property-not-a-character-tests (Files): Likewise.
2468         * modules/unictype/property-numeric-tests (Files): Likewise.
2469         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
2470         * modules/unictype/property-other-default-ignorable-code-point-tests
2471         (Files): Likewise.
2472         * modules/unictype/property-other-grapheme-extend-tests (Files):
2473         Likewise.
2474         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
2475         * modules/unictype/property-other-id-start-tests (Files): Likewise.
2476         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
2477         * modules/unictype/property-other-math-tests (Files): Likewise.
2478         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
2479         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
2480         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
2481         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
2482         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
2483         * modules/unictype/property-private-use-tests (Files): Likewise.
2484         * modules/unictype/property-punctuation-tests (Files): Likewise.
2485         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
2486         * modules/unictype/property-radical-tests (Files): Likewise.
2487         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
2488         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
2489         * modules/unictype/property-space-tests (Files): Likewise.
2490         * modules/unictype/property-terminal-punctuation-tests (Files):
2491         Likewise.
2492         * modules/unictype/property-test-tests (Files): Likewise.
2493         * modules/unictype/property-titlecase-tests (Files): Likewise.
2494         * modules/unictype/property-unassigned-code-value-tests (Files):
2495         Likewise.
2496         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
2497         * modules/unictype/property-uppercase-tests (Files): Likewise.
2498         * modules/unictype/property-variation-selector-tests (Files): Likewise.
2499         * modules/unictype/property-white-space-tests (Files): Likewise.
2500         * modules/unictype/property-xid-continue-tests (Files): Likewise.
2501         * modules/unictype/property-xid-start-tests (Files): Likewise.
2502         * modules/unictype/property-zero-width-tests (Files): Likewise.
2503         * modules/unictype/scripts-tests (Files): Likewise.
2504         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
2505         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
2506         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
2507         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
2508         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
2509         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
2510         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
2511         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
2512         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
2513         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
2514         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
2515         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
2516         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
2517         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
2518         * modules/uninorm/composition-tests (Files): Likewise.
2519         * modules/uninorm/decomposing-form-tests (Files): Likewise.
2520         * modules/uninorm/decomposition-tests (Files): Likewise.
2521         * modules/uninorm/filter-tests (Files): Likewise.
2522         * modules/uninorm/nfc-tests (Files): Likewise.
2523         * modules/uninorm/nfd-tests (Files): Likewise.
2524         * modules/uninorm/nfkc-tests (Files): Likewise.
2525         * modules/uninorm/nfkd-tests (Files): Likewise.
2526         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
2527         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
2528         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
2529         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
2530         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
2531         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
2532         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
2533         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
2534         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
2535         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
2536         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
2537         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
2538         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
2539         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
2540         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
2541         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
2542         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
2543         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
2544         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
2545         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
2546         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
2547         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
2548         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
2549         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
2550         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
2551         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
2552         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
2553         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
2554         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
2555         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
2556         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
2557         * modules/uniwidth/u8-width-tests (Files): Likewise.
2558         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
2559         * modules/uniwidth/u16-width-tests (Files): Likewise.
2560         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
2561         * modules/uniwidth/u32-width-tests (Files): Likewise.
2562         * modules/uniwidth/width-tests (Files): Likewise.
2563         * modules/unlink-tests (Files): Likewise.
2564         * modules/unsetenv-tests (Files): Likewise.
2565         * modules/usleep-tests (Files): Likewise.
2566         * modules/utimens-tests (Files): Likewise.
2567         * modules/utimensat-tests (Files): Likewise.
2568         * modules/vasnprintf-posix-tests (Files): Likewise.
2569         * modules/vasnprintf-tests (Files): Likewise.
2570         * modules/vasprintf-posix-tests (Files): Likewise.
2571         * modules/vasprintf-tests (Files): Likewise.
2572         * modules/vdprintf-posix-tests (Files): Likewise.
2573         * modules/vfprintf-posix-tests (Files): Likewise.
2574         * modules/vprintf-posix-tests (Files): Likewise.
2575         * modules/vsnprintf-posix-tests (Files): Likewise.
2576         * modules/vsnprintf-tests (Files): Likewise.
2577         * modules/vsprintf-posix-tests (Files): Likewise.
2578         * modules/wcrtomb-tests (Files): Likewise.
2579         * modules/wcsnrtombs-tests (Files): Likewise.
2580         * modules/wcsrtombs-tests (Files): Likewise.
2581         * modules/wctype-tests (Files): Likewise.
2582         * modules/wcwidth-tests (Files): Likewise.
2583         * modules/xmemdup0-tests (Files): Likewise.
2584         * modules/xprintf-posix-tests (Files): Likewise.
2585         * modules/xvasprintf-tests (Files): Likewise.
2586
2587 2009-12-24  Eric Blake  <ebb9@byu.net>
2588
2589         test-nanosleep: fix typo
2590         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
2591         patch.
2592         Reported by Bruno Haible.
2593
2594 2009-12-24  Bruno Haible  <bruno@clisp.org>
2595
2596         Reduce namespace pollution on glibc systems.
2597         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
2598         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
2599         systems.
2600         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
2601         <getopt.h> on glibc systems.
2602         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
2603         systems.
2604         * lib/fcntl.c: Include <unistd.h> here instead.
2605
2606 2009-12-24  Bruno Haible  <bruno@clisp.org>
2607
2608         * lib/stdlib.in.h (includes): Fix typo in today's commit.
2609
2610 2009-12-24  Eric Blake  <ebb9@byu.net>
2611
2612         tests: add signature checks
2613         * tests/signature.h (SIGNATURE_CHECK): New file.
2614         * modules/atexit-tests (Files): Use it.
2615         * modules/btowc-tests (Files): Likewise.
2616         * modules/canonicalize-lgpl-tests (Files): Likewise.
2617         * modules/ceilf-tests (Files): Likewise.
2618         * modules/ceill-tests (Files): Likewise.
2619         * modules/chown-tests (Files): Likewise.
2620         * modules/dprintf-posix-tests (Files): Likewise.
2621         * modules/dup2-tests (Files): Likewise.
2622         * modules/dup3-tests (Files): Likewise.
2623         * modules/duplocale-tests (Files): Likewise.
2624         * modules/fchdir-tests (Files): Likewise.
2625         * modules/fcntl-tests (Files): Likewise.
2626         * modules/fdopendir-tests (Files): Likewise.
2627         * modules/fflush-tests (Files): Likewise.
2628         * modules/flock-tests (Files): Likewise.
2629         * modules/floorf-tests (Files): Likewise.
2630         * modules/floorl-tests (Files): Likewise.
2631         * modules/fnmatch-tests (Files): Likewise.
2632         * modules/fopen-tests (Files): Likewise.
2633         * modules/fprintf-posix-tests (Files): Likewise.
2634         * modules/freopen-tests (Files): Likewise.
2635         * modules/frexp-nolibm-tests (Files): Likewise.
2636         * modules/frexp-tests (Files): Likewise.
2637         * modules/frexpl-nolibm-tests (Files): Likewise.
2638         * modules/frexpl-tests (Files): Likewise.
2639         * modules/fseek-tests (Files): Likewise.
2640         * modules/fseeko-tests (Files): Likewise.
2641         * modules/fsync-tests (Files): Likewise.
2642         * modules/ftell-tests (Files): Likewise.
2643         * modules/ftello-tests (Files): Likewise.
2644         * modules/futimens-tests (Files): Likewise.
2645         * modules/getaddrinfo-tests (Files): Likewise.
2646         * modules/getcwd-tests (Files): Likewise.
2647         * modules/getdelim-tests (Files): Likewise.
2648         * modules/getdtablesize-tests (Files): Likewise.
2649         * modules/getgroups-tests (Files): Likewise.
2650         * modules/gethostname-tests (Files): Likewise.
2651         * modules/getline-tests (Files): Likewise.
2652         * modules/getopt-posix-tests (Files): Likewise.
2653         * modules/gettimeofday-tests (Files): Likewise.
2654         * modules/glob-tests (Files): Likewise.
2655         * modules/iconv-tests (Files): Likewise.
2656         * modules/inet_ntop-tests (Files): Likewise.
2657         * modules/inet_pton-tests (Files): Likewise.
2658         * modules/isblank-tests (Files): Likewise.
2659         * modules/lchown-tests (Files): Likewise.
2660         * modules/ldexpl-tests (Files): Likewise.
2661         * modules/link-tests (Files): Likewise.
2662         * modules/linkat-tests (Files): Likewise.
2663         * modules/lseek-tests (Files): Likewise.
2664         * modules/lstat-tests (Files): Likewise.
2665         * modules/mbrtowc-tests (Files): Likewise.
2666         * modules/mbsinit-tests (Files): Likewise.
2667         * modules/mbsnrtowcs-tests (Files): Likewise.
2668         * modules/mbsrtowcs-tests (Files): Likewise.
2669         * modules/memchr-tests (Files): Likewise.
2670         * modules/memcmp-tests (Files): Likewise.
2671         * modules/memmem-tests (Files): Likewise.
2672         * modules/memrchr-tests (Files): Likewise.
2673         * modules/mkdir-tests (Files): Likewise.
2674         * modules/mkfifo-tests (Files): Likewise.
2675         * modules/mkfifoat-tests (Files): Likewise.
2676         * modules/mknod-tests (Files): Likewise.
2677         * modules/nanosleep-tests (Files): Likewise.
2678         * modules/nl_langinfo-tests (Files): Likewise.
2679         * modules/obstack-printf-tests (Files): Likewise.
2680         * modules/open-tests (Files): Likewise.
2681         * modules/openat-tests (Files): Likewise.
2682         * modules/perror-tests (Files): Likewise.
2683         * modules/pipe2-tests (Files): Likewise.
2684         * modules/poll-tests (Files): Likewise.
2685         * modules/popen-tests (Files): Likewise.
2686         * modules/posix_spawn-tests (Files): Likewise.
2687         * modules/posix_spawnp-tests (Files): Likewise.
2688         * modules/pread-tests (Files): Likewise.
2689         * modules/printf-posix-tests (Files): Likewise.
2690         * modules/pty-tests (Files): Likewise.
2691         * modules/random_r-tests (Files): Likewise.
2692         * modules/rawmemchr-tests (Files): Likewise.
2693         * modules/readlink-tests (Files): Likewise.
2694         * modules/remove-tests (Files): Likewise.
2695         * modules/rename-tests (Files): Likewise.
2696         * modules/renameat-tests (Files): Likewise.
2697         * modules/rmdir-tests (Files): Likewise.
2698         * modules/round-tests (Files): Likewise.
2699         * modules/roundf-tests (Files): Likewise.
2700         * modules/roundl-tests (Files): Likewise.
2701         * modules/select-tests (Files): Likewise.
2702         * modules/setenv-tests (Files): Likewise.
2703         * modules/sigaction-tests (Files): Likewise.
2704         * modules/sleep-tests (Files): Likewise.
2705         * modules/snprintf-posix-tests (Files): Likewise.
2706         * modules/snprintf-tests (Files): Likewise.
2707         * modules/sprintf-posix-tests (Files): Likewise.
2708         * modules/stat-tests (Files): Likewise.
2709         * modules/strcasestr-tests (Files): Likewise.
2710         * modules/strchrnul-tests (Files): Likewise.
2711         * modules/strerror-tests (Files): Likewise.
2712         * modules/strsignal-tests (Files): Likewise.
2713         * modules/strstr-tests (Files): Likewise.
2714         * modules/strtod-tests (Files): Likewise.
2715         * modules/strverscmp-tests (Files): Likewise.
2716         * modules/symlink-tests (Files): Likewise.
2717         * modules/symlinkat-tests (Files): Likewise.
2718         * modules/times-tests (Files): Likewise.
2719         * modules/trunc-tests (Files): Likewise.
2720         * modules/truncf-tests (Files): Likewise.
2721         * modules/truncl-tests (Files): Likewise.
2722         * modules/tsearch-tests (Files): Likewise.
2723         * modules/uname-tests (Files): Likewise.
2724         * modules/unlink-tests (Files): Likewise.
2725         * modules/unsetenv-tests (Files): Likewise.
2726         * modules/usleep-tests (Files): Likewise.
2727         * modules/utimensat-tests (Files): Likewise.
2728         * modules/vasprintf-tests (Files): Likewise.
2729         * modules/vdprintf-posix-tests (Files): Likewise.
2730         * modules/vfprintf-posix-tests (Files): Likewise.
2731         * modules/vprintf-posix-tests (Files): Likewise.
2732         * modules/vsnprintf-posix-tests (Files): Likewise.
2733         * modules/vsnprintf-tests (Files): Likewise.
2734         * modules/vsprintf-posix-tests (Files): Likewise.
2735         * modules/wcrtomb-tests (Files): Likewise.
2736         * modules/wcsnrtombs-tests (Files): Likewise.
2737         * modules/wcsrtombs-tests (Files): Likewise.
2738         * modules/wcwidth-tests (Files): Likewise.
2739         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
2740         * tests/test-isinf.c (isinf): Likewise.
2741         * tests/test-isnan.c (isnan): Likewise.
2742         * tests/test-signbit.c (signbit): Likewise.
2743         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
2744         declaration, either as macro or with correct signature.
2745         (select): Ensure function under test is declared with correct
2746         signature in correct header.
2747         * tests/test-atexit.c (atexit): Likewise.
2748         * tests/test-btowc.c (btowc): Likewise.
2749         * tests/test-canonicalize-lgpl.c (realpath)
2750         (canonicalize_file_name): Likewise.
2751         * tests/test-ceilf1.c (ceilf): Likewise.
2752         * tests/test-ceill.c (ceill): Likewise.
2753         * tests/test-chown.c (chown): Likewise.
2754         * tests/test-dprintf-posix.c (dprintf): Likewise.
2755         * tests/test-dup2.c (dup2): Likewise.
2756         * tests/test-dup3.c (dup3): Likewise.
2757         * tests/test-duplocale.c (duplocale): Likewise.
2758         * tests/test-fchdir.c (fchdir): Likewise.
2759         * tests/test-fchownat.c (fchownat): Likewise.
2760         * tests/test-fcntl.c (fcntl): Likewise.
2761         * tests/test-fdopendir.c (fdopendir): Likewise.
2762         * tests/test-fflush.c (fflush): Likewise.
2763         * tests/test-flock.c (flock): Likewise.
2764         * tests/test-floorf1.c (floorf): Likewise.
2765         * tests/test-floorl.c (floorl): Likewise.
2766         * tests/test-fnmatch.c (fnmatch): Likewise.
2767         * tests/test-fopen.c (fopen): Likewise.
2768         * tests/test-fprintf-posix.c (fprintf): Likewise.
2769         * tests/test-freopen.c (freopen): Likewise.
2770         * tests/test-frexp.c (frexp): Likewise.
2771         * tests/test-frexpl.c (frexpl): Likewise.
2772         * tests/test-fseek.c (fseek): Likewise.
2773         * tests/test-fseeko.c (fseeko): Likewise.
2774         * tests/test-fstatat.c (fstatat): Likewise.
2775         * tests/test-fsync.c (fsync): Likewise.
2776         * tests/test-ftell.c (ftell): Likewise.
2777         * tests/test-ftello.c (ftello): Likewise.
2778         * tests/test-futimens.c (futimens): Likewise.
2779         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
2780         (gai_strerror): Likewise.
2781         * tests/test-getcwd.c (getcwd): Likewise.
2782         * tests/test-getdelim.c (getdelim): Likewise.
2783         * tests/test-getdtablesize.c (getdtablesize): Likewise.
2784         * tests/test-getgroups.c (getgroups): Likewise.
2785         * tests/test-gethostname.c (gethostname): Likewise.
2786         * tests/test-getline.c (getline): Likewise.
2787         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
2788         Likewise.
2789         * tests/test-gettimeofday.c (gettimeofday): Likewise.
2790         * tests/test-glob.c (glob, globfree): Likewise.
2791         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
2792         * tests/test-inet_ntop.c (inet_ntop): Likewise.
2793         * tests/test-inet_pton.c (inet_pton): Likewise.
2794         * tests/test-isblank.c (isblank): Likewise.
2795         * tests/test-lchown.c (lchown): Likewise.
2796         * tests/test-ldexpl.c (ldexpl): Likewise.
2797         * tests/test-link.c (link): Likewise.
2798         * tests/test-linkat.c (linkat): Likewise.
2799         * tests/test-lseek.c (lseek): Likewise.
2800         * tests/test-lstat.c (lstat): Likewise.
2801         * tests/test-mbrtowc.c (mbrtowc): Likewise.
2802         * tests/test-mbsinit.c (mbsinit): Likewise.
2803         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
2804         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
2805         * tests/test-memchr.c (memchr): Likewise.
2806         * tests/test-memcmp.c (memcmp): Likewise.
2807         * tests/test-memmem.c (memmem): Likewise.
2808         * tests/test-memrchr.c (memrchr): Likewise.
2809         * tests/test-mkdir.c (mkdir): Likewise.
2810         * tests/test-mkdirat.c (mkdirat): Likewise.
2811         * tests/test-mkfifo.c (mkfifo): Likewise.
2812         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
2813         * tests/test-mknod.c (mknod): Likewise.
2814         * tests/test-nanosleep.c (nanosleep): Likewise.
2815         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
2816         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
2817         Likewise.
2818         * tests/test-open.c (open): Likewise.
2819         * tests/test-openat.c (openat): Likewise.
2820         * tests/test-perror.c (perror): Likewise.
2821         * tests/test-pipe2.c (pipe2): Likewise.
2822         * tests/test-poll.c (poll): Likewise.
2823         * tests/test-popen.c (popen, pclose): Likewise.
2824         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
2825         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
2826         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
2827         (posix_spawn_file_actions_destroy)
2828         (posix_spawn_file_actions_addclose)
2829         (posix_spawn_file_actions_addopen)
2830         (posix_spawn_file_actions_adddup2): Likewise.
2831         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
2832         * tests/test-pread.c (pread): Likewise.
2833         * tests/test-printf-posix.c (printf): Likewise.
2834         * tests/test-pty.c (openpty, forkpty): Likewise.
2835         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
2836         (random_r): Likewise.
2837         * tests/test-rawmemchr.c (rawmemchr): Likewise.
2838         * tests/test-readlink.c (readlink): Likewise.
2839         * tests/test-remove.c (remove): Likewise.
2840         * tests/test-rename.c (rename): Likewise.
2841         * tests/test-renameat.c (renameat): Likewise.
2842         * tests/test-rmdir.c (rmdir): Likewise.
2843         * tests/test-round1.c (round): Likewise.
2844         * tests/test-roundf1.c (roundf): Likewise.
2845         * tests/test-roundl.c (roundl): Likewise.
2846         * tests/test-setenv.c (setenv): Likewise.
2847         * tests/test-sigaction.c (sigaction): Likewise.
2848         * tests/test-sleep.c (sleep): Likewise.
2849         * tests/test-snprintf.c (snprintf): Likewise.
2850         * tests/test-sprintf-posix.c (sprintf): Likewise.
2851         * tests/test-stat.c (stat): Likewise.
2852         * tests/test-stpncpy.c (stpncpy): Likewise.
2853         * tests/test-strcasestr.c (strcasestr): Likewise.
2854         * tests/test-strchrnul.c (strchrnul): Likewise.
2855         * tests/test-strerror.c (strerror): Likewise.
2856         * tests/test-strsignal.c (strsignal): Likewise.
2857         * tests/test-strstr.c (strstr): Likewise.
2858         * tests/test-strtod.c (strtod): Likewise.
2859         * tests/test-strverscmp.c (strverscmp): Likewise.
2860         * tests/test-symlink.c (symlink): Likewise.
2861         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
2862         * tests/test-times.c (times): Likewise.
2863         * tests/test-trunc1.c (trunc): Likewise.
2864         * tests/test-truncf1.c (truncf): Likewise.
2865         * tests/test-truncl.c (truncl): Likewise.
2866         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
2867         Likewise.
2868         * tests/test-uname.c (uname): Likewise.
2869         * tests/test-unlink.c (unlink): Likewise.
2870         * tests/test-unlinkat.c (unlinkat): Likewise.
2871         * tests/test-unsetenv.c (unsetenv): Likewise.
2872         * tests/test-usleep.c (usleep): Likewise.
2873         * tests/test-utimensat.c (utimensat): Likewise.
2874         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
2875         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
2876         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
2877         * tests/test-vprintf-posix.c (vprintf): Likewise.
2878         * tests/test-vsnprintf.c (vsnprintf): Likewise.
2879         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
2880         * tests/test-wcrtomb.c (wcrtomb): Likewise.
2881         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
2882         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
2883         * tests/test-wcwidth.c (wcwidth): Likewise.
2884
2885         build: pull in conditional headers during GNULIB_POSIXCHECK
2886         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
2887         definitions from any conditionally-included headers.
2888         * lib/stdlib.in.h (includes): Likewise.
2889         * lib/unistd.in.h (includes): Likewise.
2890
2891 2009-12-24  Bruno Haible  <bruno@clisp.org>
2892
2893         * tests/test-argv-iter.c: Include header file being tested immediately
2894         after config.h.
2895         * tests/test-base64.c: Likewise.
2896         * tests/test-flock.c: Likewise.
2897         * tests/test-fsync.c: Likewise.
2898         * tests/test-getdate.c: Likewise.
2899         * tests/test-getndelim2.c: Likewise.
2900         * tests/test-isfinite.c: Likewise.
2901         * tests/test-isinf.c: Likewise.
2902         * tests/test-strerror.c: Likewise.
2903         * tests/test-strsignal.c: Likewise.
2904
2905 2009-12-23  Eric Blake  <ebb9@byu.net>
2906
2907         unistd: work around cygwin bug
2908         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
2909         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
2910         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
2911
2912 2009-12-23  Bruno Haible  <bruno@clisp.org>
2913
2914         localename: More tests.
2915         * tests/test-localename.c (SIZEOF): New macro.
2916         (categories): New variable.
2917         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
2918         test_locale_name_default): Add test w.r.t. thread locale.
2919         (test_locale_name_thread): New function.
2920         (main): Invoke it.
2921
2922         localename: Make aware of thread locale.
2923         * lib/localename.h (gl_locale_name_thread): New declaration.
2924         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
2925         behaviour with respect to thread locale.
2926         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
2927         <langinfo.h>, glthread/lock.h.
2928         (SIZE_BITS): New macro.
2929         (string_hash): New function.
2930         (struct hash_node): New type.
2931         (HASH_TABLE_SIZE): New macro.
2932         (struniq_hash_table, struniq_lock): New variables.
2933         (struniq): New function.
2934         (gl_locale_name_thread): New function.
2935         (gl_locale_name): Invoke it.
2936         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
2937         * modules/localename (Depends-on): Add lock.
2938         Reported by Mike Gran <spk121@yahoo.com>.
2939
2940 2009-12-23  Eric Blake  <ebb9@byu.net>
2941
2942         va-args: new module
2943         * modules/va-args: New file.
2944         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
2945         * MODULES.html.sh (Core language properties): Mention it.
2946
2947         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
2948         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
2949         named alias for __attribute__((__unused__)).
2950         * lib/chown.c: Update client.
2951         * lib/fchmodat.c: Likewise.
2952         * lib/fts.c: Likewise.
2953         * lib/getdate.y: Likewise.
2954         * lib/getgroups.c: Likewise.
2955         * lib/getopt.c: Likewise.
2956         * lib/getugroups.c: Likewise.
2957         * lib/mkdir.c: Likewise.
2958         * lib/mkfifo.c: Likewise.
2959         * lib/mkfifoat.c: Likewise.
2960         * lib/mknod.c: Likewise.
2961         * lib/mknodat.c: Likewise.
2962         * lib/readlink.c: Likewise.
2963         * lib/se-context.in.h: Likewise.
2964         * lib/se-selinux.in.h: Likewise.
2965         * lib/sockets.c: Likewise.
2966         * lib/symlink.c: Likewise.
2967         * lib/symlinkat.c: Likewise.
2968         * lib/unicodeio.c: Likewise.
2969         * lib/unistr.h: Likewise.
2970         * tests/test-areadlink.c: Likewise.
2971         * tests/test-areadlinkat.c: Likewise.
2972         * tests/test-filenamecat.c: Likewise.
2973         * tests/test-fseeko.c: Likewise.
2974         * tests/test-ftello.c: Likewise.
2975         * tests/test-getdate.c: Likewise.
2976         * tests/test-getgroups.c: Likewise.
2977         * tests/test-gethostname.c: Likewise.
2978         * tests/test-quotearg.c: Likewise.
2979         * tests/test-version-etc.c: Likewise.
2980         * tests/test-xalloc-die.c: Likewise.
2981         * tests/test-xfprintf-posix.c: Likewise.
2982         * tests/test-xprintf-posix.c: Likewise.
2983         * tests/test-xvasprintf.c: Likewise.
2984
2985         tests: avoid compiler warnings
2986         * tests/test-fcntl.c (main): Delete unused parameters.
2987         * tests/test-freopen-safer.c (main): Likewise.
2988         * tests/test-xalloc-die.c (main): Mark unused parameters.
2989         * tests/test-fseeko.c (main): Likewise.
2990         * tests/test-ftello.c (main): Likewise.
2991         * tests/test-nanosleep.c (main): Avoid declaration warning.
2992         * tests/test-sleep.c (main): Likewise.
2993         * tests/test-unsetenv.c (main): Silence warning about string
2994         literal.
2995         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2996
2997 2009-12-23  Bruno Haible  <bruno@clisp.org>
2998
2999         * tests/test-localename.c (test_locale_name): New function, extracted
3000         from main. Also test mixed situations.
3001         (test_locale_name_posix, test_locale_name_environ,
3002         test_locale_name_default): New functions.
3003         (main): Invoke them all.
3004         * modules/localename-tests (configure.ac): Test for newlocale.
3005
3006 2009-12-23  Bruno Haible  <bruno@clisp.org>
3007
3008         unistd: Ensure getcwd gets declared before being overridden.
3009         * lib/unistd.in.h: Conditionally include <io.h>.
3010
3011 2009-12-22  Bruno Haible  <bruno@clisp.org>
3012
3013         wchar: Diagnose broken combination of glibc and gcc versions and flags.
3014         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
3015         (gl_WCHAR_H): Invoke it.
3016         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
3017         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
3018         Reported by Karl Berry <karl@freefriends.org>.
3019
3020 2009-12-22  Eric Blake  <ebb9@byu.net>
3021
3022         math, unistd: avoid redundant includes
3023         * lib/math.in.h (isnan): No need to re-include <math.h>.
3024         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
3025
3026         getsubopt: work around cygwin bug
3027         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
3028         avoid conflicting with system getsubopt.
3029         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
3030         bug.
3031
3032         getopt: synchronize from glibc
3033         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
3034         parameter order.  Adjust all callers.
3035         (_getopt_internal_r, main): Adjust quoting in error messages.
3036         Drop considerations for outdated POSIX 1003.2 error message.
3037         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
3038         callers.
3039         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
3040
3041         test-getopt: test stderr behavior
3042         * modules/getopt-posix-tests (Depends-on): Add dup2.
3043         * tests/test-getopt.c (ASSERT): Avoid stderr.
3044         (main): Move stderr to a temporary file.
3045         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
3046         Instead, add parameter to inform caller if output occurred.
3047         (test_getopt): Adjust all existing tests to expect silence, and
3048         add new tests of leading ":".
3049         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
3050         glibc shortcomings with leading "-:" or "+:" in optstring.
3051         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3052         Likewise.
3053         * doc/posix-functions/getopt.texi (getopt): Likewise.
3054
3055         test-getopt: enhance test
3056         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
3057         supports optind=0.
3058         * tests/test-getopt.c (OPTIND_MIN): Move...
3059         * tests/test-getopt.h (OPTIND_MIN): ...here.
3060         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
3061         Require that optind=0 works, since modern BSD supports it in
3062         addition to optreset, and since coreutils expects it.
3063         (test_getopt_long_only): New test.
3064         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
3065         glibc shortcomings with 'W;', and enforcement of optind=0.
3066         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3067         Likewise.
3068
3069 2009-12-21  Bruno Haible  <bruno@clisp.org>
3070
3071         localename: Improvements for MacOS X and Cygwin.
3072         * lib/localename.h (gl_locale_name_environ): New declaration.
3073         * lib/localename.c (gl_locale_name_environ): New function, extracted from
3074         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
3075         (gl_locale_name_posix): Invoke it.
3076         (gl_locale_name_default): Add comments. Use Windows native API also on
3077         Cygwin.
3078
3079 2009-12-21  Bruno Haible  <bruno@clisp.org>
3080
3081         Update list of Win32 locale ids.
3082         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
3083         (LANG_SAMI): Renamed from LANG_SAAMI.
3084         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
3085         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
3086         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
3087         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
3088         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
3089         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
3090         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
3091         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
3092         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
3093         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
3094         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
3095         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
3096         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
3097         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
3098         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
3099         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
3100         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
3101         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
3102         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
3103         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
3104         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
3105         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
3106         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
3107         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
3108         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
3109         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
3110         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
3111         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
3112         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
3113         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
3114         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
3115         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
3116         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
3117         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
3118         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
3119         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
3120         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
3121         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
3122         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
3123         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
3124         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
3125         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
3126         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
3127         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
3128         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
3129         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
3130         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
3131         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
3132         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
3133         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
3134         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
3135         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
3136         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
3137         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
3138         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
3139         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
3140         Add more languages and countries for Sami, Sorbian. Add more countries
3141         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
3142         for Pashto. Change country for Syriac, Tswana.
3143
3144 2009-12-21  Eric Blake  <ebb9@byu.net>
3145
3146         test-utimens: avoid spurious failure
3147         * tests/test-chown.h (nap): Factor...
3148         * tests/nap.h: ...into new file.
3149         * tests/test-lchown.h (nap): Avoid duplication.
3150         * tests/test-utimens-common.h (nap): Use shared implementation,
3151         necessary on file systems with 1-second resolution.
3152         * modules/chown-tests (Files): Include new file.
3153         * modules/fdutimensat-tests (Files): Likewise.
3154         * modules/futimens-tests (Files): Likewise.
3155         * modules/lchown-tests (Files): Likewise.
3156         * modules/openat-tests (Files): Likewise.
3157         * modules/utimens-tests (Files): Likewise.
3158         * modules/utimensat-tests (Files): Likewise.
3159
3160 2009-12-19  Eric Blake  <ebb9@byu.net>
3161
3162         futimens, utimensat: work around Linux bug
3163         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
3164         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3165         * lib/utimensat.c (rpl_utimensat): Work around it.
3166         * lib/futimens.c (rpl_futimens): Adjust comment.
3167
3168         utimens: work around Linux ctime bug
3169         * lib/utimens.c (detect_ctime_bug): New helper function.
3170         (update_timespec): Differentiate between workaround needed for
3171         this bug vs. what is needed for systems that lack utimensat.
3172         (fdutimens, lutimens): Work around bug.
3173
3174         utimens: check for ctime update
3175         * tests/test-utimens-common.h (check_ctime): Define.
3176         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
3177         * tests/test-futimens.h (test_futimens): Likewise.
3178         * tests/test-lutimens.h (test_lutimens): Likewise.
3179         * doc/posix-functions/futimens.texi (futimens): Document the bug.
3180         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3181
3182 2009-12-19  Bruno Haible  <bruno@clisp.org>
3183
3184         dprintf-posix: Check against memory leak fixed on 2009-12-15.
3185         * tests/test-dprintf-posix2.sh: New file.
3186         * tests/test-dprintf-posix2.c: New file.
3187         * modules/dprintf-posix-tests (Files): Add them.
3188         (configure.ac): Check for getrlimit and setrlimit.
3189         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
3190
3191 2009-12-19  Bruno Haible  <bruno@clisp.org>
3192
3193         fprintf-posix: Check against memory leak fixed on 2009-12-15.
3194         * tests/test-fprintf-posix3.sh: New file.
3195         * tests/test-fprintf-posix3.c: New file.
3196         * modules/fprintf-posix-tests (Files): Add them.
3197         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
3198
3199 2009-12-19  Eric Blake  <ebb9@byu.net>
3200
3201         dirfd: fix prototype
3202         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
3203         * lib/dirfd.c (dirfd): Likewise.
3204
3205         canonicalize: reduce memory usage
3206         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
3207         allocation to size.
3208         Reported by Solar Designer <solar@openwall.com>.
3209
3210 2009-12-19  Bruno Haible  <bruno@clisp.org>
3211
3212         New module attribute 'Applicability'.
3213         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
3214         * gnulib-tool: New option --extract-applicability.
3215         (func_usage): Document it.
3216         (sed_extract_prog): Recognize it.
3217         (func_get_applicability): New function.
3218         (func_import): Generalize handling of 'link-warning' module.
3219         * modules/link-warning (Applicability): New section.
3220         * modules/arg-nonnull (Applicability): New section.
3221         Repoted by Simon Josefsson <simon@josefsson.org>.
3222
3223 2009-12-19  Bruno Haible  <bruno@clisp.org>
3224
3225         fflush: tweak
3226         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
3227         * lib/fseeko.c (rpl_fseeko): Likewise.
3228
3229 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
3230
3231         * lib/gl_list.h: Fix typo in comment.
3232
3233 2009-12-16  Eric Blake  <ebb9@byu.net>
3234
3235         fcntl: use to simplify other modules
3236         * modules/cloexec (Depends-on): Add fcntl.
3237         * modules/fchdir (Depends-on): Likewise.
3238         * modules/fd-safer-flag (Depends-on): Likewise.
3239         * modules/unistd-safer (Depends-on): Likewise.
3240         * modules/dup3 (configure.ac): Set module indicator.
3241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
3242         missing.
3243         * lib/fchdir.c (_gl_register_dup): Fix comment.
3244         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
3245         * lib/dup-safer.c (dup_safer): Likewise.
3246         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
3247         * lib/dup3.c (dup3): Likewise.
3248         * tests/test-fchdir.c (main): Enhance test.
3249         Fixes a dup_cloexec bug reported by Ondřej Vašík.
3250
3251         fcntl: port portions of fcntl to mingw
3252         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
3253         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
3254         replacement for mingw.
3255         * modules/fcntl (Description): Update.
3256         (Depends-on): Add dup2.
3257         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
3258         * modules/fcntl-h (Makefile.am): Substitute it.
3259         * lib/fcntl.in.h (fcntl): Update declaration.
3260         (F_DUPFD, F_GETFD): New macros, when needed.
3261         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
3262         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
3263         * tests/test-fcntl.c (check_flags, main): Enhance test for items
3264         we now guarantee.
3265
3266         fcntl: work around cygwin bug in F_DUPFD
3267         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
3268         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
3269         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
3270         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
3271         * doc/posix-functions/fcntl.texi (fcntl): Document it.
3272
3273         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
3274         * modules/fcntl (Files): List new files.
3275         (configure.ac): Run a test.
3276         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
3277         * lib/fcntl.c (rpl_fcntl): Likewise.
3278         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
3279         (gl_FCNTL_H): Always replace fcntl.h.
3280         * modules/fcntl-h (Makefile.am): Substitute witnesses.
3281         * lib/fcntl.in.h (fcntl): Declare replacement.
3282         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
3283         needed, plus a witness.
3284         * doc/posix-functions/fcntl.texi (fcntl): Document this.
3285         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
3286         * tests/test-fcntl.c: New file.
3287         * modules/fcntl-tests: Likewise.
3288
3289         binary-io: avoid potential compilation warning
3290         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
3291         directives.
3292
3293         fflush: avoid compilation error on NetBSD
3294         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
3295         between off_t and fpos_t, since the latter is sometimes a struct.
3296         * lib/fseeko.c (rpl_fseeko): Likewise.
3297         Reported by Alexander Nasonov <alnsn@yandex.ru>.
3298
3299 2009-12-15  Eric Blake  <ebb9@byu.net>
3300
3301         fcntl-h, stdio, sys_ioctl: fix declarations
3302         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
3303         function must not take arguments.
3304         * lib/sys_ioctl.in.h (ioctl): Likewise.
3305         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
3306         (open): Add a link warning.
3307
3308 2009-12-15  Jim Meyering  <meyering@redhat.com>
3309
3310         areadlink, areadlink-with-size: relax license to LGPLv2+
3311         * modules/areadlink (License): Relax to LGPLv2+.
3312         * modules/areadlink-with-size (License): Likewise.
3313
3314 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
3315             Bruno Haible  <bruno@clisp.org>
3316
3317         *printf: Fix memory leak.
3318         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
3319         * lib/vfprintf.c (vfprintf): Likewise.
3320         * lib/dprintf.c (dprintf): Likewise.
3321         * lib/vdprintf.c (vdprintf): Likewise.
3322
3323 2009-12-14  Eric Blake  <ebb9@byu.net>
3324
3325         accept4: adjust module dependencies
3326         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
3327
3328         utimens: one more try at avoiding compiler warning
3329         * lib/utimens.c (lutimens): Lower scope of result.
3330
3331 2009-12-13  Bruno Haible  <bruno@clisp.org>
3332
3333         Move the malloc checking from module 'list' to new module 'xlist'.
3334         * modules/xlist: New file.
3335         * lib/gl_xlist.h: New file.
3336         * lib/gl_xlist.c: New file.
3337         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
3338         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
3339         gl_list_add_last, gl_list_add_before, gl_list_add_after,
3340         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
3341         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
3342         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
3343         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
3344         gl_sortedlist_nx_add): New declarations.
3345         (struct gl_list_implementation): Rename and change methods accordingly.
3346         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
3347         (gl_list_nx_create): Renamed from gl_list_create.
3348         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3349         (gl_list_nx_set_at): Renamed from gl_list_set_at.
3350         (gl_list_nx_add_first): Renamed from gl_list_add_first.
3351         (gl_list_nx_add_last): Renamed from gl_list_add_last.
3352         (gl_list_nx_add_before): Renamed from gl_list_add_before.
3353         (gl_list_nx_add_after): Renamed from gl_list_add_after.
3354         (gl_list_nx_add_at): Renamed from gl_list_add_at.
3355         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3356         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
3357         gl_list_create_empty.
3358         (gl_list_nx_create): Renamed from gl_list_create.
3359         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3360         (gl_list_nx_set_at): Renamed from gl_list_set_at.
3361         (gl_list_nx_add_first): Renamed from gl_list_add_first.
3362         (gl_list_nx_add_last): Renamed from gl_list_add_last.
3363         (gl_list_nx_add_before): Renamed from gl_list_add_before.
3364         (gl_list_nx_add_after): Renamed from gl_list_add_after.
3365         (gl_list_nx_add_at): Renamed from gl_list_add_at.
3366         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3367         * lib/gl_array_list.c: Don't include xalloc.h.
3368         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
3369         NULL upon out-of-memory.
3370         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
3371         out-of-memory.
3372         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
3373         Change return type to 'int'.
3374         (gl_array_nx_set_at): Renamed from gl_array_set_at.
3375         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3376         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
3377         upon out-of-memory.
3378         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
3379         upon out-of-memory.
3380         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
3381         upon out-of-memory.
3382         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
3383         upon out-of-memory.
3384         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
3385         out-of-memory.
3386         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
3387         Update.
3388         (gl_array_list_implementation): Update.
3389         * lib/gl_carray_list.c: Don't include xalloc.h.
3390         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
3391         Return NULL upon out-of-memory.
3392         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
3393         out-of-memory.
3394         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
3395         Change return type to 'int'.
3396         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
3397         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3398         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
3399         upon out-of-memory.
3400         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
3401         upon out-of-memory.
3402         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
3403         out-of-memory.
3404         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
3405         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
3406         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
3407         Update.
3408         (gl_carray_list_implementation): Update.
3409         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
3410         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
3411         gl_linked_create_empty. Return NULL upon out-of-memory.
3412         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
3413         out-of-memory.
3414         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
3415         Change return type to 'int'. Return -1 upon out-of-memory.
3416         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
3417         out-of-memory.
3418         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
3419         upon out-of-memory.
3420         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
3421         upon out-of-memory.
3422         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
3423         NULL upon out-of-memory.
3424         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
3425         upon out-of-memory.
3426         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
3427         out-of-memory.
3428         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
3429         Update.
3430         * lib/gl_linked_list.c: Don't include xalloc.h.
3431         (gl_linked_list_implementation): Update.
3432         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
3433         (add_to_bucket): Change return type to 'int'.
3434         (gl_linkedhash_list_implementation): Update.
3435         * lib/gl_anytree_list1.h (free_subtree): New function.
3436         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
3437         gl_tree_create_empty. Return NULL upon out-of-memory.
3438         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
3439         Change return type to 'int'. Return -1 upon out-of-memory.
3440         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
3441         out-of-memory.
3442         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
3443         (gl_tree_remove_node): New function, moved here from
3444         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
3445         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
3446         Update.
3447         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
3448         malloc, not xmalloc. Return NULL upon out-of-memory.
3449         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3450         out-of-memory.
3451         (gl_tree_remove_node_from_tree): New function, extracted from
3452         gl_tree_remove_node.
3453         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3454         upon out-of-memory.
3455         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3456         out-of-memory.
3457         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3458         upon out-of-memory.
3459         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3460         upon out-of-memory.
3461         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3462         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
3463         not xmalloc. Return NULL upon out-of-memory.
3464         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3465         out-of-memory.
3466         (gl_tree_remove_node_from_tree): New function, extracted from
3467         gl_tree_remove_node.
3468         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3469         upon out-of-memory.
3470         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3471         out-of-memory.
3472         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3473         upon out-of-memory.
3474         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3475         upon out-of-memory.
3476         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3477         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
3478         gl_anytree_list1.h before gl_anyavltree_list2.h.
3479         (gl_avltree_list_implementation): Update.
3480         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
3481         gl_anytree_list1.h before gl_anyavltree_list2.h.
3482         (gl_rbtree_list_implementation): Update.
3483         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
3484         Change return type to 'int'. Return -1 upon out-of-memory. Use
3485         __builtin_expect.
3486         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
3487         (gl_avltreehash_list_implementation): Update.
3488         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
3489         (gl_rbtreehash_list_implementation): Update.
3490         * modules/array-list (Depends-on): Remove xalloc.
3491         * modules/carray-list (Depends-on): Likewise.
3492         * modules/linked-list (Depends-on): Likewise.
3493         * modules/linkedhash-list (Depends-on): Likewise.
3494         * modules/avltree-list (Depends-on): Likewise.
3495         * modules/rbtree-list (Depends-on): Likewise.
3496         * modules/avltreehash-list (Depends-on): Likewise.
3497         * modules/rbtreehash-list (Depends-on): Likewise.
3498
3499         * modules/xsublist: New file.
3500         * lib/gl_xsublist.h: New file.
3501         * lib/gl_xsublist.c: New file.
3502         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
3503         (gl_sublist_nx_create): New declaration.
3504         * lib/gl_sublist.c: Don't include xalloc.h.
3505         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
3506         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
3507         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
3508         Change return type to 'int'. Return -1 upon out-of-memory.
3509         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
3510         upon out-of-memory.
3511         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
3512         NULL upon out-of-memory.
3513         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
3514         upon out-of-memory.
3515         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
3516         NULL upon out-of-memory.
3517         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
3518         NULL upon out-of-memory.
3519         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
3520         upon out-of-memory.
3521         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
3522         (gl_sublist_list_implementation): Update.
3523         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
3524         upon out-of-memory.
3525         * modules/sublist (Depends-on): Remove xalloc.
3526
3527         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
3528         * tests/test-carray_list.c: Likewise.
3529         * tests/test-linked_list.c: Likewise.
3530         * tests/test-linkedhash_list.c: Likewise.
3531         * tests/test-avltree_list.c: Likewise.
3532         * tests/test-rbtree_list.c: Likewise.
3533         * tests/test-avltreehash_list.c: Likewise.
3534         * tests/test-rbtreehash_list.c: Likewise.
3535         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
3536         * modules/carray-list-tests (Makefile.am): Likewise.
3537         * modules/linked-list-tests (Makefile.am): Likewise.
3538         * modules/linkedhash-list-tests (Makefile.am): Likewise.
3539         * modules/avltree-list-tests (Makefile.am): Likewise.
3540         * modules/rbtree-list-tests (Makefile.am): Likewise.
3541         * modules/avltreehash-list-tests (Makefile.am): Likewise.
3542         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3543
3544         * NEWS: Mention the changes.
3545
3546         * lib/clean-temp.c: Include gl_xlist.h.
3547         * modules/clean-temp (Depends-on): Add xlist.
3548
3549         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
3550         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
3551
3552         * tests/test-array_oset.c: Include gl_xlist.h.
3553         * modules/array-oset-tests (Depends-on): Add xlist.
3554
3555         Reported by José E. Marchesi <jemarch@gnu.org>.
3556
3557 2009-12-13  Bruno Haible  <bruno@clisp.org>
3558
3559         Move the malloc checking from module 'oset' to new module 'xoset'.
3560         * modules/xoset: New file.
3561         * lib/gl_xoset.h: New file.
3562         * lib/gl_xoset.c: New file.
3563         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
3564         declarations.
3565         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
3566         (struct gl_oset_implementation): Rename and change methods accordingly.
3567         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
3568         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3569         'int'. Mark as __warn_unused_result__.
3570         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
3571         gl_oset_create_empty.
3572         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3573         'int'.
3574         * lib/gl_array_oset.c: Don't include xalloc.h.
3575         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
3576         malloc, not xmalloc.
3577         (grow): Change return type to 'int'. Don't call xalloc_die.
3578         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
3579         to 'int'.
3580         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
3581         'int'.
3582         (gl_array_oset_implementation): Update.
3583         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
3584         gl_tree_create_empty.
3585         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
3586         'int'.
3587         * lib/gl_avltree_oset.c: Don't include xalloc.h.
3588         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3589         xmalloc.
3590         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3591         not xmalloc.
3592         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3593         xmalloc.
3594         (gl_avltree_oset_implementation): Update.
3595         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
3596         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3597         xmalloc.
3598         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3599         not xmalloc.
3600         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3601         xmalloc.
3602         (gl_rbtree_oset_implementation): Update.
3603         * modules/array-oset (Depends-on): Remove xalloc.
3604         * modules/avltree-oset (Depends-on): Likewise.
3605         * modules/rbtree-oset (Depends-on): Likewise.
3606         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
3607         * tests/test-avltree_oset.c: Likewise.
3608         * tests/test-rbtree_oset.c: Likewise.
3609         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
3610         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
3611         * modules/rbtree-oset-tests (Makefile.am): Likewise.
3612         * NEWS: Mention the change.
3613
3614 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
3615
3616         maint.mk: allow a project to override release-prep commands
3617         * top/maint.mk (alpha, beta, stable): Move release-preparatory
3618         commands into a new rule.
3619         (release-prep): New rule.
3620         (release-prep-hook): New overridable variable.
3621
3622 2009-12-13  Bruno Haible  <bruno@clisp.org>
3623
3624         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
3625
3626 2009-12-13  Jim Meyering  <meyering@redhat.com>
3627
3628         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
3629         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
3630
3631 2009-12-12  Bruno Haible  <bruno@clisp.org>
3632
3633         duplocale: Tweak.
3634         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
3635
3636 2009-12-12  Karl Berry  <karl@gnu.org>
3637
3638         * config/srclist.txt (strtoll.c): tab changes, no more sync.
3639
3640 2009-12-12  Bruno Haible  <bruno@clisp.org>
3641
3642         * m4/po.m4: Undo incorrect untabification.
3643
3644 2009-12-12  Bruno Haible  <bruno@clisp.org>
3645
3646         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
3647         * modules/c-strtod (Depends-on): Add locale.
3648         * modules/c-strtold (Depends-on): Likewise.
3649
3650 2009-12-12  Bruno Haible  <bruno@clisp.org>
3651
3652         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
3653
3654 2009-12-11  Eric Blake  <ebb9@byu.net>
3655
3656         setenv: relax requirement in light of POSIX ruling
3657         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
3658         not NULL.
3659         * tests/test-setenv.c (main): Relax test.
3660         * tests/test-unsetenv.c (main): Likewise.
3661         * doc/posix-functions/setenv.texi (setenv): Document this.
3662         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
3663
3664 2009-12-11  Bruno Haible  <bruno@clisp.org>
3665
3666         New module 'fd-safer-flag'.
3667         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
3668         * lib/dup-safer.c (dup_safer_flag): Remove function.
3669         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
3670         * lib/fd-safer.c (fd_safer_flag): Remove function.
3671         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
3672         * modules/cloexec (configure.ac): Drop indicator macro.
3673         * modules/fd-safer-flag: New file.
3674         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
3675         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
3676         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
3677
3678 2009-12-11  Bruno Haible  <bruno@clisp.org>
3679
3680         Tests for module 'nl_langinfo'.
3681         * modules/nl_langinfo-tests: New file.
3682         * tests/test-nl_langinfo.sh: New file.
3683         * tests/test-nl_langinfo.c: New file.
3684
3685         New module 'nl_langinfo'.
3686         * lib/nl_langinfo.c: New file.
3687         * m4/nl_langinfo.m4: New file.
3688         * modules/nl_langinfo: New file.
3689         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
3690
3691 2009-12-11  Bruno Haible  <bruno@clisp.org>
3692
3693         Tests for module 'langinfo'.
3694         * modules/langinfo-tests: New file.
3695         * tests/test-langinfo.c: New file.
3696
3697         New module 'langinfo'.
3698         * lib/langinfo.in.h: New file.
3699         * m4/langinfo_h.m4: New file.
3700         * modules/langinfo: New file.
3701         * doc/posix-headers/langinfo.texi: Mention the new module.
3702
3703 2009-12-11  Bruno Haible  <bruno@clisp.org>
3704
3705         * lib/config.charset: Untabify.
3706
3707 2009-12-11  Bruno Haible  <bruno@clisp.org>
3708
3709         * modules/unistd-safer (configure.ac): Drop indicator macro.
3710
3711 2009-12-11  Bruno Haible  <bruno@clisp.org>
3712
3713         Move pipe2-safer code to its own file.
3714         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
3715         * lib/pipe-safer.c (pipe2_safer): Remove function.
3716         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
3717         (Makefile.am): Add it to lib_SOURCES.
3718
3719 2009-12-10  Bruno Haible  <bruno@clisp.org>
3720
3721         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
3722
3723 2009-12-10  Bruno Haible  <bruno@clisp.org>
3724
3725         Declare which arguments expect non-NULL values, for GCC and clang.
3726         * build-aux/arg-nonnull.h: New file.
3727         * modules/arg-nonnull: New file.
3728         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
3729         (inet_ntop, inet_pton): Use it.
3730         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
3731         (closedir, dirfd, opendir, scandir, alphasort): Use it.
3732         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
3733         (open, openat): Use it.
3734         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
3735         (fnmatch): Use it.
3736         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
3737         (getopt, getopt_long, getopt_long_only): Use it.
3738         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
3739         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
3740         Use it.
3741         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
3742         (iconv_open): Use it.
3743         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
3744         (strtoimax, strtoumax): Use it.
3745         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
3746         (duplocale): Use it.
3747         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
3748         (frexp, frexpl): Use it.
3749         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
3750         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
3751         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
3752         (tsearch, tfind, tdelete, twalk): Use it.
3753         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
3754         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
3755         sigpending): Use it.
3756         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
3757         (posix_spawn, posix_spawnp, posix_spawnattr_init,
3758         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
3759         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
3760         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
3761         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
3762         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
3763         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
3764         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
3765         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
3766         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
3767         Use it.
3768         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
3769         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
3770         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
3771         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
3772         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
3773         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
3774         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
3775         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
3776         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
3777         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
3778         strtoull, unsetenv): Use it.
3779         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
3780         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
3781         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
3782         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3783         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3784         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
3785         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
3786         (strcasecmp, strncasecmp): Use it.
3787         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
3788         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
3789         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
3790         rpl_setsockopt): Use it.
3791         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
3792         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
3793         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
3794         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
3795         (gettimeofday): Use it.
3796         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
3797         (times): Use it.
3798         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
3799         (uname): Use it.
3800         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
3801         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
3802         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
3803         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
3804         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
3805         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
3806         unlinkat, write): Use it.
3807         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
3808         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
3809         * lib/argv-iter.h: Include arg-nonnull.h.
3810         (_ATTRIBUTE_NONNULL_): Remove macro.
3811         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
3812         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
3813         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
3814         optimization.
3815         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
3816         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
3817         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
3818         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
3819         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
3820         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
3821         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
3822         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
3823         * modules/arpa_inet (Depends-on): Add arg-nonnull.
3824         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
3825         * modules/dirent (Depends-on): Add arg-nonnull.
3826         (Makefile.am): Insert arg-nonnull.h into dirent.h.
3827         * modules/fcntl-h (Depends-on): Add arg-nonnull.
3828         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
3829         * modules/fnmatch (Depends-on): Add arg-nonnull.
3830         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
3831         * modules/getopt-posix (Depends-on): Add arg-nonnull.
3832         (Makefile.am): Insert arg-nonnull.h into getopt.h.
3833         * modules/glob (Depends-on): Add arg-nonnull.
3834         (Makefile.am): Insert arg-nonnull.h into glob.h.
3835         * modules/iconv_open (Depends-on): Add arg-nonnull.
3836         (Makefile.am): Insert arg-nonnull.h into iconv.h.
3837         * modules/inttypes (Depends-on): Add arg-nonnull.
3838         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
3839         * modules/locale (Depends-on): Add arg-nonnull.
3840         (Makefile.am): Insert arg-nonnull.h into locale.h.
3841         * modules/math (Depends-on): Add arg-nonnull.
3842         (Makefile.am): Insert arg-nonnull.h into math.h.
3843         * modules/netdb (Depends-on): Add arg-nonnull.
3844         (Makefile.am): Insert arg-nonnull.h into netdb.h.
3845         * modules/search (Depends-on): Add arg-nonnull.
3846         (Makefile.am): Insert arg-nonnull.h into search.h.
3847         * modules/signal (Depends-on): Add arg-nonnull.
3848         (Makefile.am): Insert arg-nonnull.h into signal.h.
3849         * modules/spawn (Depends-on): Add arg-nonnull.
3850         (Makefile.am): Insert arg-nonnull.h into spawn.h.
3851         * modules/stdio (Depends-on): Add arg-nonnull.
3852         (Makefile.am): Insert arg-nonnull.h into stdio.h.
3853         * modules/stdlib (Depends-on): Add arg-nonnull.
3854         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
3855         * modules/string (Depends-on): Add arg-nonnull.
3856         (Makefile.am): Insert arg-nonnull.h into string.h.
3857         * modules/strings (Depends-on): Add arg-nonnull.
3858         (Makefile.am): Insert arg-nonnull.h into strings.h.
3859         * modules/sys_socket (Depends-on): Add arg-nonnull.
3860         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
3861         * modules/sys_stat (Depends-on): Add arg-nonnull.
3862         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
3863         * modules/sys_time (Depends-on): Add arg-nonnull.
3864         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
3865         * modules/sys_times (Depends-on): Add arg-nonnull.
3866         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
3867         * modules/sys_utsname (Depends-on): Add arg-nonnull.
3868         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
3869         * modules/time (Depends-on): Add arg-nonnull.
3870         (Makefile.am): Insert arg-nonnull.h into time.h.
3871         * modules/unistd (Depends-on): Add arg-nonnull.
3872         (Makefile.am): Insert arg-nonnull.h into unistd.h.
3873         * modules/wchar (Depends-on): Add arg-nonnull.
3874         (Makefile.am): Insert arg-nonnull.h into wchar.h.
3875         * modules/argv-iter (Depends-on): Add arg-nonnull.
3876         * tests/test-canonicalize.c (null_ptr): New function.
3877         (main): Use it.
3878         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
3879         (main): Use it.
3880         * tests/test-memmem.c (null_ptr): New function.
3881         (main): Use it.
3882         Reported by Jim Meyering.
3883
3884 2009-12-10  Bruno Haible  <bruno@clisp.org>
3885
3886         Use spaces for indentation, not tabs.
3887         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3888         * m4/*.m4: Untabify.
3889         * build-aux/*.h: Untabify.
3890         * tests/**/*.[hc]: Untabify.
3891         * README: New section "Indent with spaces, not TABs", based on
3892         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
3893         * NEWS: Mention the change.
3894
3895 2009-12-10  Bruno Haible  <bruno@clisp.org>
3896
3897         pty test: Fix link error.
3898         * modules/pty-tests (Makefile.am): Add the default LDADD value to
3899         test_pty_LDADD.
3900
3901 2009-12-07  Simon Josefsson  <simon@josefsson.org>
3902
3903         * modules/pty: New file.
3904         * modules/pty-tests: New file.
3905         * m4/pty.m4: New file.
3906         * tests/test-pty.c: New file.
3907         * doc/glibc-headers/pty.texi: Modified.
3908         * doc/glibc-functions/forkpty.texi: Modified.
3909         * doc/glibc-functions/openpty.texi: Modified.
3910
3911 2009-12-10  Bruno Haible  <bruno@clisp.org>
3912
3913         Avoid syntax error in C++ mode.
3914         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
3915
3916 2009-12-10  Bruno Haible  <bruno@clisp.org>
3917
3918         Use sed with option -e.
3919         * gnulib-tool (func_version, func_emit_copyright_notice,
3920         func_emit_initmacro_end, func_import, func_create_testdir): Pass
3921         option -e to sed.
3922         * modules/link-warning (Makefile.am): Likewise.
3923
3924 2009-12-10  Jim Meyering  <meyering@redhat.com>
3925
3926         mgetgroups: do not write bytes beyond end of malloc'd buffer
3927         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
3928         username, we call getgroups with a one-element-shorter buffer,
3929         but still told it the length was original, max_n_groups.
3930
3931 2009-12-09  Eric Blake  <ebb9@byu.net>
3932
3933         cloexec: relax license
3934         * modules/cloexec (Maintainer): Add myself.
3935         (License): Use LGPL, not GPL.
3936
3937         link-warning: optimize generation
3938         * modules/link-warning (Makefile.am): Reduce process usage.
3939
3940 2009-12-09  Bruno Haible  <bruno@clisp.org>
3941
3942         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
3943         workaround was added on 2009-11-17.
3944
3945 2009-12-09  Jim Meyering  <meyering@redhat.com>
3946             Bruno Haible  <bruno@clisp.org>
3947
3948         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
3949         * modules/link-warning (Makefile.am): Make the comment-removing sed
3950         command more robust in the face of bootstrap-prepended comment lines.
3951
3952 2009-12-09  Bruno Haible  <bruno@clisp.org>
3953
3954         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
3955         most one group.
3956
3957 2009-12-09  Simon Josefsson <simon@josefsson.org>
3958             Bruno Haible  <bruno@clisp.org>
3959
3960         * build-aux/link-warning.h: Add copyright notice.
3961         * modules/link-warning (Makefile.am): Generate link-warning.h from
3962         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
3963         * NEWS: Mention change in link-warning module.
3964         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
3965         * modules/dirent (Makefile.am): Add dependency to dirent.h.
3966         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
3967         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
3968         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
3969         * modules/math (Makefile.am): Add dependency to math.h.
3970         * modules/search (Makefile.am): Add dependency to search.h.
3971         * modules/signal (Makefile.am): Add dependency to signal.h.
3972         * modules/spawn (Makefile.am): Add dependency to spawn.h.
3973         * modules/stdio (Makefile.am): Add dependency to stdio.h.
3974         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
3975         * modules/string (Makefile.am): Add dependency to string.h.
3976         * modules/strings (Makefile.am): Add dependency to strings.h.
3977         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
3978         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
3979         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
3980         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
3981         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
3982         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
3983         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
3984         * modules/unistd (Makefile.am): Add dependency to unistd.h.
3985         * modules/wchar (Makefile.am): Add dependency to wchar.h.
3986
3987 2009-12-09  Bruno Haible  <bruno@clisp.org>
3988
3989         fchdir: Optimize away rpl_fstat when possible.
3990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
3991         REPLACE_OPEN_DIRECTORY.
3992         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
3993
3994 2009-12-09  Bruno Haible  <bruno@clisp.org>
3995
3996         * lib/fchdir.c: Update comment.
3997
3998 2009-12-09  Bruno Haible  <bruno@clisp.org>
3999
4000         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
4001
4002 2009-12-08  Eric Blake  <ebb9@byu.net>
4003
4004         fchdir: avoid memory leak on re-registration.
4005         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
4006
4007 2009-12-08  Jim Meyering  <meyering@redhat.com>
4008
4009         init.sh: avoid Solaris 10 /bin/sh portability problem
4010         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
4011         sourced script:
4012           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
4013           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
4014           bar
4015         tests/init.sh relied on that, accepting a --set-path=DIR argument,
4016         and two tests used that idiom.
4017         * tests/init.sh: Update suggested usage comments.
4018         (path_prepend_): New function, to be used in place
4019         of the --src-path=DIR option.
4020         (setup_): Move PATH-prepending code into path_prepend_.
4021         * tests/test-pread.sh: Adapt to new usage.
4022         * tests/test-xalloc-die.sh: Likewise.
4023
4024 2009-12-08  Simon Josefsson  <simon@josefsson.org>
4025
4026         * doc/gnulib.texi (Glibc pty.h): Add.
4027         * doc/glibc-functions/forkpty.texi: Add.
4028         * doc/glibc-functions/openpty.texi: Add.
4029         Suggested by Bruno Haible.
4030
4031 2009-12-08  Eric Blake  <ebb9@byu.net>
4032
4033         fchdir: fix logic bugs
4034         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
4035         * tests/test-fchdir.c (main): Enhance test.
4036         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
4037         is in use.
4038
4039         dup2: fix logic bugs
4040         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
4041         REPLACE_DUP2 to decide when rpl_dup2 is needed.
4042         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
4043         exists.
4044         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
4045
4046 2009-12-07  Eric Blake  <ebb9@byu.net>
4047
4048         unlink: fix m4 detection
4049         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
4050
4051         unistd-safer: add unit test
4052         * modules/unistd-safer-tests: New file.
4053         * tests/test-dup-safer.c: Likewise.
4054         * tests/test-cloexec.c (setmode): Avoid compiler warning.
4055         * tests/test-dup2.c (setmode): Likewise.
4056         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
4057
4058         cloexec: preserve text vs. binary across dup_cloexec
4059         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
4060         mode.
4061         * modules/dup2-tests (Depends-on): Add binary-io.
4062         * modules/cloexec-tests (Depends-on): Likewise.
4063         * tests/test-dup2.c (setmode, is_mode): New helpers.
4064         (main): Add tests that translation mode is preserved.
4065         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
4066         Reported by Bruno Haible.
4067
4068         mgetgroups: reduce duplicate listings
4069         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
4070         resulting array.
4071         * tests/test-chown.h (test_chown): Simplify client.
4072         * tests/test-lchown.h (test_lchown): Likewise.
4073
4074 2009-12-06  Bruno Haible  <bruno@clisp.org>
4075
4076         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
4077         value.
4078
4079 2009-12-06  Bruno Haible  <bruno@clisp.org>
4080
4081         * lib/progname.c: Include stdio.h, stdlib.h.
4082         (set_program_name): Reject a NULL argument.
4083
4084 2009-12-05  Eric Blake  <ebb9@byu.net>
4085
4086         pipe2-safer: new module
4087         * modules/pipe2-safer: New file.
4088         * lib/unistd-safer.h (pipe2_safer): New prototype.
4089         * lib/unistd--.h (pipe2): New wrapper.
4090         * lib/pipe-safer.c (pipe2_safer): New function.
4091         * modules/pipe (Depends-on): Add pipe2-safer.
4092         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
4093
4094         stdlib-safer: preserve cloexec flag for mkostemp[s]
4095         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
4096         fd_safer_flag.
4097
4098         unistd-safer: allow preservation of cloexec status via flag
4099         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
4100         prototypes.
4101         * lib/dup-safer.c (dup_safer_flag): New function.
4102         * lib/fd-safer.c (fd_safer_flag): Likewise.
4103         * modules/cloexec (configure.ac): Set witness.
4104
4105         test-dup2: enhance test
4106         * modules/dup2-tests (Depends-on): Add cloexec.
4107         * tests/test-dup2.c (main): Enhance test.
4108
4109         cloexec: add dup_cloexec
4110         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
4111         header and comments.
4112         * lib/cloexec.c (set_cloexec_flag): Add comments.
4113         (dup_cloexec): New function, with mingw implementation borrowed
4114         from...
4115         * lib/w32spawn.h (dup_noinherit): ...here.
4116         * modules/execute (Depends-on): Add cloexec.
4117         * modules/pipe (Depends-on): Likewise.
4118         * modules/cloexec (Depends-on): Add dup2.
4119         * modules/cloexec-tests (Files): New file.
4120         * tests/test-cloexec.c: Likewise.
4121
4122         test-xalloc-die: fix test for mingw
4123         * modules/xalloc-die-tests (Files): Add tests/init.sh.
4124         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
4125         directory and .exe suffix off argv[0] output.
4126
4127         test-fseeko: fix test for mingw
4128         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
4129         than undefining fseek, so test will pass on mingw.
4130
4131 2009-12-05  Bruno Haible  <bruno@clisp.org>
4132
4133         * lib/progname.h (set_program_name): Clarify specification.
4134         * lib/progname.c (set_program_name): Likewise.
4135         Reported by Jim Meyering.
4136
4137 2009-12-05  Jim Meyering  <meyering@redhat.com>
4138
4139         maint.mk: backslash-escape parens in default regexp
4140         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
4141         backslash-escape the literal parentheses.
4142
4143         maint.mk: news-date-check: use grep -E
4144         * top/maint.mk (today): Define a Make variable, not a...
4145         (news-date-check): ...shell variable.
4146         (news-date-regexp): Use the Make variable.
4147         Use grep's -E option.  Change the failing diagnostic to mention
4148         the variable, $(news-date-regexp).
4149
4150 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
4151
4152         maintainer-makefile: allow customization of NEWS entry format
4153         * top/maint.mk (news-date-regexp): New overridable variable.
4154         (news-date-check): Use it.
4155
4156 2009-12-04  Eric Blake  <ebb9@byu.net>
4157
4158         mgetgroups: add xgetgroups, and avoid ENOSYS failures
4159         * lib/mgetgroups.h (xgetgroups): New prototype.
4160         * lib/mgetgroups.c (xgetgroups): New wrapper.
4161         (mgetgroups): Handle ENOSYS.
4162         * modules/mgetgroups (Depends-on): Add realloc.
4163         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
4164
4165         mgetgroups: avoid argument promotion issues with -1
4166         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
4167         for invalid gid_t.
4168         * tests/test-chown.h (getegid, test_chown): Likewise.
4169         * tests/test-lchown.h (getegid, test_lchown): Likewise.
4170
4171 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
4172
4173         exclude: Fix header file problems.
4174         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
4175
4176 2009-12-01  Jim Meyering  <meyering@redhat.com>
4177
4178         fts: fts_open: do not let an empty string cause immediate failure
4179         This is required in support of GNU rm, for which the command
4180         "rm A '' B" must process and remove both A and B, in spite of
4181         the empty string argument.
4182         * lib/fts.c (fts_open): Do not let the presence of an empty string
4183         cause fts_open to fail immediately.  Most fts-using tools must be
4184         able to process all arguments, in order, and can be expected to
4185         diagnose such arguments themselves.
4186
4187 2009-11-30  Eric Blake  <ebb9@byu.net>
4188
4189         utimens: fix compilation error
4190         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
4191         Declare variable at right scope.
4192
4193 2009-11-29  Jim Meyering  <meyering@redhat.com>
4194
4195         bootstrap: handle perl-5.11's changed --version output
4196         * build-aux/bootstrap (get_version): Handle perl separately,
4197         since perl-5.11's --version output is different.
4198
4199 2009-11-28  Jim Meyering  <meyering@redhat.com>
4200
4201         userspec: depend on the inttostr module, too
4202         * modules/userspec (Depends-on): Add inttostr.
4203
4204         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
4205         * lib/userspec.c (parse_with_separator): Do not accept a user ID
4206         number of MAXUID when it evaluates to (uid_t) -1.
4207         Likewise for group ID.  Reported by Matt McCutchen in
4208         <http://savannah.gnu.org/bugs/?28113>
4209
4210         userspec: reformat to use spaces, not TABs
4211         * lib/userspec.c: Expand TABs to spaces.
4212         Add Emacs' "indent-tabs-mode: nil" hint.
4213
4214 2009-11-27  Eric Blake  <ebb9@byu.net>
4215
4216         getopt-gnu: flush out another BSD bug
4217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
4218         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
4219         flush out BSD bug.
4220         * tests/test-getopt.h (test_getopt): End lists with NULL.
4221         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4222         (test_getopt_long_posix): Enhance test.
4223         * modules/getopt-posix-tests (Depends-on): Add stdbool.
4224         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
4225         getopt-gnu.
4226         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4227         Likewise.
4228
4229 2009-11-27  Simon Josefsson  <simon@josefsson.org>
4230
4231         * modules/idpriv-droptemp-tests (Notice): Fix text.
4232
4233 2009-11-27  Jim Meyering  <meyering@redhat.com>
4234
4235         test-xalloc-die: avoid spurious failure due to libtool argv difference
4236         In a libtool-enabled project, this test would fail due to a difference
4237         in the emitted program name, e.g.,
4238         -test-xalloc-die: memory exhausted
4239         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
4240         Use program to avoid that.
4241         * modules/xalloc-die-tests (Depends-on): Add progname.
4242         * tests/test-xalloc-die.c: Include progname.h".
4243         (program_name): Remove decl.
4244         (main): Call set_program_name.
4245         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
4246
4247 2009-11-26  Richard Jones  <rjones@redhat.com>
4248
4249         w32sock: leave win32 error in place.
4250         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
4251
4252 2009-11-26  Eric Blake  <ebb9@byu.net>
4253
4254         init.sh: suggest to use skip_ and fail_ functions in comments
4255         * tests/init.sh: Add a sentence.
4256
4257 2009-11-25  Bruno Haible  <bruno@clisp.org>
4258
4259         init.sh: add documentation in comments
4260         * tests/init.sh: Add some developer and user documentation.
4261
4262 2009-11-26  Jim Meyering  <meyering@redhat.com>
4263
4264         init.sh: accommodate even those who specify bogus srcdir manually
4265         * tests/init.sh: Normally, srcdir is guaranteed by automake and
4266         configure-time tests to be sanitized, so that there is no need to
4267         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
4268         (with no double quotes) suffices.  However, since tests may be
4269         invoked manually, and since you may explicitly set srcdir to the
4270         name of a directory containing spaces, do quote its uses here.
4271         * tests/test-pread.sh: Likewise.
4272         Suggested by Bruno Haible.
4273
4274         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
4275         * tests/test-pread.sh: Write no data into the pipe, because
4276         test-pread actually reads none.  This avoids a diagnostic,
4277         "bash: echo: write error: Broken pipe", that arises in the unusual
4278         event something is ignoring SIGPIPE, and might be interpreted
4279         as some sort of failure.  Reported by Bruno Haible.
4280
4281 2009-11-25  Jim Meyering  <meyering@redhat.com>
4282
4283         test-pread: cover failure with ESPIPE and EINVAL
4284         * tests/test-pread.c (main): Test for failure, too.
4285         * tests/test-pread.sh: Invoke with stdin on a pipe.
4286         Suggested by Eric Blake.
4287
4288         pread: improvement and fix
4289         * modules/pread (Depends-on): Depend on lseek, for portability to
4290         e.g., mingw.  Suggested by Eric Blake.
4291         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
4292
4293         unistd.in.h: correct declaration of pread
4294         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
4295         Reported by Richard W.M. Jones.
4296
4297         test-pread.sh: distribute the test script
4298         * modules/pread-tests (Files): Include test-pread.sh.
4299
4300         test-pread.sh: clean up
4301         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
4302         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
4303         That is unnecessary, since it's always ".".
4304         Suggestion from Eric Blake.
4305
4306         test-pread.sh: make executable
4307         * tests/test-pread.sh: Set executable bit.
4308         Reported by Eric Blake.
4309
4310         correct typo in test-pread.sh
4311         * tests/test-pread.sh: Add #! line.
4312
4313         test pread
4314         * tests/test-pread.c: New file.
4315         * tests/test-pread.sh: Likewise.
4316         * modules/pread-tests: Likewise.
4317
4318         pread: new module
4319         * modules/pread: New file.
4320         * lib/unistd.in.h (pread): Define/declare.
4321         * lib/pread.c (pread): New file.
4322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
4323         * modules/unistd (Makefile.am): Substitute witnesses.
4324         * doc/posix-functions/pread.texi (pread): Update.
4325         * MODULES.html.sh: Add pread.
4326
4327 2009-11-25  Jim Meyering  <meyering@redhat.com>
4328
4329         tests/init.sh: new file to be used via most *.sh tests
4330         * tests/init.sh: New file.
4331
4332 2009-11-25  Eric Blake  <ebb9@byu.net>
4333
4334         utimens: work around older Linux failure with symlinks
4335         * lib/utimens.c (lutimensat_works_really): New variable.
4336         (fdutimens, lutimens): Use it to manage kernels that support
4337         nanosecond times on files, but not on symlinks.
4338         Reported by Ondřej Vašík.
4339
4340         utimes: fix configure grammar
4341         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
4342
4343 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
4344
4345         regex: Fix fastmap for multibyte character ranges.
4346         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
4347         characters when a multibyte character range is included.
4348
4349 2009-11-22  Andy Wingo  <wingo@pobox.com>
4350
4351         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
4352         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
4353
4354 2009-11-24  Bruno Haible  <bruno@clisp.org>
4355
4356         doc: Most *_l functions exist in MacOS X 10.5.
4357         * doc/posix-functions/duplocale.texi: Update platforms list.
4358         * doc/posix-functions/freelocale.texi: Likewise.
4359         * doc/posix-functions/newlocale.texi: Likewise.
4360         * doc/posix-functions/uselocale.texi: Likewise.
4361         * doc/posix-functions/isalnum_l.texi: Likewise.
4362         * doc/posix-functions/isalpha_l.texi: Likewise.
4363         * doc/posix-functions/isblank_l.texi: Likewise.
4364         * doc/posix-functions/iscntrl_l.texi: Likewise.
4365         * doc/posix-functions/isdigit_l.texi: Likewise.
4366         * doc/posix-functions/isgraph_l.texi: Likewise.
4367         * doc/posix-functions/islower_l.texi: Likewise.
4368         * doc/posix-functions/isprint_l.texi: Likewise.
4369         * doc/posix-functions/ispunct_l.texi: Likewise.
4370         * doc/posix-functions/isspace_l.texi: Likewise.
4371         * doc/posix-functions/isupper_l.texi: Likewise.
4372         * doc/posix-functions/iswalnum_l.texi: Likewise.
4373         * doc/posix-functions/iswalpha_l.texi: Likewise.
4374         * doc/posix-functions/iswblank_l.texi: Likewise.
4375         * doc/posix-functions/iswcntrl_l.texi: Likewise.
4376         * doc/posix-functions/iswctype_l.texi: Likewise.
4377         * doc/posix-functions/iswdigit_l.texi: Likewise.
4378         * doc/posix-functions/iswgraph_l.texi: Likewise.
4379         * doc/posix-functions/iswlower_l.texi: Likewise.
4380         * doc/posix-functions/iswprint_l.texi: Likewise.
4381         * doc/posix-functions/iswpunct_l.texi: Likewise.
4382         * doc/posix-functions/iswspace_l.texi: Likewise.
4383         * doc/posix-functions/iswupper_l.texi: Likewise.
4384         * doc/posix-functions/iswxdigit_l.texi: Likewise.
4385         * doc/posix-functions/isxdigit_l.texi: Likewise.
4386         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
4387         * doc/posix-functions/strcasecmp_l.texi: Likewise.
4388         * doc/posix-functions/strcoll_l.texi: Likewise.
4389         * doc/posix-functions/strfmon_l.texi: Likewise.
4390         * doc/posix-functions/strftime_l.texi: Likewise.
4391         * doc/posix-functions/strncasecmp_l.texi: Likewise.
4392         * doc/posix-functions/strxfrm_l.texi: Likewise.
4393         * doc/posix-functions/tolower_l.texi: Likewise.
4394         * doc/posix-functions/toupper_l.texi: Likewise.
4395         * doc/posix-functions/towctrans_l.texi: Likewise.
4396         * doc/posix-functions/towlower_l.texi: Likewise.
4397         * doc/posix-functions/towupper_l.texi: Likewise.
4398         * doc/posix-functions/wcscoll_l.texi: Likewise.
4399         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
4400         * doc/posix-functions/wctrans_l.texi: Likewise.
4401         * doc/posix-functions/wctype_l.texi: Likewise.
4402         * doc/glibc-functions/strptime_l.texi: Likewise.
4403         * doc/glibc-functions/strtod_l.texi: Likewise.
4404         * doc/glibc-functions/strtof_l.texi: Likewise.
4405         * doc/glibc-functions/strtol_l.texi: Likewise.
4406         * doc/glibc-functions/strtold_l.texi: Likewise.
4407         * doc/glibc-functions/strtoll_l.texi: Likewise.
4408         * doc/glibc-functions/strtoul_l.texi: Likewise.
4409         * doc/glibc-functions/strtoull_l.texi: Likewise.
4410         * doc/glibc-functions/wcsftime_l.texi: Likewise.
4411         * doc/glibc-functions/wcstod_l.texi: Likewise.
4412         * doc/glibc-functions/wcstof_l.texi: Likewise.
4413         * doc/glibc-functions/wcstol_l.texi: Likewise.
4414         * doc/glibc-functions/wcstold_l.texi: Likewise.
4415         * doc/glibc-functions/wcstoll_l.texi: Likewise.
4416         * doc/glibc-functions/wcstoul_l.texi: Likewise.
4417         * doc/glibc-functions/wcstoull_l.texi: Likewise.
4418
4419 2009-11-24  Bruno Haible  <bruno@clisp.org>
4420
4421         duplocale: Fix logic bug.
4422         * lib/duplocale.c: Don't include <langinfo.h>.
4423         (_NL_LOCALE_NAME): Remove macro.
4424         (rpl_duplocale): Use setlocale instead of nl_langinfo.
4425         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
4426
4427 2009-11-23  Jim Meyering  <meyering@redhat.com>
4428
4429         test-update-copyright: don't hard-code /usr/bin/perl
4430         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
4431         perl to print the current year.  Gilles Espinasse reported that
4432         the replaced use of perl was hard-coded as /usr/bin/perl.
4433
4434 2009-11-23  Bruno Haible  <bruno@clisp.org>
4435
4436         duplocale: Add support for glibc 2.3.x.
4437         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
4438
4439 2009-11-22  Bruno Haible  <bruno@clisp.org>
4440
4441         vasnprintf: Tiny optimization.
4442         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
4443         MacOS X.
4444
4445 2009-11-22  Bruno Haible  <bruno@clisp.org>
4446
4447         Tests for module 'duplocale'.
4448         * modules/duplocale-tests: New file.
4449         * tests/test-duplocale.c: New file.
4450
4451         New module 'duplocale'.
4452         * m4/duplocale.m4: New file.
4453         * lib/locale.in.h (duplocale): New declaration.
4454         * lib/duplocale.c: New file.
4455         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
4456         gl_LOCALE_H_DEFAULTS): New macros.
4457         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
4458         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
4459         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
4460         REPLACE_DUPLOCALE.
4461         * modules/duplocale: New file.
4462         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
4463
4464 2009-11-22  Bruno Haible  <bruno@clisp.org>
4465
4466         * modules/locale-tests (configure.ac): Test for newlocale function.
4467         * tests/test-locale.c: When the system has extended locale functions,
4468         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
4469
4470         locale: Make locale_t available when possible.
4471         * lib/locale.in.h: Include <xlocale.h> when it exists.
4472         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
4473         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
4474         * modules/locale (Depends-on): Add extensions.
4475         (Makefile.am): Also substitute HAVE_XLOCALE_H.
4476         * doc/posix-headers/locale.texi: Document the problem with locale_t.
4477
4478 2009-11-22  Bruno Haible  <bruno@clisp.org>
4479
4480         Add comments.
4481         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
4482         invocation.
4483         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
4484         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4485         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
4486
4487 2009-11-22  Bruno Haible  <bruno@clisp.org>
4488
4489         error: account for the possibility of freopen (stdout).
4490         * lib/error.c: Include <unistd.h>.
4491         (flush_stdout): New function, extracted from error and error_at_line.
4492         Determine stdout's fd dynamically.
4493         (error, error_at_line): Invoke flush_stdout.
4494         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
4495         * modules/error (Depends-on): Add unistd.
4496
4497 2009-11-22  Bruno Haible  <bruno@clisp.org>
4498
4499         diffseq: Add comment.
4500         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
4501
4502 2009-11-22  Jim Meyering  <meyering@redhat.com>
4503
4504         c-stack: avoid defining an unused static function
4505         * lib/c-stack.c (find_stack_direction): Do not define this function
4506         when it will not be used.
4507
4508         diffseq: avoid spurious gcc warnings
4509         * lib/diffseq.h (IF_LINT2): Define.
4510         (compareseq): Use it to initialize two members of "part".
4511         This avoids two used-uninitialized warnings.
4512
4513 2009-11-21  Jim Meyering  <meyering@redhat.com>
4514
4515         c-stack: avoid "ignoring return value of `write'" warning
4516         * lib/c-stack.c: Include "ignore-value.h".
4517         (die): Explicitly ignore each write return value.
4518         * modules/c-stack (Depends-on): Add ignore-value.
4519
4520 2009-11-21  Bruno Haible  <bruno@clisp.org>
4521
4522         diffseq: reduce scope of variable 'best'.
4523         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
4524         variable, earlier used for two different purposes.
4525
4526 2009-11-21  Jim Meyering  <meyering@redhat.com>
4527
4528         diffseq: remove useless assignment to "best"
4529         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
4530         assignment.  At that point "best" is already guaranteed to be zero.
4531
4532 2009-11-20  Eric Blake  <ebb9@byu.net>
4533
4534         build: mention ftp redirector in release announcements
4535         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
4536         values that used to come from cfg.mk; mention FTP redirect URL.
4537         * build-aux/announce-gen: Mention the mirror list.
4538         Suggested by Karl Berry.
4539
4540         nanosleep: improve port to mingw
4541         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
4542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
4543         LIB_NANOSLEEP, but only when needed.
4544         * modules/select (Link): Document LIBSOCKET.
4545         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
4546         enough.
4547
4548         nanosleep: work around cygwin bug
4549         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
4550         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
4551         bug.
4552         (getnow): Delete, not needed.
4553         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
4554         LIB_CLOCK_GETTIME.
4555         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
4556         clock-time, gettime.
4557         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
4558         bug.
4559         * modules/nanosleep-tests: New test.
4560         * tests/test-nanosleep.c: New file.
4561
4562         sleep: work around cygwin bug
4563         * lib/sleep.c (rpl_sleep): Work around the bug.
4564         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
4565         (gl_PREREQ_SLEEP): Delete unused macro.
4566         * modules/sleep (Depends-on): Add verify.
4567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4568         * modules/unistd (Makefile.am): Substitute witness.
4569         * lib/unistd.in.h (sleep): Update prototype.
4570         * doc/posix-functions/sleep.texi (sleep): Document the bug.
4571         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
4572         * modules/sleep-tests (Depends-on): Check for alarm.
4573
4574 2009-11-20  Jim Meyering  <meyering@redhat.com>
4575
4576         maint.mk: improve sc_prohibit_magic_number_exit
4577         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
4578         so it does not match uses like System.exit(1).
4579         Add comments showing how to correct all offenders.
4580
4581 2009-11-19  Eric Blake  <ebb9@byu.net>
4582
4583         xalloc-die-tests: add missing library
4584         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
4585
4586         test-xvasprintf: silence compiler warnings
4587         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
4588         empty string from gcc.
4589
4590 2009-11-19  Jim Meyering  <meyering@redhat.com>
4591
4592         xfreopen: new module, from coreutils
4593         * modules/xfreopen: New module.
4594         * lib/xfreopen.c: New file.
4595         * lib/xfreopen.h: New file.
4596         * MODULES.html.sh (File stream based Input/Output"): Add it.
4597
4598 2009-11-19  Eric Blake  <ebb9@byu.net>
4599
4600         manywarnings: depend on warnings
4601         * modules/manywarnings (Depends-on): Add warnings.
4602
4603         build: avoid compiler warnings
4604         * lib/select.c (rpl_select): Delete unused variable.
4605         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
4606
4607 2009-11-18  Eric Blake  <ebb9@byu.net>
4608
4609         tests: avoid false negative with --with-packager
4610         * tests/test-version-etc.sh: Discard packager information.
4611         * tests/test-argp-version-etc-1.sh: Likewise.
4612         Reported by Mike Frysinger.
4613
4614         utimens: fix regression on Solaris
4615         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
4616         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
4617         can only change fd timestamps via futimesat.  Instead, use an
4618         additional witness macro to avoid BSD bug.
4619         Reported by Jim Meyering.
4620
4621 2009-11-17  Eric Blake  <ebb9@byu.net>
4622
4623         usleep: use it to simplify tests
4624         * modules/stat-time-tests (Depends-on): Add usleep.
4625         (configure.ac): Drop usleep check.
4626         * modules/chown-tests (Depends-on, configure.ac): Likewise.
4627         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
4628         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
4629         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
4630         * modules/openat-tests (Depends-on, configure.ac): Likewise.
4631         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
4632         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
4633         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
4634         Likewise.
4635         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
4636         * tests/test-lchown.h (nap): Likewise.
4637         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
4638         * tests/test-stat-time.c (nap): Likewise.
4639         * tests/test-utimens-common.h (nap): Update comments.
4640
4641         usleep: new module
4642         * modules/usleep: New file.
4643         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4644         * lib/usleep.c (usleep): Likewise.
4645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
4646         * modules/unistd (Makefile.am): Substitute witnesses.
4647         * lib/unistd.in.h (usleep): Add declaration.
4648         * doc/pastposix-functions/usleep.texi (usleep): Document this.
4649         * MODULES.html.sh (Date and time): Likewise.
4650         * modules/usleep-tests (Depends-on): New test.
4651         * tests/test-usleep.c: New file.
4652
4653         chown: work around OpenBSD bug
4654         * lib/chown.c (rpl_chown): Work around the bug.
4655         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
4656         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
4657         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
4658         * modules/chown (Depends-on): Add stdbool.
4659         * modules/lchown (Depends-on): Likewise.
4660         * doc/posix-functions/chown.texi (chown): Document the bug.
4661         * doc/posix-functions/lchown.texi (lchown): Likewise.
4662         * tests/test-lchown.h (test_chown): Relax test.
4663
4664         mkstemp: avoid conflict with C++ keyword template
4665         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
4666         * lib/mkostemp.c (mkostemp): Likewise.
4667         * lib/mkostemps.c (mkostemps): Likewise.
4668         * lib/mkstemp.c (mkstemp): Likewise.
4669         * lib/mkstemps.c (mkstemps): Likewise.
4670
4671         xalloc-die-tests: optimize
4672         * tests/test-xalloc-die.sh: Reduce number of processes.
4673
4674 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4675
4676         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
4677         patch from ludo@gnu.org (Ludovic Courtès).
4678
4679 2009-11-17  Jim Meyering  <meyering@redhat.com>
4680
4681         version-etc: use proper license string
4682         * modules/version-etc (License): Use LGPL, not LGPLv3+.
4683         * modules/version-etc-fsf: Likewise.
4684
4685 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4686
4687         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
4688         printed to stdout.  Deal with EOL differences.
4689
4690 2009-11-17  Eric Blake  <ebb9@byu.net>
4691
4692         unsetenv: work around Solaris bug
4693         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
4694         * lib/unsetenv.c (rpl_unsetenv): Work around it.
4695         Reported by Jim Meyering.
4696
4697         vasnprintf: avoid compiler warnings
4698         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
4699         variables.
4700         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
4701
4702 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4703
4704         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
4705         settings since xalloc-die is no longer the self test,
4706         xalloc-die.sh is.
4707
4708 2009-11-17  Jim Meyering  <meyering@redhat.com>
4709
4710         test-xalloc-die.sh: make the code agree with the commit log
4711         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
4712         at the end, just in case you happen to have a test-xalloc-die
4713         program in some other PATH directory.
4714
4715         test-xalloc-die.sh: fix a portability bug
4716         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
4717         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
4718         Otherwise, argv[0] (as often seen in diagnostics) would be too
4719         system-dependent, sometimes with, and sometimes without the leading "./".
4720
4721         version-etc-fsf: relax license to LGPLv3+
4722         * modules/version-etc-fsf (License): Relax license.
4723
4724 2009-11-16  Eric Blake  <ebb9@byu.net>
4725
4726         xalloc-die-tests: avoid printing null pointer
4727         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
4728         shell script.
4729         * tests/test-xalloc-die.c (program_name): Declare.
4730         * tests/test-xalloc-die.sh (tmpfiles): New file.
4731
4732         setenv, unsetenv: work around various bugs
4733         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
4734         (setenv) [HAVE_SETENV]: Work around bugs.
4735         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
4736         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
4737         for bugs.
4738         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
4739         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
4740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
4741         * modules/stdlib (Makefile.am): Update substitutions.
4742         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
4743         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
4744         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4745         * modules/setenv-tests: New test.
4746         * modules/unsetenv-tests: Likewise.
4747         * tests/test-setenv.c: New file.
4748         * tests/test-unsetenv.c: Likewise.
4749
4750 2009-11-16  Jim Meyering  <meyering@redhat.com>
4751
4752         version-etc: relax license to LGPLv3+
4753         * modules/version-etc (License): Relax license.
4754
4755         better AC_REQUIRE expanded-before-required-warning avoidance
4756         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
4757         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
4758         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
4759         which is no longer needed.
4760
4761 2009-11-16  Eric Blake  <ebb9@byu.net>
4762
4763         test-freading: clean up temporary file
4764         * tests/test-freading.c (main): Remove file on success, and use
4765         ASSERT more liberally.
4766         Reported by Jim Meyering.
4767
4768 2009-11-16  Jim Meyering  <meyering@redhat.com>
4769
4770         avoid new AC_REQUIRE expanded-before-required warnings
4771         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
4772         merely using it.
4773         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
4774         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
4775
4776 2009-11-15  Simon Josefsson  <simon@josefsson.org>
4777
4778         * tests/test-xalloc-die.c: New file.
4779         * modules/xalloc-die-tests: New file.
4780         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
4781         XFAIL_TESTS so it can be appended by modules.
4782
4783 2009-11-15  Simon Josefsson  <simon@josefsson.org>
4784
4785         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
4786         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
4787
4788 2009-11-14  Eric Blake  <ebb9@byu.net>
4789
4790         fnmatch: avoid compiler warning
4791         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
4792         to silence compiler warning about mismatch signedness in ?:.
4793         Reported by Robert Millan.
4794
4795         intprops: add double-inclusion guard
4796         * lib/intprops.h: Allow idempotent includes.
4797         Suggested by Bruce Korb.
4798
4799         openat: detect Solaris fchownat bug
4800         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
4801         penalizing glibc chownat when only lchownat is broken.
4802         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
4803         trailing slash bugs.
4804         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
4805         * modules/openat-tests (Files): Include more files.
4806         (Depends-on): Add mgetgroups, sleep, stat-time.
4807         (configure.ac): Add additional checks.
4808         (Makefile.am): Build new test.
4809         * tests/test-fchownat.c: New file.
4810
4811         lchown: detect Solaris and FreeBSD bug
4812         * lib/lchown.c (rpl_lchown): Work around bug.
4813         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
4814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4815         * modules/unistd (Makefile.am): Populate it.
4816         * lib/unistd.in.h (lchown): Update declaration.
4817         * doc/posix-functions/lchown.texi (lchown): Document the bug.
4818         * modules/lchown-tests: New file.
4819         * tests/test-lchown.h (test_lchown): Likewise.
4820         * tests/test-lchown.c (main): Likewise.
4821
4822         chown: detect Solaris and FreeBSD bug
4823         * lib/chown.c (rpl_chown): Work around bug.
4824         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
4825         (gl_PREREQ_CHOWN): Delete.
4826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4827         * modules/unistd (Makefile.am): Populate it.
4828         * lib/unistd.in.h (chown): Update declaration.
4829         * lib/lchown.c (chown): Update client.
4830         * modules/lchown (Depends-on): Add lstat.
4831         * doc/posix-functions/chown.texi (chown): Document the bug.
4832         * doc/posix-functions/getgroups.texi (getgroups): Document
4833         getgroups pitfall.
4834         * modules/chown-tests: New file.
4835         * tests/test-chown.h (test_chown): Likewise.
4836         * tests/test-chown.c (main): Likewise.
4837
4838 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
4839
4840         gnulib-tool: correctly detect absence of m4 directories
4841         * gnulib-tool: Avoid extra newline on data passed to wc -l.
4842
4843 2009-11-14  Jim Meyering  <meyering@redhat.com>
4844
4845         maint.mk: Prohibit inclusion of "xalloc.h" without use.
4846         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4847
4848 2009-11-14  John W. Eaton  <jwe@gnu.org>
4849
4850         strftime.h: wrap funtion declaration in extern "C" block
4851         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
4852
4853 2009-11-13  Eric Blake  <ebb9@byu.net>
4854
4855         getgroups: avoid compiler warning
4856         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
4857
4858         getgroups: work around FreeBSD bug
4859         * lib/getgroups.c (rpl_getgroups): Work around the bug.
4860         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
4861         * doc/posix-functions/getgroups.texi (getgroups): Document it.
4862         * tests/test-getgroups.c (main): Fix buffer overrun.
4863
4864         getgroups: avoid compilation failure
4865         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
4866         * modules/getgroups (Depends-on): Add stdint.
4867
4868 2009-11-13  Jim Meyering  <meyering@redhat.com>
4869
4870         test-getgroups: avoid compilation failure
4871         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
4872
4873 2009-11-13  Eric Blake  <ebb9@byu.net>
4874
4875         mgetgroups: new module, taken from coreutils
4876         * modules/mgetgroups: New file.
4877         * lib/mgetgroups.h: Likewise.
4878         * lib/mgetgroups.c (mgetgroups): Likewise.
4879         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
4880         * MODULES.html.sh (Users and groups): Mention it.
4881
4882         getgroups: don't expose GETGROUPS_T to user
4883         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
4884         an element at a time if GETGROUPS_T is wrong size.
4885         * lib/getugroups.h (getugroups): Change signature.
4886         * lib/unistd.in.h (getgroups): Likewise.
4887         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
4888         signature needs fixing.
4889         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
4890         AC_TYPE_GETGROUPS.
4891         * modules/group-member (Depends-on): Add getgroups.
4892         * lib/group-member.c (group_info, get_group_info): Use gid_t.
4893         (group_member): Rely on getgroups replacement.
4894         * lib/getugroups.c (getugroups): Use gid_t.
4895         * tests/test-getgroups.c (main): Likewise.
4896         * NEWS: Mention the signature change.
4897         * doc/posix-functions/getgroups.texi (getgroups): Mention the
4898         problem with signature.
4899         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
4900         GETGROUPS_T is still useful for setgroups.
4901
4902         getgroups, getugroups: provide stubs for mingw
4903         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
4904         * lib/getugroups.c (getugroups): Likewise.
4905         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
4906         function.  Modernize replacement scheme.
4907         (gl_PREREQ_GETGROUPS): Delete.
4908         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
4909         * modules/getgroups (configure.ac): Declare witness.
4910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4911         * modules/unistd (Depends-on): Substitute witness.
4912         * lib/unistd.in.h (getgroups): Declare replacement.
4913
4914         getgroups: avoid calling exit
4915         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
4916         drop xalloc.
4917         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
4918         dependencies.
4919         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
4920         exiting, in the rare case of malloc failure.
4921
4922         getgroups: fix logic error
4923         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
4924         has more than 20 groups.
4925         * modules/getgroups-tests: New test.
4926         * tests/test-getgroups.c: New file.
4927
4928 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4929
4930         * tests/test-base64.c: Improve.
4931
4932 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4933
4934         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
4935         Blake <ebb9@byu.net>.
4936
4937 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4938
4939         * tests/test-xvasprintf.c: Add %s%s related checks.
4940
4941 2009-11-12  Eric Blake  <ebb9@byu.net>
4942
4943         version-etc: match standards.texi style
4944         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
4945         and use <> only for URLs.
4946
4947 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
4948
4949         fts: do not fail on a submount during traversal
4950         * lib/fts.c (fts_build): Read the stat info again after opening
4951         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
4952         Original report at http://bugzilla.redhat.com/501848.
4953
4954 2009-11-12  Jim Meyering  <meyering@redhat.com>
4955
4956         bootstrap: sync from coreutils
4957         * build-aux/bootstrap (bootstrap_epilogue): New function.
4958         Use git_modules_config in one more place.  This make bootstrap's
4959         --gnulib-srcdir option more useful for testing.
4960
4961         bootstrap: generalize autoheader check
4962         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
4963         AC_CONFIG_HEADERS.
4964
4965 2009-11-11  Eric Blake  <ebb9@byu.net>
4966
4967         mkfifoat: use new modules for Solaris and BSD bugs
4968         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
4969         * lib/mkfifoat.c (mknodat): Split...
4970         * lib/mknodat.c (mknodat): ...into new file.
4971         * modules/mkfifoat (Files): Ship new file.
4972         (Depends-on): Add mkfifo, mknod.
4973         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
4974         (Depends-on): Add symlink.
4975         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
4976         redundant with test_mkfifo.h.
4977         (do_mkfifoat, do_mknodat): New helpers.
4978
4979         mknod: new module
4980         * modules/mknod: New file.
4981         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
4982         * lib/mknod.c (mknod): Likewise.
4983         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4984         defaults.
4985         * modules/sys_stat (Makefile.am): Substitute them.
4986         * lib/sys_stat.in.h (mknod): Declare replacement.
4987         * MODULES.html.sh (Support for systems lacking POSIX:2008):
4988         Document it.
4989         * doc/posix-functions/mknod.texi (mknod): Likewise.
4990         * modules/mknod-tests: New test.
4991         * tests/test-mknod.c: Likewise.
4992
4993         mkfifo: new module
4994         * modules/mkfifo: New file.
4995         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
4996         * lib/mkfifo.c (mkfifo): Likewise.
4997         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4998         defaults.
4999         * modules/sys_stat (Makefile.am): Substitute them.
5000         * lib/sys_stat.in.h (mkfifo): Declare replacement.
5001         * MODULES.html.sh (Support for systems lacking POSIX:2008):
5002         Document it.
5003         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
5004         * modules/mkfifo-tests: New test.
5005         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
5006         from test-mkfifoat.c.
5007         * tests/test-mkfifo.c: New file.
5008
5009         readlink: detect FreeBSD bug
5010         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
5011         slash on symlink.
5012         * doc/posix-functions/readlink.texi (readlink): Document the bug.
5013         * tests/test-readlink.h (test_readlink): Enhance test.
5014
5015         symlink: detect FreeBSD bug
5016         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
5017         slash on symlink.
5018         * doc/posix-functions/symlink.texi (symlink): Document the bug.
5019         * tests/test-symlink.h (test_symlink): Enhance test.
5020
5021 2009-11-10  Eric Blake  <ebb9@byu.net>
5022
5023         link: detect FreeBSD bug
5024         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
5025         symlink.
5026         * doc/posix-functions/link.texi (link): Document the bug.
5027         * tests/test-link.h (test_link): Enhance test.
5028         * tests/test-linkat.c (main): Update caller.
5029
5030         unlink, remove: detect FreeBSD bug
5031         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
5032         slash on symlink.
5033         * doc/posix-functions/unlink.texi (unlink): Document the bug.
5034         * doc/posix-functions/remove.texi (remove): Likewise.
5035         * tests/test-unlink.h (test_unlink): Enhance test.
5036         * tests/test-remove.c (main): Likewise.
5037
5038 2009-11-09  Eric Blake  <ebb9@byu.net>
5039
5040         rename: detect FreeBSD bug
5041         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
5042         slash on symlink.
5043         * modules/renameat-tests (Depends-on): Add filenamecat.
5044         * tests/test-rename.h (test_rename): Allow one more errno.
5045         * tests/test-renameat.c (main): Likewise.
5046         * doc/posix-functions/rename.texi (rename): Document the bug.
5047
5048         open: detect FreeBSD bug
5049         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
5050         symlink.
5051         * doc/posix-functions/open.texi (open): Document the bug.
5052         * doc/posix-functions/utimes.texi (utimes): Likewise.
5053         * tests/test-open.h (test_open): Add parameters, and test symlink
5054         handling.
5055         * tests/test-open.c (main): Adjust caller.
5056         * tests/test-fcntl-safer.c (main): Likewise.
5057         * modules/open-tests (Depends-on): Add stdbool, symlink.
5058         * modules/fcntl-safer-tests (Depends-on): Likewise.
5059         * tests/test-openat.c (main): Add test-open tests.
5060
5061         stat: detect FreeBSD bug
5062         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
5063         symlink.
5064         * doc/posix-functions/stat.texi (stat): Document the bug.
5065         * tests/test-stat.h (test_stat_func): Add argument.
5066         * tests/test-stat.c (main): Adjust caller.
5067         * tests/test-fstatat.c (main): Likewise.
5068         * modules/stat-tests (Depends-on): Add stdbool, symlink.
5069         Reported by Jim Meyering.
5070
5071 2009-11-09  James Youngman  <jay@gnu.org>
5072
5073         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
5074         * lib/strftime.c: Correct placement of #include "ignore-value.h".
5075
5076 2009-11-08  Jim Meyering  <meyering@redhat.com>
5077
5078         utimens: remove invalid futimesat call
5079         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
5080         It used the file descriptor of the target file as the DIR_FD
5081         parameter and NULL as the file name.  That caused failure with
5082         errno == EFAULT on FreeBSD-8.0-rc2
5083
5084 2009-11-07  Eric Blake  <ebb9@byu.net>
5085
5086         fflush, freadseek: use fseeko, not fseek
5087         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
5088         (clear_ungetc_buffer): Avoid potential problems on large files.
5089         * lib/freadseek.c (freadseek): Likewise.
5090         * modules/freadseek (Depends-on): Add fseeko.
5091         * modules/fseek (configure.ac): Set a witness.
5092         * tests/test-fflush.c (main): Use fseeko.
5093         * tests/test-fpurge.c (fseek): Disable link warning.
5094         * tests/test-freadable.c (fseek): Likewise.
5095         * tests/test-freading.c (fseek): Likewise.
5096         * tests/test-fseeko.c (fseek): Likewise.
5097         * tests/test-ftell.c (fseek): Likewise.
5098         * tests/test-ftello.c (fseek): Likewise.
5099         * tests/test-fwritable.c (fseek): Likewise.
5100         * tests/test-fwriting.c (fseek): Likewise.
5101
5102 2009-11-06  Simon Josefsson  <simon@josefsson.org>
5103
5104         * modules/memchr (Depends-on): Drop getpagesize dependency.
5105
5106 2009-11-06  Simon Josefsson  <simon@josefsson.org>
5107
5108         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
5109         Reported by Ludovic Courtès.
5110         * build-aux/pmccabe2html: Improve example usage.
5111         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
5112
5113 2009-11-06  Jim Meyering  <meyering@redhat.com>
5114
5115         do-release-commit-and-tag: New module.
5116         Automate the release-commit and tag process.
5117         * build-aux/do-release-commit-and-tag: New script, from coreutils.
5118         * modules/do-release-commit-and-tag: New file.
5119         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5120
5121 2009-11-06  Simon Josefsson  <simon@josefsson.org>
5122
5123         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
5124         because test-select.c uses inet_pton.
5125
5126 2009-11-06  Simon Josefsson  <simon@josefsson.org>
5127
5128         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
5129         GETADDRINFO_LIB.  Bump serial number.
5130         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
5131         Suggested by Eric Blake <ebb9@byu.net>.
5132
5133 2009-11-05  Eric Blake  <ebb9@byu.net>
5134
5135         strtod: detect darwin bug
5136         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
5137         Reported by Leo Davis.
5138
5139         freopen-safer: new module
5140         * modules/freopen-safer: New module.
5141         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
5142         * lib/freopen-safer.c (freopen_safer): New file.
5143         * lib/stdio-safer.h (freopen_safer): New declaration.
5144         * lib/stdio--.h (freopen): New override.
5145         * MODULES.html.sh (File stream based Input/Output): Mention it.
5146         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
5147         freopen-safer module.
5148         * doc/posix-functions/stderr.texi (stderr): Likewise.
5149         * doc/posix-functions/stdin.texi (stdin): Likewise.
5150         * doc/posix-functions/stdout.texi (stdout): Likewise.
5151         * modules/freopen-safer-tests: New test.
5152         * tests/test-reopen-safer.c: New file.
5153
5154 2009-11-05  Jim Meyering  <meyering@redhat.com>
5155
5156         maint.mk: Prohibit inclusion of "close-stream.h" without use.
5157         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
5158
5159 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5160
5161         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
5162
5163 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5164
5165         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
5166
5167 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5168
5169         Fix link error.
5170         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
5171         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5172
5173 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5174
5175         * tests/test-func.c: Also test value of __func__.
5176
5177 2009-11-05  Simon Josefsson  <simon@josefsson.org>
5178
5179         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
5180         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
5181
5182 2009-11-05  Bruno Haible  <bruno@clisp.org>
5183
5184         Fix link error.
5185         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
5186         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5187         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
5188
5189 2009-11-05  Bruno Haible  <bruno@clisp.org>
5190
5191         Tests for module 'inet_pton'.
5192         * modules/inet_pton-tests: New file.
5193         * tests/test-inet_pton.c: New file.
5194
5195 2009-11-05  Bruno Haible  <bruno@clisp.org>
5196
5197         Tests for module 'inet_ntop'.
5198         * modules/inet_ntop-tests: New file.
5199         * tests/test-inet_ntop.c: New file.
5200
5201 2009-11-04  Eric Blake  <ebb9@byu.net>
5202
5203         stdlib-safer: wrap all mkstemp variants
5204         * modules/mkostemp (configure.ac): Set witness.
5205         * modules/mkostemps (configure.ac): Likewise.
5206         * modules/mkstemps (configure.ac): Likewise.
5207         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
5208         (mkstemps_safer): Wrap more functions.
5209         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
5210         wrapping.
5211         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
5212         (mkstemps_safer): Implement the wrappers.
5213
5214         mkstemps, mkostemps: new modules
5215         * modules/mkostemps: New module.
5216         * modules/mkstemps: Likewise.
5217         * lib/mkostemps.c (mkostemps): New file.
5218         * lib/mkstemps.c (mkstemps): Likewise.
5219         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
5220         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
5221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
5222         * modules/stdlib (Makefile.am): Substitute them.
5223         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
5224         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
5225         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
5226         * doc/gnulib.texi (Glibc stdlib.h): Include them.
5227         * MODULES.html.sh (File system functions): Mention them.
5228
5229         tempname: resync from glibc
5230         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
5231         same values for __GT_FILE as glibc.  Abort even when assertions
5232         are disabled.
5233         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
5234         match its value otherwise.  Allow idempotent inclusion.
5235         * lib/mkdtemp.c (mkdtemp): Adjust caller.
5236         * lib/mkostemp.c (mkostemp): Likewise.
5237         * lib/mkstemp.c (mkstemp): Likewise.
5238         * lib/tmpfile.c (tmpfile): Likewise.
5239         * NEWS: Document this.
5240
5241         utimens: fix use of futimens on older Linux
5242         * lib/utimens.c (fdutimens): Use updated, rather than original,
5243         timespec to avoid bug in older Linux kernel.
5244         Reported by Simon Josefsson.
5245
5246 2009-11-04  Bruno Haible  <bruno@clisp.org>
5247
5248         Make num_processors more flexible and consistent.
5249         * lib/nproc.h (enum nproc_query): New type.
5250         (num_processors): Add a 'query' argument.
5251         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
5252         (num_processors): Add a 'query' argument. Test the value of the
5253         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
5254         mingw, count the number of CPUs available for the current process.
5255         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
5256         Check for sched_getaffinity and sched_getaffinity_np.
5257         * modules/nproc (Depends-on): Add c-ctype, extensions.
5258         * NEWS: Mention the change.
5259
5260 2009-11-03  Bruno Haible  <bruno@clisp.org>
5261
5262         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
5263
5264 2009-11-03  Jim Meyering  <meyering@redhat.com>
5265
5266         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
5267         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
5268         if it is defined.
5269
5270 2009-11-02  Eric Blake  <ebb9@byu.net>
5271
5272         mktime, timegm: share common declaration
5273         * lib/mktime-internal.h: New file.
5274         * lib/mktime.c: Use it rather than open-coding a declaration.
5275         * lib/timegm.c: Likewise.
5276         * modules/mktime (Files): Ship it.
5277         * modules/timegm (Files): Likewise.
5278         Suggested by Bruno Haible.
5279
5280         test-update-copyright: update test to match script changes
5281         * tests/test-update-copyright.sh: Avoid hard-coding perl
5282         location.  Don't update *.bak created by earlier runs.
5283
5284 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
5285             Simon Josefsson  <simon@josefsson.org>
5286             Bruno Haible  <bruno@clisp.org>
5287
5288         Fix link error on Solaris 8.
5289         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
5290         also in libnsl. Define also INET_PTON_LIB.
5291         * modules/inet_pton (Link): New section.
5292
5293 2009-11-02  Simon Josefsson  <simon@josefsson.org>
5294             Bruno Haible  <bruno@clisp.org>
5295
5296         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
5297         * modules/inet_ntop (Link): New section.
5298         Reported by Boyan Kasarov <bkasarov@gmail.com>.
5299
5300 2009-11-02  Eric Blake  <ebb9@byu.net>
5301
5302         maint: avoid compiler warnings in m4 macros
5303         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
5304         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
5305
5306 2009-11-02  Simon Josefsson  <simon@josefsson.org>
5307
5308         * m4/pmccabe2html.m4: Remove file.
5309         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
5310         function.  Change maintainer.
5311         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
5312         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
5313         Courtès).
5314
5315 2009-10-31  Eric Blake  <ebb9@byu.net>
5316
5317         fseeko: fix m4 regression
5318         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
5319         regression from 2009-10-27.
5320         Reported by Ralf Wildenhues.
5321
5322 2009-10-31  Jim Meyering  <meyering@redhat.com>
5323
5324         inttostr: aesthetics and improved (compile-time) safety
5325         Define inttype_is_signed rather than inttype_is_unsigned,
5326         since the sole use is via "#if inttype_is_signed".
5327         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
5328         inttype_is_unsigned.
5329         * lib/offtostr.c (inttype_is_signed): Likewise.
5330         * lib/uinttostr.c (inttype_is_signed): Likewise.
5331         * lib/umaxtostr.c (inttype_is_signed): Likewise.
5332         * lib/inttostr.c (inttostr): Use verify to cross-check the
5333         inttype_is_signed value and the signedness of the actual type.
5334         * modules/inttostr (Depends-on): Add verify.
5335
5336 2009-10-30  Eric Blake  <ebb9@byu.net>
5337
5338         build: avoid compiler warnings
5339         * lib/fchmodat.c (lchmod): Mark unused variables.
5340         * lib/getopt.c (_getopt_initialize): Likewise.
5341         * lib/mktime.c (__mktime_internal): Provide prototype.
5342         * lib/inttostr.c (inttostr): Avoid compiler warning even with
5343         older gcc that do not understand #pragma GCC diagnostic.
5344         * lib/uinttostr.c (inttype_is_unsigned): Define.
5345         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
5346
5347 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5348
5349         stat: fix compilation on AIX
5350         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
5351         only see struct stat64.
5352
5353 2009-10-30  Eric Blake  <ebb9@byu.net>
5354
5355         exclude: make more robust
5356         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
5357         rather than masking a coding bug.
5358         Suggested by Bruno Haible.
5359
5360 2009-10-30  Jim Meyering  <meyering@redhat.com>
5361
5362         perl scripts: remove #!/usr/bin/perl in favor of more portable...
5363         Rather than putting #!/usr/bin/perl on the first line,
5364         start with a variant of what's recommended by "man perlrun" that
5365         invokes the first "perl" program from your shell's search path.
5366         * build-aux/gitlog-to-changelog: Replace #!... as above.
5367         Add a "Local Variables" perl mode setting.
5368         Prompted by a patch from Ludovic Courtès.
5369         Improved by Eric Blake.
5370         * build-aux/useless-if-before-free: Likewise.
5371         * build-aux/announce-gen: Likewise.
5372         * build-aux/update-copyright: Likewise.
5373
5374 2009-10-29  Eric Blake  <ebb9@byu.net>
5375
5376         filenamecat-lgpl: adjust clients
5377         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
5378         filenamecat.
5379         * modules/renameat (Depends-on): Likewise.
5380
5381         filenamecat: split into filenamecat-lgpl
5382         * modules/filenamecat-lgpl: New module.
5383         * modules/filenamecat (Files): Move library-safe files into
5384         filenamecat-lgpl.
5385         (Depends-on): Add filenamecat-lgpl.
5386         (configure.ac): Declare witness.
5387         * lib/filenamecat.h (file_name_concat): Only declare when using
5388         GPL module.
5389         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
5390         Move...
5391         * lib/filenamecat-lgpl.c: ...into new file.
5392         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
5393         (gl_FILE_NAME_CONCAT): Use it.
5394         * MODULES.html.sh (File system functions): Mention new module.
5395
5396         argp: avoid memory leak
5397         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
5398         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
5399         base_name, since the latter malloc()s and can call exit().
5400         Leak introduced 2006-07-03.
5401
5402         dirname-lgpl: adjust clients that don't need full dirname
5403         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
5404         * modules/filenamecat (Depends-on): Likewise.
5405         * modules/linkat (Depends-on): Likewise.
5406         * modules/mkancesdirs (Depends-on): Likewise.
5407         * modules/mkdir (Depends-on): Likewise.
5408         * modules/openat (Depends-on): Likewise.
5409         * modules/savewd (Depends-on): Likewise.
5410         * modules/rename (Depends-on): Likewise.
5411         (License): Relax license.
5412         * modules/mkdir-tests (Depends-on): Drop progname.
5413         (Makefile.am): Delete unneeded LDADD.
5414         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
5415
5416         dirname: split into dirname-lgpl
5417         * modules/dirname-lgpl: New module.
5418         * modules/dirname (Files): Move library-safe files into
5419         dirname-lgpl.
5420         (Depends-on): Add dirname-lgpl.
5421         (configure.ac): Declare witness.
5422         * modules/double-slash-root (License): Relax license.
5423         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
5424         module.
5425         * lib/dirname.c (dir_len, mdir_name): Move...
5426         * lib/dirname-lgpl.c: ...into new file.
5427         * lib/basename.c (last_component, base_len): Move...
5428         * lib/basename-lgpl.c: ...into new file.
5429         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
5430         (gl_DIRNAME): Use it.
5431         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
5432         Mention new module.
5433         * modules/dirname-tests (Depends-on): Add progname.
5434         * tests/test-dirname.c (program_name): Delete.
5435
5436         mkdir: make safe for libraries
5437         * modules/mkdir (Depends-on): Drop xalloc.
5438         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
5439         exit.
5440
5441         tests: avoid some compiler warnings
5442         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
5443         literals.
5444         * tests/test-memchr.c (main): Avoid type mismatch.
5445         * tests/test-arpa_inet.c (main): Avoid unused parameters.
5446         * tests/test-base64.c (main): Likewise.
5447         * tests/test-getdelim.c (main): Likewise.
5448         * tests/test-gethostname.c (main): Likewise.
5449         * tests/test-getline.c (main): Likewise.
5450         * tests/test-netinet_in.c (main): Likewise.
5451         * tests/test-select.c (open_server_socket, main): Likewise.
5452         * tests/test-select-stdin.c (main): Likewise.
5453         * tests/test-sockets.c (main): Likewise.
5454         * tests/test-strsignal.c (main): Likewise.
5455         * tests/test-sys_select.c (main): Likewise.
5456         * tests/test-sys_socket.c (main): Likewise.
5457         * tests/test-u64.c (main): Likewise.
5458         * tests/test-xfprintf-posix.c (main): Likewise.
5459         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
5460
5461         sockets: avoid compiler warning
5462         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
5463
5464         maint: detect usage(1) and other suspicious exits
5465         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
5466
5467 2009-10-29  Jim Meyering  <meyering@redhat.com>
5468
5469         timespec: long-to-int truncation could make timespec_cmp malfunction
5470         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
5471         a multiple of 2^32 nanoseconds as no difference.
5472
5473 2009-10-28  Jim Meyering  <meyering@redhat.com>
5474
5475         fprintftime: wrap macro code argument in "do {...} while(0)"
5476         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
5477         cpy macro must be a statement that can be followed by a semicolon.
5478         Now that the else clause contains a comment and is hence longer
5479         than one line, I require curly braces.  That in turn requires
5480         that we wrap this code block in the standard do...while(0).
5481
5482         fprintftime: remove stray semicolon from previous change
5483         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
5484
5485         fprintftime: avoid a warning about ignored fwrite return value
5486         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
5487         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
5488         that is unsafe.
5489         * modules/fprintftime (Depends-on): Add ignore-value.
5490
5491         exclude: avoid an unwarranted warning
5492         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
5493
5494 2009-10-27  Eric Blake  <ebb9@byu.net>
5495
5496         fseek: avoid compilation failure when fflush is replaced
5497         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
5498         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
5499         module is in use.
5500         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
5501         module is not in use; since REPLACE_FSEEK worked otherwise.
5502         (GNULIB_FTELLO): Likewise for ftell.
5503         Reported by Ian Beckwith and others.
5504
5505 2009-10-27  Bruno Haible  <bruno@clisp.org>
5506
5507         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
5508         Reported by Jim Meyering.
5509
5510 2009-10-27  Jim Meyering  <jim@meyering.net>
5511             Bruno Haible  <bruno@clisp.org>
5512
5513         Avoid warning despite dropping the return value of fwrite.
5514         * lib/unicodeio.c: Include ignore-value.h.
5515         (fwrite_success_callback): Explicitly ignore fwrite's return value.
5516         * modules/unicodeio (Depends-on): Add ignore-value.
5517
5518 2009-10-26  Eric Blake  <ebb9@byu.net>
5519
5520         areadlinkat: fix fallback path
5521         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
5522         pointer and zero.
5523
5524 2009-10-22  Pádraig Brady  <P@draigBrady.com>
5525
5526         Use a better IO block size for modern systems
5527         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
5528         * lib/md2.c: Likewise.
5529         * lib/md4.c: Likewise.
5530         * lib/md5.c: Likewise.
5531         * lib/sha1.c: Likewise.
5532         * lib/sha256.c: Likewise.
5533         * lib/sha512.c: Likewise.
5534
5535 2009-10-22  Eric Blake  <ebb9@byu.net>
5536
5537         tests: avoid several compiler warnings
5538         * tests/test-getcwd.c (main): Avoid buffer underflow.
5539         * tests/test-getdate.c (main): String literals are not safe with
5540         putenv, so use setenv.  Declare unused argument.
5541         * modules/getdate-tests (Depends-on): Add setenv.
5542         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
5543         problems with string literals in char *.
5544         * tests/test-hash.c (main): Avoid shadowing declaration.
5545         (insert_new): Treat string literals as char const *.
5546         * tests/test-getopt.h (test_getopt): Likewise.
5547         (getopt_loop): Alter types to minimize casting elsewhere.
5548         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
5549         (test_getopt_long_posix): Likewise.
5550         (do_getopt_long): Add wrapper to minimize casting.
5551         * tests/test-atexit.c (clear_temp_file): Use void.
5552         * tests/test-areadlink-with-size.c (main): Declare unused
5553         arguments.
5554         * tests/test-areadlink.c (main): Likewise.
5555         * tests/test-areadlinkat-with-size.c (main): Likewise.
5556         * tests/test-areadlinkat.c (main): Likewise.
5557         * tests/test-canonicalize-lgpl.c (main): Likewise.
5558         * tests/test-canonicalize.c (main): Likewise.
5559         * tests/test-dirent-safer.c (main): Likewise.
5560         * tests/test-dirname.c (main): Likewise.
5561         * tests/test-dup2.c (main): Likewise.
5562         * tests/test-fchdir.c (main): Likewise.
5563         * tests/test-fcntl-h.c (main): Likewise.
5564         * tests/test-fcntl-safer.c (main): Likewise.
5565         * tests/test-fdopendir.c (main): Likewise.
5566         * tests/test-fdutimensat.c (main): Likewise.
5567         * tests/test-fflush.c (main): Likewise.
5568         * tests/test-filenamecat.c (main): Likewise.
5569         * tests/test-filevercmp.c (main): Likewise.
5570         * tests/test-fopen-safer.c (main): Likewise.
5571         * tests/test-fopen.c (main): Likewise.
5572         * tests/test-fpending.c (main): Likewise.
5573         * tests/test-fpurge.c (main): Likewise.
5574         * tests/test-freading.c (main): Likewise.
5575         * tests/test-fstatat.c (main): Likewise.
5576         * tests/test-fsync.c (main): Likewise.
5577         * tests/test-futimens.c (main): Likewise.
5578         * tests/test-getndelim2.c (main): Likewise.
5579         * tests/test-gettimeofday.c (main): Likewise.
5580         * tests/test-getopt.c (main): Likewise.
5581         * tests/test-i-ring.c (main): Likewise.
5582         * tests/test-inttypes.c (main): Likewise.
5583         * tests/test-link.c (main): Likewise.
5584         * tests/test-lstat.c (main): Likewise.
5585         * tests/test-math.c (main): Likewise.
5586         * tests/test-md5.c (main): Likewise.
5587         * tests/test-memchr2.c (main): Likewise.
5588         * tests/test-memrchr.c (main): Likewise.
5589         * tests/test-mkdir.c (main): Likewise.
5590         * tests/test-mkdirat.c (main): Likewise.
5591         * tests/test-mkfifoat.c (main): Likewise.
5592         * tests/test-open.c (main): Likewise.
5593         * tests/test-openat-safer.c (main): Likewise.
5594         * tests/test-openat.c (main): Likewise.
5595         * tests/test-quotearg.c (main): Likewise.
5596         * tests/test-rawmemchr.c (main): Likewise.
5597         * tests/test-readlink.c (main): Likewise.
5598         * tests/test-remove.c (main): Likewise.
5599         * tests/test-rename.c (main): Likewise.
5600         * tests/test-renameat.c (main): Likewise.
5601         * tests/test-rmdir.c (main): Likewise.
5602         * tests/test-sha1.c (main): Likewise.
5603         * tests/test-signal.c (main): Likewise.
5604         * tests/test-sigaction.c (main): Likewise.
5605         * tests/test-stat.c (main): Likewise.
5606         * tests/test-stat-time.c (main): Likewise.
5607         * tests/test-stddef.c (main): Likewise.
5608         * tests/test-stdint.c (main): Likewise.
5609         * tests/test-stdio.c (main): Likewise.
5610         * tests/test-stdlib.c (main): Likewise.
5611         * tests/test-strchrnul.c (main): Likewise.
5612         * tests/test-strerror.c (main): Likewise.
5613         * tests/test-string.c (main): Likewise.
5614         * tests/test-strtod.c (main): Likewise.
5615         * tests/test-strverscmp.c (main): Likewise.
5616         * tests/test-symlink.c (main): Likewise.
5617         * tests/test-symlinkat.c (main): Likewise.
5618         * tests/test-sys_stat.c (main): Likewise.
5619         * tests/test-sys_time.c (main): Likewise.
5620         * tests/test-time.c (main): Likewise.
5621         * tests/test-unistd.c (main): Likewise.
5622         * tests/test-unlink.c (main): Likewise.
5623         * tests/test-unlinkat.c (main): Likewise.
5624         * tests/test-utimens.c (main): Likewise.
5625         * tests/test-utimensat.c (main): Likewise.
5626         * tests/test-version-etc.c (main): Likewise.
5627         * tests/test-wchar.c (main): Likewise.
5628         * tests/test-wctype.c (main): Likewise.
5629         * tests/test-xprintf-posix.c (main): Likewise.
5630         * tests/test-posixtm.c (main): Likewise.
5631         (STREQ): Delete unused macro.
5632         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
5633         shadowed variables.
5634         * tests/test-memchr.c (main): Likewise.
5635
5636 2009-10-21  Eric Blake  <ebb9@byu.net>
5637
5638         areadlinkat: avoid failure on older glibc
5639         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
5640         rather than mis-comparing 0 against FUNC_RESULT of char*.
5641
5642 2009-10-21  Bruno Haible  <bruno@clisp.org>
5643
5644         * modules/stpncpy (License): Relicense under LGPLv2+.
5645         Reported by David Lutterkort <lutter@redhat.com>.
5646
5647 2009-10-20  Eric Blake  <ebb9@byu.net>
5648
5649         utimensat: work around Solaris 9 bug
5650         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
5651         has trailing slash bugs.
5652         * tests/test-lutimens.h (test_lutimens): Enhance test.
5653         * tests/test-utimens.h (test_utimens): Likewise.
5654         * doc/posix-functions/utime.texi (utime): Enhance documentation.
5655         * doc/posix-functions/utimes.texi (utimes): Likewise.
5656         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5657         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
5658         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
5659         * doc/posix-functions/futimens.texi (futimens): Likewise.
5660
5661         fdutimensat: new module
5662         * modules/fdutimensat: New file.
5663         * lib/fdutimensat.c (fdutimensat): Likewise.
5664         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
5665         * MODULES.html.sh (File system functions): Mention module.
5666         * modules/fdutimensat-tests: New test.
5667         * tests/test-fdutimensat.c: Likewise.
5668
5669         doc: regenerate INSTALL
5670         * doc/INSTALL: Reflect recent autoconf update.
5671         * doc/INSTALL.ISO: Likewise.
5672         * doc/INSTALL.UTF-8: Likewise.
5673
5674 2009-10-20  Pádraig Brady  <P@draigBrady.com>
5675
5676         acl: warn if ACL support is not detected
5677         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
5678
5679 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
5680
5681         * lib/nproc.h: Add extern "C" block for C++.
5682
5683 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
5684             Bruno Haible  <bruno@clisp.org>
5685
5686         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
5687         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
5688         * doc/posix-functions/isalpha.texi: Likewise.
5689         * doc/posix-functions/isblank.texi: Likewise.
5690         * doc/posix-functions/iscntrl.texi: Likewise.
5691         * doc/posix-functions/isdigit.texi: Likewise.
5692         * doc/posix-functions/isgraph.texi: Likewise.
5693         * doc/posix-functions/islower.texi: Likewise.
5694         * doc/posix-functions/isprint.texi: Likewise.
5695         * doc/posix-functions/ispunct.texi: Likewise.
5696         * doc/posix-functions/isspace.texi: Likewise.
5697         * doc/posix-functions/isupper.texi: Likewise.
5698         * doc/posix-functions/isxdigit.texi: Likewise.
5699
5700 2009-10-18  Bruno Haible  <bruno@clisp.org>
5701
5702         Tests for module 'isblank'.
5703         * modules/isblank-tests: New file.
5704         * tests/test-isblank.c: New file.
5705
5706         New module 'isblank'.
5707         * lib/isblank.c: New file.
5708         * m4/isblank.m4: New file.
5709         * modules/isblank: New file.
5710         * doc/posix-functions/isblank.texi: Mention the new module.
5711
5712 2009-10-18  Bruno Haible  <bruno@clisp.org>
5713
5714         New module 'ctype'.
5715         * lib/ctype.in.h: New file.
5716         * m4/ctype.m4: New file.
5717         * modules/ctype: New file.
5718         * doc/posix-headers/ctype.texi: Mention the new module.
5719
5720 2009-10-18  Jim Meyering  <meyering@redhat.com>
5721
5722         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
5723         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
5724         right after its initialization, rather than farther down.
5725         Keeping these in close proximity makes it easier to ensure
5726         that each such variable is initialized.  E.g.,
5727
5728             LIB_CLOCK_GETTIME=
5729             AC_SUBST([LIB_CLOCK_GETTIME])
5730
5731         This change also increments these serial numbers.
5732         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
5733         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5735
5736 2009-10-18  Bruno Haible  <bruno@clisp.org>
5737
5738         Don't let environment variables perturb build.
5739         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
5740         (gl_PREREQ_GETHRXTIME): ... not here.
5741
5742 2009-10-18  Bruno Haible  <bruno@clisp.org>
5743
5744         Avoid symlink attack in localcharset module.
5745         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
5746         (O_NOFOLLOW): Define fallback.
5747         (get_charset_aliases): Don't open the file if it is a symbolic link.
5748         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
5749         gl_FCNTL_H.
5750         (gl_FCNTL_H): Require it.
5751         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
5752         * modules/localcharset (Files): Add m4/fcntl_h.m4.
5753         Reported by Fergal Glynn <fglynn@veracode.com>.
5754
5755 2009-10-18  Bruno Haible  <bruno@clisp.org>
5756
5757         Implement nproc for mingw.
5758         * lib/nproc.c: Include <windows.h>
5759         (num_processors): On native Windows platforms, try GetSystemInfo.
5760
5761 2009-10-18  Bruno Haible  <bruno@clisp.org>
5762
5763         Implement nproc for IRIX.
5764         * lib/nproc.c: Include <sys/sysmp.h>.
5765         (num_processors): On IRIX systems, try sysmp.
5766         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
5767
5768 2009-10-18  Bruno Haible  <bruno@clisp.org>
5769
5770         Implement nproc for HP-UX.
5771         * lib/nproc.c: Include <sys/pstat.h>
5772         (num_processors): On HP-UX systems, try pstat_getdynamic.
5773         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
5774         pstat_getdynamic.
5775
5776 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
5777             Bruno Haible  <bruno@clisp.org>
5778
5779         Implement nproc for NetBSD, OpenBSD.
5780         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
5781         (ARRAY_SIZE): New macro.
5782         (num_processors): On BSD systems, try sysctl of HW_NCPU.
5783         * m4/nproc.m4: New file.
5784         * modules/nproc (Files): Add m4/nproc.m4.
5785         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
5786         (Makefile.am): Instead, augment lib_SOURCES.
5787
5788 2009-10-18  Bruno Haible  <bruno@clisp.org>
5789
5790         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
5791         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
5792         sys/param.h.
5793
5794 2009-10-16  Eric Blake  <ebb9@byu.net>
5795
5796         utimensat: new module
5797         * modules/utimensat: New file.
5798         * lib/utimensat.c (utimensat): Likewise.
5799         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5800         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
5801         so we can work around Linux bugs.
5802         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5803         * modules/sys_stat (Makefile.am): Substitute them.
5804         * lib/sys_stat.in.h (utimensat): Declare it.
5805         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5806         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5807         * modules/utimensat-tests: New test.
5808         * tests/test-utimensat.c: Likewise.
5809
5810         utimens: let lutimens work on non-symlinks
5811         * lib/utimens.c (lutimens): Fall back to utimens rather than
5812         failing with ENOSYS, when file is not a symlink.
5813         (utimens): Reduce redirection.
5814         * tests/test-lutimens.h (test_lutimens): Update test to cover
5815         non-symlinks.
5816         * tests/test-utimens.h (test_utimens): Update test to cover
5817         symlinks.
5818         * tests/test-utimens.c (main): Update caller.
5819
5820         utimens: cache whether utimensat syscall works
5821         * lib/utimens.c (utimensat_works_really): New cache variable.
5822         (fdutimens, lutimens): Use it to avoid failing syscall.
5823
5824         test-stat-time, test-utimens: improve portability
5825         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
5826         ext4 on alpha, and for cygwin.
5827         * tests/test-utimens-common.h: New file.
5828         (nap): Factor delays into single function.
5829         * tests/test-lutimens.h (test_lutimens): Use new header.
5830         * tests/test-futimens.h (test_futimens): Likewise.
5831         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
5832         timestamps to occur from same machine, as was done previously for
5833         test_utimens.
5834         * modules/utimens-tests (Files): Ship new file.
5835         * modules/futimens-tests (Files): Likewise.
5836         Reported in part by Jim Meyering.
5837
5838         sys_stat: sort replacement declarations
5839         * lib/sys_stat.in.h: Sort declarations.
5840         * lib/futimens.c (futimens): Fix typo.
5841
5842 2009-10-15  Jim Meyering  <meyering@redhat.com>
5843
5844         don't let environment settings perturb build
5845         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
5846         could cause a configure-time and/or build-time malfunction.
5847         Typically, a configure-time function-in-library test is performed
5848         via code like this:
5849
5850           LIB_VAR=
5851           AC_SUBST([LIB_VAR])
5852           prefix_saved_LIBS=$LIBS
5853             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
5854                        [test "$ac_cv_search_FUNC" = "none required" ||
5855                         LIB_VAR=$ac_cv_search_FUNC])
5856           LIBS=$prefix_saved_LIBS
5857
5858         However, in each of the files affected by this change, the LIB_VAR=
5859         initialization was omitted.  Thus, when set in the environment, its
5860         value would propagate into generated Makefiles when FUNC is not found
5861         in LIB_NAME.
5862         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
5863         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5864         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5865
5866 2009-10-14  Eric Blake  <ebb9@byu.net>
5867
5868         fchdir: avoid infinite recursion in mingw
5869         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
5870         recursing.
5871
5872         test-stat-time: port to mingw
5873         * tests/test-stat-time.c (force_unlink): Return a value.
5874         (test_ctime) [W32]: Fix compilation error.
5875         (nap): Don't call usleep with too large an argument.  Use
5876         force_unlink.
5877         * doc/pastposix-functions/usleep.texi (usleep): Document the
5878         portability issue.
5879
5880 2009-10-13  Jim Meyering  <meyering@redhat.com>
5881
5882         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
5883         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
5884         * modules/pipe-filter-ii: Likewise.
5885         * modules/sys_socket-tests: Likewise.
5886         * modules/tsearch-tests: Likewise.
5887         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
5888         (check): Depend on it.
5889
5890 2009-10-12  Eric Blake  <ebb9@byu.net>
5891
5892         utimens-tests: port to NFS file systems
5893         * tests/test-utimens.h (test_utimens): Refactor utimecmp
5894         comparisons to avoid spurious failures from timestamp drift
5895         between NFS machines.
5896
5897 2009-10-12  Eric Blake  <ebb9@byu.net>
5898
5899         stat-time-tests: minor cleanups
5900         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
5901         * tests/test-stat-time.c (nap): Separate assignment from call.
5902         Suggested by Paolo Bonzini and Bruno Haible.
5903
5904         sys_stat: guarantee struct timespec
5905         * lib/sys_stat.in.h (includes): Always include <time.h>
5906         * modules/sys_stat (Depends-on): Add time.
5907         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
5908         mode_t permission values.
5909         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
5910         get at subsecond timestamps.
5911
5912 2009-10-10  Eric Blake  <ebb9@byu.net>
5913
5914         futimens: new module
5915         * modules/futimens: New file.
5916         * lib/futimens.c (futimens): Likewise.
5917         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
5918         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
5919         we can work around Linux bugs.
5920         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5921         * modules/sys_stat (Makefile.am): Substitute them.
5922         * lib/sys_stat.in.h (futimens): Declare it.
5923         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5924         * doc/posix-functions/futimens.texi (futimens): Likewise.
5925         * modules/futimens-tests: New test.
5926         * tests/test-futimens.c: Likewise.
5927
5928         utimens: introduce fdutimens
5929         * lib/utimens.h (fdutimens): New prototype.
5930         * lib/utimens.c (gl_futimens): Move guts...
5931         (fdutimens): ...to new interface.
5932         * tests/test-utimens.c (do_fdutimens): Use it.
5933
5934         utimens: add UTIME_NOW and UTIME_OMIT support
5935         * lib/utimens.c (validate_timespec, update_timespec): New helper
5936         functions.
5937         (gl_futimens, lutimens): Use them.
5938         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
5939         stdbool, sys_stat.
5940         (Link): Mention resulting library dependency.
5941         * modules/utimecmp (Link): Likewise.
5942         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
5943         (Makefile.am): Pick up library dependency.
5944         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
5945         definition.
5946         * tests/test-sys_stat.c: Test the definitions.
5947         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
5948         * NEWS: Document library dependency.
5949
5950         utimecmp: support symlink timestamps
5951         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
5952         hashing when possible.  Use pathconf when available.
5953         (SYSCALL_RESOLUTION): Recognize tighter resolution.
5954         * modules/utimecmp (Depends-on): Add lstat.
5955
5956         utimens: add lutimens interface
5957         * lib/utimens.c (lutimens): New function.
5958         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
5959         * lib/utimens.h (lutimens): Declare new interface.
5960         * tests/test-utimens.c (main): Enhance test.
5961         * tests/test-lutimens.h (test_lutimens): New file.
5962         * modules/utimens-tests (Files): Distribute it.
5963         (Depends-on): Add symlink.
5964         (configure.ac): Check for usleep.
5965
5966         utimens: validate futimens usage
5967         * lib/utimens.c (gl_futimens): Require valid fd up front, using
5968         fewer syscalls on failure later on.  Avoid compiler warning on
5969         mingw.
5970         * modules/utimens (Depends-on): Add dup2.
5971
5972         utimens: add test
5973         * modules/utimens-tests: New test.
5974         * tests/test-utimens.h: New file.
5975         * tests/test-futimens.h: Likewise.
5976         * tests/test-utimens.c: Likewise.
5977
5978         doc: mention timestamp portability issues
5979         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
5980         instead.
5981         * doc/posix-functions/utime.texi (utime): Likewise.
5982         * doc/posix-functions/utimes.texi (utimes): Likewise.
5983         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
5984         instead.
5985         * doc/posix-functions/futimens.texi (futimens): Mention utimens
5986         module.
5987         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5988         Mention weakness with symlink timestamps.
5989         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
5990         to utimensat/futimens instead.
5991         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
5992
5993         test-dup2: enhance test
5994         * tests/test-dup2.c (main): Also check AT_FDCWD.
5995
5996         test-stat-time: avoid more spurious failures
5997         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
5998         xfs; and avoid race if the two timestamps cross quantization edge.
5999
6000         relocatable: prefer 'file system' over 'filesystem'
6001         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
6002         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
6003         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
6004         * doc/relocatable.texi (Enabling Relocatability): Likewise.
6005         * lib/relocatable.c (compute_curr_prefix): Likewise.
6006
6007 2009-10-10  Jim Meyering  <meyering@redhat.com>
6008
6009         stat-time-tests: check for the usleep function
6010         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
6011
6012 2009-10-10  Bruno Haible  <bruno@clisp.org>
6013
6014         * modules/xnanosleep: Put the Link section after the Include section.
6015
6016 2009-10-09  Eric Blake  <ebb9@byu.net>
6017
6018         dup2: work around FreeBSD 6.1 bug
6019         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
6020         * doc/posix-functions/dup2.texi (dup2): Document it.
6021         Reported by Nelson H. F. Beebe and Jim Meyering.
6022
6023         test-stat-time: port to buggy NFS clients
6024         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
6025         (test_ctime): Also skip test if mtime and ctime are skewed.
6026
6027         maint: prefer 'file system' over 'filesystem'
6028         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6029         * doc/posix-functions/lstat.texi (lstat): Likewise.
6030         * lib/file-has-acl.c (file_has_acl): Likewise.
6031         * lib/fwriteerror.c [TEST]: Likewise.
6032         * tests/test-areadlink.h (test_areadlink): Likewise.
6033         * tests/test-areadlinkat-with-size.c (main): Likewise.
6034         * tests/test-areadlinkat.c (main): Likewise.
6035         * tests/test-canonicalize-lgpl.c (main): Likewise.
6036         * tests/test-canonicalize.c (main): Likewise.
6037         * tests/test-fstatat.c (main): Likewise.
6038         * tests/test-linkat.c (main): Likewise.
6039         * tests/test-lstat.h (test_lstat_func): Likewise.
6040         * tests/test-mkdir.h (test_mkdir): Likewise.
6041         * tests/test-readlink.h (test_readlink): Likewise.
6042         * tests/test-remove.c (main): Likewise.
6043         * tests/test-rename.h (test_rename): Likewise.
6044         * tests/test-renameat.c (main): Likewise.
6045         * tests/test-rmdir.h (test_rmdir_func): Likewise.
6046         * tests/test-symlink.h (test_symlink): Likewise.
6047         * tests/test-symlinkat.c (main): Likewise.
6048         * tests/test-unlink.h (test_unlink_func): Likewise.
6049         * tests/test-unlinkat.c (main): Likewise.
6050
6051         maint: make realtime library usage explicit
6052         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
6053         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
6054         * modules/settime (Link): Likewise.
6055         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
6056
6057         test-stat-time: speed up execution
6058         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
6059         warning on mingw.
6060         (nap): New helper function.
6061         (prepare_test): Use it to reduce sleep time.
6062         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
6063         execution.
6064         * modules/stat-time-tests (configure.ac): Check for usleep.
6065
6066 2009-10-09  Jim Meyering  <meyering@redhat.com>
6067
6068         selinux-h: always use getfilecon wrappers
6069         * lib/getfilecon.c: New file.
6070         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
6071         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
6072         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
6073         (fgetfilecon): Provide a stub.
6074         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
6075         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
6076         file unconditionally.
6077         When <selinux/selinux.h> is found, arrange to use wrappers.
6078         * modules/selinux-h (Files): Add getfilecon.c.
6079         (Makefile.am): Substitute include-next-related bits
6080         into the now-always-generated selinux/selinux.h file.
6081         * doc/glibc-functions/lgetfilecon.texi: New file.
6082         * doc/glibc-functions/fgetfilecon.texi: New file.
6083         * doc/glibc-functions/getfilecon.texi: New file.
6084         * doc/glibc-functions/getfilecon-desc.texi: New file.
6085         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
6086         which to pull in the new files.
6087         * MODULES.html.sh (Misc): Add selinux-h.
6088
6089 2009-10-08  Jim Meyering  <meyering@redhat.com>
6090
6091         unistd: fix comment typo
6092         * lib/unistd.in.h (euidaccess): Fix a comment typo.
6093
6094 2009-10-08  Eric Blake  <ebb9@byu.net>
6095
6096         areadlink: use SIZE_MAX consistently
6097         * modules/areadlink (Depends-on): Add stdint.
6098         * modules/areadlink-with-size (Depends-on): Likewise.
6099         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
6100         gives NULL; drop sys/types, since unistd gives size_t; and add
6101         stdint for SIZE_MAX.
6102         (SIZE_MAX): Rely on headers.
6103         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
6104         and add stdint.
6105         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
6106         (SIZE_MAX): Likewise.
6107         (INITIAL_BUF_SIZE): Turn into enum.
6108         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
6109
6110 2009-10-08  Jim Meyering  <meyering@redhat.com>
6111
6112         areadlinkat: avoid compilation failure
6113         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
6114         Fix typo in comment.
6115
6116 2009-10-07  Eric Blake  <ebb9@byu.net>
6117
6118         areadlinkat-with-size: new module
6119         * modules/areadlinkat-with-size: New module.
6120         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
6121         * lib/areadlink.h (areadlinkat): Declare it.
6122         * MODULES.html.sh (File system functions): Mention it.
6123         * modules/areadlinkat-with-size-tests: New test.
6124         * tests/test-areadlinkat-with-size.c: New file.
6125
6126         xreadlinkat: new module
6127         * modules/xreadlinkat: New module.
6128         * lib/xreadlinkat.c (xreadlinkat): New file.
6129         * lib/xreadlink.h (xreadlinkat): Declare it.
6130         * MODULES.html.sh (File system functions): Mention it.
6131
6132         areadlinkat: new module
6133         * lib/at-func.c (FUNC_FAIL): New define.
6134         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
6135         * modules/areadlinkat: New module.
6136         * lib/linkat.c (areadlinkat): Move...
6137         * lib/areadlinkat.c (areadlinkat): ...to new file.
6138         * lib/areadlink.h (areadlinkat): Declare it.
6139         * modules/linkat (Depends-on): Add areadlinkat.
6140         * MODULES.html.sh (File system functions): Mention it.
6141         * modules/areadlinkat-tests: New test.
6142         * tests/test-areadlinkat.c: New file.
6143
6144         areadlink, areadlink-with-size: add tests
6145         * modules/areadlink-tests: New test.
6146         * modules/areadlink-with-size-tests: Likewise.
6147         * tests/test-areadlink.h: New file.
6148         * tests/test-areadlink.c: Likewise.
6149         * tests/test-areadlink-with-size.c: Likewise.
6150
6151         maint: minor cleanups
6152         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
6153         _UNUSED_PARAMETER_ instead.
6154         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
6155         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
6156         * modules/linkat-tests (Files): Distribute test-link.h.
6157
6158         openat, utimens: whitespace cleanup
6159         * lib/openat.c: Prefer space throughout, rather than mix of 8
6160         spaces vs. tabs.
6161         * lib/at-func.c: Likewise.
6162         * lib/utimens.c: Likewise.
6163
6164         openat: avoid using wrong fd
6165         * lib/openat.c (openat_permissive): Reject user's fd if saving the
6166         working directory chooses same fd.
6167         * lib/at-func.c (AT_FUNC_NAME): Likewise.
6168
6169         mkdir, mkdirat: fix cygwin 1.5.x bug
6170         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
6171         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
6172         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
6173         bug.
6174         (gl_PREREQ_MKDIR): Delete unused macro.
6175         * modules/mkdir (Files): Track file rename.
6176         (configure.ac): Update macro name.
6177         * modules/openat (Depends-on): Add mkdir.
6178         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
6179
6180         mkdir, mkdirat: add tests
6181         * modules/mkdir-tests: New test.
6182         * tests/test-mkdir.h: New file.
6183         * tests/test-mkdir.c: Likewise.
6184         * tests/test-mkdirat.c: Likewise.
6185         * modules/openat-tests (Files): Add new files.
6186         (Makefile.am): Run new test.
6187
6188 2009-10-06  Eric Blake  <ebb9@byu.net>
6189
6190         doc: tweak *at function documentation
6191         * doc/posix-functions/faccessat.texi (faccessat): Mention
6192         known issue with replacement.
6193         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
6194         * doc/posix-functions/linkat.texi (linkat): Likewise.
6195         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
6196         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
6197         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6198         * doc/posix-functions/renameat.texi (renameat): Likewise.
6199         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6200
6201         openat: fix GNU/Hurd bug in unlinkat
6202         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
6203         broken.
6204         * doc/posix-functions/unlink.texi (unlink): Document this.
6205         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
6206
6207         fdopendir: fix GNU/Hurd bug
6208         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
6209         allowing non-directory fds.
6210         * lib/fdopendir.c (rpl_fdopendir): Work around it.
6211         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6212         * modules/dirent (Makefile.am): Substitute it.
6213         * lib/dirent.in.h (fdopendir): Declare replacement.
6214         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
6215         * tests/test-fdopendir.c (main): Test something other than
6216         /dev/null, since on Hurd that behaves like a directory.
6217
6218         test-symlink: port to GNU/Hurd
6219         * tests/test-symlink.h (test_symlink): Relax expected errno.
6220
6221         doc: tweak more cygwin information
6222         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
6223         now compatible with glibc.
6224         * doc/posix-functions/getopt.texi (getopt): Likewise.
6225
6226         getopt-gnu: add another test
6227         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
6228         guarantee behavior relied on by m4.
6229         * tests/test-getopt.c (main): Use it.
6230         * modules/getopt-posix-tests (Depends-on): Add setenv.
6231         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
6232
6233         getopt: fix compilation on darwin
6234         * lib/getopt.in.h (includes): Leave breadcrumbs during system
6235         include.
6236         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
6237         Reported by Ludovic Courtès.
6238
6239 2009-10-06  Bruno Haible  <bruno@clisp.org>
6240
6241         * modules/size_max (Description): Discourage its use.
6242         Reported by Simon Josefsson.
6243
6244 2009-10-06  Jim Meyering  <meyering@redhat.com>
6245
6246         linkat: avoid compilation failure
6247         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
6248
6249 2009-10-05  Eric Blake  <ebb9@byu.net>
6250
6251         linkat: support Linux 2.6.17
6252         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
6253         linkat on Linux, but allow cache variable override.
6254         * lib/linkat.c (rpl_linkat): Define override.
6255         * modules/linkat (Depends-on): Add symlinkat.
6256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
6257         * modules/unistd (Makefile.am): Substitute it.
6258         * lib/unistd.in.h (linkat): Declare replacement.
6259         Reported by Pádraig Brady.
6260
6261         quotearg: port test to systems with C.UTF-8 locale
6262         * tests/test-quotearg.c (struct result_strings): Add another
6263         member, differentiating between C.ASCII and C.UTF-8 handling.
6264         (compare_strings): Add parameter.
6265         (main): Adjust all callers.
6266
6267         getopt: avoid clash with FreeBSD _getopt_internal
6268         * lib/getopt.in.h (_getopt_internal): Override the name.
6269         * lib/getopt_int.h (includes): Pick up any overrides.
6270         Reported by Reuben Thomas.
6271
6272         hash: allow C89 compilation
6273         * lib/hash.c (check_tuning): Move declaration before statement.
6274         Reported by Reuben Thomas.
6275
6276 2009-10-05  Karl Berry  <karl@gnu.org>
6277
6278         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
6279
6280 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
6281             Bruno Haible  <bruno@clisp.org>
6282
6283         * lib/uname.c (uname): Use a table-driven algorithm to compute
6284         Windows NT versions.
6285
6286 2009-10-04  Bruno Haible  <bruno@clisp.org>
6287
6288         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
6289         program_invocation_short_name.
6290         * modules/progname (configure.ac): Test for presence of
6291         program_invocation_short_name.
6292         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
6293
6294 2009-10-04  Bruno Haible  <bruno@clisp.org>
6295
6296         * lib/progname.c (set_program_name): Fix comment.
6297         Reported by Jim Meyering.
6298
6299 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
6300             Bruno Haible  <bruno@clisp.org>
6301
6302         * lib/uname.c: Include <string.h>.
6303         (uname): Do only one call to GetVersionEx in the common case.
6304
6305 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
6306             Bruno Haible  <bruno@clisp.org>
6307
6308         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
6309         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
6310         (uname): Add support for Windows CE and various non-x86 CPU types.
6311
6312 2009-10-03  Bruno Haible  <bruno@clisp.org>
6313
6314         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
6315         invocation to tests/configure.ac.
6316         Reported by Ian Beckwith <ianb@erislabs.net>.
6317
6318 2009-10-02  Eric Blake  <ebb9@byu.net>
6319
6320         fchdir: avoid compiler warning
6321         * lib/fchdir.c (canonicalize_file_name)
6322         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
6323
6324         test-open: support mingw errno values
6325         * tests/test-open.h (test_open): Relax test.
6326         * tests/test-fopen.h (test_fopen): Likewise.
6327         * tests/test-openat-safer.c (main): Likewise.
6328
6329         open: fix opening directory on mingw
6330         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
6331
6332         test-open: on GNU/Hurd, /dev/null is a directory
6333         * tests/test-fopen.h (main): Rename...
6334         (test_fopen): ...to this.  Use a guaranteed non-directory when
6335         confirming open behavior on trailing slash.
6336         * tests/test-openat-safer.c (main): Likewise.
6337         * tests/test-open.h (main): Likewise....
6338         (test_open): ...to this.
6339         * tests/test-fopen.c (main): Adjust caller.
6340         * tests/test-fopen-safer.c (main): Likewise.
6341         * tests/test-open.c (main): Likewise.
6342         * tests/test-fcntl-safer.c (main): Likewise.
6343         Reported by Samuel Thibault.
6344
6345         rename, fchdir: don't ignore chdir failure
6346         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
6347         * lib/rename.c (rpl_rename) [W32]: Likewise.
6348         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
6349         an empty destination directory if source cannot be renamed,
6350         although there is still possibility for failure.
6351         * doc/posix-functions/rename.texi (rename): Document the race.
6352         Reported by Jim Meyering.
6353
6354         maint: cleanup whitespace in recent commits
6355         * lib/rename.c (rpl_rename): Remove tabs.
6356         * tests/test-link.h (test_link): Likewise.
6357         * lib/fchdir.c (get_name): Likewise.
6358         Reported by Jim Meyering.
6359
6360 2009-10-02  Ben Pfaff  <blp@gnu.org>
6361
6362         relocatable-prog-wrapper: Add missing dependency on
6363         double-slash-root.
6364         * modules/relocatable-prog-wrapper: Add dependency.
6365         Reported by Ian Beckwith <ianb@erislabs.net>.
6366
6367 2009-10-02  Eric Blake  <ebb9@byu.net>
6368
6369         renameat: fix Solaris bugs
6370         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
6371         needed fixing.
6372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
6373         * modules/stdio (Makefile.am): Substitute it.
6374         * lib/stdio.in.h (renameat): Declare replacement.
6375         * lib/renameat.c (rpl_renameat): Implement fix.
6376
6377         renameat: new module
6378         * modules/renameat: New file.
6379         * lib/renameat.c (renameat): Likewise.
6380         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
6381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6382         * modules/stdio (Makefile.am): Substitute them.
6383         * lib/stdio.in.h (renameat): Declare it.
6384         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6385         * doc/posix-functions/renameat.texi (renameat): Likewise.
6386         * modules/renameat-tests: New test.
6387         * tests/test-renameat.c: Likewise.
6388
6389         rename: fix mingw bugs
6390         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
6391         directory overwrite bugs.
6392
6393         rename: fix another cygwin 1.5 bug
6394         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
6395         checks.
6396         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
6397         unnecessary cygwin workarounds.  Also work around bug with moving
6398         full directory onto an empty one.
6399         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
6400
6401         rename-dest-slash: merge into rename module
6402         * modules/rename-dest-slash (Status): Mark obsolete.
6403         (Depends-on): Add rename.
6404         (Files): Let rename do it all.
6405         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
6406         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
6407         * m4/rename-dest-slash.m4: ...so this file can be deleted.
6408         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
6409         * lib/rename.c (rpl_rename): Update comments.
6410
6411         rename: fix cygwin 1.5.x bugs
6412         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
6413         * lib/rename.c (rpl_rename): Work around them.
6414         * modules/rename (Depends-on): Add same-inode.
6415
6416         rename: fix Solaris 10 bug
6417         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6418         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
6419         was the only bug.
6420
6421         rename: fix Solaris 9 bug
6422         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
6423         on non-directory.  Avoid calling exit.
6424         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
6425         strdup.
6426         * modules/rename-tests (Depends-on): Drop lstat.
6427         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6428         (gl_PREREQ_RENAME): Delete unused macro.
6429
6430         rename-dest-slash: fix NetBSD bug
6431         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
6432         links.
6433         * modules/rename-dest-slash (Depends-on): Add same-inode.
6434
6435         rename-tests: new test, exposes several platform bugs
6436         * modules/rename-tests: New file.
6437         * tests/test-rename.h: Likewise.
6438         * tests/test-rename.c: Likewise.
6439         * doc/posix-functions/rename.texi (rename): Improve documentation,
6440         including bugs that will eventually be fixed in gnulib.
6441
6442 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
6443
6444         * lib/uname.c: Include <stdlib.h>
6445         (uname): Assume version info is available.
6446
6447 2009-10-02  Jim Meyering  <meyering@redhat.com>
6448
6449         gnu-web-doc-update: correct --help output
6450         * build-aux/gnu-web-doc-update: Make --help output relevant.
6451
6452         gnu-web-doc-update: add standard options
6453         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
6454
6455         gnu-web-doc-update: New module.
6456         Use this script to automatically update the on-line web documentation
6457         for your GNU project at http://www.gnu.org/software/$pkg/manual/
6458         * modules/gnu-web-doc-update: New file, from coreutils.
6459         * build-aux/gnu-web-doc-update: New script.
6460
6461 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
6462
6463         link: LoadLibrary is not needed.
6464         * lib/link.c: Use GetModuleHandle.
6465
6466 2009-10-01  Eric Blake  <ebb9@byu.net>
6467
6468         getopt: bump serial number
6469         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
6470         change.
6471
6472         tests: tighten link, rmdir, and remove tests
6473         * tests/test-link.h (includes): No need to use <config.h> here.
6474         Clean up if directory hard link was created, otherwise test for
6475         trailing '.'.
6476         * tests/test-linkat.c (main): Simplify.
6477         * tests/test-remove.c (main): Enhance test for trailing '.'.
6478         * tests/test-rmdir.h (test_rmdir_func): Likewise.
6479
6480 2009-10-01  Jim Meyering  <meyering@redhat.com>
6481
6482         maint.mk: requiring "make major" was annoying, for a "minor" release.
6483         What is intended is "stable", to contrast with alpha and beta,
6484         so require "make stable", not "make major".
6485         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
6486         (get_tool_versions): Likewise.
6487         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
6488
6489 2009-09-30  Ben Pfaff  <blp@gnu.org>
6490
6491         Fix broken build of replacement for Windows tmpfile().
6492         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
6493         flags argument added along with the 'mkostemp' module.
6494
6495 2009-09-28  Bruno Haible  <bruno@clisp.org>
6496
6497         Avoid identifier clash with POSIX function 'remove' defined as a macro.
6498         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
6499         to 'remove_elt'.
6500         (gl_list_remove): Update.
6501         * lib/gl_list.c (gl_list_remove): Update.
6502         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
6503         to 'remove_elt'.
6504         (gl_oset_remove): Update.
6505         * lib/gl_list.c (gl_oset_remove): Update.
6506         Reported by Eric Blake.
6507
6508 2009-09-28  Eric Blake  <ebb9@byu.net>
6509
6510         doc: mention yet more cygwin 1.7 status
6511         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
6512         cygwin.
6513         * doc/glibc-functions/execvpe.texi (execvpe): New file.
6514         * doc/gnulib.texi (Glibc unistd.h): Mention it.
6515
6516         argp: fix test failure
6517         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
6518         that are not upper-case.  Pass correct range to tolower.
6519
6520 2009-09-27  Jim Meyering  <meyering@redhat.com>
6521
6522         test-yesno: work around sparc-dash here-document infelicity
6523         Without this change, the literal \177 byte in a here document
6524         would make dash 0.5.5.1-3 access uninitialized memory.
6525         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
6526         Instead, use a marker, "@", and filter through tr to create the desired
6527         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
6528
6529 2009-09-27  Bruno Haible  <bruno@clisp.org>
6530
6531         Disable untested support for new flavours of ACLs on AIX.
6532         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
6533         progress.
6534         * lib/set-mode-acl.c (qset_acl): Likewise.
6535
6536 2008-12-07  Bruno Haible  <bruno@clisp.org>
6537
6538         Add support for new flavours of ACLs on AIX. (Untested.)
6539         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
6540         (file_has_acl): Add support for newer AIX.
6541         * lib/set-mode-acl.c (qset_acl): Likewise.
6542         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
6543         Rainer Tammer <tammer@tammer.net>.
6544
6545 2009-09-26  Eric Blake  <ebb9@byu.net>
6546
6547         argp: fix compilation of getopt
6548         * lib/getopt.in.h (includes): Use different guard than glibc.
6549         Reported by Sergey Poznyakoff.
6550
6551         doc: mention more cygwin 1.7 status
6552         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
6553         bug.
6554         * doc/posix-functions/execl.texi (execl): Likewise.
6555         * doc/posix-functions/execle.texi (execle): Likewise.
6556         * doc/posix-functions/execlp.texi (execlp): Likewise.
6557         * doc/posix-functions/execv.texi (execv): Likewise.
6558         * doc/posix-functions/execve.texi (execve): Likewise.
6559         * doc/posix-functions/execvp.texi (execvp): Likewise.
6560         * doc/glibc-functions/canonicalize_file_name.texi
6561         (canonicalize_file_name): Cygwin 1.7 now provides this.
6562         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
6563         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
6564         on AT_SYMLINK_NOFOLLOW.
6565
6566 2009-09-24  Eric Blake  <ebb9@byu.net>
6567
6568         test-linkat: make test more robust
6569         * tests/test-linkat.c (main): Avoid collision with EEXIST.
6570
6571         getopt: fix inclusion guards for cygwin
6572         * modules/getopt-posix (Depends-on): Add include-next.
6573         (Makefile.am): Substitute more items in replacement header.
6574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
6575         <getopt.h>.
6576         * lib/getopt.in.h (includes): Use split inclusion guard, and
6577         prefer <getopt.h> over include <unistd.h> when one is present.
6578         (option): Also override name of 'struct option'.
6579
6580         same-inode: revert prior change; it is not yet ready
6581         * NEWS: Undo mention of this change.
6582         * lib/same-inode.h (same-inode.h): Undo tri-state change.
6583         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6584         * lib/cycle-check.c (cycle_check): Likewise.
6585         * lib/same.c (same_name): Likewise.
6586         * lib/at-func2.c (at_func2): Likewise.
6587
6588 2009-09-23  Eric Blake  <ebb9@byu.net>
6589
6590         linkat: new module
6591         * modules/linkat: New file.
6592         * lib/at-func2.c (at_func2): Likewise.
6593         * lib/linkat.c (linkat): Likewise.
6594         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6595         * lib/openat-priv.h (at_func2): Add declaration.
6596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6597         * modules/unistd (Makefile.am): Substitute them.
6598         * lib/unistd.in.h (linkat): Declare it.
6599         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6600         * doc/posix-functions/linkat.texi (linkat): Likewise.
6601         * doc/posix-functions/link.texi (link): Tweak wording.
6602         * tests/test-link.c (main): Move guts...
6603         * tests/test-link.h (test_link): ...into new file.
6604         * modules/linkat-tests: New test.
6605         * tests/test-linkat.c: Likewise.
6606         * modules/link-tests (Files): Ship new file.
6607         (Depends-on): Add stdbool.
6608
6609         dirname: add library-safe mdir_name
6610         * lib/dirname.h (mdir_name): New prototype.
6611         * lib/dirname.c (dir_name): Move guts...
6612         (mdir_name): ...to new function that avoids xalloc_die.
6613
6614         fchdir: another mingw fix
6615         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
6616         * lib/fchdir.c (get_name): New helper method; skips canonicalize
6617         on mingw (where it has not yet been ported), and make it optional
6618         elsewhere.
6619         (_gl_register_fd): Use it.
6620
6621         same-inode: make SAME_INODE tri-state, to port to mingw
6622         * NEWS: Mention this change.
6623         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
6624         st_ino always being 0.
6625         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6626         * lib/cycle-check.c (cycle_check): Likewise.
6627         * lib/same.c (same_name): Likewise.
6628
6629         lstat: avoid mingw compilation error
6630         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
6631         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
6632         lstat ourselves.
6633         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
6634         was adequate.
6635         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
6636         the checks for lstat.
6637         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
6638
6639         link: fix test failure on Solaris 9
6640         * lib/link.c (rpl_link): Don't assume link will catch bogus
6641         trailing slash on source.
6642
6643         test-symlinkat: enhance test
6644         * tests/test-readlink.c (main): Move guts...
6645         * tests/test-readlink.h (test_readlink): ...into new file.
6646         * tests/test-symlink.c (main): Move guts...
6647         * tests/test-symlink.h (test_symlink): ...into new file.
6648         * tests/test-symlinkat.c (main): Use new files for further
6649         coverage.
6650         (do_symlink, do_readlink): New helper functions.
6651         * modules/symlink-tests (Files): Ship new file.
6652         (Depends-on): Add stdbool.
6653         * modules/readlink-tests (Files): Ship new file.
6654         (Depends-on): Add stdbool.
6655         * modules/symlinkat-tests (Files): Use new files.
6656
6657 2009-09-23  Eric Blake  <ebb9@byu.net>
6658
6659         readlink: document portability issue with symlink length
6660         * doc/posix-functions/lstat.texi (lstat): Mention that some file
6661         systems have bogus st_size on symlinks, and mention the
6662         areadlink-with-size module.
6663         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6664         * doc/posix-functions/readlink.texi (readlink): Mention the
6665         areadlink module, and ERANGE failure.
6666         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6667         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
6668
6669         readlink: fix Solaris 9 bug with trailing slash
6670         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
6671         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
6672         * doc/posix-functions/readlink.texi (readlink): Document this.
6673         * modules/readlink-tests: New test.
6674         * tests/test-readlink.c: Likewise.
6675
6676         readlink: fix cygwin 1.5.x bug with return type
6677         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
6678         * lib/unistd.in.h (readlink): Use ssize_t.
6679         * lib/readlink.c (readlink): Likewise.
6680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6681         * modules/unistd (Makefile.am): Substitute it.
6682         * lib/unistd.in.h (readlink): Declare replacement.
6683         * doc/posix-functions/readlink.texi (readlink): Document this.
6684
6685         symlink: use throughout gnulib
6686         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
6687         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
6688         symlink is not used.
6689         * modules/symlinkat (Depends-on): Add symlink.
6690         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6691         * modules/canonicalize-tests (Depends-on): Likewise.
6692         * modules/lstat-tests (Depends-on): Likewise.
6693         * modules/openat-tests (Depends-on): Likewise.
6694         * modules/remove-tests (Depends-on): Likewise.
6695         * modules/rmdir-tests (Depends-on): Likewise.
6696         * modules/unlink-tests (Depends-on): Likewise.
6697         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
6698         * tests/test-canonicalize.c (symlink): Likewise.
6699         * tests/test-fstatat.c (symlink): Likewise.
6700         * tests/test-lstat.c (symlink): Likewise.
6701         * tests/test-remove.c (symlink): Likewise.
6702         * tests/test-rmdir.c (symlink): Likewise.
6703         * tests/test-unlink.c (symlink): Likewise.
6704         * tests/test-unlinkat.c (symlink): Likewise.
6705
6706         symlink: new module, for Solaris 9 bug
6707         * modules/symlink: New file.
6708         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6709         * lib/symlink.c: Likewise.
6710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6711         * modules/unistd (Makefile.am): Substitute them.
6712         * lib/unistd.in.h (symlink): Declare replacement.
6713         * MODULES.html.sh (File system functions): Mention it.
6714         * doc/posix-functions/symlink.texi (symlink): Likewise.
6715         * modules/symlink-tests: New test.
6716         * tests/test-symlink.c: Likewise.
6717
6718 2009-09-23  Bruno Haible  <bruno@clisp.org>
6719
6720         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
6721         when needed.
6722         Test case: gnulib-tool --import --with-tests atexit inttypes.
6723         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
6724
6725 2009-09-23  Bruno Haible  <bruno@clisp.org>
6726
6727         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
6728         subcommand, not in a subshell.
6729
6730 2009-09-22  Eric Blake  <ebb9@byu.net>
6731
6732         unistd: sort replacement declarations
6733         * lib/unistd.in.h: Sort declarations.
6734
6735         open, openat: minor optimization
6736         * lib/open.c (open): If open succeeded, len is non-zero.
6737         * lib/openat.c (rpl_openat): Likewise.
6738
6739         link-follow: ensure correct result
6740         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
6741         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
6742         distinguish between possible failures.
6743
6744 2009-09-21  Eric Blake  <ebb9@byu.net>
6745
6746         fts: avoid compiler warning
6747         * lib/fts.c (dirent_inode_sort_may_be_useful)
6748         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
6749
6750 2009-09-19  Bruno Haible  <bruno@clisp.org>
6751
6752         * lib/progreloc.c (canonicalize_file_name): New declaration.
6753
6754 2009-09-19  Eric Blake  <ebb9@byu.net>
6755
6756         link: fix quoting
6757         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
6758
6759         openat: fix openat bugs on Solaris 9
6760         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
6761         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
6762         * modules/openat (Depends-on): Add open.
6763         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
6764         * modules/fcntl-h (Makefile.am): Substitute it.
6765         * lib/fcntl.in.h (openat): Declare replacement.
6766         * doc/posix-functions/openat.texi (openat): Document this.
6767
6768         openat: move fstatat and unlinkat into correct files
6769         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
6770         compiled.
6771         * lib/openat.c (fstatat, unlinkat): Move...
6772         * lib/fstatat.c (fstatat): ...into correct files.
6773         * lib/unlinkat.c (unlinkat): Likewise.
6774
6775         openat: fix unlinkat bugs on Solaris 9
6776         * lib/unlinkat.c (unlinkat): New file.
6777         * modules/openat (Depends-on): Add unlink.
6778         (Files): Distribute it.
6779         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
6780         trailing slash behavior is broken.
6781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6782         * modules/unistd (Makefile.am): Substitute it.
6783         * lib/unistd.in.h (unlinkat): Declare replacement.
6784         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
6785
6786         openat: fix fstatat bugs on Solaris 9
6787         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
6788         stat.
6789         * doc/posix-functions/fstatat.texi (fstatat): Document this.
6790
6791         test-unlinkat: enhance test, to expose Solaris 9 bug
6792         * tests/test-unlink.c (main): Factor guts...
6793         * tests/test-unlink.h (test_rmdir_func): ...into new file.
6794         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
6795         * tests/test-rmdir.c (main): Adjust caller.
6796         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
6797         (unlinker): New helper function.
6798         (rmdirat): Enhance check.
6799         * modules/rmdir-tests (Depends-on): Add stdbool.
6800         * modules/unlink-tests (Depends-on): Likewise.
6801         (Files): Add test-unlink.h.
6802         * modules/openat-tests (Files): Likewise.
6803         (Depends-on): Add unlinkdir.
6804
6805         test-fstatat: new test, to expose Solaris 9 bugs
6806         * tests/test-stat.c (main): Factor guts...
6807         * tests/test-stat.h (test_stat_func): ...into new file.
6808         * tests/test-lstat.c (main): Factor guts...
6809         * tests/test-lstat.h (test_lstat_func): ...into new file.
6810         * tests/test-fstatat.c: New file.
6811         * modules/stat-tests (Files): Add test-stat.h.
6812         * modules/lstat-tests (Files): Add test-lstat.h.
6813         (Depends-on): Add stdbool.
6814         * modules/openat-tests (Depends-on): Add pathmax.
6815         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
6816         (Makefile.am): Run new test.
6817
6818         remove: new module, for mingw and Solaris 9 bugs
6819         * modules/remove: New file.
6820         * lib/remove.c: Likewise.
6821         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
6822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6823         * modules/stdio (Makefile.am): Use them.
6824         * lib/stdio.in.h (remove): Declare replacement.
6825         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6826         * doc/posix-functions/remove.texi (remove): Likewise.
6827         * modules/remove-tests: New test.
6828         * tests/test-remove.c: Likewise.
6829
6830         unlink: new module, for Solaris 9 bug
6831         * modules/unlink: New file.
6832         * lib/unlink.c: Likewise.
6833         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6835         * modules/unistd (Makefile.am): Use them.
6836         * lib/unistd.in.h (stat): Declare replacement.
6837         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6838         * doc/posix-functions/unlink.texi (unlink): Likewise.
6839         * modules/unlink-tests: New test.
6840         * tests/test-unlink.c: Likewise.
6841
6842         lstat: fix Solaris 9 bug
6843         * lib/lstat.c (lstat): Also check for trailing slash on
6844         non-symlink, non-directories.  Use stat module to simplify logic.
6845         * doc/posix-functions/lstat.texi (lstat): Document it.
6846         * modules/lstat-tests (Depends-on): Add errno, same-inode.
6847         (configure.ac): Check for symlink.
6848         * tests/test-lstat.c (main): Add more tests.
6849
6850         stat: add as dependency to other modules
6851         * modules/chown (Depends-on): Add stat.
6852         * modules/euidaccess (Depends-on): Likewise.
6853         * modules/fchdir (Depends-on): Likewise.
6854         * modules/isdir (Depends-on): Likewise.
6855         * modules/link (Depends-on): Likewise.
6856         * modules/lstat (Depends-on): Likewise.
6857         * modules/mkdir-p (Depends-on): Likewise.
6858         * modules/modechange (Depends-on): Likewise.
6859         * modules/open (Depends-on): Likewise.
6860         * modules/readlink (Depends-on): Likewise.
6861         * modules/same (Depends-on): Likewise.
6862
6863         stat: fix Solaris 9 bug
6864         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
6865         slash.
6866         * lib/stat.c (rpl_stat): Work around it.
6867         * doc/posix-functions/stat.texi (stat): Update documentation.
6868
6869         stat: new module, for mingw bug
6870         * modules/stat: New file.
6871         * lib/stat.c: Likewise.
6872         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6873         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6874         * modules/sys_stat (Makefile.am): Use them.
6875         * lib/sys_stat.in.h (stat): Declare replacement.
6876         * lib/openat.c (fstatat): Deal with lstat and stat being function
6877         macros.
6878         * modules/openat (Depends-on): Add inline.
6879         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6880         * doc/posix-functions/stat.texi (stat): Likewise.
6881         * modules/stat-tests: New test.
6882         * tests/test-stat.c: Likewise.
6883
6884 2009-09-19  Jim Meyering  <meyering@redhat.com>
6885
6886         syntax-check: detect unnecessary inclusion of canonicalize.h
6887         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
6888
6889 2009-09-19  Eric Blake  <ebb9@byu.net>
6890
6891         canonicalize-lgpl: adjust clients to use correct header
6892         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6893         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
6894         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
6895         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
6896         * lib/progreloc.c (includes): Likewise.
6897
6898 2009-09-19  Jim Meyering  <meyering@redhat.com>
6899
6900         test-posixtm.c: correct a comment
6901         * tests/test-posixtm.c: Correct first-line comment.
6902         Spotted by Eric Blake.
6903
6904 2009-09-16  Jim Meyering  <meyering@redhat.com>
6905
6906         posixtm-tests: make T const-correct; add a test case
6907         * tests/test-posixtm.c (T): Declare const.
6908         Add a test for -(2^31+1).
6909         Remove useless can-succeed-only-in-2002 test.
6910
6911         posixtm-tests: adjust the sole failing test
6912         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
6913         expected output matches what mktime now produces.  Cross-checked via
6914         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
6915
6916         posixtm: move #ifdef'd tests into a new module
6917         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
6918         * tests/test-posixtm.c: ... this new file.
6919         * modules/posixtm-tests: New module.
6920
6921 2009-09-19  Eric Blake  <ebb9@byu.net>
6922
6923         openat: simplify use of at-func.c
6924         * lib/at-func.c (includes): Include prerequisites here, to
6925         simplify requirements on client files.
6926         * lib/openat-priv.h: Add double-inclusion guard.
6927         * lib/faccessat.c (includes): Simplify.
6928         * lib/fchmodat.c (includes): Likewise.
6929         * lib/fchownat.c (includes): Likewise.
6930         * lib/mkdirat.c (includes): Likewise.
6931         * lib/mkfifoat.c (includes): Likewise.
6932         * lib/symlinkat.c (includes): Likewise.
6933
6934         openat: allow return of fd 0
6935         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
6936         * modules/save-cwd (Depends-on): Replace fcntl-safer with
6937         unistd-safer.
6938         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
6939         <fcntl.h>; this module does not leak fds.
6940         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
6941         must be allowed to return 0, leaving openat_safer to add the
6942         safety.
6943         (openat_permissive): Avoid writing to just-opened fd 2 if
6944         restoring the current directory fails.
6945         * lib/openat-die.c (openat_restore_fail): Add comment.
6946         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
6947         (save_cwd): Guarantee safe fd, but without use of open_safer.
6948         * tests/test-openat.c: New test.
6949         * modules/openat-tests (Files, Makefile.am): Distribute and build
6950         new file.
6951
6952         relocatable-prog-wrapper: fix build
6953         * modules/relocatable-prog-wrapper (Files): Update name of
6954         canonicalize m4 file, broken on 2009-09-17.
6955         Reported by emad hajjar <aleppos@hotmail.com>.
6956
6957 2009-09-19  Bruno Haible  <bruno@clisp.org>
6958
6959         * lib/safe-alloc.h: Use the standard header with GPL copyright.
6960         * lib/safe-alloc.c: Likewise.
6961         Reported by Ian Beckwith <ianb@erislabs.net>.
6962
6963 2009-09-18  Bruno Haible  <bruno@clisp.org>
6964
6965         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
6966         Reported by <erobles@sensacd.com.mx>.
6967
6968 2009-09-17  Eric Blake  <ebb9@byu.net>
6969
6970         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
6971         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
6972         slashes when checking if last component is missing.
6973         * tests/test-canonicalize.c (main): Test this.
6974
6975         canonicalize, canonicalize-lgpl: honor // if distinct from /
6976         * modules/canonicalize (Files): Add double-slash-root.m4.
6977         * modules/canonicalize-lgpl (Files): Likewise.
6978         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6979         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
6980         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
6981         fallback definition.
6982         (canonicalize_filename_mode): Use it to protect //.
6983         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
6984         (__realpath): Likewise.
6985         * tests/test-canonicalize.c (main): Test this.
6986         * tests/test-canonicalize-lgpl.c (main): Likewise.
6987         * modules/canonicalize-tests (Depends-on): Add same-inode.
6988         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6989
6990         canonicalize-lgpl: fix glibc bug with trailing slash
6991         * m4/canonicalize-lgpl.m4: Move contents...
6992         * m4/canonicalize.m4: ...here.
6993         (gl_CANONICALIZE_LGPL): Factor realpath check...
6994         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
6995         glibc 2.3.5 bug, fixed 2005-04-27.
6996         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
6997         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
6998         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
6999         * modules/canonicalize-lgpl (Files): Manage file rename.
7000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
7001         * modules/stdlib (Makefile.am): Substitute witness.
7002         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
7003         is needed.
7004         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
7005         replacement is required.
7006         * lib/canonicalize.c (canonicalize_file_name): Likewise.
7007         * doc/glibc-functions/canonicalize_file_name.texi
7008         (canonicalize_file_name): Document this.
7009         * doc/posix-functions/realpath.texi (realpath): Likewise.
7010
7011         canonicalize-lgpl: reject non-directory with trailing slash
7012         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
7013         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
7014         catches failures in glibc 2.3.5.
7015         * tests/test-canonicalize.c (main): Likewise.
7016
7017         canonicalize-lgpl: use native realpath if it works
7018         * lib/canonicalize-lgpl.c (realpath): Guard with
7019         FUNC_REALPATH_WORKS.
7020         * lib/stdlib.in.h (realpath): Make declaration optional based on
7021         HAVE_REALPATH.
7022         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
7023         native realpath works.
7024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
7025         * modules/stdlib (Makefile.am): Substitute witness.
7026
7027         canonicalize, canonicalize-lgpl: use <stdlib.h>
7028         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
7029         (Include): Mention <stdlib.h>.
7030         (configure.ac): Mention functions we provide.
7031         * modules/canonicalize (configure.ac): Likewise.
7032         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
7033         realpath if canonicalize_file_name is missing.
7034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
7035         * modules/stdlib (Makefile.am): Substitute witnesses.
7036         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
7037         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
7038         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
7039         * NEWS: Document this.
7040         * doc/glibc-functions/canonicalize_file_name.texi
7041         (canonicalize_file_name): Likewise.
7042         * doc/posix-functions/realpath.texi (realpath): Likewise.
7043         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
7044
7045         test-canonicalize: consolidate into single C program
7046         * tests/test-canonicalize.sh: Delete; move setup into...
7047         * tests/test-canonicalize.c (main): ...the program, making it
7048         easier to run in debugger.  Add some tests.
7049         * modules/canonicalize-tests (Files): Remove unused file.
7050         (Depends-on): Add progname.
7051         (configure.ac, Makefile.am): Simplify.
7052
7053         test-canonicalize-lgpl: consolidate into single C program
7054         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
7055         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
7056         easier to run in debugger.  Add some tests.
7057         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
7058         (configure.ac, Makefile.am): Simplify.
7059
7060         canonicalize: avoid resolvepath
7061         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
7062         unnecessary checks.
7063         * lib/canonicalize.c (includes): Simplify.
7064         (canonicalize_file_name): Drop resolvepath implementation.
7065         * modules/canonicalize (Depends-on): Drop filenamecat.
7066
7067         canonicalize: don't lose errno
7068         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
7069         over calls to free.
7070
7071         canonicalize: simplify errno handling
7072         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
7073         assignment.
7074
7075         canonicalize, canonicalize-lgpl: update module dependencies
7076         * modules/canonicalize (Depends-on): Add extensions, lstat,
7077         pathmax, stdlib.
7078         (Files): Drop pathmax.h.
7079         (configure.ac): Adjust macro name.
7080         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
7081         lstat, stdlib, sys_stat.
7082         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
7083         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
7084         extensions.
7085         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
7086         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
7087         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
7088         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
7089         declaration, if available.
7090         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
7091         we can rely on the readlink module.
7092         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
7093         (includes): Use <unistd.h> unconditionally.
7094
7095 2009-09-17  Eric Blake  <ebb9@byu.net>
7096
7097         maint: make Include sections of modules consistent
7098         * modules/alloca: Use only header name; no need to list #include.
7099         * modules/alloca-opt: Likewise.
7100         * modules/arpa_inet: Likewise.
7101         * modules/canon-host: Likewise.
7102         * modules/configmake: Likewise.
7103         * modules/dirent: Likewise.
7104         * modules/eealloc: Likewise.
7105         * modules/environ: Likewise.
7106         * modules/fchdir: Likewise.
7107         * modules/fcntl: Likewise.
7108         * modules/fcntl-h: Likewise.
7109         * modules/gethrxtime: Likewise.
7110         * modules/gettime: Likewise.
7111         * modules/ignore-value: Likewise.
7112         * modules/inet_ntop: Likewise.
7113         * modules/inet_pton: Likewise.
7114         * modules/inttypes: Likewise.
7115         * modules/isnand-nolibm: Likewise.
7116         * modules/isnanf-nolibm: Likewise.
7117         * modules/mbchar: Likewise.
7118         * modules/mbfile: Likewise.
7119         * modules/mbiter: Likewise.
7120         * modules/mbuiter: Likewise.
7121         * modules/netdb: Likewise.
7122         * modules/netinet_in: Likewise.
7123         * modules/nproc: Likewise.
7124         * modules/pagealign_alloc: Likewise.
7125         * modules/poll: Likewise.
7126         * modules/printf-frexp: Likewise.
7127         * modules/pthread: Likewise.
7128         * modules/putenv: Likewise.
7129         * modules/random_r: Likewise.
7130         * modules/relocatable-prog: Likewise.
7131         * modules/search: Likewise.
7132         * modules/select: Likewise.
7133         * modules/selinux-h: Likewise.
7134         * modules/settime: Likewise.
7135         * modules/signal: Likewise.
7136         * modules/size_max: Likewise.
7137         * modules/socklen: Likewise.
7138         * modules/ssize_t: Likewise.
7139         * modules/stdarg: Likewise.
7140         * modules/stdbool: Likewise.
7141         * modules/stddef: Likewise.
7142         * modules/stdint: Likewise.
7143         * modules/stdio: Likewise.
7144         * modules/stdlib: Likewise.
7145         * modules/string: Likewise.
7146         * modules/strings: Likewise.
7147         * modules/sys_file: Likewise.
7148         * modules/sys_ioctl: Likewise.
7149         * modules/sys_select: Likewise.
7150         * modules/sys_socket: Likewise.
7151         * modules/sys_stat: Likewise.
7152         * modules/sys_time: Likewise.
7153         * modules/sys_times: Likewise.
7154         * modules/sys_utsname: Likewise.
7155         * modules/sys_wait: Likewise.
7156         * modules/sysexits: Likewise.
7157         * modules/time: Likewise.
7158         * modules/times: Likewise.
7159         * modules/tmpfile: Likewise.
7160         * modules/trim: Likewise.
7161         * modules/unistd: Likewise.
7162         * modules/wchar: Likewise.
7163         * modules/wctype: Likewise.
7164
7165 2009-09-17  Bruno Haible  <bruno@clisp.org>
7166
7167         Make getdate.y compile on QNX and NetBSD 5 / i386.
7168         * m4/getdate.m4 (gl_GETDATE): Conditionally define
7169         TIME_T_FITS_IN_LONG_INT.
7170         * lib/getdate.y (long_time_t): New type.
7171         (relative_time): Change type of 'seconds' field to long_time_t.
7172         (get_date): Update types of local variables. Check against overflow
7173         during conversion from long_time_t to time_t.
7174         Reported by Matt Kraai <kraai@ftbfs.org>
7175         and Hasso Tepper <hasso@netbsd.org>.
7176
7177 2009-09-17  Bruno Haible  <bruno@clisp.org>
7178
7179         * modules/COPYING: Update copyright years.
7180         * modules/README: Likeiwse.
7181         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
7182         Reported by Ian Beckwith <ianb@erislabs.net>.
7183
7184 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
7185
7186         * users.txt: Update references for gnuit package.
7187
7188 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
7189
7190         * m4/getdelim.m4: Fix typo in copyright line.
7191
7192 2009-09-17  Bruno Haible  <bruno@clisp.org>
7193
7194         * lib/atoll.c: Use the standard header with GPL copyright.
7195         * lib/argz.in.h: Likewise.
7196         * lib/glob.c: Likewise.
7197         * lib/glob-libc.h: Likewise.
7198         * lib/random_r.c: Likewise.
7199         * lib/siglist.h: Likewise.
7200         * lib/strsignal.c: Likewise.
7201         Reported by Ian Beckwith <ianb@erislabs.net>.
7202
7203 2009-09-17  Eric Blake  <ebb9@byu.net>
7204
7205         rmdir: ensure correct dependency order
7206         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
7207
7208 2009-09-17  Bruno Haible  <bruno@clisp.org>
7209
7210         Disable assertion that fails on NetBSD 5 / i386.
7211         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
7212         Reported by Sam Steingold <sds@gnu.org>
7213         and Hasso Tepper <hasso@netbsd.org>.
7214
7215 2009-09-16  Eric Blake  <ebb9@byu.net>
7216
7217         unlinkdir: port to mingw
7218         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
7219         on which no one can unlink a directory.
7220
7221         stdlib: sort witness names
7222         * modules/stdlib (Makefile.am): Sort replacements.
7223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
7224         * lib/stdlib.in.h: Likewise.
7225
7226         parse-duration-tests: avoid link failure
7227         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
7228         LIBINTL.
7229         Reported by Tom G. Christensen.
7230
7231         openat-tests: ensure unlinkat behaves like rmdir
7232         * tests/test-rmdir.c (main): Factor guts...
7233         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
7234         * modules/rmdir-tests (Files): Ship new file.
7235         * modules/openat-tests: New test.
7236         * tests/test-unlinkat.c: Likewise.
7237
7238         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
7239         * modules/rmdir-errno (Status, Notice): Now obsolete.
7240
7241         rmdir: work around cygwin 1.5.x and mingw bugs
7242         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
7243         * lib/rmdir.c (rmdir): Work around it.
7244         * modules/rmdir (Status, Notice): No longer obsolete.
7245         (Files): Add dos.m4.
7246         (Depends-on): Add unistd.
7247         (configure.ac): Set witnesses.
7248         (License): Relax to LGPLv2+.
7249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
7250         * modules/unistd (Makefile.am): Substitute witnesses.
7251         * lib/unistd.in.h (rmdir): Declare replacement.
7252         * doc/posix-functions/rmdir.texi (rmdir): Document this.
7253         * modules/rmdir-tests: New tests.
7254         * tests/test-rmdir.c: Likewise.
7255
7256 2009-09-15  Eric Blake  <ebb9@byu.net>
7257
7258         fchdir: improve use of replacement functions
7259         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
7260         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
7261         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
7262         REPLACE_CLOSEDIR.
7263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
7264         * modules/sys_stat (Makefile.am): Substitute correct witness.
7265         * modules/dirent (Makefile.am): Likewise.
7266         * modules/unistd (Makefile.am): Likewise.
7267         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
7268         * lib/unistd.in.h (dup): Likewise.
7269         * lib/sys_stat.in.h (fstat): Likewise.
7270
7271         maint: ignore gnulib-tool temp files
7272         * .gitignore: Ignore files created during gnulib-tool --test.
7273
7274 2009-09-13  Jim Meyering  <meyering@redhat.com>
7275
7276         posixtm: don't reject a time that specify "60" as the number of seconds
7277         * lib/posixtm.c (posixtime): The code to reject invalid dates
7278         would also reject a time specified with the .60 suffix.
7279         But POSIX allows that, in order to accommodate leap seconds.
7280         So don't reject it.
7281         (main): Adjust tests accordingly.
7282         * modules/posixtm (Depends-on): Add stpcpy.
7283
7284 2009-09-11  Jim Meyering  <meyering@redhat.com>
7285
7286         announce-gen: include [$release_type] in emitted Subject:
7287         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
7288         e.g., [stable] in the emitted Subject: line.
7289
7290 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7291
7292         Remove obsolete macros from several modules.
7293         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
7294         obsolete Autoconf macros with their modern counterparts.
7295         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
7296         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
7297         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
7298         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
7299         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
7300         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7302         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7303         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7304         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
7305         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7306         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7307         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
7308         * m4/sockets.m4 (gl_SOCKETS): Likewise.
7309         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
7310         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
7311         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
7312         * m4/time_r.m4 (gl_TIME_R): Likewise.
7313         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7314         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
7315         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7316
7317         Fix copyright header in build-aux scripts.
7318         * build-aux/git-version-gen: Fix copyright header to match GPLv3
7319         recommendation.
7320         * build-aux/ncftpput-ftp: Likewise.
7321         * build-aux/update-copyright: Likewise.
7322
7323 2009-09-09  Eric Blake  <ebb9@byu.net>
7324
7325         test-link: allow Linux choice of errno
7326         * tests/test-link.c (main): Relax test for alternate error.
7327
7328         strndup: fix improper m4 caching
7329         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
7330         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
7331         (gl_PREREQ_STRNDUP): Delete.
7332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
7333         * modules/string (Makefile.am): Substitute it.
7334         * lib/string.in.h (strndup): Modernize prototype.
7335
7336         getcwd: port to mingw
7337         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
7338         different from the POSIX assumptions made throughout the getcwd
7339         module; fortunately, the mingw getcwd does not need replacement.
7340         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
7341         * modules/getcwd-tests: New test.
7342         * tests/test-getcwd.c: Likewise.
7343
7344         link: fix platform bugs
7345         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
7346         * lib/link.c (link): Work around them.  Fix related mingw bug.
7347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
7348         * modules/unistd (Makefile.am): Substitute it.
7349         * lib/unistd.in.h (link): Declare replacement.
7350         * doc/posix-functions/link.texi (link): Document this.
7351         * modules/link (Depends-on): Add strdup-posix, sys_stat.
7352
7353         test-link: consolidate into single C program, test more cases
7354         * tests/test-link.sh: Delete.
7355         * tests/test-link.c: Test more error conditions.  Exposes bugs on
7356         at least Cygwin and Solaris.
7357         * modules/link-tests (Files): Remove unused file.
7358         (Depends-on): Add errno, sys_stat.
7359         (Makefile.am): Simplify.
7360
7361 2009-09-08  Bruno Haible  <bruno@clisp.org>
7362
7363         Work around towlower, towupper bug on mingw.
7364         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
7365         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
7366         * doc/posix-functions/towlower.texi: Mention the mingw bug.
7367         * doc/posix-functions/towupper.texi: Likewise.
7368         Reported by Eric Blake.
7369
7370 2009-09-08  Jim Meyering  <meyering@redhat.com>
7371
7372         build: don't try to run autoheader if we don't use it
7373         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
7374         is not used in configure.ac.
7375
7376 2009-09-08  Eric Blake  <ebb9@byu.net>
7377
7378         euidaccess: fix compilation error
7379         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
7380
7381         rawmemchr: relax license
7382         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
7383         okay.
7384         Reported by Jim Meyering.
7385
7386         mkfifoat: new module
7387         * modules/mkfifoat: New file.
7388         * lib/mkfifoat.c: Likewise.
7389         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
7390         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7391         * modules/sys_stat (Makefile.am): Use them.
7392         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
7393         * MODULES.html.sh (File system functions): Mention module.
7394         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7395         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7396         * modules/mkfifoat-tests: New test.
7397         * tests/test-mkfifoat.c: Likewise.
7398
7399         strchrnul: relax license
7400         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
7401         okay.
7402         Reported by Jim Meyering.
7403
7404 2009-09-08  Eric Blake  <ebb9@byu.net>
7405
7406         fstatat: fix compilation on Solaris
7407         * lib/fstatat.c (includes): Add fcntl.h.
7408         Reported by Pádraig Brady.
7409
7410 2009-09-07  Eric Blake  <ebb9@byu.net>
7411
7412         rename: modernize replacement
7413         * modules/rename (Depends-on): Add stdio.
7414         (configure.ac): Declare witness.
7415         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
7416         stdio take care of replacement.
7417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
7418         * modules/stdio (Makefile.am): Substitute them.
7419         * lib/stdio.in.h (rename): Declare replacement.
7420         * lib/rename.c (includes): Allow cross-compilation to non-windows
7421         machines.
7422         * doc/posix-functions/rename.texi (rename): Improve
7423         documentation.
7424
7425         stdio: sort witness names
7426         * modules/stdio (Makefile.am): Sort replacements.
7427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7428         * lib/stdio.in.h: Likewise.
7429
7430         getcwd: minor cleanups
7431         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
7432         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
7433
7434         openat: provide more convenience names
7435         * modules/faccessat (configure.ac): Add C witness.
7436         * lib/unistd.in.h (readlinkat): Fix typo.
7437         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
7438         convenience wrappers.
7439         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
7440         wrappers in syntax checks.
7441
7442 2009-09-06  Eric Blake  <ebb9@byu.net>
7443
7444         doc: fix comments in recent patches
7445         * lib/faccessat.c: Mention correct function.
7446         * lib/fchmodat.c: Likewise.
7447         * lib/fchownat.c: Likewise.
7448         * lib/symlinkat.c: Likewise.
7449         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
7450         constants.
7451
7452         faccessat, symlinkat: continue cleanup of previous patch
7453         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
7454         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7455         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
7456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
7457         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
7458         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
7459         set.
7460
7461 2009-09-06  Bruno Haible  <bruno@clisp.org>
7462
7463         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
7464         (fstatat): Declare if GNULIB_FSTATAT is set.
7465         (mkdirat): Declare if GNULIB_MKDIRAT is set.
7466         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
7467         (unlinkat): Declare if GNULIB_UNLINKAT is set.
7468         * modules/fcntl-h (Files): Remove m4/openat.m4.
7469         * modules/sys_stat (Files): Remove m4/openat.m4.
7470         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
7471         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
7472         * modules/unistd (Files): Remove m4/openat.m4.
7473         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
7474         GNULIB_OPENAT.
7475         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
7476         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
7477         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7478         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
7479         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
7480         gl_OPENAT_DEFAULTS.
7481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
7482         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
7483         Don't require gl_OPENAT_DEFAULTS.
7484         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
7485         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
7486         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
7487         (gl_OPENAT_DEFAULTS): Remove macro.
7488
7489 2009-09-06  Bruno Haible  <bruno@clisp.org>
7490
7491         * modules/openat (configure.ac): Remove unneeded witness.
7492
7493 2009-09-06  Bruno Haible  <bruno@clisp.org>
7494
7495         Set errno to ENOSYS when a function is entirely unsupported.
7496         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
7497         EOPNOTSUPP.
7498         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7499         * modules/chown (Depends-on): Remove errno.
7500
7501 2009-09-06  Bruno Haible  <bruno@clisp.org>
7502
7503         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
7504
7505 2009-09-06  Bruno Haible  <bruno@clisp.org>
7506
7507         * lib/sys_stat.in.h: Fix preprocessor command indentation.
7508
7509 2009-09-06  Ben Pfaff  <blp@gnu.org>
7510             Bruno Haible  <bruno@clisp.org>
7511
7512         Work around a glibc bug in strtok_r.
7513         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
7514         Undefine if UNDEFINE_STRTOK_R is set.
7515         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
7516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7517         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
7518         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
7519         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
7520         UNDEFINE_STRTOK_R.
7521         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
7522
7523 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
7524
7525         exclude: minor fix
7526         * lib/exclude.c: Include wctype.h
7527
7528 2009-09-06  Akim Demaille  <demaille@gostai.com>
7529
7530         bootstrap: improve error message
7531         * build-aux/bootstrap (find_tool): Upon failure, report the list
7532         of candidates.
7533         Honor the initial value of the envvar.
7534
7535 2009-09-05  Eric Blake  <ebb9@byu.net>
7536
7537         symlinkat: new module
7538         * modules/symlinkat: New file.
7539         * lib/symlinkat.c: Likewise.
7540         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
7541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7542         * modules/unistd (Makefile.am): Use them.
7543         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
7544         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
7545         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
7546         * MODULES.html.sh (File system functions): Mention module.
7547         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7548         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7549         * modules/symlinkat-tests: New test.
7550         * tests/test-symlinkat.c: Likewise.
7551
7552         test-openat-safer: add more checks
7553         * tests/test-openat-safer.c (main): Check more code paths.
7554
7555 2009-09-05  Jim Meyering  <meyering@redhat.com>
7556
7557         syntax-check: detect unnecessary inclusion of openat.h
7558         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
7559
7560 2009-09-05  Bruno Haible  <bruno@clisp.org>
7561
7562         Support towlower, towupper.
7563         * doc/posix-functions/towlower.texi: Mention module wctype.
7564         * doc/posix-functions/towupper.texi: Likewise.
7565         * lib/wctype.in.h (towlower, towupper): New functions.
7566         * tests/test-wctype.c: Include stdio.h, stdlib.h.
7567         (ASSERT): New macro.
7568         (e): New variable.
7569         (main): Test also towlower, towupper. Test WEOF argument.
7570         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
7571
7572 2009-09-05  Bruno Haible  <bruno@clisp.org>
7573
7574         Fix conversion behaviour when the input is invalid.
7575         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
7576         mark occurring in first pass of indirect conversion.
7577         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
7578         input.
7579         Found by clang's static analyzer.
7580
7581 2009-09-05  Bruno Haible  <bruno@clisp.org>
7582
7583         * tests/test-striconveh.c (main): Test indirect conversion on platforms
7584         where direct conversion is possible.
7585
7586 2009-09-04  Eric Blake  <ebb9@byu.net>
7587
7588         openat: fail with ENOENT on empty name
7589         * lib/openat-proc.c (openat_proc_name): Special-case the empty
7590         buffer.
7591
7592         link-follow: fix logic bug in prior patch
7593         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
7594         reversed sense of yes and no in prior patch.  Avoid confusing
7595         compilation failure with desired semantics.
7596
7597         link-follow: accomodate mingw and cross-compilation
7598         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
7599         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
7600         cross-compilation results to -1, to make linkat easier to
7601         implement when cross-compiling.  Trivially support mingw.
7602         * modules/link-follow (configure.ac): Call new name.
7603         * NEWS: Mention this.
7604
7605 2009-09-03  Eric Blake  <ebb9@byu.net>
7606
7607         faccessat: compile replacement
7608         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
7609         needed.
7610
7611         fts: fix compilation error
7612         * lib/fts.c (includes): Re-add "openat.h", for
7613         openat_needs_fchdir.
7614
7615         faccessat: new module
7616         * modules/faccessat: New file.
7617         * lib/faccessat.c: Likewise.
7618         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7620         * modules/unistd (Makefile.am): Use it.
7621         * lib/unistd.in.h (faccessat): Declare it.
7622         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
7623         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
7624         * MODULES.html.sh (File system functions): Mention it.
7625         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
7626         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7627
7628         euidaccess: prefer POSIX over non-standard implementation
7629         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
7630         * lib/euidaccess.c (euidaccess): Use it if available.
7631
7632         openat: make template easier to use
7633         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
7634         AT_FUNC_F2 to be undefined.
7635         (VALIDATE_FLAG): New macro; use it to reject bad flags.
7636         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
7637         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
7638         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
7639         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
7640         Likewise.
7641         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
7642         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
7643         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
7644         Likewise.
7645
7646         openat: declare in POSIX headers
7647         * NEWS: Mention this.
7648         * modules/openat (configure.ac): Declare witnesses.
7649         (Depends-on): Add fcntl-h, sys_stat, unistd.
7650         (Include): Mention correct headers.
7651         * modules/fcntl-h (Depends-on): Add link-warning.
7652         (Files): Add openat.m4.
7653         (Makefile.am): Substitute witnesses.
7654         * modules/sys_stat (Files, Makefile.am): Likewise.
7655         * modules/unistd (Files, Makefile.am): Likewise.
7656         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
7657         (gl_OPENAT_DEFAULTS): New macro.
7658         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
7659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
7660         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
7661         (SYS_STAT_H): Remove unused variable.
7662         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
7663         * lib/fcntl--.h (includes): Remove unneeded header.
7664         * lib/openat-safer.c (includes): Likewise.
7665         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
7666         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
7667         appropriate headers.
7668         (__OPENAT_PREFIX): Delete.
7669         * lib/fcntl.in.h (openat): Provide declaration.
7670         (AT_FDCWD): Fix Solaris bug.
7671         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
7672         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
7673         * lib/fchmodat.c (includes):  Adjust to find declaration.
7674         * lib/fchownat.c (includes): Likewise.
7675         * lib/mkdirat.c (includes): Likewise.
7676         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
7677         still visible.
7678
7679 2009-09-02  Eric Blake  <ebb9@byu.net>
7680
7681         errno: use consistently
7682         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
7683         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
7684         * lib/canonicalize.c (ELOOP): Likewise.
7685         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
7686         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
7687         * lib/lchown.c (EOPNOTSUPP): Likewise.
7688         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
7689         * lib/savewd.c (ESTALE): Likewise.
7690         * lib/settime.c (ENOSYS): Likewise.
7691         * lib/utimens.c (ENOSYS): Likewise.
7692         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
7693         * lib/chdir-safer.c (ELOOP): Likewise.
7694         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
7695         * modules/c-stack (Depends-on): Add errno.
7696         * modules/canonicalize (Depends-on): Likewise.
7697         * modules/chdir-safer (Depends-on): Likewise.
7698         * modules/fdopendir (Depends-on): Likewise.
7699         * modules/inet_ntop (Depends-on): Likewise.
7700         * modules/inet_pton (Depends-on): Likewise.
7701         * modules/lchown (Depends-on): Likewise.
7702         * modules/openat (Depends-on): Likewise.
7703         * modules/savewd (Depends-on): Likewise.
7704         * modules/settime (Depends-on): Likewise.
7705         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
7706
7707         fts: avoid leaking fds
7708         * modules/fts (Depends-on): Add cloexec.
7709         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
7710         flag.
7711
7712         fts: make directory fds more robust
7713         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
7714         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
7715
7716         backupfile, chdir-long, fts, savedir: make safer
7717         * lib/backupfile.c (includes): Use "dirent--.h", since
7718         numbered_backup can write to stderr during readdir.
7719         * lib/savedir.c (includes): Likewise.
7720         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
7721         emulation can write to stderr on failure.
7722         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
7723         * lib/getcwd.c: Document why opendir_safer is unused.
7724         * lib/glob.c: Likewise.
7725         * lib/scandir.c: Likewise.
7726         * lib/openat-proc.c: Likewise, for open_safer.
7727         * modules/backupfile (Depends-on): Add dirent-safer.
7728         * modules/savedir (Depends-on): Likewise.
7729         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
7730         * modules/chdir-long (Depends-on): Add openat-safer.
7731
7732         openat-safer: new module
7733         * modules/openat-safer: New file.
7734         * lib/openat-safer.c: Likewise.
7735         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
7736         * lib/fcntl-safer.h (openat_safer): Declare.
7737         * lib/fcntl--.h (openat): Override.
7738         * MODULES.html.sh (File descriptor based I/O): Mention it.
7739         * lib/openat.h: Add double-inclusion guards.
7740         * lib/openat.c (includes): Only include "fcntl-safer.h", not
7741         "fcntl--.h", so we can implement openat.
7742         * modules/openat-safer-tests: New test.
7743         * tests/test-openat-safer.c: New file.
7744
7745         dirent-safer: new module
7746         * modules/dirent-safer: New file.
7747         * lib/dirent--.h: Likewise.
7748         * lib/dirent-safer.h: Likewise.
7749         * lib/opendir-safer.c: Likewise.
7750         * m4/dirent-safer.m4: Likewise.
7751         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
7752         * modules/dirent-safer-tests: New test.
7753         * tests/test-dirent-safer.c: New file.
7754         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
7755
7756         fdopendir: optimize on mingw
7757         * lib/unistd.in.h (_gl_directory_name): New prototype.
7758         * lib/fchdir.c (_gl_directory_name): Implement it.
7759         (fchdir): Use it to simplify implementation.
7760         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
7761         fchdir, when available, to avoid calling [f]chdir().
7762
7763         fdopendir: split into its own module
7764         * lib/openat.c (fdopendir): Move...
7765         * lib/fdopendir.c: ...into new file.
7766         * modules/fdopendir: New module.
7767         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
7768         * modules/openat (Depends-on): Add fdopendir.
7769         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
7770         fdopendir here.
7771         * modules/savedir (Depends-on): Only need fdopendir, not full
7772         openat.
7773         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
7774         * lib/openat.h (fdopendir): Drop prototype.
7775         * lib/dirent.in.h (fdopendir): Provide prototype.
7776         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
7777         * modules/dirent (Makefile.am): Substitute them.
7778         * MODULES.html.sh (File system functions): Mention it.
7779         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
7780         * modules/fdopendir-tests: New file.
7781         * tests/test-fdopendir.c: Likewise.
7782
7783         fchdir: use more consistent macro convention
7784         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
7785         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
7786         REPLACE_FCHDIR, rather than relying on config.h macros.
7787         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
7788         inside a single make-time REPLACE_FCHDIR block, rather than using
7789         the config.h FCHDIR_REPLACEMENT.
7790         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
7791         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
7792         Manage fstat replacement.
7793         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
7794         REPLACE_FCHDIR.
7795         * modules/sys_stat (Files): Add m4/unistd_h.m4.
7796         (Makefile.am): Substitute REPLACE_FCHDIR.
7797         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
7798         FCHDIR_REPLACEMENT.
7799         * lib/dup-safer.c (dup_safer): Likewise.
7800         * lib/dup2.c (rpl_dup2): Likewise.
7801         * lib/dup3.c (rpl_dup3): Likewise.
7802         * lib/open.c (rpl_open): Likewise.
7803
7804         fchdir: simplify error handling, and support dup3
7805         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
7806         stdbool, malloc-posix, realloc-posix.
7807         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
7808         (ensure_dirs_slot): Return false on allocation failure.
7809         (rpl_dup2): Delete.
7810         (_gl_register_dup): New function.
7811         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
7812         (_gl_register_fd): Close fd on allocation failure.
7813         * lib/fcntl.in.h (_gl_register_fd): Update signature.
7814         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
7815         prototype.
7816         (rpl_dup2_fchdir): Delete prototype.
7817         * lib/open.c (open): Update caller.
7818         * lib/dup2.c (dup2): Track fchdir metadata.
7819         * lib/dup3.c (dup3): Likewise.
7820         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
7821         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
7822
7823 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7824
7825         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
7826         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
7827         don't pass arguments to AC_OUTPUT.
7828
7829 2009-09-02  Bruno Haible  <bruno@clisp.org>
7830
7831         * modules/mkdtemp (License): Relicense under LGPLv2+.
7832         Reported by Paolo Bonzini.
7833
7834 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7835
7836         Replace uses of obsolete autoconf macros in Jim's modules.
7837         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
7838         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
7839         can evoke a warning from autoconf when run with -Wobsolete
7840         enabled.  They were declared obsolete for good reasons (see
7841         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
7842         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
7843         should not continue using the deprecated macros.
7844         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
7845         obsolete Autoconf macros with modern counterparts.
7846         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7847         * m4/dos.m4 (gl_AC_DOS): Likewise.
7848         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
7849         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7850         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
7851         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
7852         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
7853         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
7854         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
7855         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
7856         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
7857         Likewise.
7858         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7859         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7860         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
7861         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
7862         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7863         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
7864
7865 2009-09-01  Eric Blake  <ebb9@byu.net>
7866
7867         fchdir: fix off-by-one bug in previous patch
7868         * lib/fchdir.c (rpl_fstat): Use correct bounds.
7869         (_gl_unregister_fd): Delete useless if.
7870
7871 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
7872
7873         maint.mk: sort the list of syntax-check rules
7874         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
7875         easier to get a sense of progress when the rules are run sequentially
7876         and take a long time.
7877
7878 2009-09-01  Simon Josefsson  <simon@josefsson.org>
7879
7880         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
7881         * modules/netinet_in: Likewise.
7882         * modules/sys_file: Likewise.
7883         * modules/sys_ioctl: Likewise.
7884         * modules/sys_select: Likewise.
7885         * modules/sys_socket: Likewise.
7886         * modules/sys_stat: Likewise.
7887         * modules/sys_time: Likewise.
7888         * modules/sys_times: Likewise.
7889         * modules/sys_utsname: Likewise.
7890         * modules/sys_wait: Likewise.
7891
7892 2009-09-01  Jim Meyering  <meyering@redhat.com>
7893
7894         fts: help ensure that return values are not ignored
7895         * lib/fts_.h (__GNUC_PREREQ): Define.
7896         (__attribute_warn_unused_result__): Define.
7897         (fts_children, fts_close, fts_open, fts_read): Declare with
7898         __attribute_warn_unused_result__.
7899
7900         fts: fts_close now fails also when closing a dir file descriptor fails
7901         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
7902         and propagate to caller, along with errno.
7903
7904         announce-gen: correct formatting in --help output
7905         * build-aux/announce-gen (usage): Move the one-line description in
7906         --help output "up", to where it belongs, just after Usage:.
7907
7908 2009-08-31  Eric Blake  <ebb9@byu.net>
7909
7910         fchdir: port to mingw
7911         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
7912         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
7913         opened, then use a substitute.
7914         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
7915         replacement.
7916         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
7917         (_gl_register_fd): No need to check stat if open already filters
7918         all directories.
7919         (fchdir): Fix error condition to match POSIX.
7920         * modules/fchdir (Depends-on): Add sys_stat.
7921         * doc/posix-functions/open.texi (open): Document the limitation.
7922         * modules/fchdir-tests: New file.
7923         * tests/test-fchdir.c: Likewise.
7924
7925         canonicalize: allow cross-testing from cygwin to mingw
7926         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
7927         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
7928         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
7929         Likewise.
7930         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
7931         target does not support symlinks.
7932         * tests/test-canonicalize-lgpl.sh: Likewise.
7933
7934         chown: avoid compilation warning on mingw
7935         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
7936         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
7937         mingw.
7938         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7939         * modules/chown (Depends-on): Add errno.
7940
7941 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7942
7943         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
7944         command.
7945
7946 2009-08-31  Jim Meyering  <meyering@redhat.com>
7947
7948         canonicalize: remove useless initialization
7949         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
7950         initialization of local, "end".
7951
7952 2009-08-30  Bruno Haible  <bruno@clisp.org>
7953
7954         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
7955         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
7956         ENOSYS.
7957
7958 2009-08-30  Bruno Haible  <bruno@clisp.org>
7959
7960         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
7961         /usr/xpg4/bin/tr when it exists.
7962         * tests/test-pipe-filter-gi1.sh: Likewise.
7963
7964 2009-08-30  Bruno Haible  <bruno@clisp.org>
7965
7966         Work around deficient /usr/bin/id program on Solaris.
7967         * tests/test-file-has-acl.sh (ID): New variable.
7968         * tests/test-set-mode-acl.sh (ID): Likewise.
7969         * tests/test-copy-acl.sh (ID): Likewise.
7970         * tests/test-copy-file.sh (ID): Likewise.
7971
7972 2009-08-30  Bruno Haible  <bruno@clisp.org>
7973
7974         New module 'xstriconveh'.
7975         * lib/xstriconveh.h: New file.
7976         * lib/xstriconveh.c: New file.
7977         * modules/xstriconveh: New file.
7978
7979 2009-08-30  Bruno Haible  <bruno@clisp.org>
7980
7981         Make it easier to use mem_cd_iconveh.
7982         * lib/striconveh.h (iconveh_t): New type.
7983         (iconveh_open, iconveh_close): New declarations.
7984         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7985         with a single 'const iconveh_t *' argument.
7986         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
7987         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7988         with a single 'const iconveh_t *' argument.
7989         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
7990         * tests/test-striconveh.c (main): Update.
7991         * NEWS: Mention the change.
7992
7993 2009-08-30  Bruno Haible  <bruno@clisp.org>
7994
7995         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
7996         problem.
7997
7998 2009-08-30  Bruno Haible  <bruno@clisp.org>
7999
8000         Work around iconv_open problem on Solaris.
8001         * lib/iconv_open-solaris.gperf: New file.
8002         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
8003         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
8004         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
8005         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
8006         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
8007         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
8008
8009 2009-08-29  Jim Meyering  <meyering@redhat.com>
8010
8011         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
8012         * top/maint.mk (cvs-check): Remove target; it was just an alias
8013         to the better-named vc-diff-check.
8014         (maintainer-distcheck): Remove rule.  It was used only from
8015         the (alpha/beta/major) target, and all of its commands but one
8016         were coreutils-specific.
8017         (vc-dist): Remove rule.
8018         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
8019         Run vc-diff-check, not vc-dist.
8020         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
8021
8022 2009-08-27  Bruno Haible  <bruno@clisp.org>
8023
8024         * tests/test-bitrotate.c (main): Remove test that uses a shift count
8025         of 0.
8026
8027 2009-08-27  Bruno Haible  <bruno@clisp.org>
8028
8029         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
8030         compilers.
8031         * doc/func.texi: Document the SunPRO C bug.
8032
8033 2009-08-27  Bruno Haible  <bruno@clisp.org>
8034
8035         Fix link error on Solaris.
8036         * tests/test-parse-duration.c (xstrdup): Remove function.
8037
8038 2009-08-26  Pádraig Brady  <P@draigbrady.com>
8039
8040         ignore-value: handle pointer types, too
8041         * lib/ignore-value.h (__attribute__): Remove definition.
8042         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
8043         of a more concise and more-often effective "(void) i" statement.
8044         (ignore_ptr): New function to suppress warnings from functions that
8045         return pointers, and to make it explicit that one function doesn't
8046         handle all cases.
8047
8048 2009-08-25  Bruno Haible  <bruno@clisp.org>
8049
8050         dup2: work around a Linux bug.
8051         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
8052         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
8053         * doc/posix-functions/dup2.texi: Mention the Linux bug.
8054         Reported by Simon Josefsson.
8055
8056 2009-08-25  Jim Meyering  <meyering@redhat.com>
8057
8058         libguestfs uses gnulib
8059         * users.txt: Add libguestfs.
8060
8061 2009-08-24  Eric Blake  <ebb9@byu.net>
8062
8063         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
8064         * lib/pipe2.c (includes): Add binary-io.h.
8065         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
8066
8067 2009-08-24  Bruno Haible  <bruno@clisp.org>
8068
8069         Tolerate declared but missing accept4 syscall.
8070         * lib/accept4.c (accept4): Invoke original accept4 function first, if
8071         available.
8072         * lib/sys_socket.in.h (accept4): If the function is already present,
8073         override it.
8074         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
8075         * modules/accept4 (Makefile.am): Compile accept4.c always.
8076         Reported by Paolo Bonzini and Eric Blake.
8077
8078 2009-08-23  Bruno Haible  <bruno@clisp.org>
8079
8080         New module 'accept4'.
8081         * lib/sys_socket.in.h (accept4): New declaration.
8082         * lib/accept4.c: New file.
8083         * m4/accept4.m4: New file.
8084         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8085         GNULIB_ACCEPT4, HAVE_ACCEPT4.
8086         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
8087         HAVE_ACCEPT4.
8088         * modules/accept4: New file.
8089         * doc/glibc-functions/accept4.texi: Mention the new module.
8090
8091 2009-08-24  Jim Meyering  <meyering@redhat.com>
8092
8093         progname: also set global program_invocation_name, when possible
8094         Before this change, a libtool-enabled program that calls glibc's
8095         error function would report the program name as
8096         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
8097         * modules/progname (configure.ac): Check for a declaration of
8098         program_invocation_name.
8099         * lib/progname.c:  Include <errno.h>.
8100         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
8101         Set program_invocation_name.
8102
8103 2009-08-23  Bruno Haible  <bruno@clisp.org>
8104
8105         * lib/dup3.c: Include <string.h>.
8106
8107 2009-08-23  Bruno Haible  <bruno@clisp.org>
8108
8109         * lib/dup3.c (dup3): Test only once whether the system actually exists.
8110         * lib/pipe2.c (pipe2): Likewise.
8111         Suggested by Eric Blake.
8112
8113 2009-08-23  Bruno Haible  <bruno@clisp.org>
8114
8115         Tolerate declared but missing dup3 syscall.
8116         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
8117         * lib/unistd.in.h (dup3): If the function is already present,
8118         override it.
8119         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
8120         * modules/dup3 (Makefile.am): Compile dup3.c always.
8121         Reported by Paolo Bonzini.
8122
8123 2009-08-23  Bruno Haible  <bruno@clisp.org>
8124
8125         Tolerate declared but missing pipe2 syscall.
8126         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
8127         available.
8128         * lib/unistd.in.h (pipe2): If the function is already present,
8129         override it.
8130         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
8131         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
8132         Reported by Paolo Bonzini.
8133
8134 2009-08-23  Bruno Haible  <bruno@clisp.org>
8135
8136         * lib/pipe2.c (pipe2): Move #ifs inside function.
8137
8138 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
8139
8140         quotearg: document limitations of quote_these_too
8141         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
8142         those limitations are created.
8143         * lib/quotearg.h (set_char_quoting): Document that digits and
8144         letters that are special after backslash are not permitted.
8145         (quotearg_char): Cross-reference set_char_quoting documentation.
8146
8147 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
8148
8149         quotearg: implement custom_quoting_style
8150         * lib/quotearg.c: (struct quoting_options): Add left_quote and
8151         right_quote fields.
8152         (set_custom_quoting): New public function.
8153         (quotearg_buffer_restyled): Add left_quote and right_quote
8154         arguments, handle them very much like locale quoting, and update
8155         all uses.
8156         (quotearg_n_custom): New public function.
8157         (quotearg_n_custom_mem): New public function.
8158         (quotearg_custom): New public function.
8159         (quotearg_custom_mem): New public function.
8160         * lib/quotearg.h: Prototype and document new public functions.
8161         (enum quoting_style): For escape_quoting_style and
8162         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
8163         ignored even though they're otherwise like c_quoting_style.
8164         Add custom_quoting_style member and document with comparison to
8165         clocale_quoting_style.
8166         * tests/test-quotearg.c (custom_quotes): New array.
8167         (custom_results): New array.
8168         (main): Extend to test custom quoting.
8169
8170 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
8171
8172         quotearg: fix right quote escaping when it's in quote_these_too
8173         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
8174         quote, be sure to prepend only one backslash.
8175         * tests/test-quotearg.c (use_quote_double_quotes): New function.
8176         (main): Test it.
8177
8178 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
8179
8180         quotearg-tests: test escaping of embedded locale quotes
8181         * tests/test-quotearg.c (struct result_strings): Add member for
8182         new input.
8183         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
8184         (inputs): Add new input.
8185         (results_g): Add expected results.
8186         (flag_results): Likewise.
8187         (locale_results): Likewise.
8188         (compare_strings): Check those.
8189
8190 2009-08-23  Bruno Haible  <bruno@clisp.org>
8191
8192         Tests for module 'dup3'.
8193         * modules/dup3-tests: New file.
8194         * tests/test-dup3.c: New file.
8195
8196         New module 'dup3'.
8197         * lib/unistd.in.h (dup3): New declaration.
8198         * lib/dup3.c: New file.
8199         * m4/dup3.m4: New file.
8200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
8201         HAVE_DUP3.
8202         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
8203         * modules/dup3: New file.
8204         * doc/glibc-functions/dup3.texi: Mention the new module.
8205
8206 2009-08-23  Bruno Haible  <bruno@clisp.org>
8207
8208         Tweak the dup2 test.
8209         * tests/test-dup2.c (main): Create the test file empty. Verify that an
8210         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
8211         the test file is still empty. Fix argument order of lseek.
8212
8213 2009-08-23  Bruno Haible  <bruno@clisp.org>
8214
8215         Avoid test link errors when the modules getopt-gnu, gettext are used.
8216         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
8217         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8218
8219 2009-08-23  Bruno Haible  <bruno@clisp.org>
8220
8221         Fix getdtablesize() on mingw.
8222         * lib/getdtablesize.c (getdtablesize): Implement differently.
8223         * lib/unistd.in.h (getdtablesize): Improve comment.
8224
8225 2009-08-23  Bruno Haible  <bruno@clisp.org>
8226
8227         New module 'mkostemp'.
8228         Based on Ulrich Drepper's 2007-08-10 change in glibc.
8229         * lib/stdlib.in.h (mksotemp): New declaration.
8230         * lib/mkostemp.c: New file, from glibc with modifications.
8231         * lib/tempname.h (GT_FILE): Remove outdated comment.
8232         (gen_tempname): Add flags argument.
8233         * lib/tempname.c (__GT_BIGFILE): Remove macro.
8234         (__GT_FILE): Map to 1.
8235         (small_open, large_open): Remove macros.
8236         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
8237         * lib/mkstemp.c (mkstemp): Update.
8238         * lib/mkdtemp.c (mkdtemp): Likewise.
8239         * m4/mkostemp.m4: New file.
8240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
8241         HAVE_MKOSTEMP.
8242         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
8243         HAVE_MKOSTEMP.
8244         * modules/mkostemp: New file, based on modules/mkstemp.
8245         * doc/glibc-functions/mkostemp.texi: Mention the new module.
8246         * NEWS: Mention the change.
8247
8248 2009-08-23  Bruno Haible  <bruno@clisp.org>
8249
8250         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
8251         Reported by Eric Blake.
8252
8253 2009-08-23  Bruno Haible  <bruno@clisp.org>
8254
8255         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
8256         Reported by Eric Blake.
8257
8258 2009-08-23  Bruno Haible  <bruno@clisp.org>
8259
8260         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
8261         * modules/pipe2 (Depends-on): Likewise.
8262
8263 2009-08-23  Eric Blake  <ebb9@byu.net>
8264
8265         fcntl-h: add O_TTY_INIT support
8266         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
8267         * tests/test-fcntl-h.c (o): Test it.
8268         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8269
8270         fcntl-h: rename from fcntl, in preparation for fcntl(2)
8271         * modules/fcntl: Move <fcntl.h> header replacement...
8272         * modules/fcntl-h: ...to new name, so as not to collide with
8273         like-named function.
8274         * tests/test-fcntl.c: Rename...
8275         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
8276         * modules/fcntl-tests: Rename...
8277         * modules/fcntl-h-tests: ...to this.  Update test file name.
8278         * modules/chdir-long (Depends-on): Update clients.
8279         * modules/chdir-safer (Depends-on): Likewise.
8280         * modules/fcntl-safer (Depends-on): Likewise.
8281         * modules/fts (Depends-on): Likewise.
8282         * modules/mkancesdirs (Depends-on): Likewise.
8283         * modules/mkdir-p (Depends-on): Likewise.
8284         * modules/open (Depends-on): Likewise.
8285         * modules/savewd (Depends-on): Likewise.
8286         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
8287         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8288
8289 2009-08-22  Bruno Haible  <bruno@clisp.org>
8290
8291         * modules/binary-io (License): Relicense under LGPL.
8292         * modules/pipe2 (License): Likewise.
8293
8294 2009-08-22  Bruno Haible  <bruno@clisp.org>
8295
8296         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
8297         return value.
8298         * lib/pipe-filter-gi.c (filter_init): Likewise.
8299         Reported by Eric Blake.
8300
8301 2009-08-22  Bruno Haible  <bruno@clisp.org>
8302
8303         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
8304         * modules/pipe (Depends-on): Add pipe2.
8305
8306 2009-08-22  Bruno Haible  <bruno@clisp.org>
8307
8308         Tests for module 'pipe2'.
8309         * modules/pipe2-tests: New file.
8310         * tests/test-pipe2.c: New file.
8311
8312         New module 'pipe2'.
8313         * lib/unistd.in.h (pipe2): New declaration.
8314         * lib/pipe2.c: New file.
8315         * m4/pipe2.m4: New file.
8316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
8317         HAVE_PIPE2.
8318         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
8319         * modules/pipe2: New file.
8320         * doc/glibc-functions/pipe2.texi: Mention the new module.
8321
8322 2009-08-22  Bruno Haible  <bruno@clisp.org>
8323
8324         Reference some new glibc functions.
8325         * doc/glibc-functions/accept4.texi: New file.
8326         * doc/glibc-functions/dup3.texi: New file.
8327         * doc/glibc-functions/mkostemp.texi: New file.
8328         * doc/glibc-functions/pipe2.texi: New file.
8329         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
8330         (Glibc sys/socket.h): Refer to accept4.
8331         (Glibc unistd.h): Refer to dup3, pipe2.
8332         Reported by Eric Blake.
8333
8334 2009-08-22  Jim Meyering  <meyering@redhat.com>
8335             Bruno Haible  <bruno@clisp.org>
8336
8337         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
8338         This makes it so packages using automake-1.11's silent-rules option
8339         can print e.g., a single "GEN    configmake.h" line, rather than
8340         the 30+ statements that perform the job.  If you want to see the
8341         actual commands, you can still run "make V=1".
8342         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
8343         so that make output is abbreviated when those variables are defined
8344         appropriately.
8345         * modules/argz: Likewise.
8346         * modules/arpa_inet: Likewise.
8347         * modules/byteswap: Likewise.
8348         * modules/configmake: Likewise.
8349         * modules/dirent: Likewise.
8350         * modules/errno: Likewise.
8351         * modules/fcntl: Likewise.
8352         * modules/float: Likewise.
8353         * modules/fnmatch: Likewise.
8354         * modules/getopt-posix: Likewise.
8355         * modules/glob: Likewise.
8356         * modules/iconv_open: Likewise.
8357         * modules/inttypes: Likewise.
8358         * modules/localcharset: Likewise.
8359         * modules/locale: Likewise.
8360         * modules/math: Likewise.
8361         * modules/netdb: Likewise.
8362         * modules/netinet_in: Likewise.
8363         * modules/poll: Likewise.
8364         * modules/posix_spawnp-tests: Likewise.
8365         * modules/sched: Likewise.
8366         * modules/search: Likewise.
8367         * modules/selinux-h: Likewise.
8368         * modules/signal: Likewise.
8369         * modules/spawn: Likewise.
8370         * modules/stdarg: Likewise.
8371         * modules/stdbool: Likewise.
8372         * modules/stddef: Likewise.
8373         * modules/stdint: Likewise.
8374         * modules/stdio: Likewise.
8375         * modules/stdlib: Likewise.
8376         * modules/string: Likewise.
8377         * modules/strings: Likewise.
8378         * modules/sys_file: Likewise.
8379         * modules/sys_ioctl: Likewise.
8380         * modules/sys_select: Likewise.
8381         * modules/sys_socket: Likewise.
8382         * modules/sys_stat: Likewise.
8383         * modules/sys_time: Likewise.
8384         * modules/sys_times: Likewise.
8385         * modules/sys_utsname: Likewise.
8386         * modules/sys_wait: Likewise.
8387         * modules/sysexits: Likewise.
8388         * modules/time: Likewise.
8389         * modules/unistd: Likewise.
8390         * modules/wchar: Likewise.
8391         * modules/wctype: Likewise.
8392
8393 2009-08-22  Jim Meyering  <meyering@redhat.com>
8394
8395         announce-gen: detect write failure
8396         * build-aux/announce-gen: Add Coda at end.
8397         Remove equivalent-but-more-verbose block at top.
8398
8399 2009-08-19  Akim Demaille  <demaille@gostai.com>
8400
8401         bootstrap: --help to stdout.
8402         * bootstrap (usage): Don't send --help to stderr.
8403         Use a here doc instead of a long string.
8404
8405 2009-08-21  Eric Blake  <ebb9@byu.net>
8406
8407         test-popen-safer: split from test-popen
8408         * tests/test-popen.c (main): Move...
8409         * tests/test-popen.h: ...into new file.
8410         * tests/test-popen-safer2.c: New file.
8411         * modules/popen-tests (Files): Add test-popen.h.
8412         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
8413         Suggested by Bruno Haible.
8414
8415         test-fcntl-safer: split from test-open
8416         * tests/test-open.c (main): Move...
8417         * tests/test-open.h: ...into new file.
8418         * tests/test-fcntl-safer.c: New file.
8419         * modules/open-tests (Files): Add test-open.h.
8420         * modules/fcntl-safer-tests: New file.
8421         Suggested by Bruno Haible.
8422
8423         test-fopen-safer: split from test-fopen
8424         * tests/test-fopen.c (main): Move...
8425         * tests/test-fopen.h: ...into new file.
8426         * tests/test-fopen-safer.c: New file.
8427         * modules/fopen-tests (Files): Add test-fopen.h.
8428         * modules/fopen-safer-tests: New file.
8429         Suggested by Bruno Haible.
8430
8431 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
8432
8433         popen-safer: test O_CLOEXEC at run-time.
8434         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
8435
8436 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
8437
8438         fcntl: move more flags to the header
8439         * lib/cloexec.c: Do not define FD_CLOEXEC here.
8440         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
8441         * lib/fcntl.in.h: Do both things here.
8442
8443 2009-08-21  Jim Meyering  <meyering@redhat.com>
8444
8445         consistently remove $@-t before redirecting to it
8446         * modules/argz: Remove $@-t and $@ before redirecting to the former.
8447         * modules/alloca-opt: Likewise.
8448         * modules/byteswap: Likewise.
8449         * modules/fnmatch: Likewise.
8450         * modules/getopt-posix: Likewise.
8451         * modules/glob: Likewise.
8452         * modules/poll: Likewise.
8453         * modules/posix_spawnp-tests: Likewise.
8454         * modules/sys_socket: Likewise.
8455         * modules/sysexits: Likewise.
8456
8457 2009-08-21  Eric Blake  <ebb9@byu.net>
8458
8459         popen: simplify access to original popen
8460         * lib/popen.c (rpl_popen): No need to worry about popen being a
8461         macro.
8462         Reported by Bruno Haible.
8463
8464 2009-08-20  Eric Blake  <ebb9@byu.net>
8465
8466         build: avoid some compiler warnings
8467         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
8468         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
8469         type.
8470         (new_exclude_segment, excluded_file_pattern_p)
8471         (excluded_file_name_p): Reduce scope.
8472         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
8473         old-style declaration.
8474
8475 2009-08-20  Simon Josefsson  <simon@josefsson.org>
8476
8477         * tests/test-exclude1.sh: Handle Windows EOL.
8478         * tests/test-exclude2.sh: Likewise.
8479         * tests/test-exclude3.sh: Likewise.
8480         * tests/test-exclude4.sh: Likewise.
8481         * tests/test-exclude5.sh: Likewise.
8482         * tests/test-exclude6.sh: Likewise.
8483         * tests/test-exclude7.sh: Likewise.
8484
8485 2009-08-19  Akim Demaille  <demaille@gostai.com>
8486
8487         bootstrap: find sha1sum when named gsha1sum.
8488         * bootstrap (find_tool): New.
8489         ($SHA1SUM): New.
8490         Use it.
8491
8492 2009-08-20  Jim Meyering  <meyering@redhat.com>
8493
8494         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
8495         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
8496         expression that converts "." in a file name to "\." in the resulting
8497         regexp.  Start with a dummy statement, so that prior shell variable
8498         definitions are expanded portably.  Reported by Simon Josefsson.
8499
8500 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
8501
8502         Fix polling for writeability of a screen buffer.
8503         * lib/poll.c: Distinguish input and screen buffers for the
8504         Win32 implementation.
8505         * lib/select.c: Likewise.
8506
8507 2009-08-19  Eric Blake  <ebb9@byu.net>
8508
8509         popen-safer: prevent popen from clobbering std descriptors
8510         * modules/popen-safer: New file.
8511         * lib/popen-safer.c: Likewise.
8512         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
8513         * lib/stdio--.h (popen): Provide override.
8514         * lib/stdio-safer.h (popen_safer): Provide declaration.
8515         * tests/test-popen.c (includes): Partially test this.
8516         * modules/popen-safer-tests: New file, for more tests.
8517         * tests/test-popen-safer.c: Likewise.
8518         * MODULES.html.sh (file stream based Input/Output): Mention it.
8519
8520         tests: test some of the *-safer modules
8521         * modules/fopen-safer (Depends-on): Add fopen.
8522         * modules/fcntl-safer (Depends-on): Add fcntl.
8523         * modules/stdlib-safer (Depends-on): Add stdlib.
8524         (configure.ac): Set indicator.
8525         * modules/unistd-safer (configure.ac): Likewise.
8526         * modules/tmpfile-safer (configure.ac): Likewise.
8527         (Depends-on): Add tmpfile.
8528         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
8529         active.
8530         * tests/test-fopen.c (includes): Test safer versions when they are
8531         in use.
8532         * tests/test-open.c (includes): Likewise.
8533
8534         popen: fix cygwin 1.5 bug when stdin closed
8535         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
8536         * modules/popen: New file.
8537         * modules/popen-tests: Likewise.
8538         * tests/test-popen.c: Likewise.
8539         * m4/popen.m4: Likewise.
8540         * lib/popen.c: Likewise.
8541         * lib/stdio.in.h (popen): New declaration.
8542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
8543         * modules/stdio (Makefile.am): Likewise.
8544         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
8545
8546 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
8547
8548         maint.mk: give full control over update-copyright exclusions
8549         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
8550         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
8551         (update-copyright): Don't force inclusion of top-level
8552         ChangeLog.  Don't force exclusion of all COPYING files, but make
8553         them the default exclusion instead.
8554
8555 2009-08-16  Bruno Haible  <bruno@clisp.org>
8556
8557         Fix test failures on Solaris 10.
8558         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
8559         tests when Solaris iconv() is used.
8560         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
8561         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
8562         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
8563         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
8564         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
8565
8566 2009-08-16  Bruno Haible  <bruno@clisp.org>
8567
8568         Fix test failures on Solaris 10.
8569         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
8570         'tr' program and pass it as first argument.
8571         * tests/test-pipe-filter-gi1.sh: Likewise.
8572         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
8573         program as first argument.
8574         * tests/test-pipe-filter-gi1.c (main): Likewise.
8575
8576 2009-08-16  Eric Blake  <ebb9@byu.net>
8577
8578         fpurge: fix previous commits
8579         * modules/fpurge (Makefile.am): Make replacement conditional,
8580         partially reverting 2007-04-29 change; missed in previous
8581         attempt.
8582         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
8583         is missing.
8584
8585 2009-08-16  Bruno Haible  <bruno@clisp.org>
8586
8587         Clarify fpurge's effect on the file position.
8588         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
8589         * tests/test-fpurge.c (main): Make a second pass for checking the file
8590         position.
8591
8592 2009-08-16  Bruno Haible  <bruno@clisp.org>
8593
8594         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
8595         declaration of fpurge is missing.
8596         * tests/test-fpurge.c (main): Check that the file has not more contents
8597         than expected. Close the file before removing it.
8598
8599 2009-08-15  Eric Blake  <ebb9@byu.net>
8600
8601         fpurge: don't wrap working cygwin implementation
8602         * lib/fpurge.c (fpurge): Fix comment typo.
8603         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
8604         1.7 to avoid replacement.
8605         * tests/test-fpurge.c (main): Enhance test.
8606
8607 2009-08-15  Eric Blake  <ebb9@byu.net>
8608         and Jim Meyering  <meyering@redhat.com>
8609
8610         test-update-copyright: skip if perl is insufficient
8611         * tests/test-update-copyright.sh: Failure to run maintainer tool
8612         should not cause testsuite failure on cygwin 1.5.
8613
8614 2009-08-14  Eric Blake  <ebb9@byu.net>
8615
8616         doc: mention more functions added in cygwin 1.7.0
8617         * doc/posix-headers/limits.texi (limits.h): Update for recent
8618         cygwin additions.
8619         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
8620         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8621         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
8622         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
8623         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
8624
8625 2009-08-14  Eric Blake  <ebb9@byu.net>
8626
8627         maint.mk: simplify update-copyright rule
8628         * top/maint.mk (update-copyright-local): Delete, and document how
8629         to do it in cfg.mk instead.
8630         (update-copyright-exclude-regexp): Delete, and document how to do
8631         it in .x-update-copyright instead.
8632         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
8633         exclude ChangeLog.
8634
8635 2009-08-14  Bruno Haible  <bruno@clisp.org>
8636
8637         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
8638
8639 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8640
8641         maint.mk: support update-copyright-env
8642         * top/maint.mk (update-copyright-env): Define place-holder.
8643         (update-copyright): Expand $(update-copyright-env) before
8644         invoking update-copyright.
8645
8646 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8647
8648         update-copyright: implement forced reformatting
8649         * build-aux/update-copyright: Implement and document
8650         UPDATE_COPYRIGHT_FORCE.
8651         * tests/test-update-copyright.sh: Test it.
8652
8653 2009-08-14  Eric Blake  <ebb9@byu.net>
8654         and Bruno Haible  <bruno@clisp.org>
8655
8656         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
8657         * tests/test-locale.c: Revert previous patch related to NULL.
8658         * tests/test-stdio.c: Likewise.
8659         * tests/test-stdlib.c: Likewise.
8660         * tests/test-string.c: Likewise.
8661         * tests/test-unistd.c: Likewise.
8662         * modules/time-tests (Depends-on): Add verify.
8663         * modules/wchar-tests (Depends-on): Likewise.
8664         * tests/test-time.c: Test for NULL compliance.
8665         * tests/test-wchar.c: Likewise.
8666         * modules/locale (Depends-on): Add stddef.
8667         * modules/stdio (Depends-on): Likewise.
8668         * modules/stdlib (Depends-on): Likewise.
8669         * modules/string (Depends-on): Likewise.
8670         * modules/time (Depends-on): Likewise.
8671         * modules/unistd (Depends-on): Likewise.
8672         * modules/wchar (Depends-on): Likewise.
8673         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
8674         * lib/stdlib.in.h (includes): Likewise.
8675         * lib/string.in.h (includes): Likewise.
8676         * lib/time.in.h (includes): Likewise.
8677         * lib/unistd.in.h (includes): Likewise.
8678         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
8679         replaced.
8680         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8681         * m4/stddef_h.m4: New file.
8682         * modules/stddef: Likewise.
8683         * lib/stddef.in.h: Likewise.
8684         * modules/stddef-tests: Likewise.
8685         * tests/test-stddef.c: Likewise.
8686         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
8687         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
8688         * doc/posix-headers/locale.texi (locale.h): Likewise.
8689         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
8690         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8691         * doc/posix-headers/string.texi (string.h): Likewise.
8692         * doc/posix-headers/time.texi (time.h): Likewise.
8693         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
8694         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
8695
8696 2009-08-14  Eric Blake  <ebb9@byu.net>
8697
8698         doc: improve git diff of texinfo files
8699         * .gitattributes: Add rule for *.texi files, with hint on how to
8700         use it.
8701         Copied from m4, and based on a report by Bruno Haible.
8702
8703 2009-08-14  Bruno Haible  <bruno@clisp.org>
8704
8705         Disable multithread support by default on Cygwin 1.5.x for real.
8706         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
8707
8708 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8709
8710         update-copyright: much ado about intervals
8711         * build-aux/update-copyright: Implement and document
8712         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
8713         of copyright year intervals.
8714         Also, document UPDATE_COPYRIGHT_YEAR.
8715         * tests/test-update-copyright.sh: Test it.
8716
8717         update-copyright: convert 2-digit to 4-digit years
8718         * build-aux/update-copyright: Implement and document.
8719         * tests/test-update-copyright.sh: Update.
8720
8721 2009-08-14  Jim Meyering  <meyering@redhat.com>
8722
8723         test-exclude: avoid coreutils "make check" failure
8724         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
8725         just as in test-argmatch.c.
8726
8727 2009-08-13  Eric Blake  <ebb9@byu.net>
8728
8729         test-dup2: fix bad assumption
8730         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
8731         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
8732
8733         test-version-etc: fix CRLF portability issue
8734         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
8735         recognize \r.
8736         * tests/test-argp-version-etc-1.sh: Likewise.
8737
8738         getopt: update client modules
8739         * modules/argp (Depends-on): Use getopt-gnu.
8740         * modules/git-merge-changelog (Depends-on): Likewise.
8741         * modules/long-options (Depends-on): Likewise.
8742         * modules/xstrtol (Depends-on): Likewise.
8743
8744 2009-08-13  Simon Josefsson  <simon@josefsson.org>
8745
8746         * tests/test-version-etc.sh: Don't fail on different
8747         project/version.  Don't fail on CRLF differences.  Rewrite to use
8748         multiple -e instead of multiple sed forks, suggested by Eric Blake
8749         <ebb9@byu.net>.
8750         * tests/test-argp-version-etc-1.sh: Likewise.
8751
8752 2009-08-13  Simon Josefsson  <simon@josefsson.org>
8753
8754         * tests/test-version-etc.sh: Don't fail on different
8755         project/version.
8756
8757 2009-08-12  Bruno Haible  <bruno@clisp.org>
8758
8759         Tests for modules 'getopt-posix', 'getopt-gnu'.
8760         * modules/getopt-posix-tests: New file.
8761         * tests/test-getopt.c: New file.
8762         * tests/test-getopt.h: New file.
8763         * tests/test-getopt_long.h: New file.
8764
8765         New modules 'getopt-posix', 'getopt-gnu'.
8766         * modules/getopt-gnu: New file, renamed from modules/getopt.
8767         * modules/getopt-posix: New file.
8768         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
8769         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
8770         (gl_GETOPT): Remove macro.
8771         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
8772         Disable the test against BSD systems that declare optreset. Test
8773         against mingw bug. Test against lack of support of optional arguments
8774         on many platforms.
8775         * doc/glibc-headers/getopt.texi: Update module name and list of
8776         relevant platforms.
8777         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
8778         'getopt-gnu' and more portability problems.
8779         * NEWS: Mention the changes.
8780
8781 2009-08-12  Bruno Haible  <bruno@clisp.org>
8782
8783         Ensure that optarg etc. get declared by <unistd.h>.
8784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
8785         AC_USE_SYSTEM_EXTENSIONS.
8786         * modules/getopt (Depends-on): Add 'extensions'.
8787
8788 2009-08-12  Bruno Haible  <bruno@clisp.org>
8789
8790         Avoid test link errors.
8791         * modules/pipe-filter-ii-tests (Makefile.am): Define
8792         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
8793         * modules/pipe-filter-gi-tests (Makefile.am): Define
8794         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
8795         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8796
8797 2009-08-12  Bruno Haible  <bruno@clisp.org>
8798
8799         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
8800         gl_GETOPT_SUBSTITUTE before.
8801         (gl_GETOPT): Use it.
8802         * m4/argp.m4 (gl_ARGP): Update.
8803         Reported by Sergey Poznyakoff.
8804
8805         * m4/getopt.m4: Reorder macros.
8806         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
8807         (gl_GETOPT_SUBSTITUTE): Remove macro.
8808
8809 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8810
8811         Minor improvement in gitlog-to-changelog
8812
8813         * build-aux/gitlog-to-changelog: New option `--format' makes
8814         output format string configurable.
8815
8816 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8817
8818         Optimize exclude: use hash tables for non-wildcard patterns.
8819
8820         * lib/exclude.c: Include hash.h and mbuiter.h
8821         (struct exclude_pattern, exclude_segment): New data types.
8822         (struct exclude): Rewrite.
8823         (fnmatch_pattern_has_wildcards): New function.
8824         (new_exclude_segment, free_exclude_segment): New functions.
8825         (excluded_file_pattern_p, excluded_file_name_p): New functions.
8826         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
8827         * lib/exclude.h (is_fnmatch_pattern): New prototype.
8828         * modules/exclude: Depend on hash and mbuiter.
8829
8830         * modules/exclude-tests: New file.
8831         * tests/test-exclude.c: New file.
8832         * tests/test-exclude1.sh: New file.
8833         * tests/test-exclude2.sh: New file.
8834         * tests/test-exclude3.sh: New file.
8835         * tests/test-exclude4.sh: New file.
8836         * tests/test-exclude5.sh: New file.
8837         * tests/test-exclude6.sh: New file.
8838         * tests/test-exclude7.sh: New file.
8839
8840 2009-08-12  Bruno Haible  <bruno@clisp.org>
8841
8842         Ensure that getopt() gets declared by <unistd.h>.
8843         * lib/unistd.in.h: Conditionally include getopt.h.
8844         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
8845         Set GNULIB_UNISTD_H_GETOPT.
8846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8847         GNULIB_UNISTD_H_GETOPT.
8848         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
8849
8850 2009-08-12  Bruno Haible  <bruno@clisp.org>
8851
8852         Clarify logic.
8853         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
8854         gl_replace_getopt instead of GETOPT_H.
8855
8856 2009-08-12  Bruno Haible  <bruno@clisp.org>
8857
8858         * m4/getopt.m4: Add comments.
8859
8860 2009-08-12  Bruno Haible  <bruno@clisp.org>
8861
8862         Disable multithread support by default on Cygwin 1.5.x.
8863         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
8864         set gl_use_threads=no if not specified otherwise.
8865
8866 2009-08-11  Bruno Haible  <bruno@clisp.org>
8867
8868         Avoid compilation error on NetBSD 5.0.
8869         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
8870         * tests/test-stdio.c: Likewise.
8871         * tests/test-stdlib.c: Likewise.
8872         * tests/test-string.c: Likewise.
8873         * tests/test-unistd.c: Likewise.
8874         Reported by Greg Troxel <gdt@ir.bbn.com>
8875         at <https://savannah.gnu.org/support/?106973>.
8876
8877 2009-08-11  Bruno Haible  <bruno@clisp.org>
8878
8879         * modules/dup2-tests (Depends-on): Remove close.
8880
8881         Undo 2009-07-19 commit.
8882         * modules/acl-tests (Depends-on): Remove close.
8883         * modules/binary-io-tests (Depends-on): Likewise.
8884         * modules/closein-tests (Depends-on): Likewise.
8885         * modules/flock-tests (Depends-on): Likewise.
8886         * modules/fsync-tests (Depends-on): Likewise.
8887         * modules/lseek-tests (Depends-on): Likewise.
8888         * modules/pipe-tests (Depends-on): Likewise.
8889         * modules/posix_spawn-tests (Depends-on): Likewise.
8890         * modules/posix_spawnp-tests (Depends-on): Likewise.
8891         * modules/stat-time-tests (Depends-on): Likewise.
8892         * modules/yesno-tests (Depends-on): Likewise.
8893
8894 2009-08-10  Bruno Haible  <bruno@clisp.org>
8895
8896         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
8897
8898 2009-08-10  Bruno Haible  <bruno@clisp.org>
8899
8900         Fix a gcc warning.
8901         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
8902
8903 2009-08-10  Bruno Haible  <bruno@clisp.org>
8904
8905         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
8906         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
8907         not only the first time.
8908         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
8909         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
8910         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
8911         is 1, not only the the first time.
8912
8913 2009-08-10  Bruno Haible  <bruno@clisp.org>
8914
8915         Make it possible to use module 'gethostname' without module 'close'.
8916         * lib/unistd.in.h (close): Evoke a link error only if
8917         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8919         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8920         * modules/unistd (Makefile.am): Substitute
8921         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8922         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
8923         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8924         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8925         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8926         * modules/sys_ioctl (Makefile.am): Substitute
8927         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8928         * modules/socket (configure.ac): On native Windows, set
8929         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
8930         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8931         Reported by Sam Steingold <sds@gnu.org>.
8932
8933 2009-08-10  Bruno Haible  <bruno@clisp.org>
8934
8935         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
8936         * modules/ioctl (configure.ac): Likewise.
8937
8938 2009-08-10  Bruno Haible  <bruno@clisp.org>
8939
8940         Avoid collision between gnulib wrapper and libintl wrapper.
8941         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
8942         already defined in intl/printf.c.
8943         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
8944         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
8945
8946 2009-08-09  Bruno Haible  <bruno@clisp.org>
8947
8948         Make <sys/select.h> really self-contained, also on Solaris 10.
8949         * lib/sys_select.in.h: Include <string.h>.
8950         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
8951         Solaris 10 problem.
8952         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
8953         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
8954         Reported by Jim Meyering.
8955
8956 2009-08-09  Bruno Haible  <bruno@clisp.org>
8957
8958         Avoid warnings from 'aclocal' that are due to a use of macro name
8959         AM_XGETTEXT_OPTION that is not defined in automake.
8960         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
8961         automake.
8962         * modules/error (configure.ac): Likewise.
8963         * modules/propername (configure.ac): Likewise.
8964         * modules/vasprintf (configure.ac): Likewise.
8965         * modules/verror (configure.ac): Likewise.
8966         * modules/xprintf (configure.ac): Likewise.
8967         * modules/xvasprintf (configure.ac): Likewise.
8968
8969 2009-08-08  Bruno Haible  <bruno@clisp.org>
8970
8971         Avoid compilation error in C++ mode.
8972         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
8973         Reported by Sam Steingold <sds@gnu.org>.
8974
8975 2009-08-08  Bruno Haible  <bruno@clisp.org>
8976
8977         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
8978         for the various Unix platforms.
8979         * doc/posix-headers/limits.texi: Update platforms list regarding
8980         HOST_NAME_MAX.
8981         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8982
8983 2009-08-07  Jim Meyering  <meyering@redhat.com>
8984
8985         selinux-at: fix typo in a comment
8986         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
8987         Spotted by Paolo Bonzini.
8988
8989         selinux-at: remove redundant m4 code, add documentation
8990         * modules/selinux-at (configure.ac): Remove redundant code.
8991         LIB_SELINUX is already set via the dependent module, selinux-h.
8992         (Include): Add quotes around selinux-at.h.
8993         * lib/selinux-at.h: Add documentation.
8994         Reported by Bruno Haible in
8995         http://marc.info/?l=gnulib-bug&m=124958988300749
8996
8997 2009-08-07  Bruno Haible  <bruno@clisp.org>
8998
8999         Avoid link error on MacOS X 10.3 and 10.4.
9000         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
9001         on non-ELF systems.
9002         * lib/argp-pv.c (argp_program_version): Likewise.
9003         Reported by Simon Josefsson.
9004
9005 2009-08-07  Simon Josefsson  <simon@josefsson.org>
9006
9007         * tests/test-version-etc.sh: Use $EXEEXT.
9008
9009 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
9010
9011         update-copyright: update documentation to point to maint.mk
9012         * build-aux/update-copyright: Here.
9013
9014 2009-08-06  Jim Meyering  <meyering@redhat.com>
9015
9016         maint.mk: support update-copyright-local
9017         * top/maint.mk (update-copyright-local): Define place-holder.
9018         (update-copyright): Depend on $(update-copyright-local).
9019
9020 2009-08-06  Jim Meyering  <meyering@redhat.com>
9021
9022         selinux-at: new module
9023         Initially written for coreutils, this module will soon be
9024         used by findutils, too.
9025         * MODULES.html.sh [Misc]: Add selinux-at.
9026         * lib/selinux-at.h: New file, from coreutils.
9027         * lib/selinux-at.c: Likewise.
9028         * modules/selinux-at: Likewise.
9029         (License): Change from LGPL to GPL, since it depends
9030         on the GPL'd openat module.
9031
9032         doc: update README
9033         * README: Remove references to cogito.
9034         Remove cvs-repo-updating instructions from 2007.
9035         Don't imply that CVS is better if you have limited disk space.
9036
9037 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9038
9039         update-copyright: support C-style comments
9040         * build-aux/update-copyright: Implement and document.
9041         * tests/test-update-copyright.sh: Test.
9042
9043 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9044
9045         update-copyright: support omitted "(C)"
9046         * build-aux/update-copyright: Implement and document.  Also,
9047         allow variable whitespace before "(C)".
9048         * tests/test-update-copyright.sh: Test.
9049
9050 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9051
9052         update-copyright: don't trip on non-FSF copyright statements
9053         * build-aux/update-copyright: Fix so that the first correctly
9054         formatted FSF copyright statement is recognized no matter what
9055         appears before it.  Update documentation.
9056         * tests/test-update-copyright.sh: Test that.
9057
9058 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9059
9060         update-copyright: clean up code a little
9061         * build-aux/update-copyright: Append "_re" to the name of any
9062         variable holding a regular expression.
9063         Replace "old" and "new" with "stmt" in variable names.
9064         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
9065         handled correctly.
9066         Format code more consistently.
9067
9068 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
9069
9070         update-copyright-tests: improve portability
9071         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
9072         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
9073
9074 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
9075
9076         update-copyright: support @copyright{} and &copy;
9077         * build-aux/update-copyright: Implement and document.
9078         * tests/test-update-copyright.sh: Test.
9079
9080 2009-08-04  Jim Meyering  <meyering@redhat.com>
9081
9082         update-copyright-tests: correctly test EOL=\r\n handling
9083         * tests/test-update-copyright.sh: Put \r at the end of some lines
9084         for the dos-eol tests.  Based on a patch by Joel E. Denny.
9085
9086         maint.mk: make update-copyright exclusion list more configurable
9087         * top/maint.mk (update-copyright): Default to excluding COPYING,
9088         but allow an override, in case someone does want to update that file.
9089
9090         maint.mk: don't update copyright date in COPYING
9091         * top/maint.mk (update-copyright): Exclude COPYING.
9092
9093         maint.mk: add a copyright-updating rule
9094         * top/maint.mk (update-copyright): New rule.
9095         Derived from coreutils/Makefile.am.
9096
9097         update-copyright: rename some variables
9098         * build-aux/update-copyright: Rename a few variables for clarity.
9099         Tweak syntax.  List Joel E. Denny as coauthor.
9100
9101 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
9102
9103         update-copyright: fix bug for 2-digit last year and add tests
9104         * build-aux/update-copyright: Fix bug.
9105         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
9106         specified.
9107         * modules/update-copyright-tests: New
9108         * tests/test-update-copyright.sh: New.
9109
9110 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
9111
9112         update-copyright: handle leading tabs in line prefix
9113         * build-aux/update-copyright: Count leading tabs as 8 spaces
9114         when computing margin.  This helps with the formatting of
9115         ChangeLogs, for example.
9116         Fix documentation a little.
9117
9118 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
9119
9120         update-copyright: support EOL=\r\n
9121         * build-aux/update-copyright: Implement that.
9122
9123 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
9124
9125         update-copyright: automatically format copyright statements
9126         * build-aux/update-copyright: Implement that.
9127         Also, be a little more predictable and safer by always failing
9128         when the full copyright format is not perfectly recognized as an
9129         unbroken whole.  Discussed at
9130         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
9131         Rewrite documentation.
9132
9133 2009-08-03  Bruno Haible  <bruno@clisp.org>
9134
9135         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
9136
9137 2009-08-02  Bruno Haible  <bruno@clisp.org>
9138
9139         Tests for module 'uname'.
9140         * modules/uname-tests: New file.
9141         * tests/test-uname.c: New file.
9142
9143         New module 'uname'.
9144         * lib/uname.c: New file.
9145         * m4/uname.m4: New file.
9146         * modules/uname: New file.
9147         * doc/posix-functions/uname.texi: Mention the new module.
9148
9149 2009-08-02  Bruno Haible  <bruno@clisp.org>
9150
9151         Tests for module 'sys_utsname'.
9152         * modules/sys_utsname-tests: New file.
9153         * tests/test-sys_utsname.c: New file.
9154
9155         New module 'sys_utsname'.
9156         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
9157         * m4/sys_utsname_h.m4: New file.
9158         * modules/sys_utsname: New file.
9159         * doc/posix-headers/sys_utsname.texi: Mention the new module.
9160
9161 2009-08-02  Bruno Haible  <bruno@clisp.org>
9162
9163         Implicitly initialize the sockets library.
9164         * lib/gethostname.c: Include sockets.h.
9165         (rpl_gethostname): Invoke gl_sockets_startup.
9166         * lib/socket.c: Include sockets.h.
9167         (rpl_socket): Invoke gl_sockets_startup.
9168         * modules/gethostname (Depends-on): Add sockets.
9169         * modules/socket (Depends-on): Likewise.
9170         * tests/test-poll.c: Don't include sockets.h.
9171         (main): Don't invoke gl_sockets_startup.
9172         * tests/test-select.c: Don't include sockets.h.
9173         (main): Don't invoke gl_sockets_startup.
9174
9175 2009-08-02  Bruno Haible  <bruno@clisp.org>
9176
9177         Allow multiple calls to gl_sockets_startup.
9178         * lib/sockets.c (initialized_sockets_version): New variable.
9179         (gl_sockets_startup): Do nothing if already called for this or a higher
9180         version.
9181         (gl_sockets_cleanup): Reset initialized_sockets_version.
9182
9183 2009-08-03  Simon Josefsson  <simon@josefsson.org>
9184
9185         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
9186         different project/version.
9187
9188 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
9189             Bruno Haible  <bruno@clisp.org>
9190
9191         Tests for module 'pipe-filter-gi'.
9192         * modules/pipe-filter-gi-tests: New file.
9193         * tests/test-pipe-filter-gi1.sh: New file.
9194         * tests/test-pipe-filter-gi1.c: New file.
9195         * tests/test-pipe-filter-gi2.sh: New file.
9196         * tests/test-pipe-filter-gi2-main.c: New file.
9197         * tests/test-pipe-filter-gi2-child.c: New file.
9198
9199         New module 'pipe-filter-gi'.
9200         * lib/pipe-filter-gi.c: New file.
9201         * modules/pipe-filter-gi: New file.
9202
9203 2009-08-02  Bruno Haible  <bruno@clisp.org>
9204             Paolo Bonzini  <bonzini@gnu.org>
9205
9206         Tests for module 'pipe-filter-ii'.
9207         * modules/pipe-filter-ii-tests: New file.
9208         * tests/test-pipe-filter-ii1.sh: New file.
9209         * tests/test-pipe-filter-ii1.c: New file.
9210         * tests/test-pipe-filter-ii2.sh: New file.
9211         * tests/test-pipe-filter-ii2-main.c: New file.
9212         * tests/test-pipe-filter-ii2-child.c: New file.
9213
9214         New module 'pipe-filter-ii'.
9215         * lib/pipe-filter.h: New file.
9216         * lib/pipe-filter-ii.c: New file.
9217         * lib/pipe-filter-aux.h: New file.
9218         * modules/pipe-filter-ii: New file.
9219
9220 2009-08-02  Simon Josefsson  <simon@josefsson.org>
9221
9222         * lib/gc-libgcrypt.c: Change copyright to FSF.
9223         * lib/gc-gnulib.c: Likewise.
9224
9225 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
9226
9227         * lib/gethostname.c: Include limits.h.
9228
9229 2009-08-02  Simon Josefsson  <simon@josefsson.org>
9230             Bruno Haible  <bruno@clisp.org>
9231
9232         Ensure HOST_NAME_MAX as part of the gethostname module.
9233         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
9234         define also HOST_NAME_MAX.
9235         * tests/test-gethostname.c: Include <limits.h>.
9236         (main): Check also HOST_NAME_MAX.
9237         * doc/posix-headers/limits.texi: Document the mingw problem.
9238
9239 2009-08-02  Bruno Haible  <bruno@clisp.org>
9240
9241         * lib/gethostname.c (gethostname): Fix handling of large len argument.
9242         Add comments.
9243
9244 2009-03-31  Simon Josefsson  <simon@josefsson.org>
9245
9246         * lib/gethostname.c: Add Windows wrapper.
9247         * m4/gethostname.m4: Look for gethostname in -lws2_32.
9248         * modules/gethostname: Depend on sys_socket & errno, for also
9249         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
9250         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
9251
9252 2009-07-31  Jim Meyering  <meyering@redhat.com>
9253
9254         getloadavg: fix symbol name in comment
9255         * lib/getloadavg.c: Correct a typo I introduced when adding
9256         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
9257         Matt Kraai spotted the problem.
9258
9259 2009-07-29  Matt Kraai  <mkraai@beckman.com>
9260
9261         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
9262         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
9263         code also if ! defined N_NAME_POINTER.
9264         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
9265         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
9266         but the n_name member is a 12-byte array.
9267
9268 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
9269
9270         update-copyright: generalize comment handling
9271         * build-aux/update-copyright: Handle copyright statements
9272         within more comment styles.
9273         Document usage.
9274         Report any file with an external copyright holder or parse failure.
9275
9276 2009-07-29  Jim Meyering  <meyering@redhat.com>
9277
9278         mktime: correct setting of REPLACE_MKTIME
9279         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
9280
9281         update-copyright: new module
9282         * modules/update-copyright: New file.
9283         * build-aux/update-copyright: New file.
9284         * MODULES.html.sh (maint+release support): Add update-copyright.
9285
9286 2009-07-27  Bruno Haible  <bruno@clisp.org>
9287
9288         Fix compilation error when <ctime> is used and mktime is replaced.
9289         * lib/time.in.h (mktime): New declaration.
9290         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
9291         REPLACE_MKTIME instead of defining mktime in config.h.
9292         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
9293         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
9294         Reported by Ross McFarland <rwmcfa1@neces.com>.
9295
9296 2009-07-27  Bruno Haible  <bruno@clisp.org>
9297
9298         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
9299         Reported by Matt Kraai <mkraai@beckman.com>.
9300
9301 2009-07-25  Jim Meyering  <meyering@redhat.com>
9302
9303         maint.mk: avoid warnings about missing files
9304         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
9305         diagnostic when .prev-version does not exist.
9306         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
9307         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
9308         nonexistent cfg.mk.
9309         Suggestions from Simon Josefsson.
9310
9311 2009-07-25  Bruno Haible  <bruno@clisp.org>
9312
9313         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
9314         defined as macros. Needed on QNX 6.4.1.
9315         Reported by Matt Kraai <mkraai@beckman.com>.
9316
9317 2009-07-23  Jim Meyering  <meyering@redhat.com>
9318
9319         maint.mk: invoke "make dist" with a working value of XZ_OPT
9320         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
9321
9322 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
9323
9324         Make fseeko.c compile on QNX.
9325         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
9326
9327 2009-07-22  Peter Simons  <simons@cryp.to>
9328
9329         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
9330         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
9331         * lib/md4.h: Likewise.
9332         * lib/md5.h: Likewise.
9333         * lib/sha1.h: Likewise.
9334         * lib/sha256.h: Likewise.
9335         * lib/sha512.h: Likewise.
9336
9337         tests-sha1: don't assign literal string to 'char *' variable
9338         * tests/test-sha1.c (main): Declare locals with "const" to match
9339         attributes of the right hand side.
9340
9341 2009-07-21  Eric Blake  <ebb9@byu.net>
9342
9343         dup2: fix more mingw problems
9344         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
9345         fd to itself.
9346         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9347         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
9348         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
9349         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
9350         care of mingw bugs.
9351
9352 2009-07-21  Jim Meyering  <meyering@redhat.com>
9353
9354         vc-list-files: avoid failure when /bin/sh is dash
9355         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
9356         On some Debian based systems, /bin/sh is a symlink to dash, and running
9357         this command would omit the "/" following each 'tests' prefix:
9358           dash -x build-aux/vc-list-files -C . tests
9359         That is because bash and dash work differently:
9360           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
9361           bash ok
9362           dash odd
9363
9364 2009-07-21  Eric Blake  <ebb9@byu.net>
9365
9366         dup2-tests: test previous patch
9367         * modules/dup2-tests: New file.
9368         * tests/test-dup2.c: Likewise.
9369         * tests/test-open.c (main): Avoid unspecified behavior.
9370         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
9371         test.
9372
9373         dup2: work around mingw and cygwin 1.5 bug
9374         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
9375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9376         * modules/unistd (Makefile.am): Substitute it.
9377         * lib/unistd.in.h (dup2): Declare the replacement.
9378         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
9379         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
9380         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
9381         * modules/execute (Depends-on): Add dup2.
9382         * modules/fseterr (Depends-on): Likewise.
9383         * modules/pipe (Depends-on): Likewise.
9384         * modules/posix_spawn-internal (Depends-on): Likewise.
9385
9386 2009-07-21  Bruno Haible  <bruno@clisp.org>
9387
9388         * modules/.gitattributes: New file.
9389
9390 2009-07-20  Bruno Haible  <bruno@clisp.org>
9391
9392         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
9393         (main): Use it.
9394
9395 2009-07-20  Eric Blake  <ebb9@byu.net>
9396
9397         test-pipe: make a bit more robust.
9398         * tests/test-pipe.c (myerr): Allow error messages regardless of
9399         what we do to stderr.
9400         (test_pipe): Rearrange to avoid deadlock.
9401         (child_main): Try a larger read, to ensure we avoided deadlock.
9402         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
9403         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
9404         if misused.
9405
9406 2009-07-19  Jim Meyering  <meyering@redhat.com>
9407
9408         fts: avoid false-positive cycle-detection
9409         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
9410         for each new command line argument.
9411
9412 2009-07-19  Bruno Haible  <bruno@clisp.org>
9413
9414         Fix build error on mingw with the modules sys_select and unistd.
9415         * modules/acl-tests (Depends-on): Add close.
9416         * modules/binary-io-tests (Depends-on): Likewise.
9417         * modules/closein-tests (Depends-on): Likewise.
9418         * modules/flock-tests (Depends-on): Likewise.
9419         * modules/fsync-tests (Depends-on): Likewise.
9420         * modules/lseek-tests (Depends-on): Likewise.
9421         * modules/pipe-tests (Depends-on): Likewise.
9422         * modules/posix_spawn-tests (Depends-on): Likewise.
9423         * modules/posix_spawnp-tests (Depends-on): Likewise.
9424         * modules/stat-time-tests (Depends-on): Likewise.
9425         * modules/yesno-tests (Depends-on): Likewise.
9426
9427 2009-07-19  Bruno Haible  <bruno@clisp.org>
9428
9429         Unify conditionals.
9430         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
9431         macros, not at the compiler macros.
9432         * lib/pipe.c: Likewise.
9433         * lib/execute.c: Likewise.
9434         * lib/spawni.c: Likewise.
9435
9436 2009-07-19  Bruno Haible  <bruno@clisp.org>
9437
9438         Fix handling of closed stdin/stdout/stderr on mingw.
9439         * lib/w32spawn.h: Include unistd.h.
9440         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
9441         file descriptor with O_NOINHERIT flag.
9442         (fd_safer_noinherit): New function, based on fd-safer.c.
9443         (dup_safer_noinherit): New function, based on dup-safer.c.
9444         (undup_safer_noinherit): New function.
9445         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
9446         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
9447         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
9448         instead of fd_safer.
9449         * tests/test-pipe.c: Include <windows.h>.
9450         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
9451
9452         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
9453         from main.
9454         (test_pipe): Pass an extra argument for disambiguation.
9455         (main): Invoke parent_main or child_main.
9456
9457         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
9458         consistently.
9459
9460 2009-07-18  Eric Blake  <ebb9@byu.net>
9461
9462         test-pipe: fix mingw build
9463         * tests/test-pipe.c (main): Avoid fcntl on mingw.
9464
9465 2009-07-18  Bruno Haible  <bruno@clisp.org>
9466
9467         * modules/pipe-tests (Makefile.am): Fix typo.
9468
9469 2009-07-18  Eric Blake  <ebb9@byu.net>
9470
9471         error: fix mingw build
9472         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
9473         Reported by Bruno Haible.
9474
9475         error: avoid undefined use of stdout
9476         * lib/error.c (error, error_at_line): Check that fd 1 is open
9477         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
9478         is handling faults and the close_stdout module wants to report the
9479         detection of closed stdout as an error.
9480
9481 2009-07-17  Eric Blake  <ebb9@byu.net>
9482
9483         pipe: be robust in face of closed fds
9484         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
9485         should cause child to misbehave.
9486         * modules/pipe-tests: New module.
9487         * tests/test-pipe.c: New file.
9488         * tests/test-pipe.sh: New file.
9489         Reported by Akim Demaille.
9490
9491 2009-07-14  Bruno Haible  <bruno@clisp.org>
9492
9493         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
9494         Reported by anonymous kc.
9495
9496 2009-07-07  Jim Meyering  <meyering@redhat.com>
9497
9498         maint.mk: don't look for translatable strings in *.m4 or *.mk
9499         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
9500         when searching for translatable strings.
9501
9502 2009-07-05  Jim Meyering  <meyering@redhat.com>
9503
9504         remove superfluous parentheses in STREQ definition
9505         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
9506         * lib/getugroups.c (STREQ): Likewise.
9507         * lib/fnmatch.c (STREQ): Likewise.
9508         Spotted by Bruno Haible.
9509
9510 2009-07-04  Jim Meyering  <meyering@redhat.com>
9511
9512         argv-iter: new module
9513         * MODULES.html.sh: Add argv-iter.
9514         * lib/argv-iter.c, lib/argv-iter.h: New files.
9515         * modules/argv-iter: New file.
9516         * modules/argv-iter-tests: New file.
9517         * tests/test-argv-iter.c: Test it.
9518
9519 2009-07-04  Bruno Haible  <bruno@clisp.org>
9520
9521         Fix assertion.
9522         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
9523         contains more exact copies of a given entry than file2, leave the extra
9524         copies unpaired rather than aborting.
9525         Reported by Eric Blake.
9526
9527 2009-07-02  Bruno Haible  <bruno@clisp.org>
9528
9529         Speedup git-merge-changelog for git cherry-pick.
9530         * lib/git-merge-changelog.c (struct entries_mapping): New type.
9531         (entries_mapping_get): New function, extracted from compute_mapping.
9532         (entries_mapping_reverse_get): New function.
9533         (compute_mapping): Add a 'full' argument. Return the result in a
9534         'struct entries_mapping'.
9535         (main): Update. Access the mappings through entries_mapping_get.
9536         Reported by Eric Blake.
9537
9538 2009-07-02  Bruno Haible  <bruno@clisp.org>
9539
9540         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
9541         best_i.
9542
9543 2009-07-02  Bruno Haible  <bruno@clisp.org>
9544
9545         Speed up approximate search for matching ChangeLog entries.
9546         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
9547         argument. Call fstrcmp_bounded instead of fstrcmp.
9548         (compute_mapping, try_split_merged_entry, main): Update callers.
9549
9550 2009-07-02  Bruno Haible  <bruno@clisp.org>
9551
9552         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
9553
9554 2009-06-30  Bruno Haible  <bruno@clisp.org>
9555
9556         Reduce the number of uc_is_cased calls.
9557         * lib/unicase.h (casing_suffix_context_t): Add
9558         'first_char_except_ignorable' field.
9559         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
9560         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
9561         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
9562         Update initializer.
9563         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
9564         case-ignorable characters.
9565         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
9566         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
9567         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
9568         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
9569         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
9570
9571 2009-06-30  Bruno Haible  <bruno@clisp.org>
9572
9573         Tests for module 'unicase/ignorable'.
9574         * modules/unicase/ignorable-tests: New file.
9575         * tests/unicase/test-ignorable.c: New file, generated by
9576         gen-uni-tables.
9577
9578         Tests for module 'unicase/cased'.
9579         * modules/unicase/cased-tests: New file.
9580         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
9581         * tests/unicase/test-predicate-part1.h: New file, derived from
9582         tests/unictype/test-predicate-part1.h.
9583         * tests/unicase/test-predicate-part2.h: New file, same as
9584         tests/unictype/test-predicate-part2.h.
9585
9586         Fix evaluation of "Before C" condition of FINAL_SIGMA.
9587         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
9588         (output_casing_properties): New function.
9589         (main): Call it.
9590         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
9591         * lib/unicase/cased.c: Include unictype/bitmap.h.
9592         (uc_is_cased): Define through a bitmap lookup.
9593         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
9594         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
9595         (uc_is_case_ignorable): Define through a bitmap lookup.
9596         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
9597         lib/unictype/bitmap.h.
9598         (Depends-on): Add inline. Clean up.
9599         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
9600         lib/unictype/bitmap.h.
9601         (Depends-on): Add inline. Clean up.
9602         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
9603         recognition.
9604         * tests/unicase/test-u16-tolower.c (main): Likewise.
9605         * tests/unicase/test-u32-tolower.c (main): Likewise.
9606
9607 2009-06-30  Bruno Haible  <bruno@clisp.org>
9608
9609         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
9610         * lib/unicase/u16-casemap.c: Likewise.
9611         * lib/unicase/u32-casemap.c: Likewise.
9612
9613 2009-06-29  Bruno Haible  <bruno@clisp.org>
9614
9615         Define u32_casefold as a wrapper around u32_ct_casefold.
9616         * lib/unicase/u32-casefold.c: Update.
9617         * modules/unicase/u32-casefold (Depends-on): Add
9618         unicase/u32-ct-casefold, unicase/empty-prefix-context,
9619         unicase/empty-suffix-context. Clean up.
9620
9621         Define u16_casefold as a wrapper around u16_ct_casefold.
9622         * lib/unicase/u16-casefold.c: Update.
9623         * modules/unicase/u16-casefold (Depends-on): Add
9624         unicase/u16-ct-casefold, unicase/empty-prefix-context,
9625         unicase/empty-suffix-context. Clean up.
9626
9627         Define u8_casefold as a wrapper around u8_ct_casefold.
9628         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
9629         * lib/unicase/u8-casefold.c: Update.
9630         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
9631         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9632
9633         Define u32_totitle as a wrapper around u32_ct_totitle.
9634         * lib/unicase/u32-totitle.c: Update.
9635         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
9636         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9637
9638         Define u16_totitle as a wrapper around u16_ct_totitle.
9639         * lib/unicase/u16-totitle.c: Update.
9640         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
9641         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9642
9643         Define u8_totitle as a wrapper around u8_ct_totitle.
9644         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
9645         functions.
9646         (FUNC): Delegate to U_CT_TOTITLE.
9647         * lib/unicase/u8-totitle.c: Update.
9648         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
9649         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9650
9651         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
9652         invocation.
9653         * modules/unicase/u32-tolower (Depends-on): Add
9654         unicase/empty-prefix-context, unicase/empty-suffix-context.
9655
9656         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
9657         invocation.
9658         * modules/unicase/u16-tolower (Depends-on): Add
9659         unicase/empty-prefix-context, unicase/empty-suffix-context.
9660
9661         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
9662         * modules/unicase/u8-tolower (Depends-on): Add
9663         unicase/empty-prefix-context, unicase/empty-suffix-context.
9664
9665         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
9666         invocation.
9667         * modules/unicase/u32-toupper (Depends-on): Add
9668         unicase/empty-prefix-context, unicase/empty-suffix-context.
9669
9670         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
9671         invocation.
9672         * modules/unicase/u16-toupper (Depends-on): Add
9673         unicase/empty-prefix-context, unicase/empty-suffix-context.
9674
9675         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
9676         * modules/unicase/u8-toupper (Depends-on): Add
9677         unicase/empty-prefix-context, unicase/empty-suffix-context.
9678
9679         New module 'unicase/u32-ct-casefold'.
9680         * lib/unicase/u32-ct-casefold.c: New file.
9681         * modules/unicase/u32-ct-casefold: New file.
9682
9683         New module 'unicase/u16-ct-casefold'.
9684         * lib/unicase/u16-ct-casefold.c: New file.
9685         * modules/unicase/u16-ct-casefold: New file.
9686
9687         New module 'unicase/u8-ct-casefold'.
9688         * lib/unicase/u8-ct-casefold.c: New file.
9689         * lib/unicase/u-ct-casefold.h: New file, derived from
9690         lib/unicase/u-casefold.h.
9691         * modules/unicase/u8-ct-casefold: New file.
9692
9693         New module 'unicase/u32-ct-totitle'.
9694         * lib/unicase/u32-ct-totitle.c: New file.
9695         * modules/unicase/u32-ct-totitle: New file.
9696
9697         New module 'unicase/u16-ct-totitle'.
9698         * lib/unicase/u16-ct-totitle.c: New file.
9699         * modules/unicase/u16-ct-totitle: New file.
9700
9701         New module 'unicase/u8-ct-totitle'.
9702         * lib/unicase/u8-ct-totitle.c: New file.
9703         * lib/unicase/u-ct-totitle.h: New file, derived from
9704         lib/unicase/u-totitle.h.
9705         * modules/unicase/u8-ct-totitle: New file.
9706
9707         New module 'unicase/u32-ct-tolower'.
9708         * lib/unicase/u32-ct-tolower.c: New file.
9709         * modules/unicase/u32-ct-tolower: New file.
9710
9711         New module 'unicase/u16-ct-tolower'.
9712         * lib/unicase/u16-ct-tolower.c: New file.
9713         * modules/unicase/u16-ct-tolower: New file.
9714
9715         New module 'unicase/u8-ct-tolower'.
9716         * lib/unicase/u8-ct-tolower.c: New file.
9717         * modules/unicase/u8-ct-tolower: New file.
9718
9719         New module 'unicase/u32-ct-toupper'.
9720         * lib/unicase/u32-ct-toupper.c: New file.
9721         * modules/unicase/u32-ct-toupper: New file.
9722
9723         New module 'unicase/u16-ct-toupper'.
9724         * lib/unicase/u16-ct-toupper.c: New file.
9725         * modules/unicase/u16-ct-toupper: New file.
9726
9727         New module 'unicase/u8-ct-toupper'.
9728         * lib/unicase/u8-ct-toupper.c: New file.
9729         * modules/unicase/u8-ct-toupper: New file.
9730
9731         Add context arguments to u*_casemap functions.
9732         * lib/unicase/unicasemap.h: Include unicase.h.
9733         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
9734         suffix_context arguments.
9735         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
9736         functions.
9737         (FUNC): Add prefix_context and suffix_context arguments. Use
9738         uc_is_cased and uc_is_case_ignorable.
9739         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
9740         * lib/unicase/u16-casemap.c: Likewise.
9741         * lib/unicase/u32-casemap.c: Likewise.
9742         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
9743         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9744         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
9745         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9746         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
9747         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9748
9749         New module 'unicase/u32-suffix-context'.
9750         * lib/unicase/u32-suffix-context.c: New file.
9751         * modules/unicase/u32-suffix-context: New file.
9752
9753         New module 'unicase/u16-suffix-context'.
9754         * lib/unicase/u16-suffix-context.c: New file.
9755         * modules/unicase/u16-suffix-context: New file.
9756
9757         New module 'unicase/u8-suffix-context'.
9758         * lib/unicase/u8-suffix-context.c: New file.
9759         * lib/unicase/u-suffix-context.h: New file.
9760         * modules/unicase/u8-suffix-context: New file.
9761
9762         New module 'unicase/empty-suffix-context'.
9763         * lib/unicase/empty-suffix-context.c: New file.
9764         * modules/unicase/empty-suffix-context: New file.
9765
9766         New module 'unicase/u32-prefix-context'.
9767         * lib/unicase/u32-prefix-context.c: New file.
9768         * modules/unicase/u32-prefix-context: New file.
9769
9770         New module 'unicase/u16-prefix-context'.
9771         * lib/unicase/u16-prefix-context.c: New file.
9772         * modules/unicase/u16-prefix-context: New file.
9773
9774         New module 'unicase/u8-prefix-context'.
9775         * lib/unicase/u8-prefix-context.c: New file.
9776         * lib/unicase/u-prefix-context.h: New file.
9777         * lib/unicase/context.h: New file.
9778         * modules/unicase/u8-prefix-context: New file.
9779
9780         New module 'unicase/empty-prefix-context'.
9781         * lib/unicase/empty-prefix-context.c: New file.
9782         * modules/unicase/empty-prefix-context: New file.
9783
9784         New module 'unicase/ignorable'.
9785         * lib/unicase/ignorable.c: New file.
9786         * modules/unicase/ignorable: New file.
9787
9788         New module 'unicase/cased'.
9789         * lib/unicase/caseprop.h: New file.
9790         * lib/unicase/cased.c: New file.
9791         * modules/unicase/cased: New file.
9792
9793         New functions for case mapping of substrings.
9794         * lib/unicase.h (casing_prefix_context_t): New type.
9795         (unicase_empty_prefix_context): New variable.
9796         (u8_casing_prefix_context, u16_casing_prefix_context,
9797         u32_casing_prefix_context, u8_casing_prefixes_context,
9798         u16_casing_prefixes_context, u32_casing_prefixes_context): New
9799         declarations.
9800         (casing_suffix_context_t): New type.
9801         (unicase_empty_suffix_context): New variable.
9802         (u8_casing_suffix_context, u16_casing_suffix_context,
9803         u32_casing_suffix_context, u8_casing_suffixes_context,
9804         u16_casing_suffixes_context, u32_casing_suffixes_context,
9805         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
9806         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
9807         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
9808         declarations.
9809
9810 2009-06-28  Jim Meyering  <meyering@redhat.com>
9811
9812         boostrap: indent only with spaces
9813         * build-aux/bootstrap: Indent only with spaces, never TABs.
9814
9815         bootstrap: split long lines
9816         * build-aux/bootstrap: Keep line length < 80.
9817
9818         bootstrap: sync from coreutils
9819         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
9820         just as autoreconf does.  Verify a list of prerequisite
9821         package-name,version-number pairs if defined in bootstrap.conf.
9822         Refer to README-prereq, if prerequisites are not satisfied.
9823
9824 2009-06-27  Eric Blake  <ebb9@byu.net>
9825
9826         tests: add test for bogus NULL definition
9827         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
9828         * tests/test-stdlib.c: Likewise.
9829         * tests/test-string.c: Likewise.
9830         * tests/test-locale.c: Likewise.
9831         * tests/test-unistd.c: Likewise.
9832         * modules/stdio-tests (Depends-on): Add verify.
9833         * modules/stdlib-tests (Depends-on): Likewise.
9834         * modules/string-tests (Depends-on): Likewise.
9835         * modules/locale-tests (Depends-on): Likewise.
9836         * modules/unistd-tests (Depends-on): Likewise.
9837
9838 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9839
9840         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
9841         self-explaining comment.
9842         * m4/selinux-selinux-h: Update serial.
9843         (gl_LIBSELINUX): New macro, adding a warning for missing development
9844         packages to code extracted from...
9845         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
9846         Add warning for missing development packages here, too.
9847
9848 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
9849
9850         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
9851
9852 2009-06-25  Eric Blake  <ebb9@byu.net>
9853
9854         version-etc: fix regression
9855         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
9856         gcc.
9857         (version_etc): Use it, to catch bugs with trailing NULL.
9858         * lib/version-etc.c (version_etc_arn): Delete unused argument.
9859         (version_etc_va): Fix logic bug.
9860         * modules/version-etc-tests: Add test.
9861         * tests/test-version-etc.c: New file.
9862         * tests/test-version-etc.sh: Likewise.
9863
9864 2009-06-25  Sam Steingold  <sds@gnu.org>
9865
9866         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
9867         mbtowc declaration.
9868
9869 2009-06-25  Eric Blake  <ebb9@byu.net>
9870
9871         fpurge: migrate into <stdio.h>
9872         * lib/fpurge.h: Delete...
9873         * lib/stdio.in.h (fpurge): ...and declare here, instead.
9874         * lib/fpurge.c (fpurge): Change declaring header.
9875         * modules/fpurge (Files): Drop deleted file.
9876         (Depends-on): Add stdio.
9877         (configure.ac): Set witness.
9878         * modules/stdio (Makefile.am): Support fpurge macros.
9879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9880         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
9881         * lib/fflush.c: Update client.
9882         * tests/test-fpurge.c: Likewise.
9883         * NEWS: Mention the change.
9884
9885 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9886
9887         * lib/argp-version-etc.c (program_authors): Add const
9888         qualifier.
9889         * lib/version-etc.c: Fix typos in the comments.
9890         * modules/argp-version-etc: Depends on version-etc.
9891
9892 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9893
9894         argp-version-etc: new module.
9895
9896         * lib/argp-version-etc.c: New file.
9897         * lib/argp-version-etc.h: New file.
9898         * modules/argp-version-etc: New file.
9899         * modules/argp-version-etc-tests: New file.
9900         * tests/test-argp-version-etc.c: New test.
9901         * tests/test-argp-version-etc-1.sh: New test.
9902
9903 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9904
9905         Provide additional interfaces and documentation for version-etc
9906         module.
9907
9908         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
9909         interfaces.
9910         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
9911         prototypes.
9912
9913 2009-06-24  Bruno Haible  <bruno@clisp.org>
9914
9915         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
9916         HAVE_LIB${NAME} macro.
9917         Reported by Sam Steingold <sds@gnu.org>.
9918
9919 2009-06-23  Simon Josefsson  <simon@josefsson.org>
9920
9921         * modules/hash-tests (test_hash_LDADD): Link to libintl when
9922         needed.
9923
9924 2009-06-21  Bruno Haible  <bruno@clisp.org>
9925
9926         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
9927         work.
9928         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
9929         together with LIB${NAME}, LTLIB${NAME}.
9930         Reported by Sam Steingold <sds@gnu.org>.
9931
9932 2009-06-20  Jim Meyering  <meyering@redhat.com>
9933
9934         tests: make sc_require_test_exit_idiom more generic
9935         * top/maint.mk (Exit_witness_file): New overridable variable.
9936         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
9937         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
9938
9939 2009-06-19  Jim Meyering  <meyering@redhat.com>
9940
9941         hash: reverse order of src/dst parameters in an internal interface
9942         * lib/hash.c (transfer_entries): Reverse order of parameters to
9943         put DST before SRC.  Adjust callers.
9944
9945         tests: test-hash: avoid wholesale duplication
9946         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
9947         Instead, use a loop and add a single conditional.
9948
9949         tests: test-hash: allow seed selection via a command line argument
9950         * tests/test-hash.c (get_seed): New function.
9951         (main): Use it.
9952
9953 2009-06-19  Eric Blake  <ebb9@byu.net>
9954
9955         hash: avoid memory leak on allocation failure
9956         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
9957         failure.  Factor repeated algorithm...
9958         (transfer_entries): ...into new helper routine.
9959         (hash_delete): React to hash_rehash return value.
9960
9961         hash: reduce memory pressure in hash_rehash no-op case
9962         * lib/hash.c (next_prime): Avoid overflow.
9963         (hash_initialize): Factor bucket size computation...
9964         (compute_bucket_size): ...into new helper function.
9965         (hash_rehash): Use new function and open coding to reduce memory
9966         pressure, and avoid a memory leak in USE_OBSTACK code.
9967         Reported by Jim Meyering.
9968
9969 2009-06-18  Eric Blake  <ebb9@byu.net>
9970
9971         hash: make rotation more obvious
9972         * modules/hash (Depends-on): Add bitrotate and stdint.
9973         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
9974         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
9975         (SIZE_MAX): Rely on headers for definition.
9976         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
9977         (raw_hasher): Use rotr_sz.
9978         Suggested by Jim Meyering.
9979
9980         hash: fix memory leak in last patch
9981         * lib/hash.c (hash_rehash): Avoid memory leak.
9982
9983         hash: avoid no-op rehashing
9984         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
9985
9986         hash: provide default callback functions
9987         * lib/hash.c (raw_hasher, raw_comparator): New functions.
9988         (hash_initialize): Use them as defaults.
9989         * tests/test-hash.c (main): Test this.
9990
9991         hash: minor optimization
9992         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
9993         when possible.
9994         (hash_initialize): Document this promise.
9995         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
9996         * tests/test-hash.c (hash_compare_strings): Test this.
9997
9998 2009-06-18  Bruno Haible  <bruno@clisp.org>
9999
10000         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
10001         going to be replaced anyway.
10002
10003 2009-06-18  Bruno Haible  <bruno@clisp.org>
10004
10005         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
10006         in one place.
10007         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
10008         be replaced anyway.
10009
10010 2009-06-18  Eric Blake  <ebb9@byu.net>
10011
10012         hash: check for resize before insertion
10013         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
10014         threshold before insertion, so that a pathological hash_rehash
10015         that fills every bucket can still trigger another rehash.
10016
10017 2009-06-18  Jim Meyering  <meyering@redhat.com>
10018
10019         hash-tests: add a loop around the small tests
10020         * tests/test-hash.c (main): Repeat small tests with selected
10021         small initial table sizes.
10022
10023 2009-06-17  Eric Blake  <ebb9@byu.net>
10024
10025         hash: minor cleanups
10026         * lib/hash.h (hash_entry): Make opaque, by moving...
10027         * lib/hash.c (hash_entry): ...here.
10028         (hash_insert): Clarify restrictions on what can be inserted.
10029         (hash_get_next): Clarify when it is safe to remove an element
10030         during traversal.
10031         (check_tuning): Skip verification when tuning is known safe.
10032         (hash_initialize): Clarify restrictions on tuning.
10033
10034 2009-06-17  Jim Meyering  <jim@meyering.net>
10035         and Eric Blake  <ebb9@byu.net>
10036
10037         hash-tests: new module
10038         * modules/hash-tests: New file.
10039         * tests/test-hash.c: New file.
10040
10041 2009-06-17  Eric Blake  <ebb9@byu.net>
10042
10043         strstr-simple: document new module
10044         * MODULES.html.sh: Document new module.
10045
10046         strstr, strcasestr: replace on platforms with broken memchr
10047         * modules/strstr: Split into...
10048         * modules/strstr-simple: ...new module that does not care about
10049         performance, but does care about glibc bug.
10050         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
10051         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
10052         if platform memchr is broken, per Debian bug 521737.
10053         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
10054         memchr.
10055         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
10056         * doc/posix-functions/strstr.texi (strstr): Document the fix.
10057         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10058         * modules/mountlist (Depends-on): Add strstr-simple.
10059         * modules/gen-uni-tables (Depends-on): Likewise.
10060         * modules/argz (Depends-on): Add strstr.
10061
10062 2009-06-17  Bruno Haible  <bruno@clisp.org>
10063
10064         * modules/posix_spawn-internal (Depends-on): Add errno.
10065
10066 2009-06-17  Bruno Haible  <bruno@clisp.org>
10067
10068         Define missing ESTALE on Interix 3.5.
10069         * lib/errno.in.h (ESTALE): Assign a value if missing.
10070         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
10071         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
10072         missing.
10073         * doc/posix-headers/errno.texi: Mention the Interix bug.
10074         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
10075
10076 2009-06-15  Eric Blake  <ebb9@byu.net>
10077
10078         memchr, memchr2: add valgrind exception
10079         * lib/memchr.valgrind: New file.
10080         * lib/memchr2.valgrind: New file.
10081         * modules/memchr (Files): Distribute valgrind file.
10082         * modules/memchr2 (Files): Likewise.
10083
10084         docs: memchr is no longer obsolete
10085         * MODULES.html.sh: Move memchr from obsolete to string.h section.
10086         * lib/string.in.h (memchr): Simplify logic.
10087
10088 2009-06-14  Jim Meyering  <meyering@redhat.com>
10089
10090         link-follow: fix the "checking..." message to not mention trailing slash
10091         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
10092         never considered trailing slashes.
10093
10094 2009-06-14  Bruno Haible  <bruno@clisp.org>
10095
10096         * m4/memchr.m4: Mention also the bug on IA-64.
10097         * doc/posix-functions/memchr.texi: Likewise.
10098
10099 2009-06-12  Eric Blake  <ebb9@byu.net>
10100
10101         memchr: detect broken x86_64 and alpha implementations
10102         * modules/memchr-tests (Depends-on): Move mmap detection...
10103         * modules/memchr (Depends-on): ...here.
10104         (configure.ac): Set indicator.
10105         * lib/string.in.h (memchr): Declare replacement.
10106         * modules/string (Makefile.am): Trigger replacement.
10107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
10108         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
10109         bugs.
10110         * doc/posix-functions/memchr.texi (memchr): Document the bug.
10111         * modules/getpagesize (License): Relax license.
10112
10113 2009-06-11  Bruno Haible  <bruno@clisp.org>
10114
10115         * lib/idpriv.h: Add more references.
10116
10117 2009-06-08  Bruno Haible  <bruno@clisp.org>
10118
10119         Tests for module 'idpriv-droptemp'.
10120         * modules/idpriv-droptemp-tests: New file.
10121         * tests/test-idpriv-droptemp.sh: New file.
10122         * tests/test-idpriv-droptemp.su.sh: New file.
10123         * tests/test-idpriv-droptemp.c: New file.
10124
10125         New module 'idpriv-droptemp'.
10126         * lib/idpriv-droptemp.c: New file.
10127         * modules/idpriv-droptemp: New file.
10128
10129 2009-06-08  Bruno Haible  <bruno@clisp.org>
10130
10131         Tests for module 'idpriv-drop'.
10132         * modules/idpriv-drop-tests: New file.
10133         * tests/test-idpriv-drop.sh: New file.
10134         * tests/test-idpriv-drop.su.sh: New file.
10135         * tests/test-idpriv-drop.c: New file.
10136
10137         New module 'idpriv-drop'.
10138         * lib/idpriv.h: New file.
10139         * lib-idpriv-drop.c: New file.
10140         * m4/idpriv.m4: New file.
10141         * modules/idpriv-drop: New file.
10142
10143 2009-06-08  Bruno Haible  <bruno@clisp.org>
10144
10145         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
10146         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10147         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10148         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10149         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10150         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10151         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10152
10153 2009-06-08  Eric Blake  <ebb9@byu.net>
10154
10155         test-strstr: use memory fence, when possible
10156         * tests/test-strstr.c (main): Use memory fence, in order to be
10157         more likely to trigger Debian bug 521737.
10158         * modules/strstr-tests (Files): Pull in additional files.
10159
10160         memchr: no longer obsolete, for wider field testing
10161         * modules/memchr (Status, Notice): Delete, this module is no
10162         longer obsolete.
10163         * modules/vasnprintf (Depends-on): Add memchr.
10164
10165 2009-06-07  Jim Meyering  <meyering@redhat.com>
10166
10167         hash: declare some functions with the warn_unused_result attribute
10168         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
10169
10170 2009-06-07  Bruno Haible  <bruno@clisp.org>
10171
10172         * tests/test-alignof.c: Don't test int64_t if it does not exist.
10173         Reported by Eric Blake.
10174
10175 2009-06-06  Eric Blake  <ebb9@byu.net>
10176
10177         test-alignof: fix typo with long double
10178         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
10179         compiler error.
10180
10181 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
10182
10183         Escape non-texinfo { and }s.
10184         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
10185         markup error.
10186
10187 2009-06-04  Jim Meyering  <meyering@redhat.com>
10188
10189         gitlog-to-changelog: don't infloop on an empty commit log
10190         * build-aux/gitlog-to-changelog: Warn about an empty log message.
10191         Reported by Boris Petersen <transacid@centerim.org>.
10192
10193 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
10194
10195         version-etc: extend for packagers
10196         Add three new configure options, intended for packagers:
10197           --with-packager="packager name"
10198           --with-packager-version="packager-specific version"
10199           --with-packager-bug-reports="packager bug reporting"
10200         An example with coreutils:
10201           $ ./configure \
10202             --with-packager=Gentoo \
10203             --with-packager-bug-report=http://bugs.gentoo.org/ \
10204             --with-packager-version="patchset 1.6"
10205           $ ./src/ls --version | head -n2
10206           ls (GNU coreutils) 7.1-dirty
10207           Packaged by Gentoo (patchset 1.6)
10208         Note that the bug reporting info via --help doesn't show up because
10209         coreutils uses its own custom emit_bug_reporting_address() implementation
10210         in src/system.h.  If it didn't, it'd look like:
10211           $ ./src/ls --help | tail -n4
10212           Report bugs to <bug-coreutils@gnu.org>.
10213           Report Gentoo bugs to <http://bugs.gentoo.org/>.
10214           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
10215           General help using GNU software: <http://www.gnu.org/gethelp/>.
10216         * lib/version-etc.c: Print new information, if provided.
10217         * m4/version-etc.m4: New file.
10218         * modules/version-etc (Files): Add m4/version-etc.m4.
10219         (configure.ac): Add gl_VERSION_ETC.
10220
10221 2009-05-31  Bruno Haible  <bruno@clisp.org>
10222
10223         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
10224         and 'int64_t'.
10225         * modules/alignof-tests (Dependencies): Add stdint.
10226         Reported by Eric Blake.
10227
10228 2009-05-31  Bruno Haible  <bruno@clisp.org>
10229
10230         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
10231         restriction due to compiler bugs.
10232         Reported by Eric Blake.
10233
10234 2009-05-31  Simon Josefsson  <simon@josefsson.org>
10235             Bruno Haible  <bruno@clisp.org>
10236
10237         Fix test-alignof failure.
10238         * lib/alignof.h (alignof_slot): New macro.
10239         (alignof_type): New macro, with the same semantics as the previous
10240         'alignof'.
10241         (alignof): Alias to alignof_slot.
10242         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
10243         check that the results are usable as constant expressions.
10244
10245 2009-05-31  Bruno Haible  <bruno@clisp.org>
10246
10247         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
10248         * tests/test-memchr.c (main): Check that memchr does not read past the
10249         first occurrence of the byte.
10250         * tests/test-strstr.c (main): Update comment.
10251         Suggested by Eric Blake.
10252
10253 2009-05-30  Bruno Haible  <bruno@clisp.org>
10254
10255         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
10256         detail how to use dumpbin.
10257         Reported by David Byron <dbyron@dbyron.com>.
10258
10259 2009-06-02  Simon Josefsson  <simon@josefsson.org>
10260
10261         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
10262
10263 2009-06-02  Simon Josefsson  <simon@josefsson.org>
10264
10265         * m4/manywarnings.m4: Add GCC 4.4 warnings.
10266
10267 2009-05-28  Bruno Haible  <bruno@clisp.org>
10268
10269         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
10270         build-aux/ files.
10271
10272 2009-05-28  Simon Josefsson  <simon@josefsson.org>
10273
10274         * gnulib-tool (func_import): Transform license on build-aux/ files too.
10275
10276 2009-05-27  Simon Josefsson  <simon@josefsson.org>
10277
10278         * gnulib-tool (sed_transform_main_lib_file)
10279         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
10280         regexps.
10281
10282 2009-05-26  Simon Josefsson  <simon@josefsson.org>
10283
10284         * tests/test-strstr.c: Add another self-test.
10285         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
10286         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
10287
10288 2009-05-23  Bruno Haible  <bruno@clisp.org>
10289
10290         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
10291         change.
10292
10293 2009-05-21  Bruno Haible  <bruno@clisp.org>
10294
10295         Simplify use of mode_t varargs.
10296         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
10297         uses 'mode_t' or 'int'.
10298         * lib/openat.c (openat): Likewise.
10299         * lib/open-safer.c (open_safer): Likewise.
10300         * m4/mode_t.m4: New file.
10301         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
10302         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
10303         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
10304         * modules/open (Files): Add m4/mode_t.m4.
10305         * modules/openat (Files): Likewise.
10306         * modules/fcntl-safer (Files): Likewise.
10307         Suggested by Eric Blake.
10308
10309 2009-05-21  Pádraig Brady  <P@draigbrady.com>
10310
10311         * doc/glibc-functions/fallocate.texi: New file.
10312         * doc/gnulib.texi: Include it.
10313
10314 2009-05-21  Eric Blake  <ebb9@byu.net>
10315             Bruno Haible  <bruno@clisp.org>
10316
10317         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
10318         invocations.
10319         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
10320
10321 2009-05-21  Eric Blake  <ebb9@byu.net>
10322             Bruno Haible  <bruno@clisp.org>
10323
10324         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
10325         include_next. Fix of 2008-11-20 commit.
10326         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
10327         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
10328         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
10329         NEXT_MATH_H.
10330         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
10331         instead of NEXT_MATH_H.
10332
10333 2009-05-21  Bruno Haible  <bruno@clisp.org>
10334
10335         Avoid redefinition warnings for SIZE_MAX.
10336         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
10337         Reported by Simon Josefsson.
10338
10339 2009-05-21  Bruno Haible  <bruno@clisp.org>
10340
10341         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
10342         AC_CACHE_VAL.
10343
10344 2009-05-20  Bruno Haible  <bruno@clisp.org>
10345
10346         Make zeroptr.h work on mingw.
10347         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
10348         mprotect.
10349         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
10350         * modules/memchr2-tests (configure.ac): Likewise.
10351         * modules/memcmp-tests (configure.ac): Likewise.
10352         * modules/memmem-tests (configure.ac): Likewise.
10353         * modules/memrchr-tests (configure.ac): Likewise.
10354         Reported by Simon Josefsson.
10355
10356 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10357
10358         * tests/test-glob.c: Include string.h for strcmp prototype.
10359
10360 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10361
10362         * modules/getdelim (Depends-on): Add explicit stdint, although it
10363         was implicitly already pulled in via realloc-posix.
10364         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
10365
10366 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10367
10368         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
10369         G. Christensen" <tgc@jupiterrise.com>.
10370         * m4/sys_socket_h.m4: Check for sa_family_t.
10371         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
10372         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
10373         * tests/test-sys_socket.c: Check that sa_family_t works.
10374
10375 2009-05-18  Eric Blake  <ebb9@byu.net>
10376
10377         maint.mk: allow gnulib_dir in VPATH build
10378         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
10379
10380 2009-05-15  Jim Meyering  <meyering@redhat.com>
10381
10382         maint.mk: Give gnulib_dir a default definition.
10383         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
10384         Thus, most packages no longer need to specify this variable in cfg.mk
10385
10386 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
10387
10388         rename.m4: fix typos that would make non-mingw cross-configure fail
10389         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
10390
10391 2009-05-13  Eric Blake  <ebb9@byu.net>
10392
10393         mmap-anon: avoid out-of-order autoconf expansion
10394         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
10395         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
10396         * modules/memchr-tests (Depends-on): Add extensions.
10397         * modules/memchr2-tests (Depends-on): Add extensions.
10398         * modules/memcmp-tests (Depends-on): Add extensions.
10399         * modules/memmem-tests (Depends-on): Add extensions.
10400         * modules/memrchr-tests (Depends-on): Add extensions.
10401
10402 2009-05-13  Bruno Haible  <bruno@clisp.org>
10403
10404         Make some tests ISO C 99 compliant.
10405         * tests/zerosize-ptr.h: New file.
10406         * tests/test-memchr.c: Include zerosize-ptr.h.
10407         (main): Use a zero-size object pointer instead of NULL.
10408         * tests/test-memchr2.c: Include zerosize-ptr.h.
10409         (main): Use a zero-size object pointer instead of NULL.
10410         * tests/test-memcmp.c: Include zerosize-ptr.h.
10411         (main): Use a zero-size object pointer instead of NULL.
10412         * tests/test-memmem.c: Include zerosize-ptr.h.
10413         (main): Use a zero-size object pointer instead of NULL.
10414         * tests/test-memrchr.c: Include zerosize-ptr.h.
10415         (main): Use a zero-size object pointer instead of NULL.
10416         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
10417         m4/mmap-anon.m4.
10418         (Depends-on): Add getpagesize.
10419         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10420         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
10421         m4/mmap-anon.m4.
10422         (Depends-on): Add getpagesize.
10423         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10424         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
10425         m4/mmap-anon.m4.
10426         (Depends-on): Add getpagesize.
10427         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10428         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
10429         m4/mmap-anon.m4.
10430         (Depends-on): Add getpagesize.
10431         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10432         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
10433         m4/mmap-anon.m4.
10434         (Depends-on): Add getpagesize.
10435         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10436
10437 2009-05-12  Bruno Haible  <bruno@clisp.org>
10438
10439         Tests for module 'alignof'.
10440         * modules/alignof-tests: New file.
10441         * tests/test-alignof.c: New file.
10442
10443 2009-05-12  Bruno Haible  <bruno@clisp.org>
10444
10445         Fix alignof macro.
10446         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
10447         vendor compilers that are always correct.
10448
10449 2009-05-12  Bruno Haible  <bruno@clisp.org>
10450
10451         Make the MAP_ANONYMOUS detection work on HP-UX 11.
10452         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
10453         not whether its fully works.
10454
10455 2009-05-12  Bruno Haible  <bruno@clisp.org>
10456
10457         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
10458
10459 2009-05-12  Jim Meyering  <meyering@redhat.com>
10460
10461         * top/maint.mk: Adjust backslash alignment.
10462
10463 2009-05-11  Simon Josefsson  <simon@josefsson.org>
10464
10465         * top/maint.mk: Make $(srcdir)/build-aux configurable.
10466
10467 2009-05-11  Eric Blake  <ebb9@byu.net>
10468
10469         argp: avoid undefined behavior
10470         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
10471         macros.
10472
10473 2009-05-08  Simon Josefsson  <simon@josefsson.org>
10474
10475         * tests/test-vc-list-files-git.sh: Do git config of user.email and
10476         user.name to prevent git commit from complaining.
10477
10478 2009-05-10  Bruno Haible  <bruno@clisp.org>
10479
10480         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
10481         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
10482         it rewrites every file name only once.
10483         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
10484
10485 2009-05-08  Bruno Haible  <bruno@clisp.org>
10486
10487         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
10488         instead of 'max'.
10489
10490 2009-05-08  Simon Josefsson  <simon@josefsson.org>
10491
10492         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
10493         sockaddr_storage test.
10494
10495 2009-05-07  Simon Josefsson  <simon@josefsson.org>
10496
10497         * modules/sys_socket (Makefile.am): Substitute
10498         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
10499         * m4/sys_socket_h.m4: Check for sockaddr_storage.
10500         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
10501         * tests/test-sys_socket.c: Check sockaddr_storage.
10502
10503 2009-05-08  Bruno Haible  <bruno@clisp.org>
10504
10505         New module 'alignof'.
10506         * lib/alignof.h: New file.
10507         * modules/alignof: New file.
10508
10509 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10510             Bruno Haible  <bruno@clisp.org>
10511
10512         Fix test-file-has-acl on FreeBSD.
10513         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
10514         mask is implicitly added.
10515         * tests/test-file-has-acl.c: Include <signal.h>.
10516         (main): Terminate the test after 5 seconds.
10517         * modules/acl-tests (configure.ac): Check for alarm function.
10518
10519 2009-05-04  Bruno Haible  <bruno@clisp.org>
10520
10521         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
10522         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
10523         * modules/errno (configure.ac): Drop AC_REQUIRE.
10524         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
10525         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
10526
10527 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10528
10529         * modules/glob-tests: New module.
10530         * tests/test-glob.c: Add.
10531
10532 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10533
10534         * modules/fnmatch-tests: New module.
10535         * tests/test-fnmatch.c: Add.
10536
10537 2009-05-04  Eric Blake  <ebb9@byu.net>
10538
10539         maint: make the new no-submodule-changes rule VPATH-safe
10540         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
10541
10542 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10543             Bruno Haible  <bruno@clisp.org>
10544
10545         acl: Fix infinite loop on FreeBSD.
10546         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
10547         of return value from acl_get_entry.
10548         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
10549         Likewise.
10550
10551 2009-05-03  Bruno Haible  <bruno@clisp.org>
10552
10553         * lib/acl-internal.h (acl_entries): Clarify return value.
10554         * lib/acl_entries.c (acl_entries): Likewise.
10555
10556 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10557
10558         Bug fix in acl module.
10559         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
10560
10561 2009-05-03  Bruno Haible  <bruno@clisp.org>
10562
10563         Create gperf-generated file in the source dir, not in the build dir.
10564         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
10565         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
10566         * modules/unicase/locale-language (unicase/locale-languages.h):
10567         Likewise.
10568         * modules/unicase/special-casing (unicase/special-casing-table.h):
10569         Likewise.
10570         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
10571         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
10572         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
10573         Reported by Ralf Wildenhues.
10574
10575 2009-05-03  Bruno Haible  <bruno@clisp.org>
10576
10577         * modules/fnmatch (Description, configure.ac): Taken from
10578         fnmatch-posix.
10579         * modules/fnmatch-posix: Turn into a symbolic reference to the
10580         'fnmatch' module, and deprecate.
10581         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
10582
10583 2009-05-03  Bruno Haible  <bruno@clisp.org>
10584
10585         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
10586         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
10587         Reported by Ralf Wildenhues.
10588
10589 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10590
10591         * m4/fnmatch.m4: Fix fnmatch re-define.
10592
10593 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10594
10595         priv-set: new module and tests; adapt write-any-file
10596         * lib/priv-set.c: New file.
10597         * lib/priv-set.h: New file.
10598         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
10599         * lib/write-any-file.c: Simplify by using priv-set module.
10600         * m4/priv-set.m4: New file.
10601         * modules/priv-set: New file.
10602         * modules/unlinkdir: Add dependency on priv-set module.
10603         * modules/write-any-file: Likewise.
10604
10605         Tests for module 'priv-set'.
10606         * modules/priv-set-tests: New file.
10607         * tests/test-priv-set.c: New file.
10608
10609 2009-05-03  Jim Meyering  <meyering@redhat.com>
10610             Bruno Haible  <bruno@clisp.org>
10611
10612         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
10613         use the converted UTF-8 variant of the name instead.
10614
10615 2009-05-03  Jim Meyering  <meyering@redhat.com>
10616
10617         tests: tighten some getdate tests
10618         * tests/test-getdate.c (main): Tighten tests: require equality,
10619         not just greater than.  Set TZ envvar to UTC0.
10620
10621 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
10622
10623         getdate: correctly interpret "next monday" when run on a Monday
10624         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
10625         that e.g., "next tues" (when run on a tuesday) results in a date
10626         that is one week in the future, and not today's date.
10627         I.e., add a week when the wday is the same as the current one.
10628         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
10629         and earlier by Martin Bernreuther and Jan Minář.
10630         * tests/test-getdate.c (main): Check that "next DAY" is always in
10631         the future and that "last DAY" is always in the past.
10632
10633 2009-05-02  Jim Meyering  <meyering@redhat.com>
10634
10635         build: ensure that a release build fails when a submodule is unclean
10636         * top/maint.mk (no-submodule-changes): New rule.
10637         (alpha beta major): Depend on it.
10638
10639 2009-05-02  Bruno Haible  <bruno@clisp.org>
10640
10641         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
10642         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
10643         shell variable gl_fnmatch_required to detect which variant is
10644         requested.
10645         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
10646         gl_FUNC_FNMATCH_POSIX.
10647         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
10648         exclude fnmatch-posix.
10649
10650 2009-05-02  Bruno Haible  <bruno@clisp.org>
10651
10652         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
10653         * modules/mbsrtowcs (License): Change to LGPLv2+.
10654         * modules/strnlen1 (License): Likewise.
10655         Reported by Simon Josefsson.
10656
10657 2009-05-02  Bruno Haible  <bruno@clisp.org>
10658
10659         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
10660         "cross".
10661         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
10662         gnulib-tool was called with option --source-base=lib.
10663
10664 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10665
10666         Use automake *-local hooks without commands, for extensibility.
10667         * modules/localcharset (Makefile.am): Rename install-exec-local
10668         rule to install-exec-localcharset, and make it a prerequisite of
10669         install-exec-local.  Likewise, rename the uninstall-local rule to
10670         uninstall-localcharset, and make it a prerequisite of the former.
10671
10672 2009-05-01  Bruno Haible  <bruno@clisp.org>
10673
10674         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
10675         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10676         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
10677         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
10678         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
10679         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10680         m4/locale-zh.m4, m4/codeset.m4.
10681
10682         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10683         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
10684         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10685         m4/locale-zh.m4.
10686
10687         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
10688         REPLACE_WCRTOMB if mbstate_t must be replaced.
10689         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
10690         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
10691
10692 2009-05-01  Bruno Haible  <bruno@clisp.org>
10693
10694         Avoid compiler warnings when redefining macros defined by <libintl.h>.
10695         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
10696         dngettext, dcngettext, textdomain, bindtextdomain,
10697         bind_textdomain_codeset): Undefine before redefining.
10698
10699 2009-04-30  Bruno Haible  <bruno@clisp.org>
10700
10701         Fix bug introduced on 2009-04-25.
10702         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
10703         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
10704         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
10705         is defined.
10706         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
10707         is defined.
10708         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
10709         is defined.
10710         Reported by Elbert_Pol <elbert.pol@gmail.com>.
10711
10712 2009-04-28  Bruno Haible  <bruno@clisp.org>
10713
10714         Comment tweaks.
10715         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
10716         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
10717         * lib/unicase.h (u*_casexfrm): Likewise.
10718         Reported by Paolo Bonzini.
10719
10720 2009-04-28  Bruno Haible  <bruno@clisp.org>
10721
10722         Fix a compilation error.
10723         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
10724         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10725         Reported by Jim Meyering.
10726
10727 2009-04-27  Bruno Haible  <bruno@clisp.org>
10728
10729         New module 'libunistring'.
10730         * modules/libunistring: New file.
10731         * m4/libunistring.m4: New file.
10732         * MODULES.html.sh (Unicode string functions): Add it.
10733
10734 2009-04-27  Eric Blake  <ebb9@byu.net>
10735
10736         maint.mk: allow package-specific header to provide <config.h>
10737         * top/maint.mk (sc_require_config_h): New variable.
10738         (sc_require_config_h, sc_require_config_h_first): Use it.
10739
10740 2009-04-27  Simon Josefsson  <simon@josefsson.org>
10741
10742         * top/maint.mk (sc_avoid_if_before_free): Except
10743         useless-if-before-free script.
10744
10745 2009-04-27  Eric Blake  <ebb9@byu.net>
10746
10747         maintainer-makefile: depend on all required helper scripts
10748         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
10749         useless-if-before-free.
10750         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
10751         version, rather than assuming gnulib checkout is available.
10752         Reported by Simen Josefsson.
10753
10754 2009-04-26  Bruno Haible  <bruno@clisp.org>
10755
10756         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
10757         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
10758         "../" or "..".
10759
10760 2009-04-26  Bruno Haible  <bruno@clisp.org>
10761
10762         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
10763         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
10764         AC_LIB_HAVE_LINKFLAGS.
10765
10766 2009-04-26  Bruno Haible  <bruno@clisp.org>
10767
10768         Simplify calling convention of u*_conv_from_encoding.
10769         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
10770         u32_conv_from_encoding): Expect a resultbuf argument and return the
10771         result directly as a pointer.
10772         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
10773         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
10774         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
10775         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
10776         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
10777         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10778         Update.
10779         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
10780         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
10781         * lib/vasnprintf.c (VASNPRINTF): Update.
10782         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
10783         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
10784         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
10785         * NEWS: Mention the change.
10786
10787 2009-04-26  Bruno Haible  <bruno@clisp.org>
10788
10789         Simplify calling convention of u*_conv_to_encoding.
10790         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
10791         u32_conv_to_encoding): Expect a resultbuf argument and return the
10792         result directly as a pointer.
10793         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10794         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
10795         freeing scaled_offsets if mem_iconveha failed.
10796         * lib/unicase/u-casexfrm.h (FUNC): Update.
10797         * lib/uninorm/u-normxfrm.h (FUNC): Update.
10798         * lib/vasnprintf.c (VASNPRINTF): Update.
10799         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
10800         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
10801         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
10802         * NEWS: Mention the change.
10803
10804 2009-04-26  Bruno Haible  <bruno@clisp.org>
10805
10806         Avoid test failures on AIX and OSF/1.
10807         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
10808         malloc(0).
10809         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10810         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10811         Likewise.
10812         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
10813         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
10814         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
10815         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
10816         * doc/posix-functions/malloc.texi: Document the portability problem
10817         related to malloc(0).
10818
10819 2009-04-26  Bruno Haible  <bruno@clisp.org>
10820
10821         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
10822         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
10823         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
10824
10825 2009-04-25  Bruno Haible  <bruno@clisp.org>
10826
10827         Avoid link error when creating a namespace clean library.
10828         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
10829         as macro with arguments if already defined as an alias.
10830         * lib/signbitf.c (gl_signbitf): Don't undefine.
10831         * lib/signbitd.c (gl_signbitd): Don't undefine.
10832         * lib/signbitl.c (gl_signbitl): Don't undefine.
10833
10834 2009-04-25  Jim Meyering  <meyering@redhat.com>
10835
10836         vc-list-files: fix another quoting bug
10837         * build-aux/vc-list-files: Avoid sed backslash expansion
10838         of pathological directory names.
10839
10840 2009-04-25  Eric Blake  <ebb9@byu.net>
10841
10842         vc-list-files: fix shell quoting error
10843         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
10844         timestamp.
10845
10846 2009-04-25  Jim Meyering  <meyering@redhat.com>
10847
10848         vc-list-files: restore lost functionality with subdir argument
10849         * build-aux/vc-list-files: When given a non-"." sub-directory
10850         argument, substitute the $dir/ prefix back onto each resulting name.
10851         Otherwise, coreutils' root_tests check would fail.
10852
10853 2009-04-24  Eric Blake  <ebb9@byu.net>
10854
10855         vc-list-files: ignore git symlinks
10856         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
10857         than ls-files, to ignore git symlinks.
10858
10859         maint.mk: import improvements from m4
10860         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
10861         (move_if_change): Delete unused macro.
10862         (news-date-check, vc-diff-check): Support VPATH builds.
10863         (announcement): Likewise.  Split --bootstrap-tools list...
10864         (boostrap-tools): ...into separate list, which can be overridden
10865         in cfg.mk.
10866         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
10867         requiring dependency on useless-if-before-free module.
10868         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
10869         Support VPATH builds.
10870
10871 2009-04-24  Jim Meyering  <meyering@redhat.com>
10872
10873         maint.mk: remove coreutils-specific rules and variables
10874         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
10875         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
10876         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
10877
10878         maint.mk: remove obsolete rule
10879         * top/maint.mk (rel-check): Remove rule.
10880         (WGET, WGETFLAGS): Remove now-unused variables.
10881
10882 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10883
10884         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
10885         consistency.
10886
10887         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
10888         '$(PATH_SEPARATOR)' instead of ':'.
10889
10890 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10891
10892         * lib/getopt1.c (main): Use 'const' for static array.
10893
10894 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10895
10896         * top/maint.mk: Sync with coreutils.
10897         * NEWS: Explain incompatibilities.
10898
10899 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10900             Bruno Haible  <bruno@clisp.org>
10901
10902         Fix cross-compilation results.
10903         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
10904         statement, as third argument of AC_TRY_RUN.
10905         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10906         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10907         Likewise.
10908         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10909         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10910         Likewise.
10911         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10912         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
10913         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
10914
10915 2009-04-20  Bruno Haible  <bruno@clisp.org>
10916
10917         Avoid test failure on mingw.
10918         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
10919
10920 2009-04-20  Bruno Haible  <bruno@clisp.org>
10921
10922         Avoid compilation error on mingw.
10923         * modules/localename-tests (Depends-on): Add locale.
10924
10925 2009-04-19  Bruno Haible  <bruno@clisp.org>
10926
10927         Support for building a shared library on Windows platforms.
10928         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
10929         (main): Test the presence of UNINORM_NFC here.
10930         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
10931         (main): Test the presence of UNINORM_NFD here.
10932         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
10933         (main): Test the presence of UNINORM_NFKC here.
10934         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
10935         (main): Test the presence of UNINORM_NFKD here.
10936
10937 2009-04-19  Bruno Haible  <bruno@clisp.org>
10938
10939         Avoid a compiler warning.
10940         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
10941         Change type of variable 'sequence'.
10942
10943 2009-04-19  Bruno Haible  <bruno@clisp.org>
10944
10945         * modules/configmake (Makefile.am): When the contents of configmake.h
10946         does not change, arrange to preserve its modification time.
10947
10948 2009-04-17  Simon Josefsson  <simon@josefsson.org>
10949
10950         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
10951         gettext domain.
10952
10953 2009-04-16  Jim Meyering  <meyering@redhat.com>
10954
10955         useless-if-before-free: improve conversion code
10956         * build-aux/useless-if-before-free: Adjust code-in-comment to match
10957         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
10958
10959 2009-04-14  Bruno Haible  <bruno@clisp.org>
10960
10961         * modules/fcntl (Depends-on): Add extensions.
10962         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
10963
10964 2009-04-12  Ben Pfaff  <blp@gnu.org>
10965
10966         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
10967         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
10968
10969 2009-03-20  Ben Pfaff  <blp@gnu.org>
10970
10971         Make rename replace existing destinations on Windows.
10972         * m4/rename.m4: Add test for Mingw.
10973         * lib/rename.c: Add rename replacement that uses MoveFileEx with
10974         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
10975         * doc/posix-functions/rename.texi: Document.
10976
10977 2009-04-10  Bruno Haible  <bruno@clisp.org>
10978
10979         New include file "iconveh.h".
10980         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
10981         * lib/striconveh.h: Include it.
10982         (enum iconv_ilseq_handler): Remove definition.
10983         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
10984         striconveh.h.
10985         * lib/striconveha.c: Include striconveh.h.
10986         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
10987         * modules/striconveh (Files): Add lib/iconveh.h.
10988         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
10989         lib/striconveh.h.
10990
10991 2009-04-10  Bruno Haible  <bruno@clisp.org>
10992
10993         * lib/uniconv.h: Update comment.
10994
10995 2009-04-10  Bruno Haible  <bruno@clisp.org>
10996
10997         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
10998         always.
10999         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
11000         * lib/unistr/u16-mbtouc-aux.c: Likewise.
11001         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
11002         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
11003         "unistring-notinline.h", so that the function gets defined always.
11004         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
11005         * lib/unistr/u8-uctomb.c: Likewise.
11006         * lib/unistr/u16-mbtouc.c: Likewise.
11007         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
11008         * lib/unistr/u16-uctomb.c: Likewise.
11009         * lib/unistr/u32-mbtouc.c: Likewise.
11010         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
11011         * lib/unistr/u32-uctomb.c: Likewise.
11012
11013 2009-04-10  Bruno Haible  <bruno@clisp.org>
11014
11015         Mark 'utime' obsolete.
11016         * modules/utime (Status, Notice): New sections.
11017         Suggested by Jim Meyering.
11018
11019         Fix cross-compile guess for utime test.
11020         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
11021         autoconf.
11022         * doc/posix-functions/utime.texi: Give more precisions.
11023         Reported by Jan <ipif@ymail.com>.
11024
11025 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
11026
11027         filevercmp: correct today's change
11028         * lib/filevercmp.c: Also handle coreutils' test inputs.
11029         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
11030
11031         Fix regression in 'filevercmp' module. Thanks Sven Joachim
11032         for reporting it.
11033         * lib/filevercmp.c: Special handle for "", "." and "..".
11034         * tests/test-filevercmp.c: Enlarge the set suite.
11035
11036 2009-04-07  Jim Meyering  <meyering@redhat.com>
11037
11038         useless-if-before-free: show how to remove braced useless free, too
11039         * build-aux/useless-if-before-free: still only in a comment, though.
11040
11041 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
11042
11043         maint.mk: import changes to syntax-check macros from coreutils
11044         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
11045         Use them in the relevant macros.
11046
11047 2009-04-06  Bruno Haible  <bruno@clisp.org>
11048
11049         Fix unportable use of bit-fields.
11050         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
11051         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
11052         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
11053
11054 2009-04-06  Bruno Haible  <bruno@clisp.org>
11055
11056         Avoid test failures on AIX and OSF/1.
11057         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
11058         that malloc(0) = NULL.
11059         * tests/unicase/test-u8-tolower.c (check): Likewise.
11060         * tests/unicase/test-u8-totitle.c (check): Likewise.
11061         * tests/unicase/test-u8-toupper.c (check): Likewise.
11062         * tests/unicase/test-u16-casefold.c (check): Likewise.
11063         * tests/unicase/test-u16-tolower.c (check): Likewise.
11064         * tests/unicase/test-u16-totitle.c (check): Likewise.
11065         * tests/unicase/test-u16-toupper.c (check): Likewise.
11066         * tests/unicase/test-u32-casefold.c (check): Likewise.
11067         * tests/unicase/test-u32-tolower.c (check): Likewise.
11068         * tests/unicase/test-u32-totitle.c (check): Likewise.
11069         * tests/unicase/test-u32-toupper.c (check): Likewise.
11070         * tests/uninorm/test-u8-nfc.c (check): Likewise.
11071         * tests/uninorm/test-u8-nfd.c (check): Likewise.
11072         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
11073         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
11074         * tests/uninorm/test-u16-nfc.c (check): Likewise.
11075         * tests/uninorm/test-u16-nfd.c (check): Likewise.
11076         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
11077         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
11078         * tests/uninorm/test-u32-nfc.c (check): Likewise.
11079         * tests/uninorm/test-u32-nfd.c (check): Likewise.
11080         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
11081         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
11082
11083 2009-04-05  Bruno Haible  <bruno@clisp.org>
11084
11085         Work around an autoconf limitation.
11086         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
11087         comment line if it would be longer than 3 KB.
11088
11089 2009-04-05  Bruno Haible  <bruno@clisp.org>
11090
11091         Avoid test failure with libiconv-1.13.
11092         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
11093         of the expected test results.
11094
11095 2009-04-05  Bruno Haible  <bruno@clisp.org>
11096
11097         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
11098         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
11099         that it should be installed.
11100
11101 2009-04-05  Bruno Haible  <bruno@clisp.org>
11102
11103         * gnulib-tool: New option --copy-file.
11104         (func_usage): Document it.
11105         (func_dest_tmpfilename): Moved out of func_import.
11106         (func_add_file, func_update_file): New functions, extracted from
11107         func_import.
11108         (func_import): Update.
11109
11110 2009-04-05  Karl Berry  <karl@gnu.org>
11111
11112         * README: prominently mention gnulib-tool.
11113         Rearrange sections so getting the code is near the top.
11114
11115 2009-04-05  Bruno Haible  <bruno@clisp.org>
11116
11117         * lib/unicase.h: Mention u*_cmp2.
11118         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
11119         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
11120         * lib/unicase/ulc-casecmp.c: Likewise.
11121         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
11122         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
11123         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
11124         unistr/u8-cmp.
11125         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
11126         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
11127         unistr/u16-cmp.
11128         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
11129         unistr/u32-cmp.
11130
11131         * lib/uninorm.h: Mention u*_cmp2.
11132         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
11133         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
11134         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
11135         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
11136         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
11137         unistr/u8-cmp.
11138         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
11139         unistr/u16-cmp.
11140         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
11141         unistr/u32-cmp.
11142
11143         New module 'unistr/u32-cmp2'.
11144         * lib/unistr/u32-cmp2.c: New file.
11145         * modules/unistr/u32-cmp2: New file.
11146
11147         New module 'unistr/u16-cmp2'.
11148         * lib/unistr/u16-cmp2.c: New file.
11149         * modules/unistr/u16-cmp2: New file.
11150
11151         New module 'unistr/u8-cmp2'.
11152         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
11153         * lib/unistr/u8-cmp2.c: New file.
11154         * lib/unistr/u-cmp2.h: New file.
11155         * modules/unistr/u8-cmp2: New file.
11156
11157 2009-04-05  Bruno Haible  <bruno@clisp.org>
11158
11159         * lib/unictype.h (uc_property_is_valid): New macro.
11160         * tests/unictype/test-pr_byname.c (main): Use it.
11161
11162         * lib/unistr.h: Doc fixes.
11163         * lib/uniconv.h: Doc fixes.
11164         * lib/unictype.h: Doc fixes.
11165
11166 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
11167
11168         Port coreutils 7.2 to Solaris 8.
11169
11170         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
11171         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
11172         for Solaris 8.  This is a bit of a hack, as it means it's the
11173         caller's responsibility to add -lnsl if needed, but most likely it
11174         won't be needed since only getaddrinfo uses this and getaddrinfo
11175         isn't needed on Solaris 8.
11176
11177         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
11178         problem to Solaris 8 encountered with coreutils 7.2, which
11179         resulted in a message "fnmatch.c:292: warning: passing argument 4
11180         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
11181         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
11182
11183 2009-04-03  Simon Josefsson  <simon@josefsson.org>
11184
11185         * m4/ld-version-script.m4: Add FIXME comment.
11186
11187 2009-04-02  Simon Josefsson  <simon@josefsson.org>
11188
11189         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
11190         SOVERSION variable.
11191
11192 2009-04-02  Bruno Haible  <bruno@clisp.org>
11193
11194         * Makefile (info, html, dvi, pdf): Combine the rules.
11195         Suggested by Jim Meyering.
11196
11197 2009-04-01  Bruno Haible  <bruno@clisp.org>
11198
11199         * Makefile (info, html, dvi, pdf): New targets.
11200         Reported by Reuben Thomas <rrt@sc3d.org>.
11201
11202 2009-04-01  Bruno Haible  <bruno@clisp.org>
11203
11204         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
11205         can be put into PATH.
11206         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
11207
11208 2009-04-01  Bruno Haible  <bruno@clisp.org>
11209
11210         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
11211
11212 2009-04-01  Bruno Haible  <bruno@clisp.org>
11213
11214         Rename module 'visibility'.
11215         * modules/lib-symbol-visibility: Renamed from modules/visibility.
11216         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
11217         * doc/gnulib.texi: Update.
11218         * MODULES.html.sh (Misc): Update.
11219         * NEWS: Mention the change.
11220
11221 2009-04-01  Simon Josefsson  <simon@josefsson.org>
11222
11223         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
11224         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
11225         Eric Blake <ebb9@byu.net> for review.
11226         * MODULES.html.sh: Add lib-msvc-compat.
11227         * doc/gnulib.texi: Link to new section.
11228         * m4/ld-output-def.m4: New file.
11229         * doc/ld-output-def.texi: New file.
11230
11231 2009-04-01  Simon Josefsson  <simon@josefsson.org>
11232
11233         Rename ld-version-script to lib-symbol-versions.  Suggested by
11234         Bruno Haible <bruno@clisp.org>.
11235         * modules/ld-version-script: Renamed to lib-symbol-versions.
11236         * doc/ld-version-script.texi: Fix module name.
11237         * MODULES.html.sh: Add lib-symbol-versions.
11238
11239 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11240
11241         * modules/u64-tests: New file.
11242         * tests/test-u64.c: New file.
11243
11244 2009-03-04  Simon Josefsson  <simon@josefsson.org>
11245
11246         * MODULES.html.sh: Mention u64.
11247         * modules/u64: New module.
11248         * modules/crypto/sha512: Depend on u64 module instead of providing
11249         u64.h.
11250
11251 2009-03-27  Eric Blake  <ebb9@byu.net>
11252
11253         test-strerror: make debugging EAI_SYSTEM easier
11254         * modules/getaddrinfo-tests (Depends-on): Add strerror.
11255         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
11256         failure was EAI_SYSTEM.
11257
11258 2009-03-25  Bruno Haible  <bruno@clisp.org>
11259
11260         Fix a problem with --enable-relocatable on Solaris 7.
11261         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
11262         since 2008-02-24.
11263
11264 2009-03-25  Eric Blake  <ebb9@byu.net>
11265
11266         test-sockets: avoid gcc warning
11267         * tests/test-sockets.c (main): Silence compiler warning.
11268
11269 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
11270
11271         New modules nproc, pthread, contributed by Glen Lenker.
11272
11273         * MODULES.html.sh: Add pthread, nproc.
11274         * lib/nproc.c: New file.
11275         * lib/nproc.h: New file.
11276         * lib/pthread.in.h: New file.
11277         * m4/pthread.m4: New file.
11278         * modules/nproc: New file.
11279         * modules/pthread: New file.
11280
11281 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11282
11283         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
11284         New variable.
11285
11286 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
11287
11288         filevercmp: handle simple~ and numbered.~3~ backup suffixes
11289         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
11290         * tests/test-filevercmp.c: Add tests for backup suffixes.
11291
11292 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11293
11294         * modules/stdlib (Depends-on): Add stdint, needed when defining
11295         struct random_data on, for example, HP-UX 10.20.  Reported by
11296         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11297
11298 2009-03-24  Simon Josefsson  <simon@josefsson.org>
11299
11300         * lib/readline.c (readline): Call fflush on stdout after printing
11301         prompt.
11302
11303 2009-03-20  Bruno Haible  <bruno@clisp.org>
11304
11305         Remove dependency from 'close' module to -lws2_32 on native Windows.
11306         * lib/close-hook.h: New file.
11307         * lib/close-hook.c: New file.
11308         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
11309         w32sock.h.
11310         (_gl_close_fd_maybe_socket): Remove function.
11311         (rpl_close): Invoke execute_all_close_hooks instead of
11312         _gl_close_fd_maybe_socket.
11313         * lib/sockets.c: Include close-hook.h, w32sock.h.
11314         (close_fd_maybe_socket): New function, essentially from lib/close.c.
11315         (close_sockets_hook): New variable.
11316         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
11317         (gl_sockets_cleanup): Unregister it.
11318         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
11319         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
11320         * modules/close-hook: New file.
11321         * modules/close (Files): Remove lib/w32sock.h.
11322         (Depends-on): Add close-hook.
11323         (Link): Remove section.
11324         * modules/sockets (Files): Add lib/w32sock.h.
11325         (Depends-on): Add close-hook.
11326         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
11327         invocation.
11328         * NEWS: Mention that LIB_CLOSE is gone.
11329
11330 2009-03-23  Eric Blake  <ebb9@byu.net>
11331
11332         signal-tests: test previous patch
11333         * tests/test-signal.c: New file.
11334         * modules/signal-tests: Likewise.
11335
11336         signal.h: always support 'volatile sig_atomic_t'
11337         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
11338         (gl_SIGNAL_H_DEFAULTS): Add a default.
11339         * modules/signal (Makefile.am): Substitute if needed.
11340         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
11341         users can blindly add volatile.
11342         * doc/posix-headers/signal.texi (signal.h): Document it.
11343         Reported by Matthew Woehlke.
11344
11345 2009-03-23  Jim Meyering  <meyering@redhat.com>
11346
11347         pathmax: PATH_MAX: use pathconf only when available
11348         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
11349         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
11350         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
11351         This avoids a link failure in a PSP cross-compilation environment
11352         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
11353
11354         * lib/vasnprintf.c (divide): Fix typo in comment.
11355
11356 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11357
11358         * gnulib-tool (func_filter_filelist): Fix comment.
11359
11360 2009-03-20  Bruno Haible  <bruno@clisp.org>
11361
11362         Make sockets.h self-contained.
11363         * lib/sockets.c: Include sockets.h first.
11364         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
11365
11366 2009-03-19  Eric Blake  <ebb9@byu.net>
11367
11368         doc: mention more functions added in cygwin 1.7.0
11369         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
11370         addition.
11371         * doc/posix-functions/log2f.texi: Likewise.
11372
11373 2009-03-19  Jim Meyering  <meyering@redhat.com>
11374
11375         fsusage: avoid syntax error due to statement-before-declaration
11376         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
11377         after all declarations.  Reported by Matthew Woehlke in
11378         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
11379
11380 2009-03-18  Eric Blake  <ebb9@byu.net>
11381
11382         build-aux/compile: sync from automake
11383         * build-aux/compile: New file, from automake.
11384         * config/srclist.txt: Mention build-aux/compile.
11385
11386 2009-03-17  Bruno Haible  <bruno@clisp.org>
11387
11388         * lib/git-merge-changelog.c: Fix typo in comment.
11389         Reported by Reuben Thomas <rrt@sc3d.org>.
11390
11391 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
11392
11393         * m4/regex.m4: update and improve help for
11394         --without-included-regex.
11395
11396 2009-03-17  Simon Josefsson  <simon@josefsson.org>
11397
11398         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
11399         failure on missing include files.
11400
11401 2009-03-17  Eric Blake  <ebb9@byu.net>
11402
11403         doc: mention more functions added in cygwin 1.7.0
11404         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
11405         addition.
11406         * doc/posix-functions/fwscanf.texi: Likewise.
11407         * doc/posix-functions/swprintf.texi: Likewise.
11408         * doc/posix-functions/swscanf.texi: Likewise.
11409         * doc/posix-functions/vfwprintf.texi: Likewise.
11410         * doc/posix-functions/vfwscanf.texi: Likewise.
11411         * doc/posix-functions/vswprintf.texi: Likewise.
11412         * doc/posix-functions/vswscanf.texi: Likewise.
11413         * doc/posix-functions/vwprintf.texi: Likewise.
11414         * doc/posix-functions/vwscanf.texi: Likewise.
11415         * doc/posix-functions/wcscasecmp.texi: Likewise.
11416         * doc/posix-functions/wcsdup.texi: Likewise.
11417         * doc/posix-functions/wcsftime.texi: Likewise.
11418         * doc/posix-functions/wcsncasecmp.texi: Likewise.
11419         * doc/posix-functions/wprintf.texi: Likewise.
11420         * doc/posix-functions/wscanf.texi: Likewise.
11421         * doc/glibc-functions/gethostbyname2.texi: Likewise.
11422
11423 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11424
11425         maint.mk: really add $(AM_MAKEFLAGS)
11426         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
11427         was inadvertently omitted in the last commit.
11428         Spotted by Bruno Haible.
11429
11430         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
11431         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
11432         $(AM_MAKEFLAGS)' rather than plain `make'.
11433
11434         gnulib-tool: execute $MAKE not make
11435         * gnulib-tool: Default $MAKE to 'make'.
11436         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
11437         than make.  Initialize $MAKE in the do-autobuild script.
11438
11439         gnulib-tool: use $MAKE not make in generated files
11440         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
11441         make, in generated files.  Initialize $MAKE in the do-autobuild
11442         script.
11443
11444         * top/GNUmakefile (_have-git-version-gen): Fix typo.
11445
11446         GNUmakefile: disable parallelism only for multiple, recursive targets
11447         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
11448         additions in the Makefile.
11449         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
11450         by Automake.
11451         (.NOTPARALLEL): Only disable parallel builds if multiple targets
11452         are listed on the command line and at least one of them is
11453         listed in $(ALL_RECURSIVE_TARGETS).
11454
11455 2009-03-14  Bruno Haible  <bruno@clisp.org>
11456
11457         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
11458         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
11459         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
11460         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
11461         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
11462         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
11463         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
11464         unistr/u8-uctomb.
11465         * modules/unistr/u8-strchr (Depends-on): Likewise.
11466         * modules/unistr/u8-strrchr (Depends-on): Likewise.
11467         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
11468         unistr/u16-uctomb.
11469         * modules/unistr/u16-strchr (Depends-on): Likewise.
11470         * modules/unistr/u16-strrchr (Depends-on): Likewise.
11471
11472 2009-03-12  Bruno Haible  <bruno@clisp.org>
11473
11474         Work around select() bug on Interix 3.5.
11475         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
11476         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
11477         * m4/select.m4: New file.
11478         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
11479         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
11480         * modules/select (Files): Add m4/select.m4.
11481         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
11482         * modules/nanosleep (Depends-on): Add select.
11483         * modules/poll (Depends-on): Likewise.
11484         * doc/posix-functions/select.texi: Mention the Interix bug.
11485         Reported by Markus Duft <mduft@gentoo.org>.
11486
11487         * lib/select.c: Renamed from lib/winsock-select.c.
11488         * modules/select (Files): Add lib/select.c, remove
11489         lib/winsock-select.c.
11490         (configure.ac): Update.
11491
11492 2009-03-12  Jim Meyering  <meyering@redhat.com>
11493
11494         avoid gcc warnings about unused macro definitions
11495         * lib/readtokens.c (STREQ): Remove unused definition.
11496         * lib/xmalloc.c (SIZE_MAX): Likewise.
11497         * lib/openat-die.c (N_): Likewise.
11498         * lib/mountlist.c (SIZE_MAX): Remove definition.
11499         Instead, include <stdint.h>.
11500         * lib/readutmp.c: Likewise.
11501         * modules/readutmp (Depends-on): Add stdint.
11502         * modules/mountlist (Depends-on): Add stdint.
11503         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
11504
11505 2009-03-10  Bruno Haible  <bruno@clisp.org>
11506
11507         Tests for module 'mbmemcasecoll'.
11508         * modules/mbmemcasecoll-tests: New file.
11509         * tests/test-mbmemcasecoll1.sh: New file.
11510         * tests/test-mbmemcasecoll2.sh: New file.
11511         * tests/test-mbmemcasecoll3.sh: New file.
11512         * tests/test-mbmemcasecoll.c: New file.
11513
11514         New module 'mbmemcasecoll'.
11515         * lib/mbmemcasecoll.h: New file.
11516         * lib/mbmemcasecoll.c: New file.
11517         * modules/mbmemcasecoll: New file.
11518
11519         * tests/test-mbmemcasecmp.h: New file, extracted from
11520         tests/test-mbmemcasecmp.c.
11521         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
11522         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
11523         (main): Update.
11524         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
11525
11526 2009-03-09  Bruno Haible  <bruno@clisp.org>
11527
11528         Tests for module 'mbmemcasecmp'.
11529         * modules/mbmemcasecmp-tests: New file.
11530         * tests/test-mbmemcasecmp1.sh: New file.
11531         * tests/test-mbmemcasecmp2.sh: New file.
11532         * tests/test-mbmemcasecmp3.sh: New file.
11533         * tests/test-mbmemcasecmp.c: New file.
11534
11535         New module 'mbmemcasecmp'.
11536         * lib/mbmemcasecmp.h: New file.
11537         * lib/mbmemcasecmp.c: New file.
11538         * modules/mbmemcasecmp: New file.
11539
11540 2009-03-09  Bruno Haible  <bruno@clisp.org>
11541
11542         Tests for module 'unicase/ulc-casecoll'.
11543         * modules/unicase/ulc-casecoll-tests: New file.
11544         * tests/unicase/test-ulc-casecoll1.sh: New file.
11545         * tests/unicase/test-ulc-casecoll2.sh: New file.
11546         * tests/unicase/test-ulc-casecoll.c: New file.
11547
11548         New module 'unicase/ulc-casecoll'.
11549         * lib/unicase.h (ulc_casecoll): New declaration.
11550         * lib/unicase/ulc-casecoll.c: New file.
11551         * modules/unicase/ulc-casecoll: New file.
11552
11553         New module 'unicase/ulc-casexfrm'.
11554         * lib/unicase.h (ulc_casexfrm): New declaration.
11555         * lib/unicase/ulc-casexfrm.c: New file.
11556         * modules/unicase/ulc-casexfrm: New file.
11557
11558 2009-03-09  Bruno Haible  <bruno@clisp.org>
11559
11560         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
11561         invocations.
11562
11563         * m4/mbscasecmp.m4: Remove file.
11564         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
11565         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
11566
11567         * m4/mbscasestr.m4: Remove file.
11568         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
11569         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
11570
11571         * m4/mbschr.m4: Remove file.
11572         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
11573         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
11574
11575         * m4/mbscspn.m4: Remove file.
11576         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
11577         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
11578
11579         * m4/mbslen.m4: Remove file.
11580         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
11581         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
11582
11583         * m4/mbsncasecmp.m4: Remove file.
11584         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
11585         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
11586
11587         * m4/mbsnlen.m4: Remove file.
11588         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
11589         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
11590
11591         * m4/mbspbrk.m4: Remove file.
11592         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
11593         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
11594
11595         * m4/mbspcasecmp.m4: Remove file.
11596         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
11597         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
11598
11599         * m4/mbsrchr.m4: Remove file.
11600         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
11601         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
11602
11603         * m4/mbssep.m4: Remove file.
11604         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
11605         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
11606
11607         * m4/mbsspn.m4: Remove file.
11608         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
11609         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
11610
11611         * m4/mbsstr.m4: Remove file.
11612         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
11613         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
11614
11615         * m4/mbstok_r.m4: Remove file.
11616         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
11617         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
11618
11619         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
11620
11621         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
11622         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
11623
11624         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
11625
11626 2009-03-08  Bruno Haible  <bruno@clisp.org>
11627
11628         Tests for module 'unicase/ulc-casecmp'.
11629         * modules/unicase/ulc-casecmp-tests: New file.
11630         * tests/unicase/test-ulc-casecmp1.sh: New file.
11631         * tests/unicase/test-ulc-casecmp2.sh: New file.
11632         * tests/unicase/test-ulc-casecmp.c: New file.
11633
11634         New module 'unicase/ulc-casecmp'.
11635         * lib/unicase.h (ulc_casecmp): New declaration.
11636         * lib/unicase/ulc-casecmp.c: New file.
11637         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
11638         'const SRC_UNIT *'.
11639         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
11640         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
11641         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
11642         * modules/unicase/ulc-casecmp: New file.
11643
11644         Tests for module 'unicase/u32-is-cased'.
11645         * modules/unicase/u32-is-cased-tests: New file.
11646         * tests/unicase/test-u32-is-cased.c: New file.
11647
11648         Tests for module 'unicase/u16-is-cased'.
11649         * modules/unicase/u16-is-cased-tests: New file.
11650         * tests/unicase/test-u16-is-cased.c: New file.
11651
11652         Tests for module 'unicase/u8-is-cased'.
11653         * modules/unicase/u8-is-cased-tests: New file.
11654         * tests/unicase/test-u8-is-cased.c: New file.
11655         * tests/unicase/test-is-cased.h: New file.
11656
11657         New module 'unicase/u32-is-cased'.
11658         * lib/unicase/u32-is-cased.c: New file.
11659         * modules/unicase/u32-is-cased: New file.
11660
11661         New module 'unicase/u16-is-cased'.
11662         * lib/unicase/u16-is-cased.c: New file.
11663         * modules/unicase/u16-is-cased: New file.
11664
11665         New module 'unicase/u8-is-cased'.
11666         * lib/unicase/u8-is-cased.c: New file.
11667         * lib/unicase/u-is-cased.h: New file.
11668         * modules/unicase/u8-is-cased: New file.
11669
11670         Tests for module 'unicase/u32-is-casefolded'.
11671         * modules/unicase/u32-is-casefolded-tests: New file.
11672         * tests/unicase/test-u32-is-casefolded.c: New file.
11673
11674         Tests for module 'unicase/u16-is-casefolded'.
11675         * modules/unicase/u16-is-casefolded-tests: New file.
11676         * tests/unicase/test-u16-is-casefolded.c: New file.
11677
11678         Tests for module 'unicase/u8-is-casefolded'.
11679         * modules/unicase/u8-is-casefolded-tests: New file.
11680         * tests/unicase/test-u8-is-casefolded.c: New file.
11681         * tests/unicase/test-is-casefolded.h: New file.
11682
11683         New module 'unicase/u32-is-casefolded'.
11684         * lib/unicase/u32-is-casefolded.c: New file.
11685         * modules/unicase/u32-is-casefolded: New file.
11686
11687         New module 'unicase/u16-is-casefolded'.
11688         * lib/unicase/u16-is-casefolded.c: New file.
11689         * modules/unicase/u16-is-casefolded: New file.
11690
11691         New module 'unicase/u8-is-casefolded'.
11692         * lib/unicase/u8-is-casefolded.c: New file.
11693         * modules/unicase/u8-is-casefolded: New file.
11694
11695         Tests for module 'unicase/u32-is-titlecase'.
11696         * modules/unicase/u32-is-titlecase-tests: New file.
11697         * tests/unicase/test-u32-is-titlecase.c: New file.
11698
11699         Tests for module 'unicase/u16-is-titlecase'.
11700         * modules/unicase/u16-is-titlecase-tests: New file.
11701         * tests/unicase/test-u16-is-titlecase.c: New file.
11702
11703         Tests for module 'unicase/u8-is-titlecase'.
11704         * modules/unicase/u8-is-titlecase-tests: New file.
11705         * tests/unicase/test-u8-is-titlecase.c: New file.
11706         * tests/unicase/test-is-titlecase.h: New file.
11707
11708         New module 'unicase/u32-is-titlecase'.
11709         * lib/unicase/u32-is-titlecase.c: New file.
11710         * modules/unicase/u32-is-titlecase: New file.
11711
11712         New module 'unicase/u16-is-titlecase'.
11713         * lib/unicase/u16-is-titlecase.c: New file.
11714         * modules/unicase/u16-is-titlecase: New file.
11715
11716         New module 'unicase/u8-is-titlecase'.
11717         * lib/unicase/u8-is-titlecase.c: New file.
11718         * modules/unicase/u8-is-titlecase: New file.
11719
11720         Tests for module 'unicase/u32-is-lowercase'.
11721         * modules/unicase/u32-is-lowercase-tests: New file.
11722         * tests/unicase/test-u32-is-lowercase.c: New file.
11723
11724         Tests for module 'unicase/u16-is-lowercase'.
11725         * modules/unicase/u16-is-lowercase-tests: New file.
11726         * tests/unicase/test-u16-is-lowercase.c: New file.
11727
11728         Tests for module 'unicase/u8-is-lowercase'.
11729         * modules/unicase/u8-is-lowercase-tests: New file.
11730         * tests/unicase/test-u8-is-lowercase.c: New file.
11731         * tests/unicase/test-is-lowercase.h: New file.
11732
11733         New module 'unicase/u32-is-lowercase'.
11734         * lib/unicase/u32-is-lowercase.c: New file.
11735         * modules/unicase/u32-is-lowercase: New file.
11736
11737         New module 'unicase/u16-is-lowercase'.
11738         * lib/unicase/u16-is-lowercase.c: New file.
11739         * modules/unicase/u16-is-lowercase: New file.
11740
11741         New module 'unicase/u8-is-lowercase'.
11742         * lib/unicase/u8-is-lowercase.c: New file.
11743         * modules/unicase/u8-is-lowercase: New file.
11744
11745         Tests for module 'unicase/u32-is-uppercase'.
11746         * modules/unicase/u32-is-uppercase-tests: New file.
11747         * tests/unicase/test-u32-is-uppercase.c: New file.
11748
11749         Tests for module 'unicase/u16-is-uppercase'.
11750         * modules/unicase/u16-is-uppercase-tests: New file.
11751         * tests/unicase/test-u16-is-uppercase.c: New file.
11752
11753         Tests for module 'unicase/u8-is-uppercase'.
11754         * modules/unicase/u8-is-uppercase-tests: New file.
11755         * tests/unicase/test-u8-is-uppercase.c: New file.
11756         * tests/unicase/test-is-uppercase.h: New file.
11757
11758         New module 'unicase/u32-is-uppercase'.
11759         * lib/unicase/u32-is-uppercase.c: New file.
11760         * modules/unicase/u32-is-uppercase: New file.
11761
11762         New module 'unicase/u16-is-uppercase'.
11763         * lib/unicase/u16-is-uppercase.c: New file.
11764         * modules/unicase/u16-is-uppercase: New file.
11765
11766         New module 'unicase/u8-is-uppercase'.
11767         * lib/unicase/u8-is-uppercase.c: New file.
11768         * modules/unicase/u8-is-uppercase: New file.
11769
11770         New module 'unicase/u32-is-invariant'.
11771         * lib/unicase/u32-is-invariant.c: New file.
11772         * modules/unicase/u32-is-invariant: New file.
11773
11774         New module 'unicase/u16-is-invariant'.
11775         * lib/unicase/u16-is-invariant.c: New file.
11776         * modules/unicase/u16-is-invariant: New file.
11777
11778         New module 'unicase/u8-is-invariant'.
11779         * lib/unicase/u8-is-invariant.c: New file.
11780         * lib/unicase/invariant.h: New file.
11781         * lib/unicase/u-is-invariant.h: New file.
11782         * modules/unicase/u8-is-invariant: New file.
11783
11784         Tests for module 'unicase/u32-casecoll'.
11785         * modules/unicase/u32-casecoll-tests: New file.
11786         * tests/unicase/test-u32-casecoll.c: New file.
11787
11788         Tests for module 'unicase/u16-casecoll'.
11789         * modules/unicase/u16-casecoll-tests: New file.
11790         * tests/unicase/test-u16-casecoll.c: New file.
11791
11792         Tests for module 'unicase/u8-casecoll'.
11793         * modules/unicase/u8-casecoll-tests: New file.
11794         * tests/unicase/test-u8-casecoll.c: New file.
11795
11796         New module 'unicase/u32-casecoll'.
11797         * lib/unicase/u32-casecoll.c: New file.
11798         * modules/unicase/u32-casecoll: New file.
11799
11800         New module 'unicase/u16-casecoll'.
11801         * lib/unicase/u16-casecoll.c: New file.
11802         * modules/unicase/u16-casecoll: New file.
11803
11804         New module 'unicase/u8-casecoll'.
11805         * lib/unicase/u8-casecoll.c: New file.
11806         * lib/unicase/u-casecoll.h: New file.
11807         * modules/unicase/u8-casecoll: New file.
11808
11809         New module 'unicase/u32-casexfrm'.
11810         * lib/unicase/u32-casexfrm.c: New file.
11811         * modules/unicase/u32-casexfrm: New file.
11812
11813         New module 'unicase/u16-casexfrm'.
11814         * lib/unicase/u16-casexfrm.c: New file.
11815         * modules/unicase/u16-casexfrm: New file.
11816
11817         New module 'unicase/u8-casexfrm'.
11818         * lib/unicase/u8-casexfrm.c: New file.
11819         * lib/unicase/u-casexfrm.h: New file.
11820         * modules/unicase/u8-casexfrm: New file.
11821
11822         Tests for module 'unicase/u32-casecmp'.
11823         * modules/unicase/u32-casecmp-tests: New file.
11824         * tests/unicase/test-u32-casecmp.c: New file.
11825
11826         Tests for module 'unicase/u16-casecmp'.
11827         * modules/unicase/u16-casecmp-tests: New file.
11828         * tests/unicase/test-u16-casecmp.c: New file.
11829
11830         Tests for module 'unicase/u8-casecmp'.
11831         * modules/unicase/u8-casecmp-tests: New file.
11832         * tests/unicase/test-u8-casecmp.c: New file.
11833         * tests/unicase/test-casecmp.h: New file.
11834
11835         New module 'unicase/u32-casecmp'.
11836         * lib/unicase/u32-casecmp.c: New file.
11837         * modules/unicase/u32-casecmp: New file.
11838
11839         New module 'unicase/u16-casecmp'.
11840         * lib/unicase/u16-casecmp.c: New file.
11841         * modules/unicase/u16-casecmp: New file.
11842
11843         New module 'unicase/u8-casecmp'.
11844         * lib/unicase/u8-casecmp.c: New file.
11845         * lib/unicase/u-casecmp.h: New file.
11846         * modules/unicase/u8-casecmp: New file.
11847
11848         Tests for module 'unicase/u32-casefold'.
11849         * modules/unicase/u32-casefold-tests: New file.
11850         * tests/unicase/test-u32-casefold.c: New file.
11851
11852         Tests for module 'unicase/u16-casefold'.
11853         * modules/unicase/u16-casefold-tests: New file.
11854         * tests/unicase/test-u16-casefold.c: New file.
11855
11856         Tests for module 'unicase/u8-casefold'.
11857         * modules/unicase/u8-casefold-tests: New file.
11858         * tests/unicase/test-u8-casefold.c: New file.
11859
11860         New module 'unicase/u32-casefold'.
11861         * lib/unicase/u32-casefold.c: New file.
11862         * modules/unicase/u32-casefold: New file.
11863
11864         New module 'unicase/u16-casefold'.
11865         * lib/unicase/u16-casefold.c: New file.
11866         * modules/unicase/u16-casefold: New file.
11867
11868         New module 'unicase/u8-casefold'.
11869         * lib/unicase/u8-casefold.c: New file.
11870         * lib/unicase/u-casefold.h: New file.
11871         * modules/unicase/u8-casefold: New file.
11872
11873         New module 'unicase/tocasefold'.
11874         * lib/unicase/casefold.h: New file.
11875         * lib/unicase/tocasefold.c: New file.
11876         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
11877         * modules/unicase/tocasefold: New file.
11878
11879         Tests for module 'unicase/u32-totitle'.
11880         * modules/unicase/u32-totitle-tests: New file.
11881         * tests/unicase/test-u32-totitle.c: New file.
11882
11883         Tests for module 'unicase/u16-totitle'.
11884         * modules/unicase/u16-totitle-tests: New file.
11885         * tests/unicase/test-u16-totitle.c: New file.
11886
11887         Tests for module 'unicase/u8-totitle'.
11888         * modules/unicase/u8-totitle-tests: New file.
11889         * tests/unicase/test-u8-totitle.c: New file.
11890
11891         New module 'unicase/u32-totitle'.
11892         * lib/unicase/u32-totitle.c: New file.
11893         * modules/unicase/u32-totitle: New file.
11894
11895         New module 'unicase/u16-totitle'.
11896         * lib/unicase/u16-totitle.c: New file.
11897         * modules/unicase/u16-totitle: New file.
11898
11899         New module 'unicase/u8-totitle'.
11900         * lib/unicase/u8-totitle.c: New file.
11901         * lib/unicase/u-totitle.h: New file.
11902         * modules/unicase/u8-totitle: New file.
11903
11904         Tests for module 'unicase/u32-tolower'.
11905         * modules/unicase/u32-tolower-tests: New file.
11906         * tests/unicase/test-u32-tolower.c: New file.
11907
11908         Tests for module 'unicase/u16-tolower'.
11909         * modules/unicase/u16-tolower-tests: New file.
11910         * tests/unicase/test-u16-tolower.c: New file.
11911
11912         Tests for module 'unicase/u8-tolower'.
11913         * modules/unicase/u8-tolower-tests: New file.
11914         * tests/unicase/test-u8-tolower.c: New file.
11915
11916         New module 'unicase/u32-tolower'.
11917         * lib/unicase/u32-tolower.c: New file.
11918         * modules/unicase/u32-tolower: New file.
11919
11920         New module 'unicase/u16-tolower'.
11921         * lib/unicase/u16-tolower.c: New file.
11922         * modules/unicase/u16-tolower: New file.
11923
11924         New module 'unicase/u8-tolower'.
11925         * lib/unicase/u8-tolower.c: New file.
11926         * modules/unicase/u8-tolower: New file.
11927
11928         Tests for module 'unicase/u32-toupper'.
11929         * modules/unicase/u32-toupper-tests: New file.
11930         * tests/unicase/test-u32-toupper.c: New file.
11931
11932         Tests for module 'unicase/u16-toupper'.
11933         * modules/unicase/u16-toupper-tests: New file.
11934         * tests/unicase/test-u16-toupper.c: New file.
11935
11936         Tests for module 'unicase/u8-toupper'.
11937         * modules/unicase/u8-toupper-tests: New file.
11938         * tests/unicase/test-u8-toupper.c: New file.
11939
11940         New module 'unicase/u32-toupper'.
11941         * lib/unicase/u32-toupper.c: New file.
11942         * modules/unicase/u32-toupper: New file.
11943
11944         New module 'unicase/u16-toupper'.
11945         * lib/unicase/u16-toupper.c: New file.
11946         * modules/unicase/u16-toupper: New file.
11947
11948         New module 'unicase/u8-toupper'.
11949         * lib/unicase/u8-toupper.c: New file.
11950         * modules/unicase/u8-toupper: New file.
11951
11952         New module 'unicase/u32-casemap'.
11953         * lib/unicase/u32-casemap.c: New file.
11954         * modules/unicase/u32-casemap: New file.
11955
11956         New module 'unicase/u16-casemap'.
11957         * lib/unicase/u16-casemap.c: New file.
11958         * modules/unicase/u16-casemap: New file.
11959
11960         New module 'unicase/u8-casemap'.
11961         * lib/unicase/unicasemap.h: New file.
11962         * lib/unicase/u8-casemap.c: New file.
11963         * lib/unicase/u-casemap.h: New file.
11964         * modules/unicase/u8-casemap: New file.
11965
11966         New module 'unicase/special-casing'.
11967         * lib/unicase/special-casing.h: New file.
11968         * lib/unicase/special-casing.c: New file.
11969         * lib/unicase/special-casing-table.gperf: New file, generated by
11970         gen-uni-tables.c.
11971         * modules/unicase/special-casing: New file.
11972
11973         Tests for module 'unicase/locale-language'.
11974         * modules/unicase/locale-language-tests: New file.
11975         * tests/unicase/test-locale-language.sh: New file.
11976         * tests/unicase/test-locale-language.c: New file.
11977
11978         New module 'unicase/locale-language'.
11979         * lib/unicase/locale-language.c: New file.
11980         * lib/unicase/locale-languages.gperf: New file.
11981         * modules/unicase/locale-language: New file.
11982
11983         Generate more tables for case conversion and case folding.
11984         * lib/gen-uni-tables.c (SCC_*): New enum items.
11985         (struct special_casing_rule): New type.
11986         (casing_rules, num_casing_rules, allocated_casing_rules): New
11987         variables.
11988         (add_casing_rule, fill_casing_rules): New functions.
11989         (struct casefold_rule): New type.
11990         (casefolding_rules, num_casefolding_rules,
11991         allocated_casefolding_rules): New variables.
11992         (fill_casefolding_rules): New function.
11993         (unicode_casefold): New variable.
11994         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
11995         sort_casing_rules, output_casing_rules): New functions.
11996         (main): Accept to more arguments: SpecialCasing.txt and
11997         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
11998         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
11999         Output mapping for casefolding.
12000
12001         * lib/unicase.h: Include stdbool.h, uninorm.h.
12002         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
12003         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
12004         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
12005         arguments.
12006         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
12007         resultp arguments.
12008         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
12009         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
12010         resultp arguments.
12011         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
12012         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
12013         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
12014         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
12015         declarations.
12016         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
12017
12018 2009-03-08  Bruno Haible  <bruno@clisp.org>
12019
12020         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
12021         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
12022         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
12023         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
12024
12025 2009-03-07  Bruno Haible  <bruno@clisp.org>
12026
12027         Adjust u*_normcmp, u*_normcoll API.
12028         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
12029         u16_normcoll, u32_normcoll): Change failure conventions.
12030         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
12031         errno and return -1.
12032         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
12033
12034 2009-03-07  Bruno Haible  <bruno@clisp.org>
12035
12036         Tests for module 'uninorm/u32-normcoll'.
12037         * modules/uninorm/u32-normcoll-tests: New file.
12038         * tests/uninorm/test-u32-normcoll.c: New file.
12039
12040         Tests for module 'uninorm/u16-normcoll'.
12041         * modules/uninorm/u16-normcoll-tests: New file.
12042         * tests/uninorm/test-u16-normcoll.c: New file.
12043
12044         Tests for module 'uninorm/u8-normcoll'.
12045         * modules/uninorm/u8-normcoll-tests: New file.
12046         * tests/uninorm/test-u8-normcoll.c: New file.
12047
12048 2009-03-07  Bruno Haible  <bruno@clisp.org>
12049
12050         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
12051         tests/uninorm/test-u32-normcmp.c.
12052         * tests/uninorm/test-u32-normcmp.c: Include it.
12053         (test_nonascii): New function, extracted from main. Add some more
12054         tests.
12055         (main): Invoke test_ascii and test_nonascii.
12056         * modules/uninorm/u32-normcmp-tests (Files): Add
12057         tests/uninorm/test-u32-normcmp.h.
12058         (Depends-on): Remove uninorm/u32-normcmp.
12059
12060         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
12061         tests/uninorm/test-u16-normcmp.c.
12062         * tests/uninorm/test-u16-normcmp.c: Include it.
12063         (test_nonascii): New function, extracted from main. Add some more
12064         tests.
12065         (main): Invoke test_ascii and test_nonascii.
12066         * modules/uninorm/u16-normcmp-tests (Files): Add
12067         tests/uninorm/test-u16-normcmp.h.
12068         (Depends-on): Remove uninorm/u16-normcmp.
12069
12070         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
12071         tests/uninorm/test-u8-normcmp.c.
12072         * tests/uninorm/test-u8-normcmp.c: Include it.
12073         (test_nonascii): New function, extracted from main. Add some more
12074         tests.
12075         (main): Invoke test_ascii and test_nonascii.
12076         * modules/uninorm/u8-normcmp-tests (Files): Add
12077         tests/uninorm/test-u8-normcmp.h.
12078         (Depends-on): Remove uninorm/u8-normcmp.
12079
12080 2009-03-07  Bruno Haible  <bruno@clisp.org>
12081
12082         New module 'uninorm/u32-normcoll'.
12083         * lib/uninorm/u32-normcoll.c: New file.
12084         * modules/uninorm/u32-normcoll: New file.
12085
12086         New module 'uninorm/u16-normcoll'.
12087         * lib/uninorm/u16-normcoll.c: New file.
12088         * modules/uninorm/u16-normcoll: New file.
12089
12090         New module 'uninorm/u8-normcoll'.
12091         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
12092         declarations.
12093         * lib/uninorm/u8-normcoll.c: New file.
12094         * lib/uninorm/u-normcoll.h: New file.
12095         * modules/uninorm/u8-normcoll: New file.
12096
12097         New module 'uninorm/u32-normxfrm'.
12098         * lib/uninorm/u32-normxfrm.c: New file.
12099         * modules/uninorm/u32-normxfrm: New file.
12100
12101         New module 'uninorm/u16-normxfrm'.
12102         * lib/uninorm/u16-normxfrm.c: New file.
12103         * modules/uninorm/u16-normxfrm: New file.
12104
12105         New module 'uninorm/u8-normxfrm'.
12106         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
12107         declarations.
12108         * lib/uninorm/u8-normxfrm.c: New file.
12109         * lib/uninorm/u-normxfrm.h: New file.
12110         * modules/uninorm/u8-normxfrm: New file.
12111
12112 2009-03-07  Bruno Haible  <bruno@clisp.org>
12113
12114         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
12115         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
12116         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
12117
12118 2009-03-07  Bruno Haible  <bruno@clisp.org>
12119
12120         New module 'memxfrm'.
12121         * lib/memxfrm.h: New file.
12122         * lib/memxfrm.c: New file.
12123         * modules/memxfrm: New file.
12124
12125 2009-03-07  Bruno Haible  <bruno@clisp.org>
12126
12127         New module 'memcmp2'.
12128         * lib/memcmp2.h: New file.
12129         * lib/memcmp2.c: New file.
12130         * modules/memcmp2: New file.
12131
12132 2009-03-07  Bruno Haible  <bruno@clisp.org>
12133
12134         Tests for module 'uninorm/decomposing-form'.
12135         * modules/uninorm/decomposing-form-tests: New file.
12136         * tests/uninorm/test-decomposing-form.c: New file.
12137
12138         New module 'uninorm/decomposing-form'.
12139         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
12140         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
12141         Add 'decomposing_variant' field.
12142         * lib/uninorm/decomposing-form.c: New file.
12143         * lib/uninorm/nfc.c (uninorm_nfc): Update.
12144         * lib/uninorm/nfd.c (uninorm_nfd): Update.
12145         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
12146         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
12147         * modules/uninorm/decomposing-form: New file.
12148         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
12149         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
12150
12151 2009-03-07  Bruno Haible  <bruno@clisp.org>
12152
12153         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
12154         strings.
12155
12156 2009-03-06  Bruno Haible  <bruno@clisp.org>
12157
12158         Tests for module 'uninorm/u32-normcmp'.
12159         * tests/uninorm/test-u32-normcmp.c: New file.
12160         * modules/uninorm/u32-normcmp-tests: New file.
12161
12162         Tests for module 'uninorm/u16-normcmp'.
12163         * tests/uninorm/test-u16-normcmp.c: New file.
12164         * modules/uninorm/u16-normcmp-tests: New file.
12165
12166         Tests for module 'uninorm/u8-normcmp'.
12167         * tests/uninorm/test-u8-normcmp.c: New file.
12168         * modules/uninorm/u8-normcmp-tests: New file.
12169
12170         New module 'uninorm/u32-normcmp'.
12171         * lib/uninorm/u32-normcmp.c: New file.
12172         * modules/uninorm/u32-normcmp: New file.
12173
12174         New module 'uninorm/u16-normcmp'.
12175         * lib/uninorm/u16-normcmp.c: New file.
12176         * modules/uninorm/u16-normcmp: New file.
12177
12178         New module 'uninorm/u8-normcmp'.
12179         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
12180         declarations.
12181         * lib/uninorm/u8-normcmp.c: New file.
12182         * lib/uninorm/u-normcmp.h: New file.
12183         * modules/uninorm/u8-normcmp: New file.
12184
12185 2009-03-06  Bruno Haible  <bruno@clisp.org>
12186
12187         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
12188         Reported by Eric Blake.
12189
12190 2009-03-06  Eric Blake  <ebb9@byu.net>
12191             Bruno Haible  <bruno@clisp.org>
12192
12193         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
12194         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
12195         condition.
12196         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
12197         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
12198         condition.
12199         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
12200
12201 2009-03-06  Eric Blake  <ebb9@byu.net>
12202
12203         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
12204         to avoid compiler warnings.
12205         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
12206
12207 2009-03-05  Bruno Haible  <bruno@clisp.org>
12208
12209         * tests/test-ftell.c (main): Disable test beyond end of file on
12210         FreeMiNT.
12211         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12212
12213 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
12214
12215         * lib/filevercmp.c: Move hidden files up in ordering.
12216         * tests/test-filevercmp.c: Add tests for hidden files.
12217
12218 2009-03-04  Bruno Haible  <bruno@clisp.org>
12219
12220         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
12221         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
12222         AM_CFLAGS.
12223         Reported by Simon Josefsson.
12224
12225 2009-03-03  Bruno Haible  <bruno@clisp.org>
12226
12227         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
12228         Reported by Simon Josefsson.
12229
12230         * doc/ld-version-script.texi: Update node reference.
12231
12232 2009-03-03  Bruno Haible  <bruno@clisp.org>
12233
12234         * modules/visibility (License): Change to 'unlimited'.
12235         Suggested by Simon Josefsson.
12236
12237 2009-03-03  Jim Meyering  <meyering@redhat.com>
12238
12239         unlinkdir: cannot_unlink_dir may modify process state
12240         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
12241         it's neither thread-safe nor appropriate for use in a library.
12242
12243 2009-03-03  Eric Blake  <ebb9@byu.net>
12244
12245         test-closein: silence test under Darwin
12246         * tests/test-closein.sh: Ignore stderr from cat, since we don't
12247         care if it dies from EPIPE or EBADF.
12248
12249 2009-03-03  Bruno Haible  <bruno@clisp.org>
12250
12251         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
12252         earlier.
12253         * doc/visibility.texi: Fix @node and @section.
12254
12255 2009-03-03  Simon Josefsson  <simon@josefsson.org>
12256
12257         * doc/gnulib.texi: Link to sections for ld version script and
12258         visibility.
12259         * doc/visibility.texi: Add @node and @section.
12260         * modules/ld-version-script: New module.
12261         * m4/ld-version-script.m4: New file.
12262         * doc/ld-version-script.texi: New file.
12263
12264 2009-03-02  David Lutterkort  <lutter@redhat.com>
12265
12266         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
12267         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12268
12269 2009-03-02  Bruno Haible  <bruno@clisp.org>
12270
12271         * doc/visibility.texi: Mention libtool's -export-symbols option.
12272
12273 2009-03-02  Jim Meyering  <meyering@redhat.com>
12274
12275         announce-gen: new option: --no-print-checksums
12276         * build-aux/announce-gen (usage): Describe it.
12277         (print_checksums): Print a newline here, not in the [*] footnote.
12278         (main): Honor it.
12279
12280 2009-03-01  Bruno Haible  <bruno@clisp.org>
12281
12282         Use socklen_t in the native Windows replacements prototypes.
12283         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
12284         instead of 'int'.
12285         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12286         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12287         * modules/getsockopt (Depends-on): Add socklen.
12288         * modules/setsockopt (Depends-on): Add socklen.
12289
12290 2009-03-01  Bruno Haible  <bruno@clisp.org>
12291
12292         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
12293         least 4.2.
12294
12295 2009-03-01  Eric Blake  <ebb9@byu.net>
12296             Bruno Haible  <bruno@clisp.org>
12297
12298         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
12299         error messages.
12300         * lib/wait-process.c (wait_subprocess): Omit error message about
12301         deadly signal sent to the child of termsigp != NULL.
12302
12303 2009-03-01  Eric Blake  <ebb9@byu.net>
12304
12305         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
12306
12307 2009-03-01  Bruno Haible  <bruno@clisp.org>
12308
12309         Avoid a gcc warning.
12310         * tests/test-sched.c (b): Make global.
12311         Reported by Eric Blake.
12312
12313 2009-01-19  Martin Lambers  <marlam@marlam.de>
12314
12315         Provide POSIX semantics for socket timeout options on W32.
12316         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
12317         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
12318         * modules/setsockopt: Depend on sys_time module for struct timeval.
12319         * modules/getsockopt: Depend on sys_time module for struct timeval.
12320
12321 2009-03-01  Simon Josefsson  <simon@josefsson.org>
12322
12323         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
12324         __USE_GNU, for consistency with netdb.in.h.
12325         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12326
12327 2009-03-01  Bruno Haible  <bruno@clisp.org>
12328
12329         More support for FreeMiNT.
12330         * lib/fseeko.c (rpl_fseeko): Complete last commit.
12331         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12332
12333 2009-03-01  Bruno Haible  <bruno@clisp.org>
12334
12335         More support for FreeMiNT.
12336         * lib/fpurge.c (fpurge): Correct last commit.
12337         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12338
12339 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12340
12341         Fix unportable awk script in vc-list-files.
12342         * build-aux/vc-list-files: In the replacement awk script, use
12343         substr with a second argument of 1, not zero.
12344         Report by Simon Josefsson.
12345
12346 2009-02-28  Bruno Haible  <bruno@clisp.org>
12347
12348         More support for FreeMiNT.
12349         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
12350         to FreeMiNT today.
12351         * lib/fwriting.c (fwriting): Likewise.
12352         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
12353
12354 2009-02-28  Bruno Haible  <bruno@clisp.org>
12355
12356         * tests/test-freadseek.c (main): Disable test beyond end of file on
12357         FreeMiNT.
12358         * tests/test-ftello.c (main): Likewise.
12359         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12360
12361 2009-02-28  Bruno Haible  <bruno@clisp.org>
12362
12363         Add tentative support for FreeMiNT.
12364         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
12365         * lib/fpurge.c (fpurge): Likewise.
12366         * lib/freadable.c (freadable): Likewise.
12367         * lib/freading.c (freading): Likewise.
12368         * lib/freadptr.c (freadptr): Likewise.
12369         * lib/freadseek.c (freadptrinc): Likewise.
12370         * lib/fseeko.c (rpl_fseeko): Likewise.
12371         * lib/fseterr.c (fseterr): Likewise.
12372         * lib/fwritable.c (fwritable): Likewise.
12373         * lib/fwriting.c (fwriting): Likewise.
12374         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
12375         Hourihane.
12376         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12377
12378 2009-02-28  Bruno Haible  <bruno@clisp.org>
12379
12380         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
12381         SIGCHLD.
12382         Reported by Jim Meyering.
12383
12384 2009-02-28  Bruno Haible  <bruno@clisp.org>
12385
12386         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
12387         Mention the results of these tests on various platforms.
12388         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
12389         order.
12390         * doc/posix-functions/printf.texi: Likewise.
12391         * doc/posix-functions/snprintf.texi: Likewise.
12392         * doc/posix-functions/sprintf.texi: Likewise.
12393         * doc/posix-functions/vfprintf.texi: Likewise.
12394         * doc/posix-functions/vprintf.texi: Likewise.
12395         * doc/posix-functions/vsnprintf.texi: Likewise.
12396         * doc/posix-functions/vsprintf.texi: Likewise.
12397         * doc/glibc-functions/obstack_printf.texi: Likewise.
12398         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12399
12400 2009-02-28  Bruno Haible  <bruno@clisp.org>
12401
12402         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
12403         Reported by Loïc Minier <lool@dooz.org>.
12404
12405 2009-02-27  Bruno Haible  <bruno@clisp.org>
12406
12407         * gnulib-tool (func_import): Make the sed expression used to create the
12408         sed script for updating the .gitignore file POSIX compliant.
12409         Reported by Eric Blake.
12410
12411 2009-02-27  Bruno Haible  <bruno@clisp.org>
12412
12413         * gnulib-tool (sed): Don't alias as "sed --posix".
12414         Reported by Eric Blake.
12415
12416 2009-02-27  Bruno Haible  <bruno@clisp.org>
12417
12418         Avoid test link errors.
12419         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
12420         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
12421         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
12422         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
12423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12424
12425 2009-02-27  Bruno Haible  <bruno@clisp.org>
12426
12427         Avoid spurious "(cached)" in configure output.
12428         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
12429         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
12430         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12431         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12432         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12433         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12434         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12435         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12436         Reported by Eric Blake.
12437
12438 2009-02-27  Eric Blake  <ebb9@byu.net>
12439
12440         printf: fix regression in previous patch
12441         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
12442
12443 2009-02-27  Bruno Haible  <bruno@clisp.org>
12444
12445         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
12446         value.
12447         * lib/stdint.in.h: Likewise.
12448         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
12449
12450 2009-02-27  Eric Blake  <ebb9@byu.net>
12451
12452         doc: mention more functions added in cygwin 1.7.0
12453         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
12454         addition.
12455         * doc/posix-functions/open_wmemstream.texi: Likewise.
12456         * doc/posix-functions/wcsnlen.texi: Likewise.
12457         * doc/posix-functions/wcsnrtombs.texi: Likewise.
12458         * doc/posix-functions/wcstod.texi: Likewise.
12459         * doc/posix-functions/wcstof.texi: Likewise.
12460         * doc/posix-functions/wcstoimax.texi: Likewise.
12461         * doc/posix-functions/wcstok.texi: Likewise.
12462         * doc/posix-functions/wcstoumax.texi: Likewise.
12463
12464         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
12465         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
12466         * doc/posix-functions/fprintf.texi: Update.
12467         * doc/posix-functions/printf.texi: Update.
12468         * doc/posix-functions/snprintf.texi: Update.
12469         * doc/posix-functions/sprintf.texi: Update.
12470         * doc/posix-functions/vfprintf.texi: Update.
12471         * doc/posix-functions/vprintf.texi: Update.
12472         * doc/posix-functions/vsnprintf.texi: Update.
12473         * doc/posix-functions/vsprintf.texi: Update.
12474         * doc/glibc-functions/obstack_printf.texi: Update.
12475         * doc/glibc-functions/obstack_vprintf.texi: Update.
12476
12477 2009-02-26  Eric Blake  <ebb9@byu.net>
12478
12479         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
12480         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
12481         compilation bug by using runtime conversion.
12482         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12483         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
12484         * modules/ceill-tests (Files): Use nan.h.
12485         * modules/floorl-tests (Files): Likewise.
12486         * modules/frexpl-tests (Files): Likewise.
12487         * modules/isnanl-tests (Files): Likewise.
12488         * modules/ldexpl-tests (Files): Likewise.
12489         * modules/roundl-tests (Files): Likewise.
12490         * modules/truncl-tests (Files): Likewise.
12491         * tests/test-ceill.c (main): Use a working NaN.
12492         * tests/test-floorl.c (main): Likewise.
12493         * tests/test-frexpl.c (main): Likewise.
12494         * tests/test-isnan.c (test_long_double): Likewise.
12495         * tests/test-isnanl.h (main): Likewise.
12496         * tests/test-ldexpl.h (main): Likewise.
12497         * tests/test-roundl.h (main): Likewise.
12498         * tests/test-truncl.h (main): Likewise.
12499         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
12500
12501 2009-02-26  Eric Blake  <ebb9@byu.net>
12502             Bruno Haible  <bruno@clisp.org>
12503
12504         Work around a *printf bug with %ls on Solaris.
12505         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
12506         precision is specified, sprintf stops converting the wide string
12507         argument when the number of bytes that have been produced by this
12508         conversion equals or exceeds the precision.
12509         * doc/posix-functions/fprintf.texi: Update.
12510         * doc/posix-functions/printf.texi: Update.
12511         * doc/posix-functions/snprintf.texi: Update.
12512         * doc/posix-functions/sprintf.texi: Update.
12513         * doc/posix-functions/vfprintf.texi: Update.
12514         * doc/posix-functions/vprintf.texi: Update.
12515         * doc/posix-functions/vsnprintf.texi: Update.
12516         * doc/posix-functions/vsprintf.texi: Update.
12517         * doc/glibc-functions/obstack_printf.texi: Update.
12518         * doc/glibc-functions/obstack_vprintf.texi: Update.
12519
12520 2009-02-26  Eric Blake  <ebb9@byu.net>
12521
12522         stdlib: favor compiler check of random.h
12523         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
12524         to avoid an ObjC random.h installed by Swarm.
12525
12526 2009-02-26  Bruno Haible  <bruno@clisp.org>
12527
12528         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
12529         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
12530         Reported by Gary V. Vaughan <gary@gnu.org>.
12531
12532 2009-02-26  Bruno Haible  <bruno@clisp.org>
12533
12534         Fix *printf behaviour regarding the %ls directive.
12535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
12536         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
12537         NEED_PRINTF_DIRECTIVE_LS.
12538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
12539         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12540         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12541         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
12542         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
12543         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
12544         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
12545         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12546         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12547         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12549         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
12550         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12551         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12552         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12553         * doc/posix-functions/fprintf.texi: Update.
12554         * doc/posix-functions/printf.texi: Update.
12555         * doc/posix-functions/snprintf.texi: Update.
12556         * doc/posix-functions/sprintf.texi: Update.
12557         * doc/posix-functions/vfprintf.texi: Update.
12558         * doc/posix-functions/vprintf.texi: Update.
12559         * doc/posix-functions/vsnprintf.texi: Update.
12560         * doc/posix-functions/vsprintf.texi: Update.
12561         * doc/glibc-functions/obstack_printf.texi: Update.
12562         * doc/glibc-functions/obstack_vprintf.texi: Update.
12563         Reported by Eric Blake.
12564
12565 2009-02-25  Bruno Haible  <bruno@clisp.org>
12566
12567         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
12568         with known value.
12569         Reported by Gary V. Vaughan <gary@gnu.org>.
12570
12571 2009-02-25  Bruno Haible  <bruno@clisp.org>
12572
12573         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
12574         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
12575         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
12576         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
12577         Reported by Gary V. Vaughan <gary@gnu.org>.
12578
12579 2009-02-25  Bruno Haible  <bruno@clisp.org>
12580
12581         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
12582         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
12583         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
12584         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
12585         Reported by Gary V. Vaughan <gary@gnu.org>.
12586
12587 2009-02-25  Eric Blake  <ebb9@byu.net>
12588
12589         tests: skip fseek/ftell tests if ungetc is broken
12590         * m4/ungetc.m4: New file.
12591         * modules/fseek-tests: Split test, so ungetc dependency is
12592         separate from rest of test.
12593         * modules/fseeko-tests: Likewise.
12594         * modules/ftell-tests: Likewise.
12595         * modules/ftello-tests: Likewise.
12596         * tests/test-fseek.c (main): Isolate ungetc dependency.
12597         * tests/test-fseeko.c (main): Likewise.
12598         * tests/test-ftell.c (main): Likewise.
12599         * tests/test-ftello.c (main): Likewise.
12600         * tests/test-fseek2.sh: New file.
12601         * tests/test-fseeko2.sh: Likewise.
12602         * tests/test-ftell2.sh: Likewise.
12603         * tests/test-ftello2.sh: Likewise.
12604
12605 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
12606
12607         test-getaddrinfo: fix usage of skip return code 77
12608         * tests/test-gettaddrinfo.c: Return skip code 77 only
12609         for first occurance of skip (4x77 is not 77)
12610
12611 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
12612
12613         strtod: avoid C99 decl-after-statement
12614         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
12615
12616 2009-02-24  Eric Blake  <ebb9@byu.net>
12617
12618         strtod: detect HP-UX 11.31 bug
12619         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
12620         Reported by Gary V. Vaughan.
12621
12622 2009-02-23  Bruno Haible  <bruno@clisp.org>
12623
12624         Fix invalid read past end of memory block.
12625         * lib/vasnprintf.c (DCHAR_SET): Define.
12626         (local_wcslen): Define only when needed.
12627         (local_strnlen, local_wcsnlen): New functions.
12628         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
12629         directives that involve a conversion ourselves.
12630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
12631         wcsnlen, mbrtowc, wcrtomb.
12632         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
12633         * tests/test-vasprintf-posix.c (test_function): Likewise.
12634         * tests/test-snprintf-posix.h (test_function): Likewise.
12635         * tests/test-sprintf-posix.h (test_function): Likewise.
12636         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12637
12638 2009-02-22  Bruno Haible  <bruno@clisp.org>
12639
12640         Implement new clarified decomposition of Hangul syllables.
12641         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
12642         of type LTV, return only a pairwise decomposition.
12643         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
12644         Likewise.
12645         * tests/uninorm/test-decomposition.c (main): Updated expected result.
12646         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
12647         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
12648
12649 2009-02-22  Bruno Haible  <bruno@clisp.org>
12650
12651         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
12652         zero-length results and shrink excess allocated memory.
12653         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
12654         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
12655         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
12656         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
12657         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
12658         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
12659         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
12660         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
12661         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
12662         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
12663         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
12664         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
12665
12666 2009-02-21  Bruno Haible  <bruno@clisp.org>
12667
12668         * doc/gnulib.texi: Include safe-alloc.texi earlier.
12669         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
12670         spaces after a period. Put a space between a macro name and its
12671         argument list. Trivial rewordings.
12672         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
12673         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
12674         (main): Return 0 explicitly.
12675
12676 2009-02-21  Bruno Haible  <bruno@clisp.org>
12677
12678         Tests for module 'uninorm/filter'.
12679         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
12680         * modules/uninorm/filter-tests: New file.
12681
12682         New module 'uninorm/filter'.
12683         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
12684         uninorm_filter_flush, uninorm_filter_free): New declarations.
12685         * lib/uninorm/uninorm-filter.c: New file.
12686         * modules/uninorm/filter: New file.
12687
12688 2009-02-21  Bruno Haible  <bruno@clisp.org>
12689
12690         Tests for module 'uninorm/nfkc'.
12691         * tests/uninorm/test-nfkc.c: New file.
12692         * tests/uninorm/test-u8-nfkc.c: New file.
12693         * tests/uninorm/test-u16-nfkc.c: New file.
12694         * tests/uninorm/test-u32-nfkc.c: New file.
12695         * tests/uninorm/test-u32-nfkc-big.sh: New file.
12696         * tests/uninorm/test-u32-nfkc-big.c: New file.
12697         * modules/uninorm/nfkc-tests: New file.
12698
12699         New module 'uninorm/nfkc'.
12700         * lib/uninorm/nfkc.c: New file.
12701         * modules/uninorm/nfkc: New file.
12702
12703         Tests for module 'uninorm/nfkd'.
12704         * tests/uninorm/test-nfkd.c: New file.
12705         * tests/uninorm/test-u8-nfkd.c: New file.
12706         * tests/uninorm/test-u16-nfkd.c: New file.
12707         * tests/uninorm/test-u32-nfkd.c: New file.
12708         * tests/uninorm/test-u32-nfkd-big.sh: New file.
12709         * tests/uninorm/test-u32-nfkd-big.c: New file.
12710         * modules/uninorm/nfkd-tests: New file.
12711
12712         New module 'uninorm/nfkd'.
12713         * lib/uninorm/nfkd.c: New file.
12714         * modules/uninorm/nfkd: New file.
12715
12716         Tests for module 'uninorm/nfc'.
12717         * tests/uninorm/test-nfc.c: New file.
12718         * tests/uninorm/test-u8-nfc.c: New file.
12719         * tests/uninorm/test-u16-nfc.c: New file.
12720         * tests/uninorm/test-u32-nfc.c: New file.
12721         * tests/uninorm/test-u32-nfc-big.sh: New file.
12722         * tests/uninorm/test-u32-nfc-big.c: New file.
12723         * modules/uninorm/nfc-tests: New file.
12724
12725         New module 'uninorm/nfc'.
12726         * lib/uninorm/nfc.c: New file.
12727         * modules/uninorm/nfc: New file.
12728
12729         Tests for module 'uninorm/nfd'.
12730         * tests/uninorm/test-nfd.c: New file.
12731         * tests/uninorm/test-u8-nfd.c: New file.
12732         * tests/uninorm/test-u16-nfd.c: New file.
12733         * tests/uninorm/test-u32-nfd.c: New file.
12734         * tests/uninorm/test-u32-nfd-big.sh: New file.
12735         * tests/uninorm/test-u32-nfd-big.c: New file.
12736         * tests/uninorm/test-u32-normalize-big.h: New file.
12737         * tests/uninorm/test-u32-normalize-big.c: New file.
12738         * tests/uninorm/NormalizationTest.txt: New file, created from
12739         Unicode 5.1.0 NormalizationTest.txt.
12740         * modules/uninorm/nfd-tests: New file.
12741
12742         New module 'uninorm/nfd'.
12743         * lib/uninorm/nfd.c: New file.
12744         * modules/uninorm/nfd: New file.
12745
12746         New module 'uninorm/u32-normalize'.
12747         * lib/uninorm/u32-normalize.c: New file.
12748         * modules/uninorm/u32-normalize: New file.
12749
12750         New module 'uninorm/u16-normalize'.
12751         * lib/uninorm/u16-normalize.c: New file.
12752         * modules/uninorm/u16-normalize: New file.
12753
12754         New module 'uninorm/u8-normalize'.
12755         * lib/uninorm/u8-normalize.c: New file.
12756         * lib/uninorm/normalize-internal.h: New file.
12757         * lib/uninorm/u-normalize-internal.h: New file.
12758         * modules/uninorm/u8-normalize: New file.
12759
12760         New module 'uninorm/decompose-internal'.
12761         * lib/uninorm/decompose-internal.c: New file.
12762         * modules/uninorm/decompose-internal: New file.
12763
12764         Tests for module 'uninorm/composition'.
12765         * tests/uninorm/test-composition.c: New file.
12766         * modules/uninorm/composition-tests: New file.
12767
12768         New module 'uninorm/composition'.
12769         * lib/uninorm/composition.c: New file.
12770         * lib/uninorm/composition-table.gperf: New file, generated by
12771         gen-uni-tables.
12772         * modules/uninorm/composition: New file.
12773
12774         Tests for module 'uninorm/compat-decomposition'.
12775         * tests/uninorm/test-compat-decomposition.c: New file.
12776         * modules/uninorm/compat-decomposition-tests: New file.
12777
12778         New module 'uninorm/compat-decomposition'.
12779         * lib/uninorm/decompose-internal.h: New file.
12780         * lib/uninorm/compat-decomposition.c: New file.
12781         * modules/uninorm/compat-decomposition: New file.
12782
12783         Tests for module 'uninorm/canonical-decomposition'.
12784         * tests/uninorm/test-canonical-decomposition.c: New file.
12785         * modules/uninorm/canonical-decomposition-tests: New file.
12786
12787         New module 'uninorm/canonical-decomposition'.
12788         * lib/uninorm/canonical-decomposition.c: New file.
12789         * modules/uninorm/canonical-decomposition: New file.
12790
12791         Tests for module 'uninorm/decomposition'.
12792         * tests/uninorm/test-decomposition.c: New file.
12793         * modules/uninorm/decomposition-tests: New file.
12794
12795         New module 'uninorm/decomposition'.
12796         * lib/uninorm/decomposition.c: New file.
12797         * modules/uninorm/decomposition: New file.
12798
12799         New module 'uninorm/decomposition-table'.
12800         * lib/uninorm/decomposition-table.h: New file.
12801         * lib/uninorm/decomposition-table.c: New file.
12802         * lib/uninorm/decomposition-table1.h: New file, generated by
12803         gen-uni-tables.
12804         * lib/uninorm/decomposition-table2.h: New file, generated by
12805         gen-uni-tables.
12806         * modules/uninorm/decomposition-table: New file.
12807
12808         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
12809         (UC_DECOMP_*): New enumeration items.
12810         (get_decomposition): New function.
12811         (struct decomp_table): New type.
12812         (output_decomposition, output_decomposition_tables): New functions.
12813         (unicode_composition_exclusions): New variable.
12814         (fill_composition_exclusions, debug_output_composition_tables): New
12815         functions.
12816         (main): Accept one more argument. Invoke fill_composition_exclusions.
12817         Output decomposition and composition tables.
12818
12819         New module 'uninorm/base'.
12820         * lib/uninorm.h: New file.
12821         * lib/unictype.h: Update comment.
12822         * modules/uninorm/base: New file.
12823
12824 2009-02-21  David Lutterkort  <lutter@redhat.com>
12825
12826         Tests for module 'safe-alloc'.
12827         * tests/test-safe-alloc.c: New file.
12828         * modules/safe-alloc-tests: New file.
12829
12830         New module 'safe-alloc'.
12831         * lib/safe-alloc.h: New file.
12832         * lib/safe-alloc.c: New file.
12833         * m4/safe-alloc.m4: New file.
12834         * modules/safe-alloc: New file.
12835         * doc/safe-alloc.texi: New file.
12836         * doc/gnulib.texi: Include it.
12837         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12838         safe-alloc.
12839
12840 2009-02-18  Bruno Haible  <bruno@clisp.org>
12841
12842         Fix link error on non-glibc systems.
12843         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
12844         variable.
12845         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12846
12847 2009-02-18  Jim Meyering  <meyering@redhat.com>
12848
12849         fts: avoid used-uninitialized error due to recent change
12850         * lib/fts.c (fts_read): Guard uses of the new member,
12851         parent->fts_n_dirs_remaining, since it's not relevant for
12852         the parent of a directory specified on the command-line.
12853
12854 2009-02-17  James Youngman  <jay@gnu.org>
12855             Bruno Haible  <bruno@clisp.org>
12856
12857         * m4/include_next.m4: Reformulate comment.
12858
12859 2009-02-16  Jim Meyering  <meyering@redhat.com>
12860
12861         fts: add #if guards so that the fts_lgpl module still builds
12862         * lib/fts.c: Guard just-added hash-table-using parts with
12863         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
12864         Reported by Simon Josefsson.
12865
12866 2009-02-15  Bruno Haible  <bruno@clisp.org>
12867
12868         * modules/array-mergesort-tests: New file.
12869         * tests/test-array-mergesort.c: New file.
12870
12871         New module 'array-mergesort'.
12872         * modules/array-mergesort: New file.
12873         * lib/array-mergesort.h: New file.
12874
12875 2009-02-15  Bruno Haible  <bruno@clisp.org>
12876
12877         Fix 2009-02-07 commit.
12878         * lib/gen-uni-tables.c (output_predicate, output_category,
12879         output_combclass, output_bidi_category, output_decimal_digit,
12880         output_digit, output_numeric, output_mirror, output_scripts,
12881         output_ident_category, output_simple_mapping): Fix format directives.
12882         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
12883
12884 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
12885
12886         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
12887         fixes are available from IBM.
12888
12889 2009-02-13  Jim Meyering  <meyering@redhat.com>
12890
12891         fts: arrange not to stat non-directories in more cases
12892         This makes GNU find (when it doesn't need to stat each file)
12893         *much* more efficient at traversing reiserfs file systems.
12894         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
12895         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
12896         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
12897         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
12898         (leaf_optimization_applies): New function.
12899         (LCO_hash, LCO_compare): New helper functions.
12900         (link_count_optimize_ok): New function.
12901         (fts_stat): Initialize new member (if dir).
12902         (fts_read): Decrement parent's fts_n_dirs_remaining count if
12903         we've just stat'ed a directory.  Skip the stat call when possible.
12904         ---
12905         Note this AFS-related exchange:
12906         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
12907         and note find's pioctl call in find/fstype.c.
12908         But that is necessary only if you want to enable the
12909         optimization for AFS, and for now, I don't.
12910
12911         fts: move a function definition "up" (no semantic change)
12912         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
12913         "up" to precede upcoming use of a related function.
12914
12915 2009-02-11  Jim Meyering  <meyering@redhat.com>
12916
12917         fts: correct internal computation of nlinks (optimization-related)
12918         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
12919         whether the current entry is a directory, so don't test it.
12920
12921 2009-02-10  Bruno Haible  <bruno@clisp.org>
12922
12923         Tests for module 'uniwbrk/ulc-wordbreaks'.
12924         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
12925         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
12926         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
12927
12928         Tests for module 'uniwbrk/u32-wordbreaks'.
12929         * modules/uniwbrk/u32-wordbreaks-tests: New file.
12930         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
12931
12932         Tests for module 'uniwbrk/u16-wordbreaks'.
12933         * modules/uniwbrk/u16-wordbreaks-tests: New file.
12934         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
12935
12936         Tests for module 'uniwbrk/u8-wordbreaks'.
12937         * modules/uniwbrk/u8-wordbreaks-tests: New file.
12938         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
12939
12940 2009-02-10  Bruno Haible  <bruno@clisp.org>
12941
12942         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
12943         property.
12944         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
12945         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
12946         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
12947
12948 2009-02-10  Simon Josefsson  <simon@josefsson.org>
12949
12950         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
12951         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
12952
12953 2009-02-10  Bruno Haible  <bruno@clisp.org>
12954
12955         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
12956         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
12957         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
12958         * lib/unilbrk/u8-possible-linebreaks.c: Update.
12959         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
12960         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
12961
12962 2009-02-09  Simon Josefsson  <simon@josefsson.org>
12963
12964         * lib/sockets.h (gl_fd_to_handle): New function.
12965
12966         * tests/test-sockets.c: Call gl_fd_to_handle.
12967
12968 2009-02-09  Bruno Haible  <bruno@clisp.org>
12969
12970         * doc/havelib.texi: Document the conventions on bi-arch systems.
12971
12972 2009-02-08  Bruno Haible  <bruno@clisp.org>
12973
12974         Document the AC_LIB_LINKFLAGS macro.
12975         * doc/havelib.texi: New file, mostly written on 2005-05-24.
12976         * doc/gnulib.texi: Include it.
12977
12978 2009-02-08  Bruno Haible  <bruno@clisp.org>
12979
12980         Fix wrong order of sections, compared to TOC.
12981         * doc/gnulib.texi: Include relocatable-maint.texi after the
12982         "Regular expressions" node, not before.
12983
12984 2009-02-08  Bruno Haible  <bruno@clisp.org>
12985
12986         Tests for module 'unicase/totitle'.
12987         * modules/unicase/totitle-tests: New file.
12988
12989         Tests for module 'unicase/tolower'.
12990         * modules/unicase/tolower-tests: New file.
12991
12992         Tests for module 'unicase/toupper'.
12993         * modules/unicase/toupper-tests: New file.
12994         * tests/unicase/test-mapping-part1.h: New file.
12995         * tests/unicase/test-mapping-part2.h: New file.
12996
12997         New module 'unicase/totitle'.
12998         * modules/unicase/totitle: New file.
12999         * lib/unicase/totitle.c: New file.
13000
13001         New module 'unicase/tolower'.
13002         * modules/unicase/tolower: New file.
13003         * lib/unicase/tolower.c: New file.
13004
13005         New module 'unicase/toupper'.
13006         * modules/unicase/toupper: New file.
13007         * lib/unicase/toupper.c: New file.
13008         * lib/unicase/simple-mapping.h: New file.
13009
13010         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
13011         (mapping_table): New structure.
13012         (output_simple_mapping): New function.
13013         (main): Invoke output_simple_mapping_test and output_simple_mapping.
13014         * modules/gen-uni-tables (Description): Update.
13015         * lib/unicase/toupper.h: New file, automatically generated by
13016         gen-uni-tables.
13017         * lib/unicase/tolower.h: New file, automatically generated by
13018         gen-uni-tables.
13019         * lib/unicase/totitle.h: New file, automatically generated by
13020         gen-uni-tables.
13021         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
13022         gen-uni-tables.
13023         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
13024         gen-uni-tables.
13025         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
13026         gen-uni-tables.
13027
13028         New module 'unicase/base'.
13029         * modules/unicase/base: New file.
13030         * lib/unicase.h: New file.
13031
13032 2009-02-08  Bruno Haible  <bruno@clisp.org>
13033
13034         New module 'uniwbrk/ulc-wordbreaks'.
13035         * modules/uniwbrk/ulc-wordbreaks: New file.
13036         * lib/uniwbrk/ulc-wordbreaks.c: New file.
13037
13038         New module 'uniwbrk/u32-wordbreaks'.
13039         * modules/uniwbrk/u32-wordbreaks: New file.
13040         * lib/uniwbrk/u32-wordbreaks.c: New file.
13041
13042         New module 'uniwbrk/u16-wordbreaks'.
13043         * modules/uniwbrk/u16-wordbreaks: New file.
13044         * lib/uniwbrk/u16-wordbreaks.c: New file.
13045
13046         New module 'uniwbrk/u8-wordbreaks'.
13047         * modules/uniwbrk/u8-wordbreaks: New file.
13048         * lib/uniwbrk/u8-wordbreaks.c: New file.
13049         * lib/uniwbrk/u-wordbreaks.h: New file.
13050
13051         New module 'uniwbrk/table'.
13052         * modules/uniwbrk/table: New file.
13053         * lib/uniwbrk/wbrktable.h: New file.
13054         * lib/uniwbrk/wbrktable.c: New file.
13055
13056         New module 'uniwbrk/wordbreak-property'.
13057         * modules/uniwbrk/wordbreak-property: New file.
13058         * lib/uniwbrk/wordbreak-property.c: New file.
13059
13060         * lib/gen-uni-tables.c (WBP_*): New enum items.
13061         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
13062         (unicode_org_wbp): New variable.
13063         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
13064         New functions.
13065         (wbp_table): New structure.
13066         (output_wbp, output_wbrk_tables): New functions.
13067         (main): Accept additional argument. Invoke fill_org_wbp,
13068         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
13069         output_wbrk_tables.
13070         * modules/gen-uni-tables (Description): Update.
13071         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
13072         gen-uni-tables.
13073
13074         New module 'uniwbrk/base'.
13075         * modules/uniwbrk/base: New file.
13076         * lib/uniwbrk.h: New file.
13077
13078 2009-02-08  Bruno Haible  <bruno@clisp.org>
13079
13080         Update to Unicode 5.1.0.
13081         * lib/gen-uni-tables.c (is_property_alphabetic): Include
13082         U+2185..U+2188.
13083         (is_property_default_ignorable_code_point): Don't include characters
13084         of category Cc or Cs and not-a-characters.
13085         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
13086         U+0D79, U+109E, U+109F, U+A60C.
13087         * lib/unictype/bidi_of.h: Regenerated.
13088         * lib/unictype/blocks.h: Regenerated.
13089         * lib/unictype/categ_C.h: Regenerated.
13090         * lib/unictype/categ_Cf.h: Regenerated.
13091         * lib/unictype/categ_Cn.h: Regenerated.
13092         * lib/unictype/categ_L.h: Regenerated.
13093         * lib/unictype/categ_Ll.h: Regenerated.
13094         * lib/unictype/categ_Lm.h: Regenerated.
13095         * lib/unictype/categ_Lo.h: Regenerated.
13096         * lib/unictype/categ_Lu.h: Regenerated.
13097         * lib/unictype/categ_M.h: Regenerated.
13098         * lib/unictype/categ_Mc.h: Regenerated.
13099         * lib/unictype/categ_Me.h: Regenerated.
13100         * lib/unictype/categ_Mn.h: Regenerated.
13101         * lib/unictype/categ_N.h: Regenerated.
13102         * lib/unictype/categ_Nd.h: Regenerated.
13103         * lib/unictype/categ_Nl.h: Regenerated.
13104         * lib/unictype/categ_No.h: Regenerated.
13105         * lib/unictype/categ_P.h: Regenerated.
13106         * lib/unictype/categ_Pd.h: Regenerated.
13107         * lib/unictype/categ_Pe.h: Regenerated.
13108         * lib/unictype/categ_Pf.h: Regenerated.
13109         * lib/unictype/categ_Pi.h: Regenerated.
13110         * lib/unictype/categ_Po.h: Regenerated.
13111         * lib/unictype/categ_Ps.h: Regenerated.
13112         * lib/unictype/categ_S.h: Regenerated.
13113         * lib/unictype/categ_Sk.h: Regenerated.
13114         * lib/unictype/categ_Sm.h: Regenerated.
13115         * lib/unictype/categ_So.h: Regenerated.
13116         * lib/unictype/categ_of.h: Regenerated.
13117         * lib/unictype/combining.h: Regenerated.
13118         * lib/unictype/ctype_alnum.h: Regenerated.
13119         * lib/unictype/ctype_alpha.h: Regenerated.
13120         * lib/unictype/ctype_graph.h: Regenerated.
13121         * lib/unictype/ctype_lower.h: Regenerated.
13122         * lib/unictype/ctype_print.h: Regenerated.
13123         * lib/unictype/ctype_punct.h: Regenerated.
13124         * lib/unictype/ctype_upper.h: Regenerated.
13125         * lib/unictype/decdigit.h: Regenerated.
13126         * lib/unictype/digit.h: Regenerated.
13127         * lib/unictype/mirror.h: Regenerated.
13128         * lib/unictype/numeric.h: Regenerated.
13129         * lib/unictype/pr_alphabetic.h: Regenerated.
13130         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
13131         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
13132         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
13133         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
13134         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
13135         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
13136         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
13137         * lib/unictype/pr_combining.h: Regenerated.
13138         * lib/unictype/pr_dash.h: Regenerated.
13139         * lib/unictype/pr_decimal_digit.h: Regenerated.
13140         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
13141         * lib/unictype/pr_deprecated.h: Regenerated.
13142         * lib/unictype/pr_diacritic.h: Regenerated.
13143         * lib/unictype/pr_extender.h: Regenerated.
13144         * lib/unictype/pr_format_control.h: Regenerated.
13145         * lib/unictype/pr_grapheme_base.h: Regenerated.
13146         * lib/unictype/pr_grapheme_extend.h: Regenerated.
13147         * lib/unictype/pr_grapheme_link.h: Regenerated.
13148         * lib/unictype/pr_id_continue.h: Regenerated.
13149         * lib/unictype/pr_id_start.h: Regenerated.
13150         * lib/unictype/pr_ideographic.h: Regenerated.
13151         * lib/unictype/pr_ignorable_control.h: Regenerated.
13152         * lib/unictype/pr_lowercase.h: Regenerated.
13153         * lib/unictype/pr_math.h: Regenerated.
13154         * lib/unictype/pr_numeric.h: Regenerated.
13155         * lib/unictype/pr_other_alphabetic.h: Regenerated.
13156         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
13157         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
13158         * lib/unictype/pr_other_id_continue.h: Regenerated.
13159         * lib/unictype/pr_other_lowercase.h: Regenerated.
13160         * lib/unictype/pr_other_math.h: Regenerated.
13161         * lib/unictype/pr_punctuation.h: Regenerated.
13162         * lib/unictype/pr_sentence_terminal.h: Regenerated.
13163         * lib/unictype/pr_soft_dotted.h: Regenerated.
13164         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
13165         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
13166         * lib/unictype/pr_unified_ideograph.h: Regenerated.
13167         * lib/unictype/pr_uppercase.h: Regenerated.
13168         * lib/unictype/pr_xid_continue.h: Regenerated.
13169         * lib/unictype/pr_xid_start.h: Regenerated.
13170         * lib/unictype/pr_zero_width.h: Regenerated.
13171         * lib/unictype/scripts.h: Regenerated.
13172         * lib/unictype/scripts_byname.gperf: Regenerated.
13173         * lib/unictype/sy_java_ident.h: Regenerated.
13174         * lib/unilbrk/lbrkprop1.h: Regenerated.
13175         * lib/unilbrk/lbrkprop2.h: Regenerated.
13176         * tests/unictype/test-categ_C.c: Regenerated.
13177         * tests/unictype/test-categ_Cf.c: Regenerated.
13178         * tests/unictype/test-categ_Cn.c: Regenerated.
13179         * tests/unictype/test-categ_L.c: Regenerated.
13180         * tests/unictype/test-categ_Ll.c: Regenerated.
13181         * tests/unictype/test-categ_Lm.c: Regenerated.
13182         * tests/unictype/test-categ_Lo.c: Regenerated.
13183         * tests/unictype/test-categ_Lu.c: Regenerated.
13184         * tests/unictype/test-categ_M.c: Regenerated.
13185         * tests/unictype/test-categ_Mc.c: Regenerated.
13186         * tests/unictype/test-categ_Me.c: Regenerated.
13187         * tests/unictype/test-categ_Mn.c: Regenerated.
13188         * tests/unictype/test-categ_N.c: Regenerated.
13189         * tests/unictype/test-categ_Nd.c: Regenerated.
13190         * tests/unictype/test-categ_Nl.c: Regenerated.
13191         * tests/unictype/test-categ_No.c: Regenerated.
13192         * tests/unictype/test-categ_P.c: Regenerated.
13193         * tests/unictype/test-categ_Pd.c: Regenerated.
13194         * tests/unictype/test-categ_Pe.c: Regenerated.
13195         * tests/unictype/test-categ_Pf.c: Regenerated.
13196         * tests/unictype/test-categ_Pi.c: Regenerated.
13197         * tests/unictype/test-categ_Po.c: Regenerated.
13198         * tests/unictype/test-categ_Ps.c: Regenerated.
13199         * tests/unictype/test-categ_S.c: Regenerated.
13200         * tests/unictype/test-categ_Sk.c: Regenerated.
13201         * tests/unictype/test-categ_Sm.c: Regenerated.
13202         * tests/unictype/test-categ_So.c: Regenerated.
13203         * tests/unictype/test-ctype_alnum.c: Regenerated.
13204         * tests/unictype/test-ctype_alpha.c: Regenerated.
13205         * tests/unictype/test-ctype_graph.c: Regenerated.
13206         * tests/unictype/test-ctype_lower.c: Regenerated.
13207         * tests/unictype/test-ctype_print.c: Regenerated.
13208         * tests/unictype/test-ctype_punct.c: Regenerated.
13209         * tests/unictype/test-ctype_upper.c: Regenerated.
13210         * tests/unictype/test-decdigit.h: Regenerated.
13211         * tests/unictype/test-digit.h: Regenerated.
13212         * tests/unictype/test-numeric.h: Regenerated.
13213         * tests/unictype/test-pr_alphabetic.c: Regenerated.
13214         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
13215         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
13216         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
13217         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
13218         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
13219         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
13220         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
13221         * tests/unictype/test-pr_combining.c: Regenerated.
13222         * tests/unictype/test-pr_dash.c: Regenerated.
13223         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
13224         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
13225         * tests/unictype/test-pr_deprecated.c: Regenerated.
13226         * tests/unictype/test-pr_diacritic.c: Regenerated.
13227         * tests/unictype/test-pr_extender.c: Regenerated.
13228         * tests/unictype/test-pr_format_control.c: Regenerated.
13229         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
13230         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
13231         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
13232         * tests/unictype/test-pr_id_continue.c: Regenerated.
13233         * tests/unictype/test-pr_id_start.c: Regenerated.
13234         * tests/unictype/test-pr_ideographic.c: Regenerated.
13235         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
13236         * tests/unictype/test-pr_lowercase.c: Regenerated.
13237         * tests/unictype/test-pr_math.c: Regenerated.
13238         * tests/unictype/test-pr_numeric.c: Regenerated.
13239         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
13240         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
13241         Regenerated.
13242         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
13243         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
13244         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
13245         * tests/unictype/test-pr_other_math.c: Regenerated.
13246         * tests/unictype/test-pr_punctuation.c: Regenerated.
13247         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
13248         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
13249         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
13250         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
13251         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
13252         * tests/unictype/test-pr_uppercase.c: Regenerated.
13253         * tests/unictype/test-pr_xid_continue.c: Regenerated.
13254         * tests/unictype/test-pr_xid_start.c: Regenerated.
13255         * tests/unictype/test-pr_zero_width.c: Regenerated.
13256
13257         Update to Unicode 5.1.0.
13258         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
13259         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
13260         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
13261         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
13262         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
13263         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
13264         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
13265         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
13266         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
13267         (nonspacing_table_ind): Update.
13268         * tests/uniwidth/test-uc_width2.sh: Update expected result.
13269
13270         Update to Unicode 5.1.0.
13271         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
13272         code transform.
13273         * lib/uniname/uniname.c (unicode_character_name,
13274         unicode_name_character): Add the range 0x1Fxxx to the code transform.
13275         * lib/uniname/uninames.h: Regenerated.
13276         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
13277
13278 2009-02-07  Bruno Haible  <bruno@clisp.org>
13279
13280         Merge gen-ctype and gen-lbrk into a single program.
13281         * lib/gen-uni-tables.c: New file, incorporating
13282         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
13283         Add directory prefixes to the names of the generated files.
13284         * lib/unictype/gen-ctype.c: Remove file.
13285         * lib/unilbrk/gen-lbrk.c: Remove file.
13286         * modules/gen-uni-tables: New file.
13287         * modules/unictype/gen-ctype: Remove file.
13288         * modules/unilbrk/gen-lbrk: Remove file.
13289
13290 2009-02-07  Bruno Haible  <bruno@clisp.org>
13291
13292         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
13293
13294         New module 'unistr/u32-strcoll'.
13295         * modules/unistr/u32-strcoll: New file.
13296         * lib/unistr/u32-strcoll.c: New file.
13297
13298         New module 'unistr/u16-strcoll'.
13299         * modules/unistr/u16-strcoll: New file.
13300         * lib/unistr/u16-strcoll.c: New file.
13301
13302         New module 'unistr/u8-strcoll'.
13303         * modules/unistr/u8-strcoll: New file.
13304         * lib/unistr/u8-strcoll.c: New file.
13305         * lib/unistr/u-strcoll.h: New file.
13306
13307 2009-02-07  Bruno Haible  <bruno@clisp.org>
13308
13309         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
13310         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13311         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13312         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
13313         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
13314         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
13315
13316 2009-02-07  Bruno Haible  <bruno@clisp.org>
13317
13318         Make 64-bit clean.
13319         * lib/unictype/gen-ctype.c (output_predicate, output_category,
13320         output_combclass, output_bidi_category, output_decimal_digit,
13321         output_digit, output_numeric, output_mirror, output_scripts,
13322         output_ident_category): Use proper width specifier in format strings.
13323
13324 2009-02-07  Bruno Haible  <bruno@clisp.org>
13325
13326         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
13327         failure behaviour.
13328
13329 2009-02-07  Jim Meyering  <meyering@redhat.com>
13330
13331         regex: avoid compilation failure with upcoming gcc-4.4
13332         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
13333         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
13334         "... error: integer overflow in preprocessor expression".
13335
13336 2009-02-05  Ben Pfaff  <blp@gnu.org>
13337
13338         Fix link errors on Windows when close module is used.
13339         * modules/close: Add $(LIB_CLOSE) to Link section.
13340         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
13341         $(LIB_CLOSE) on Windows.
13342
13343 2009-02-05  Jim Meyering  <meyering@redhat.com>
13344
13345         still avoid unused-parameter warnings, but do it cleanly
13346         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
13347         (get_fs_usage): Cast to void instead.
13348         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
13349         (dev_from_mount_options, read_file_system_list): Cast to void.
13350         Prompted by Bruno Haible.
13351
13352 2009-02-04  Jim Meyering  <meyering@redhat.com>
13353
13354         fsusage.c: correct copyright year
13355         * lib/fsusage.c: Reflect year in which the change is pushed into
13356
13357         avoid misc. warnings
13358         * lib/fsusage.c (UNUSED_PARAM): Define.
13359         (get_fs_usage): Mark parameter "disk" as unused.
13360         * lib/getugroups.c (getgrent): Use "void" in prototype.
13361         * lib/mountlist.c: Mark unused parameters.
13362         (read_file_system_list): Declare a local with "const".
13363         * lib/nanosleep.c (getnow): Declare static.
13364         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
13365
13366         dirfd: set errno upon failure
13367         * lib/dirfd.c: Include <errno.h>.
13368         Set errno to ENOTSUP when returning -1.
13369         * modules/dirfd (Depends-on): Add errno.
13370         Suggested by John Kodis <kodis@comcast.net>.
13371
13372 2009-02-01  Bruno Haible  <bruno@clisp.org>
13373
13374         Don't assume sizeof (long) >= sizeof (void *).
13375         * lib/memcmp.c: Include stdint.h.
13376         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
13377         srcp2 to 'const byte *'.
13378         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
13379         types to uintptr_t.
13380         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
13381         * modules/memcmp (Depends-on): Add stdint.
13382         Reported by Ozkan Sezer <sezeroz@gmail.com>.
13383
13384 2009-01-30  Eric Blake  <ebb9@byu.net>
13385
13386         fix more require-before-expand issues
13387         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
13388         expand, AC_PROG_AWK.
13389         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
13390
13391 2009-01-28  Eric Blake  <ebb9@byu.net>
13392
13393         version-etc: use consistent URL formatting
13394         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
13395         Improve formatting.  Use fputs for string without %.
13396
13397 2009-01-28  Jim Meyering  <meyering@redhat.com>
13398
13399         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
13400         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
13401         "underquoted definition of NAME" from autoconf-2.59.
13402
13403 2009-01-28  Bruno Haible  <bruno@clisp.org>
13404
13405         * doc/gnulib.texi: Add "Obsolete modules" to index.
13406
13407 2009-01-28  Jim Meyering  <meyering@redhat.com>
13408
13409         useless-if-before-free: recognize more variants
13410         * build-aux/useless-if-before-free: Also recognize e.g.,
13411         if (NULL != p) free (p);
13412
13413 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
13414
13415         test-getaddrinfo: skip (don't fail) this test when there's no network
13416         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
13417         on the presumption that it means you lack network access.
13418
13419 2009-01-26  Jim Meyering  <meyering@redhat.com>
13420
13421         fflush: avoid warnings on modern systems
13422         * lib/fflush.c (rpl_fflush): Move declarations of locals,
13423         pos and result, into scopes where they're used.
13424
13425 2009-01-26  Eric Blake  <ebb9@byu.net>
13426
13427         Silence warning reintroduced by recent extensions patch.
13428         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
13429         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
13430         autoconf.
13431
13432         Backport improved autoconf semantics of AC_DEFUN_ONCE.
13433         * m4/00gnulib.m4: New file.
13434         * gnulib-tool (func_get_filelist): Always use it.
13435         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
13436         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
13437
13438 2009-01-25  Bruno Haible  <bruno@clisp.org>
13439
13440         Make test-quotearg work on MacOS X and AIX.
13441         * tests/test-quotearg.sh: New file.
13442         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
13443         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
13444         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
13445         include <libintl.h>.
13446         (fake_locale): Remove variable.
13447         (gettext, dgettext, dcgettext): Remove functions.
13448         (main): Instead of setting a fake locale, set a real locale. Call
13449         textdomain and bindtextdomain.
13450         * modules/quotearg-tests (Files): Add the new files.
13451         (Depends-on): Add gettext, setenv, unsetenv.
13452         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
13453         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
13454         Augment TESTS_ENVIRONMENT.
13455
13456 2009-01-25  Bruno Haible  <bruno@clisp.org>
13457
13458         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
13459         fr_FR.ISO8859-1 locale on MacOS X.
13460         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
13461         ja_JP.eucJP locale on MacOS X.
13462         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
13463         zh_CN.GB18030 locale on MacOS X.
13464
13465 2009-01-25  Bruno Haible  <bruno@clisp.org>
13466
13467         Avoid link errors on MacOS X 10.3.
13468         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
13469         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13470
13471 2009-01-25  Bruno Haible  <bruno@clisp.org>
13472
13473         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13474         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
13475         * modules/pipe (Files): Remove m4/posix_spawn.m4.
13476         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13477         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
13478         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13479         posix_spawnattr_init, posix_spawnattr_setsigmask,
13480         posix_spawnattr_setflags, posix_spawnattr_destroy.
13481
13482         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13483         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
13484         * modules/execute (Files): Remove m4/posix_spawn.m4.
13485         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13486         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13487         posix_spawnattr_init, posix_spawnattr_setsigmask,
13488         posix_spawnattr_setflags, posix_spawnattr_destroy.
13489
13490 2009-01-25  Bruno Haible  <bruno@clisp.org>
13491
13492         * lib/glthread/threadlib.c: Include <stdlib.h>.
13493
13494 2009-01-25  Bruno Haible  <bruno@clisp.org>
13495
13496         * lib/glthread/threadlib.c (dummy): New declaration.
13497
13498 2009-01-25  Bruno Haible  <bruno@clisp.org>
13499
13500         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
13501         multibyte characters also for the GB18030 encoding. Don't crash when
13502         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
13503
13504 2009-01-25  Bruno Haible  <bruno@clisp.org>
13505
13506         Avoid redefining 'struct random_data' on OSF/1 5.1.
13507         * lib/stdlib.in.h: Include <random.h> if it exists.
13508         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
13509         HAVE_RANDOM_H. Include <random.h> when testing whether
13510         'struct random_data' exists.
13511         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
13512
13513 2009-01-25  Bruno Haible  <bruno@clisp.org>
13514
13515         Don't install charset.alias on MacOS X >= 10.3.
13516         * lib/localcharset.c (DARWIN7): New macro.
13517         (get_charset_aliases): Hardcode the result for Darwin7.
13518         * modules/localcharset (install-exec-local): Don't install
13519         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
13520
13521 2009-01-25  Bruno Haible  <bruno@clisp.org>
13522
13523         Don't install charset.alias on mingw and Cygwin.
13524         * modules/localcharset (install-exec-local): Don't install
13525         charset.alias on mingw and Cygwin, if the file does not yet exist.
13526         The result for these platforms is hardcoded in localcharset.c.
13527
13528 2009-01-25  Bruno Haible  <bruno@clisp.org>
13529
13530         Make it possible again to use AC_GNU_SOURCE together with gnulib.
13531         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
13532         before requiring AC_USE_SYSTEM_EXTENSIONS.
13533
13534 2009-01-25  Jim Meyering  <meyering@redhat.com>
13535
13536         c-strtod: avoid warnings
13537         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
13538         "assignment discards qualifiers from pointer target type" warnings.
13539
13540 2009-01-24  Bruno Haible  <bruno@clisp.org>
13541
13542         Add support for non-UTF-8 locales on MacOS X.
13543         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
13544         canonical encodings. For Darwin 7 and newer, don't map traditional
13545         encodings to UTF-8.
13546         Reported by Vincent Lefevre <vincent@vinc17.org>
13547         at <http://savannah.gnu.org/bugs/?25235>.
13548
13549 2009-01-24  Bruno Haible  <bruno@clisp.org>
13550
13551         * doc/gnulib.texi (Obsolete modules): New section.
13552         Reported by Mike Frysinger <vapier@gentoo.org>.
13553
13554 2009-01-24  Bruno Haible  <bruno@clisp.org>
13555
13556         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
13557         (%.dvi): New rule.
13558
13559 2009-01-24  Bruno Haible  <bruno@clisp.org>
13560
13561         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
13562         Reported by Eric Blake.
13563
13564 2009-01-24  Bruno Haible  <bruno@clisp.org>
13565
13566         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
13567         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
13568         Reported by Gary V. Vaughan <gary@gnu.org>.
13569
13570 2009-01-24  Bruno Haible  <bruno@clisp.org>
13571
13572         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
13573
13574 2009-01-23  Bruno Haible  <bruno@clisp.org>
13575
13576         Make c-strtod, c-strtold usable in libraries.
13577         * lib/c-strtod.c: Include string.h instead of xalloc.h.
13578         (C_STRTOD): Call strdup instead of xstrdup.
13579         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
13580         * modules/c-strtold (Depends-on): Likewise.
13581         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
13582         * NEWS: Mention the change.
13583         Reported by Michael Gold <mgold@ncf.ca>.
13584
13585 2009-01-23  Jim Meyering  <meyering@redhat.com>
13586
13587         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
13588         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
13589         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
13590
13591 2009-01-23  Simon Josefsson  <simon@josefsson.org>
13592
13593         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
13594         GNU CoreUtils.
13595         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
13596         * modules/version-etc (Description): Update.
13597
13598 2009-01-22  Bruno Haible  <bruno@clisp.org>
13599
13600         Cache the C locale object.
13601         * lib/c-strtod.c (c_locale_cache): New variable.
13602         (c_locale): New function.
13603         (C_STRTOD): Use it, and don't call freelocale.
13604         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
13605         Suggested by Paolo Bonzini.
13606
13607 2009-01-21  Bruno Haible  <bruno@clisp.org>
13608
13609         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
13610         conditions other than overflow.
13611
13612 2009-01-21  Bruno Haible  <bruno@clisp.org>
13613
13614         * lib/c-strtod.c: Include errno.h.
13615         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
13616         value from STRTOD_L and STRTOD.
13617
13618 2009-01-21  Bruno Haible  <bruno@clisp.org>
13619         and Jim Meyering  <meyering@redhat.com>
13620
13621         nanosleep: skip configure test (fail it) for apple universal builds
13622         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
13623         universal builds, assume that nanosleep does not work.
13624         * modules/nanosleep (Depends-on): Add multiarch.
13625
13626         mktime: skip configure test (fail it) for apple universal builds
13627         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
13628         universal builds, assume that mktime does not work.
13629         * modules/mktime (Depends-on): Add multiarch.
13630
13631 2009-01-21  Eric Blake  <ebb9@byu.net>
13632
13633         multiarch: avoid expand-before-require warning
13634         * modules/multiarch (configure.ac): Require, rather than expand,
13635         gl_MULTIARCH.
13636         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
13637         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
13638         enforce that all clients require it.  Partial reversion of
13639         2008-12-29 patch.
13640
13641         error: avoid expand-before-require warning
13642         * modules/errno (configure.ac): Require, rather than expand,
13643         gl_HEADER_ERRNO_H.
13644         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
13645         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
13646         enforce that all clients require it.
13647
13648         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
13649         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
13650         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
13651         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
13652
13653 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
13654
13655         Revert:
13656         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
13657
13658         regex: do not depend on obsolete modules.
13659         * modules/regex: Remove memcmp and memmove.
13660
13661 2009-01-20  Bruno Haible  <bruno@clisp.org>
13662
13663         Make the 'link' module link on Windows NT 4.
13664         * lib/link.c (_WIN32_WINNT): Don't define.
13665         (CreateHardLinkFuncType): New type.
13666         (CreateHardLinkFunc, initialized): New variables.
13667         (initialize): New function.
13668         (link): Invoke CreateHardLink indirectly through the function pointer.
13669
13670 2009-01-20  Bruno Haible  <bruno@clisp.org>
13671
13672         Fix compilation failure on mingw.
13673         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
13674
13675 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
13676
13677         * doc/c-strtod.texi: Mention a couple of restrictions.
13678
13679 2009-01-20  Jim Meyering  <meyering@redhat.com>
13680
13681         gettimeofday: move more declarations out of functions
13682         * lib/gettimeofday.c: Move extern declarations of tzset and
13683         gmtime out of containing functions.  Prompted by Bruno Haible.
13684
13685 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
13686
13687         regex: do not depend on obsolete modules.
13688         * modules/regex: Remove memcmp and memmove.
13689
13690 2009-01-19  Bruno Haible  <bruno@clisp.org>
13691
13692         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13693         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
13694         gl_BIGENDIAN, not AC_C_BIGENDIAN.
13695         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
13696         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
13697
13698 2009-01-19  Bruno Haible  <bruno@clisp.org>
13699
13700         * tests/test-link.c: Include <errno.h>.
13701         (main): Exit with code 77 when a hard link cannot be created due to
13702         the file system.
13703         * tests/test-link.sh: Skip test when a hard link cannot be created due
13704         to the file system.
13705         Suggested by Eric Blake.
13706
13707 2009-01-19  Martin Lambers  <marlam@marlam.de>
13708
13709         * modules/link-tests: New file.
13710         * tests/test-link.sh: New file.
13711         * tests/test-link.c: New file.
13712
13713 2009-01-19  Eric Blake  <ebb9@byu.net>
13714
13715         doc: mention another function added in cygwin 1.7.0
13716         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
13717         Another new function in cygwin 1.7.
13718
13719 2009-01-19  Bruno Haible  <bruno@clisp.org>
13720
13721         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13722         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
13723         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
13724         gl_BIGENDIAN, not AC_C_BIGENDIAN.
13725         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13726         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13727         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13728         * m4/md4.m4 (gl_MD4): Likewise.
13729         * m4/md5.m4 (gl_MD5): Likewise.
13730         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
13731         * m4/sha1.m4 (gl_SHA1): Likewise.
13732         * m4/sha256.m4 (gl_SHA256): Likewise.
13733         * m4/sha512.m4 (gl_SHA512): Likewise.
13734
13735 2009-01-19  Bruno Haible  <bruno@clisp.org>
13736
13737         * modules/uniname/uniname-tests (Depends-on): Add progname.
13738         * tests/uniname/test-uninames.c: Include progname.h.
13739         (main): Call set_program_name.
13740
13741         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
13742         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
13743         (main): Call set_program_name.
13744
13745         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
13746         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
13747         (main): Call set_program_name.
13748
13749         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
13750         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
13751         (main): Call set_program_name.
13752
13753         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
13754         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
13755         (main): Call set_program_name.
13756
13757         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
13758         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
13759         (main): Call set_program_name.
13760
13761         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
13762         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
13763         (main): Call set_program_name.
13764
13765         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
13766         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
13767         (main): Call set_program_name.
13768
13769         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
13770         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
13771         (main): Call set_program_name.
13772
13773 2009-01-19  Eric Blake  <ebb9@byu.net>
13774
13775         test-unistd: test previous patch
13776         * tests/test-unistd.c: Test *_FILENO macros.
13777
13778         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
13779         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13780         Guarantee a definition.
13781         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
13782         * modules/unistd-safer (Depends-on): Add dependency on unistd.
13783         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
13784         * lib/dup-safer.c (STDERR_FILENO): Likewise.
13785         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13786         Likewise.
13787         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
13788         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
13789         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13790         Likewise.
13791         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
13792         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
13793         (STDERR_FILENO): Likewise.
13794         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
13795         (STDERR_FILENO): Likewise.
13796         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
13797         (STDERR_FILENO): Likewise.
13798         Reported by Elbert Pol.
13799
13800 2009-01-19  Eric Blake  <ebb9@byu.net>
13801
13802         doc: mention more functions added in cygwin 1.7.0
13803         * doc/posix-functions/abort.texi (abort): Update wording related
13804         to cygwin.
13805         * doc/posix-functions/daylight.texi (daylight): Likewise.
13806         * doc/posix-functions/optarg.texi (optarg): Likewise.
13807         * doc/posix-functions/optarg.texi (opterr): Likewise.
13808         * doc/posix-functions/optarg.texi (optind): Likewise.
13809         * doc/posix-functions/optarg.texi (optopt): Likewise.
13810         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
13811         worked in 1.5.x, and was withdrawn in 1.7.
13812         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13813         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
13814         cygwin versions.
13815         * doc/posix-functions/perror.texi (perror): Likewise.
13816         * doc/posix-functions/printf.texi (printf): Likewise.
13817         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13818         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13819         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13820         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13821         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13822         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13823         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
13824         Likewise.
13825         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
13826         Likewise.
13827         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
13828         this function.
13829         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
13830         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
13831         Likewise.
13832         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
13833         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
13834         * doc/posix-functions/confstr.texi (confstr): Likewise.
13835         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13836         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
13837         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
13838         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
13839         * doc/posix-functions/fputws.texi (fputws): Likewise.
13840         * doc/posix-functions/fwide.texi (fwide): Likewise.
13841         * doc/posix-functions/getwc.texi (getwc): Likewise.
13842         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
13843         * doc/posix-functions/putwc.texi (putwc): Likewise.
13844         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13845         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
13846         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
13847         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13848         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
13849         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
13850         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
13851         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
13852         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
13853         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
13854         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
13855
13856 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
13857
13858         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
13859         * lib/ioctl.c: Include <sys/ioctl.h>.
13860
13861 2009-01-19  Simon Josefsson  <simon@josefsson.org>
13862
13863         * modules/getdate-tests (Depends-on): Add progname.
13864         * tests/test-getdate.c: Use progname module, to avoid link errors
13865         on non-glibc systems.
13866
13867 2009-01-18  Simon Josefsson  <simon@josefsson.org>
13868
13869         * modules/filenamecat-tests (Depends-on): Add progname.
13870         * modules/fstrcmp-tests (Depends-on): Likewise.
13871
13872         * tests/test-filenamecat.c: Use progname module, to avoid link
13873         errors on non-glibc systems.
13874         * tests/test-fstrcmp.c: Likewise.
13875
13876 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
13877
13878         gettimeofday: avoid warning: nested extern declaration of 'localtime'
13879         * lib/gettimeofday.c: Move extern declaration out of function.
13880
13881 2009-01-18  Bruno Haible  <bruno@clisp.org>
13882
13883         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
13884         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
13885         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
13886
13887 2009-01-18  Bruno Haible  <bruno@clisp.org>
13888
13889         * lib/strftime.c (MEMPCPY): Remove unused macro.
13890         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
13891
13892 2009-01-18  Martin Lambers  <marlam@marlam.de>
13893
13894         New module 'link'.
13895         * lib/unistd.in.h (link): New declaration.
13896         * lib/link.c: New file.
13897         * m4/link.m4: New file.
13898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
13899         HAVE_LINK.
13900         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
13901         * modules/link: New file.
13902         * doc/posix-functions/link.texi: Mention the new module.
13903
13904 2009-01-18  Bruno Haible  <bruno@clisp.org>
13905
13906         * tests/test-avltree_list.c (main): Call set_program_name.
13907         * tests/test-avltree_oset.c (main): Likewise.
13908         * tests/test-obstack-printf.c: Include progname.h.
13909         (main): Call set_program_name.
13910         * tests/test-quotearg.c: Include progname.h.
13911         (main): Call set_program_name.
13912         * tests/test-xmemdup0.c: Include progname.h.
13913         (main): Call set_program_name.
13914
13915 2009-01-18  Bruno Haible  <bruno@clisp.org>
13916
13917         New module 'alphasort'.
13918         * lib/dirent.in.h (alphasort): New declaration.
13919         * lib/alphasort.c: New file, from glibc with modifications.
13920         * m4/alphasort.m4: New file.
13921         * modules/alphasort: New file.
13922         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
13923         HAVE_ALPHASORT.
13924         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
13925         HAVE_ALPHASORT.
13926         * doc/posix-functions/alphasort.texi: Mention the new module and the
13927         portability problems.
13928
13929 2009-01-18  Bruno Haible  <bruno@clisp.org>
13930
13931         New module 'scandir'.
13932         * lib/dirent.in.h (scandir): New declaration.
13933         * lib/scandir.c: New file, from glibc with modifications.
13934         * m4/scandir.m4: New file.
13935         * modules/scandir: New file.
13936         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
13937         HAVE_SCANDIR.
13938         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
13939         HAVE_SCANDIR.
13940         * doc/posix-functions/scandir.texi: Mention the new module and the
13941         portability problems.
13942
13943 2009-01-17  Bruno Haible  <bruno@clisp.org>
13944
13945         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
13946         Update documentation.
13947         (func_remove_suffix): Escape all dots in the suffix. Update
13948         documentation.
13949         (func_filter_filelist): Update documentation.
13950         Reported by Ralf Wildenhues.
13951
13952 2009-01-17  Bruno Haible  <bruno@clisp.org>
13953
13954         * modules/dprintf-posix-tests: New file.
13955         * tests/test-dprintf-posix.sh: New file.
13956         * tests/test-dprintf-posix.c: New file.
13957
13958         New modules 'dprintf', 'dprintf-posix'.
13959         * lib/stdio.in.h (dprintf): New declaration.
13960         * lib/dprintf.c: New file.
13961         * m4/dprintf.m4: New file.
13962         * m4/dprintf-posix.m4: New file.
13963         * modules/dprintf: New file.
13964         * modules/dprintf-posix: New file.
13965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
13966         HAVE_DPRINTF, REPLACE_DPRINTF.
13967         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
13968         HAVE_DPRINTF, REPLACE_DPRINTF.
13969         * doc/posix-functions/dprintf.texi: Mention the new modules.
13970
13971 2009-01-17  Bruno Haible  <bruno@clisp.org>
13972
13973         * modules/vdprintf-posix-tests: New file.
13974         * tests/test-vdprintf-posix.sh: New file.
13975         * tests/test-vdprintf-posix.c: New file.
13976
13977         New modules 'vdprintf', 'vdprintf-posix'.
13978         * lib/stdio.in.h (vdprintf): New declaration.
13979         * lib/vdprintf.c: New file.
13980         * m4/vdprintf.m4: New file.
13981         * m4/vdprintf-posix.m4: New file.
13982         * modules/vdprintf: New file.
13983         * modules/vdprintf-posix: New file.
13984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
13985         HAVE_VDPRINTF, REPLACE_VDPRINTF.
13986         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
13987         HAVE_VDPRINTF, REPLACE_VDPRINTF.
13988         * doc/posix-functions/vdprintf.texi: Mention the new modules.
13989
13990 2009-01-17  Bruno Haible  <bruno@clisp.org>
13991
13992         Fix replacement of fopen on mingw.
13993         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
13994         mingw.
13995
13996 2009-01-17  Bruno Haible  <bruno@clisp.org>
13997
13998         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
13999         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
14000
14001 2009-01-17  Bruno Haible  <bruno@clisp.org>
14002
14003         Avoid test-fflush2.sh failure on mingw.
14004         * tests/test-fflush2.c: Include binary-io.h.
14005         (main): Put standard input into binary mode.
14006         * modules/fflush-tests (Depends-on): Add binary-io.
14007
14008 2009-01-17  Bruno Haible  <bruno@clisp.org>
14009
14010         * lib/wchar.in.h: In another particular situation, include only the
14011         system's <wchar.h> file.
14012         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
14013         Reported by Albert Chin-A-Young <china@thewrittenword.com>
14014         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
14015
14016 2009-01-17  Bruno Haible  <bruno@clisp.org>
14017
14018         Support for stripping executables in --enable-relocatable.
14019         * build-aux/install-reloc: Expect one more argument, or an environment
14020         variable RELOC_STRIP_PROG. If set, strip the destination program and
14021         its wrapper.
14022         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
14023         RELOC_STRIP_PROG.
14024         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
14025         to set RELOCATABLE_STRIP.
14026         * NEWS: Mention the new Makefile requirement.
14027
14028 2009-01-17  Bruno Haible  <bruno@clisp.org>
14029
14030         * build-aux/install-reloc: Remove debugging information left over by
14031         C compiler on MacOS X.
14032
14033 2009-01-17  Bruno Haible  <bruno@clisp.org>
14034
14035         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
14036         * lib/progreloc.c (find_executable): Fix type of pointer passed to
14037         _NSGetExecutablePath.
14038
14039 2009-01-16  Jim Meyering  <meyering@redhat.com>
14040
14041         strerror: avoid warnings about discarding "const"
14042         * lib/strerror.c (rpl_strerror): Instead of returning a const
14043         string from each and every "case", use a variable, and add a single
14044         cast after the switch.
14045
14046 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
14047
14048         * lib/arpa_inet.in.h: Add extern "C" block for C++.
14049
14050 2009-01-16  Bruno Haible  <bruno@clisp.org>
14051
14052         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
14053         array initializer syntax that also works in C++ mode.
14054         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14055
14056 2009-01-16  Jim Meyering  <meyering@redhat.com>
14057
14058         poll: suppress a warning
14059         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
14060         to ignore "...unsigned expression < 0 is always false" warnings.
14061
14062 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
14063
14064         poll: remove declarations of unused variables
14065         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
14066         sockbuf and optlen.
14067
14068 2009-01-15  Bruno Haible  <bruno@clisp.org>
14069
14070         Make fflush-after-ungetc POSIX compliant on BSD systems.
14071         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
14072         (clear_ungetc_buffer): Implement also for other systems.
14073         (rpl_fflush): On glibc systems, invoke
14074         clear_ungetc_buffer_preserving_position. Otherwise, invoke
14075         clear_ungetc_buffer after fetching the stream's position, not before.
14076
14077 2009-01-15  Bruno Haible  <bruno@clisp.org>
14078
14079         Make fflush-after-ungetc POSIX compliant on glibc systems.
14080         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
14081         after ungetc.
14082         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
14083         (rpl_fflush): On glibc systems, simply call the system's fflush
14084         function after clearing the ungetc buffer.
14085         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
14086         Instead, lseek only to the end of file, then use the system's fseeko
14087         for the rest. On glibc systems, reset the EOF indicator bit.
14088
14089 2009-01-15  Jim Meyering  <meyering@redhat.com>
14090
14091         openmp.m4: revert quote-adding change, for portability to older autoconf
14092         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
14093         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
14094         Simon Josefsson noticed the problem when using autoconf-2.61.
14095
14096 2009-01-15  Bruno Haible  <bruno@clisp.org>
14097
14098         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
14099         * tests/test-fflush2.c (ASSERT): Always fail.
14100         (main): Add two tests for fflush() after ungetc(), taking into account
14101         the Austin Group's clarification.
14102         Suggested by Eric Blake.
14103
14104 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
14105
14106         mktime.m4: remove K&R-style function prototypes
14107         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
14108         for the Sun C++ compiler.
14109
14110 2009-01-14  Bruno Haible  <bruno@clisp.org>
14111
14112         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
14113         while including <wchar.h>.
14114         * lib/wchar.in.h: In two particular situations on HP-UX, include only
14115         the system's <wchar.h> file.
14116         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14117
14118 2009-01-14  Bruno Haible  <bruno@clisp.org>
14119
14120         * m4/csharp.m4: Don't mention gettext on the serial number line.
14121         * m4/csharpexec.m4: Likewise.
14122         * m4/eaccess.m4: Likewise.
14123         * m4/javaexec.m4: Likewise.
14124         * m4/sig_atomic_t.m4: Likewise.
14125         * m4/tmpdir.m4: Likewise.
14126         * m4/intldir.m4: Bump gettext version.
14127         * m4/lib-ld.m4: Likewise.
14128
14129 2009-01-14  Bruno Haible  <bruno@clisp.org>
14130
14131         * lib/progname.c (set_program_name): Add more comments.
14132         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14133
14134 2009-01-14  Simon Josefsson  <simon@josefsson.org>
14135
14136         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
14137         were sys/stat.h does not define it.
14138
14139 2009-01-14  Jim Meyering  <meyering@redhat.com>
14140
14141         many *.m4 files: improve m4 quoting
14142         99% of this change was performed by running the following commands:
14143         git ls-files | grep '\.m4$' | xargs perl -pi \
14144           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
14145           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
14146           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
14147           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
14148         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
14149         The remainder were to add Copyright dates, increment serial numbers,
14150         undo some changes in comments, exclude m4/intl.m4, and add quotes
14151         around the "1" in ",1" where the unusual spacing prohibited the
14152         above regexps from doing the job.  For more details, see
14153         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
14154         * m4/acl.m4: Modified.
14155         * m4/afs.m4: Likewise.
14156         * m4/alloca.m4: Likewise.
14157         * m4/argp.m4: Likewise.
14158         * m4/argz.m4: Likewise.
14159         * m4/atexit.m4: Likewise.
14160         * m4/bison-i18n.m4: Likewise.
14161         * m4/bison.m4: Likewise.
14162         * m4/byteswap.m4: Likewise.
14163         * m4/c-stack.m4: Likewise.
14164         * m4/c-strtod.m4: Likewise.
14165         * m4/calloc.m4: Likewise.
14166         * m4/canonicalize-lgpl.m4: Likewise.
14167         * m4/chown.m4: Likewise.
14168         * m4/clock_time.m4: Likewise.
14169         * m4/codeset.m4: Likewise.
14170         * m4/copy-file.m4: Likewise.
14171         * m4/csharp.m4: Likewise.
14172         * m4/csharpcomp.m4: Likewise.
14173         * m4/csharpexec.m4: Likewise.
14174         * m4/d-ino.m4: Likewise.
14175         * m4/d-type.m4: Likewise.
14176         * m4/dirfd.m4: Likewise.
14177         * m4/double-slash-root.m4: Likewise.
14178         * m4/eaccess.m4: Likewise.
14179         * m4/eealloc.m4: Likewise.
14180         * m4/environ.m4: Likewise.
14181         * m4/errno_h.m4: Likewise.
14182         * m4/euidaccess.m4: Likewise.
14183         * m4/execute.m4: Likewise.
14184         * m4/fatal-signal.m4: Likewise.
14185         * m4/fchdir.m4: Likewise.
14186         * m4/fcntl_h.m4: Likewise.
14187         * m4/fileblocks.m4: Likewise.
14188         * m4/filenamecat.m4: Likewise.
14189         * m4/findprog.m4: Likewise.
14190         * m4/flexmember.m4: Likewise.
14191         * m4/fnmatch.m4: Likewise.
14192         * m4/fopen.m4: Likewise.
14193         * m4/fpending.m4: Likewise.
14194         * m4/fprintf-posix.m4: Likewise.
14195         * m4/free.m4: Likewise.
14196         * m4/frexp.m4: Likewise.
14197         * m4/frexpl.m4: Likewise.
14198         * m4/fsusage.m4: Likewise.
14199         * m4/ftruncate.m4: Likewise.
14200         * m4/gc-camellia.m4: Likewise.
14201         * m4/gc-random.m4: Likewise.
14202         * m4/gc.m4: Likewise.
14203         * m4/getaddrinfo.m4: Likewise.
14204         * m4/getcwd-abort-bug.m4: Likewise.
14205         * m4/getcwd-path-max.m4: Likewise.
14206         * m4/getdate.m4: Likewise.
14207         * m4/getdomainname.m4: Likewise.
14208         * m4/getgroups.m4: Likewise.
14209         * m4/gethostname.m4: Likewise.
14210         * m4/gethrxtime.m4: Likewise.
14211         * m4/getline.m4: Likewise.
14212         * m4/getloadavg.m4: Likewise.
14213         * m4/getndelim2.m4: Likewise.
14214         * m4/getpass.m4: Likewise.
14215         * m4/gettext.m4: Likewise.
14216         * m4/gettime.m4: Likewise.
14217         * m4/gettimeofday.m4: Likewise.
14218         * m4/gnulib-common.m4: Likewise.
14219         * m4/group-member.m4: Likewise.
14220         * m4/host-os.m4: Likewise.
14221         * m4/iconv.m4: Likewise.
14222         * m4/iconv_open.m4: Likewise.
14223         * m4/inet_ntop.m4: Likewise.
14224         * m4/inet_pton.m4: Likewise.
14225         * m4/inline.m4: Likewise.
14226         * m4/intldir.m4: Likewise.
14227         * m4/intlmacosx.m4: Likewise.
14228         * m4/intmax.m4: Likewise.
14229         * m4/intmax_t.m4: Likewise.
14230         * m4/inttypes.m4: Likewise.
14231         * m4/inttypes_h.m4: Likewise.
14232         * m4/inttypes-pri.m4: Likewise.
14233         * m4/isapipe.m4: Likewise.
14234         * m4/isnand.m4: Likewise.
14235         * m4/isnanf.m4: Likewise.
14236         * m4/isnanl.m4: Likewise.
14237         * m4/javacomp.m4: Likewise.
14238         * m4/javaexec.m4: Likewise.
14239         * m4/jm-winsz1.m4: Likewise.
14240         * m4/jm-winsz2.m4: Likewise.
14241         * m4/lchown.m4: Likewise.
14242         * m4/lcmessage.m4: Likewise.
14243         * m4/ldexpl.m4: Likewise.
14244         * m4/lib-ld.m4: Likewise.
14245         * m4/lib-link.m4: Likewise.
14246         * m4/libsigsegv.m4: Likewise.
14247         * m4/link-follow.m4: Likewise.
14248         * m4/localcharset.m4: Likewise.
14249         * m4/locale-fr.m4: Likewise.
14250         * m4/locale-ja.m4: Likewise.
14251         * m4/locale-tr.m4: Likewise.
14252         * m4/locale-zh.m4: Likewise.
14253         * m4/lock.m4: Likewise.
14254         * m4/longlong.m4: Likewise.
14255         * m4/ls-mntd-fs.m4: Likewise.
14256         * m4/lstat.m4: Likewise.
14257         * m4/malloc.m4: Likewise.
14258         * m4/mathl.m4: Likewise.
14259         * m4/mbrtowc.m4: Likewise.
14260         * m4/mbstate_t.m4: Likewise.
14261         * m4/mbswidth.m4: Likewise.
14262         * m4/memchr.m4: Likewise.
14263         * m4/memcmp.m4: Likewise.
14264         * m4/memcpy.m4: Likewise.
14265         * m4/memmem.m4: Likewise.
14266         * m4/memmove.m4: Likewise.
14267         * m4/mempcpy.m4: Likewise.
14268         * m4/memrchr.m4: Likewise.
14269         * m4/memset.m4: Likewise.
14270         * m4/minmax.m4: Likewise.
14271         * m4/mkdir-slash.m4: Likewise.
14272         * m4/mkdtemp.m4: Likewise.
14273         * m4/mktime.m4: Likewise.
14274         * m4/mmap-anon.m4: Likewise.
14275         * m4/mountlist.m4: Likewise.
14276         * m4/nanosleep.m4: Likewise.
14277         * m4/nls.m4: Likewise.
14278         * m4/nocrash.m4: Likewise.
14279         * m4/open.m4: Likewise.
14280         * m4/openat.m4: Likewise.
14281         * m4/openmp.m4: Likewise.
14282         * m4/pathmax.m4: Likewise.
14283         * m4/perl.m4: Likewise.
14284         * m4/physmem.m4: Likewise.
14285         * m4/pipe.m4: Likewise.
14286         * m4/po.m4: Likewise.
14287         * m4/poll.m4: Likewise.
14288         * m4/posixtm.m4: Likewise.
14289         * m4/posixver.m4: Likewise.
14290         * m4/printf-frexp.m4: Likewise.
14291         * m4/printf-frexpl.m4: Likewise.
14292         * m4/printf-posix.m4: Likewise.
14293         * m4/printf-posix-rpl.m4: Likewise.
14294         * m4/printf.m4: Likewise.
14295         * m4/progtest.m4: Likewise.
14296         * m4/putenv.m4: Likewise.
14297         * m4/readline.m4: Likewise.
14298         * m4/readlink.m4: Likewise.
14299         * m4/readutmp.m4: Likewise.
14300         * m4/realloc.m4: Likewise.
14301         * m4/regex.m4: Likewise.
14302         * m4/relocatable.m4: Likewise.
14303         * m4/relocatable-lib.m4: Likewise.
14304         * m4/rename-dest-slash.m4: Likewise.
14305         * m4/rename.m4: Likewise.
14306         * m4/rmdir-errno.m4: Likewise.
14307         * m4/rmdir.m4: Likewise.
14308         * m4/roundf.m4: Likewise.
14309         * m4/roundl.m4: Likewise.
14310         * m4/rpmatch.m4: Likewise.
14311         * m4/save-cwd.m4: Likewise.
14312         * m4/selinux-selinux-h.m4: Likewise.
14313         * m4/setenv.m4: Likewise.
14314         * m4/settime.m4: Likewise.
14315         * m4/sig2str.m4: Likewise.
14316         * m4/sig_atomic_t.m4: Likewise.
14317         * m4/signalblocking.m4: Likewise.
14318         * m4/signbit.m4: Likewise.
14319         * m4/sigpipe.m4: Likewise.
14320         * m4/sockets.m4: Likewise.
14321         * m4/sockpfaf.m4: Likewise.
14322         * m4/st_dm_mode.m4: Likewise.
14323         * m4/stat-time.m4: Likewise.
14324         * m4/stdbool.m4: Likewise.
14325         * m4/stdint.m4: Likewise.
14326         * m4/stdint_h.m4: Likewise.
14327         * m4/stpcpy.m4: Likewise.
14328         * m4/stpncpy.m4: Likewise.
14329         * m4/strcase.m4: Likewise.
14330         * m4/strchrnul.m4: Likewise.
14331         * m4/strcspn.m4: Likewise.
14332         * m4/strdup.m4: Likewise.
14333         * m4/strftime.m4: Likewise.
14334         * m4/strndup.m4: Likewise.
14335         * m4/strnlen.m4: Likewise.
14336         * m4/strpbrk.m4: Likewise.
14337         * m4/strptime.m4: Likewise.
14338         * m4/strsep.m4: Likewise.
14339         * m4/strtod.m4: Likewise.
14340         * m4/strtoimax.m4: Likewise.
14341         * m4/strtok_r.m4: Likewise.
14342         * m4/strtol.m4: Likewise.
14343         * m4/strtoll.m4: Likewise.
14344         * m4/strtoul.m4: Likewise.
14345         * m4/strtoull.m4: Likewise.
14346         * m4/strtoumax.m4: Likewise.
14347         * m4/strverscmp.m4: Likewise.
14348         * m4/threadlib.m4: Likewise.
14349         * m4/timegm.m4: Likewise.
14350         * m4/tm_gmtoff.m4: Likewise.
14351         * m4/tmpdir.m4: Likewise.
14352         * m4/tmpfile.m4: Likewise.
14353         * m4/tzset.m4: Likewise.
14354         * m4/uintmax_t.m4: Likewise.
14355         * m4/unlinkdir.m4: Likewise.
14356         * m4/unlocked-io.m4: Likewise.
14357         * m4/uptime.m4: Likewise.
14358         * m4/userspec.m4: Likewise.
14359         * m4/utimbuf.m4: Likewise.
14360         * m4/utime.m4: Likewise.
14361         * m4/utimes-null.m4: Likewise.
14362         * m4/utimes.m4: Likewise.
14363         * m4/vararrays.m4: Likewise.
14364         * m4/vasnprintf.m4: Likewise.
14365         * m4/vfprintf-posix.m4: Likewise.
14366         * m4/vprintf-posix.m4: Likewise.
14367         * m4/wait-process.m4: Likewise.
14368         * m4/wchar_t.m4: Likewise.
14369         * m4/wint_t.m4: Likewise.
14370         * m4/write-any-file.m4: Likewise.
14371         * m4/yield.m4: Likewise.
14372
14373 2009-01-13  Bruno Haible  <bruno@clisp.org>
14374
14375         Avoid test-copy-file.sh failures when ACL support insufficient.
14376         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
14377         TESTS_ENVIRONMENT.
14378         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
14379         Reported by Jim Meyering.
14380
14381 2009-01-13  Bruno Haible  <bruno@clisp.org>
14382
14383         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
14384         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
14385         * modules/unistdio/u8-printf-parse (Files): Likewise.
14386         * modules/unistdio/u32-printf-parse (Files): Likewise.
14387         * modules/unistdio/ulc-printf-parse (Files): Likewise.
14388
14389 2009-01-13  Simon Josefsson  <simon@josefsson.org>
14390
14391         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
14392         and m4/inttypes_h.m4 too.
14393
14394 2009-01-12  Eric Blake  <ebb9@byu.net>
14395
14396         tests: IRIX 6.2 cc can't compile -0.0 into .data
14397         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
14398         rather than at compile-time.
14399         * tests/test-floorl.c (minus_zero): Likewise.
14400         * tests/test-frexpl.c (minus_zero): Likewise.
14401         * tests/test-isnan.c (minus_zerol): Likewise.
14402         * tests/test-isnanl.h (minus_zero): Likewise.
14403         * tests/test-ldexpl.c (minus_zero): Likewise.
14404         * tests/test-roundl.c (minus_zero): Likewise.
14405         * tests/test-signbit.c (minus_zerol): Likewise.
14406         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
14407         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
14408         * tests/test-truncl.c (minus_zero): Likewise.
14409         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
14410         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
14411         Reported by Tom G. Christensen and Nelson H. F. Beebe.
14412
14413 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14414
14415         regex: fix glibc bug 9697
14416         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
14417         handling.
14418
14419 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14420
14421         regex: fix glibc bug 697
14422         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
14423         being NULL also if there are no backreferences.
14424
14425 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14426
14427         regex: merge glibc changes
14428         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
14429         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
14430         re_string_skip_chars, re_string_reconstruct): Likewise.
14431         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
14432
14433 2009-01-07  Jim Meyering  <meyering@redhat.com>
14434
14435         poll: filter through cppi
14436         * lib/poll.c: Indent cpp directives to reflect nesting.
14437
14438 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
14439
14440         poll: don't return uninitialized
14441         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
14442
14443 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
14444
14445         avoid compile failure on AIX 6.1
14446         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
14447         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
14448
14449 2009-01-04  Jim Meyering  <meyering@redhat.com>
14450
14451         remove duplicate inclusion of <stdio.h>
14452         * tests/test-fprintf-posix.c: Likewise.
14453         * tests/test-printf-posix.c: Likewise.
14454         * tests/test-snprintf-posix.c: Likewise.
14455         * tests/test-sprintf-posix.c: Likewise.
14456         * tests/test-vasprintf-posix.c: Likewise.
14457         * tests/test-vfprintf-posix.c: Likewise.
14458         * tests/test-vprintf-posix.c: Likewise.
14459         * tests/test-vsnprintf-posix.c: Likewise.
14460         * tests/test-vsprintf-posix.c: Likewise.
14461
14462 2009-01-03  Jim Meyering  <meyering@redhat.com>
14463
14464         gnulib-tool: fix sed-based filtering
14465         * gnulib-tool (func_filter_filelist): Remove extra backslash
14466         in sed_fff_filter definition.
14467
14468 2009-01-02  Jim Meyering  <meyering@redhat.com>
14469
14470         strftime: avoid compilation failure on Solaris 2.6
14471         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
14472         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
14473         Don't #define mbrlen or mbsinit, since now they're guaranteed to
14474         be available.  Reported by Tom G. Christensen.  Details in
14475         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
14476
14477 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14478             Bruno Haible  <bruno@clisp.org>
14479
14480         Speed up gnulib-tool by doing more string processing through shell
14481         built-ins.
14482         * gnulib-tool (fast_func_append): New variable.
14483         (func_remove_prefix, func_remove_suffix): New functions.
14484         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
14485         (func_filter_filelist): New function.
14486         (func_get_dependencies): Use func_remove_suffix instead of sed.
14487         (func_get_automake_snippet): Use func_filter_filelist instead of a
14488         subshell and sed invocation.
14489
14490 2009-01-01  Bruno Haible  <bruno@clisp.org>
14491
14492         Fix a security bug.
14493         * gnulib-tool (func_import, import, update): Don't allow the characters
14494         '"', '$', '`', '\' in macro arguments that become part of commands that
14495         are evaluated.
14496
14497 2009-01-01  Bruno Haible  <bruno@clisp.org>
14498
14499         * gnulib-tool (func_reset_sigpipe): Add more comments.
14500
14501 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14502
14503         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
14504         func_emit_tests_Makefile_am, func_import): Abort loops early if we
14505         already know the answer.
14506
14507 2009-01-01  Jim Meyering  <meyering@redhat.com>
14508
14509         * lib/version-etc.c (version_etc_va): Update copyright year.
14510
14511 2008-12-30  Bruno Haible  <bruno@clisp.org>
14512
14513         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
14514         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
14515         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
14516
14517 2008-12-29  Eric Blake  <ebb9@byu.net>
14518
14519         multiarch: avoid autoconf AC_REQUIRE bug
14520         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
14521         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
14522         2.63 and older.
14523         Reported by Bruno Haible, and analyzed in
14524         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
14525
14526 2008-12-29  Bruno Haible  <bruno@clisp.org>
14527
14528         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
14529         files in subdirectories correctly.
14530         Reported by Ralf Wildenhues.
14531
14532 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14533
14534         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
14535         rather than 'join FILE -', for Solaris join.
14536
14537 2008-12-29  Bruno Haible  <bruno@clisp.org>
14538
14539         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
14540         quoting.
14541         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14542         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14543         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14544         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
14545         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14546         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14547         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14548         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14549         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14550         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14551         * m4/nls.m4 (AM_NLS): Likewise.
14552         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
14553         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14554         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14555         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14556         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14557         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14558         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
14559         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14560         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14561         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14562         * m4/xsize.m4 (gl_XSIZE): Likewise.
14563         Suggested by Jim Meyering.
14564
14565 2008-11-17  Bruce Korb  <bkorb@gnu.org>
14566
14567         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
14568         * lib/parse-duration.c: use a switch instead of cascading if's.
14569
14570 2008-12-29  Eric Blake  <ebb9@byu.net>
14571
14572         wchar.h: supply WEOF on Irix 5.3
14573         * lib/wchar.in.h (wint_t): Also supply WEOF.
14574         * lib/wctype.in.h (wint_t): Likewise.
14575         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
14576         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
14577         Reported by Tom G. Christensen.
14578
14579 2008-12-26  Bruno Haible  <bruno@clisp.org>
14580
14581         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
14582         i486, i586, i686.
14583
14584 2008-12-26  Bruno Haible  <bruno@clisp.org>
14585
14586         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
14587
14588 2008-12-26  Bruno Haible  <bruno@clisp.org>
14589
14590         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
14591         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
14592         not __STDC_CONSTANT_MACROS.
14593         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
14594
14595 2008-12-25  Bruno Haible  <bruno@clisp.org>
14596
14597         Add support for universal builds to vasnprintf.
14598         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
14599         universal builds, guess no.
14600         * modules/vasnprintf-posix (Depends-on): Add multiarch.
14601         * modules/vasprintf-posix (Depends-on): Likewise.
14602         * modules/fprintf-posix (Depends-on): Likewise.
14603         * modules/vfprintf-posix (Depends-on): Likewise.
14604         * modules/snprintf-posix (Depends-on): Likewise.
14605         * modules/vsnprintf-posix (Depends-on): Likewise.
14606         * modules/sprintf-posix (Depends-on): Likewise.
14607         * modules/vsprintf-posix (Depends-on): Likewise.
14608         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14609         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14610         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14611         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14612         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14613         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14614         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14615
14616         Add support for universal builds to <inttypes.h>.
14617         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
14618         _SCNu64_PREFIX): In Apple
14619         universal builds, define directly, using _LP64.
14620         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
14621         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
14622         * modules/inttypes (Depends-on): Add multiarch.
14623         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14624
14625         Add support for universal builds to <stdint.h>.
14626         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
14627         universal builds, define directly, using _LP64.
14628         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
14629         Apple universal builds, don't test for the size and suffix of ptrdiff_t
14630         and size_t.
14631         * modules/stdint (Depends-on): Add multiarch.
14632         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14633
14634         New module 'multiarch'.
14635         * modules/multiarch: New file.
14636         * m4/multiarch.m4: New file.
14637
14638 2008-12-25  Bruno Haible  <bruno@clisp.org>
14639
14640         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
14641
14642 2008-12-25  Bruno Haible  <bruno@clisp.org>
14643
14644         * modules/btowc (License): Relicense under LGPLv2+.
14645         * modules/mbsinit (License): Likewise.
14646         * modules/mbrtowc (License): Likewise.
14647         * modules/wcrtomb (License): Likewise.
14648         * modules/streq (License): Likewise.
14649         Reported by David Lutterkort <lutter@redhat.com>.
14650
14651 2008-12-23  Bruno Haible  <bruno@clisp.org>
14652
14653         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
14654
14655 2008-12-23  Bruno Haible  <bruno@clisp.org>
14656
14657         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
14658         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
14659         GETADDRINFO_LIB, not in LIBS.
14660         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
14661         * modules/canon-host (Link): Likewise.
14662         * NEWS: Mention the change.
14663         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
14664         GETADDRINFO_LIB.
14665
14666 2008-12-22  Bruno Haible  <bruno@clisp.org>
14667
14668         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
14669         * doc/posix-functions/iswalpha_l.texi: Likewise.
14670         * doc/posix-functions/iswblank_l.texi: Likewise.
14671         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14672         * doc/posix-functions/iswctype_l.texi: Likewise.
14673         * doc/posix-functions/iswdigit_l.texi: Likewise.
14674         * doc/posix-functions/iswgraph_l.texi: Likewise.
14675         * doc/posix-functions/iswlower_l.texi: Likewise.
14676         * doc/posix-functions/iswprint_l.texi: Likewise.
14677         * doc/posix-functions/iswpunct_l.texi: Likewise.
14678         * doc/posix-functions/iswspace_l.texi: Likewise.
14679         * doc/posix-functions/iswupper_l.texi: Likewise.
14680         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14681         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
14682         * doc/posix-functions/open_wmemstream.texi: Likewise.
14683         * doc/posix-functions/swscanf.texi: Likewise.
14684         * doc/posix-functions/towctrans_l.texi: Likewise.
14685         * doc/posix-functions/towlower.texi: Likewise.
14686         * doc/posix-functions/towlower_l.texi: Likewise.
14687         * doc/posix-functions/towupper.texi: Likewise.
14688         * doc/posix-functions/towupper_l.texi: Likewise.
14689         * doc/posix-functions/vfwprintf.texi: Likewise.
14690         * doc/posix-functions/vfwscanf.texi: Likewise.
14691         * doc/posix-functions/vswscanf.texi: Likewise.
14692         * doc/posix-functions/vwprintf.texi: Likewise.
14693         * doc/posix-functions/vwscanf.texi: Likewise.
14694         * doc/posix-functions/wcpcpy.texi: Likewise.
14695         * doc/posix-functions/wcpncpy.texi: Likewise.
14696         * doc/posix-functions/wcscasecmp.texi: Likewise.
14697         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
14698         * doc/posix-functions/wcscoll_l.texi: Likewise.
14699         * doc/posix-functions/wcsdup.texi: Likewise.
14700         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14701         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
14702         * doc/posix-functions/wcsnlen.texi: Likewise.
14703         * doc/posix-functions/wcsnrtombs.texi: Likewise.
14704         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14705         * doc/posix-functions/wctrans_l.texi: Likewise.
14706         * doc/posix-functions/wctype_l.texi: Likewise.
14707         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
14708         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
14709         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
14710         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
14711         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
14712         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
14713         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
14714         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
14715         * doc/glibc-functions/wcschrnul.texi: Likewise.
14716         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14717         * doc/glibc-functions/wcstod_l.texi: Likewise.
14718         * doc/glibc-functions/wcstof_l.texi: Likewise.
14719         * doc/glibc-functions/wcstol_l.texi: Likewise.
14720         * doc/glibc-functions/wcstold_l.texi: Likewise.
14721         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14722         * doc/glibc-functions/wcstoq.texi: Likewise.
14723         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14724         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14725         * doc/glibc-functions/wcstouq.texi: Likewise.
14726         * doc/glibc-functions/wmempcpy.texi: Likewise.
14727
14728 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
14729             Eric Blake  <ebb9@byu.net>
14730             Paolo Bonzini  <bonzini@gnu.org>
14731             Bruno Haible  <bruno@clisp.org>
14732
14733         Make c-stack work on Haiku.
14734         * lib/c-stack.c (SA_ONSTACK): Define fallback.
14735         (c_stack_action): Use SA_ONSTACK flag.
14736
14737 2008-12-22  Bruno Haible  <bruno@clisp.org>
14738
14739         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
14740
14741 2008-12-22  Bruno Haible  <bruno@clisp.org>
14742
14743         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
14744         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
14745         being overridden.
14746         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
14747         New macros.
14748         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
14749         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
14750         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
14751         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
14752
14753 2008-12-22  Bruno Haible  <bruno@clisp.org>
14754
14755         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
14756         from test code.
14757
14758 2008-12-22  Eric Blake  <ebb9@byu.net>
14759
14760         Avoid gcc warnings on cygwin.
14761         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
14762         Avoid unused variable.
14763         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
14764         Likewise.
14765
14766 2008-12-22  Bruno Haible  <bruno@clisp.org>
14767
14768         Remove HAVE_MBRTOWC conditionals.
14769         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
14770         (mbscasecmp): Assume mbrtowc function.
14771         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
14772         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
14773         * lib/mbschr.c: Include mbuiter.h unconditionally.
14774         (mbschr): Assume mbrtowc function.
14775         * lib/mbscspn.c: Include mbuiter.h unconditionally.
14776         (mbscspn): Assume mbrtowc function.
14777         * lib/mbslen.c: Include mbuiter.h unconditionally.
14778         (mbslen): Assume mbrtowc function.
14779         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
14780         (mbsncasecmp): Assume mbrtowc function.
14781         * lib/mbsnlen.c: Include mbiter.h unconditionally.
14782         (mbsnlen): Assume mbrtowc function.
14783         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
14784         (mbspbrk): Assume mbrtowc function.
14785         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
14786         (mbspcasecmp): Assume mbrtowc function.
14787         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
14788         (mbsrchr): Assume mbrtowc function.
14789         * lib/mbssep.c: Include mbuiter.h unconditionally.
14790         (mbssep): Assume mbrtowc function.
14791         * lib/mbsspn.c: Include mbuiter.h unconditionally.
14792         (mbsspn): Assume mbrtowc function.
14793         * lib/mbsstr.c: Include mbuiter.h unconditionally.
14794         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
14795         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
14796         (mbstok_r): Assume mbrtowc function.
14797         * lib/propername.c: Include mbuiter.h unconditionally.
14798         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
14799         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
14800         (trim2): Assume mbrtowc function.
14801         * lib/mbswidth.c (mbsinit): Remove fallback definition.
14802         (mbsnwidth): Assume mbrtowc function.
14803         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
14804         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
14805         fallback definitions.
14806         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
14807
14808 2008-12-22  Bruno Haible  <bruno@clisp.org>
14809
14810         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
14811
14812 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
14813
14814         * modules/regex: Request emulations for the mb*/wc* functions we need.
14815         * m4/regex.m4: Don't look for those functions here.
14816         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
14817
14818 2008-12-22  Bruno Haible  <bruno@clisp.org>
14819
14820         * modules/fnmatch (Depends-on): Remove duplicated dependency.
14821
14822 2008-12-21  Bruno Haible  <bruno@clisp.org>
14823
14824         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
14825         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
14826         (Include): Remove conditionalization.
14827         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
14828         (Include): Remove conditionalization.
14829         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
14830         (Include): Remove conditionalization.
14831         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
14832         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14833         * NEWS: Mention the change.
14834         Reported by Alan Hourihane <alanh@fairlite.co.uk>
14835         via Sergey Poznyakoff <gray@gnu.org.ua>.
14836
14837 2008-12-21  Bruno Haible  <bruno@clisp.org>
14838
14839         * MODULES.html.sh (Extended multibyte and wide character utilities
14840         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
14841         wcrtomb, wcsrtombs.
14842         (Support for systems lacking POSIX:2008): Add accept, bind, close,
14843         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
14844         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
14845         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
14846
14847 2008-12-21  Bruno Haible  <bruno@clisp.org>
14848
14849         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
14850
14851 2008-12-21  Bruno Haible  <bruno@clisp.org>
14852
14853         * modules/wcsnrtombs-tests: New file.
14854         * tests/test-wcsnrtombs1.sh: New file.
14855         * tests/test-wcsnrtombs2.sh: New file.
14856         * tests/test-wcsnrtombs3.sh: New file.
14857         * tests/test-wcsnrtombs4.sh: New file.
14858         * tests/test-wcsnrtombs.c: New file.
14859
14860         New module 'wcsnrtombs'.
14861         * lib/wchar.in.h (wcsnrtombs): New declaration.
14862         * lib/wcsnrtombs.c: New file.
14863         * lib/wcsrtombs-state.c: New file.
14864         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
14865         (internal_state): Remove variable.
14866         * m4/wcsnrtombs.m4: New file.
14867         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
14868         compilation units.
14869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
14870         HAVE_WCSNRTOMBS.
14871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
14872         HAVE_WCSNRTOMBS.
14873         * modules/wcsnrtombs: New file.
14874         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
14875         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
14876
14877 2008-12-21  Bruno Haible  <bruno@clisp.org>
14878
14879         * modules/wcsrtombs-tests: New file.
14880         * tests/test-wcsrtombs1.sh: New file.
14881         * tests/test-wcsrtombs2.sh: New file.
14882         * tests/test-wcsrtombs3.sh: New file.
14883         * tests/test-wcsrtombs4.sh: New file.
14884         * tests/test-wcsrtombs.c: New file.
14885
14886         New module 'wcsrtombs'.
14887         * lib/wchar.in.h (wcsrtombs): New declaration.
14888         * lib/wcsrtombs.c: New file.
14889         * m4/wcsrtombs.m4: New file.
14890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
14891         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14892         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
14893         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14894         * modules/wcsrtombs: New file.
14895         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
14896         bugs.
14897
14898 2008-12-21  Bruno Haible  <bruno@clisp.org>
14899
14900         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
14901         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
14902         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
14903         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
14904         if not correct.
14905         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
14906         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
14907         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14908         m4/locale-zh.m4, m4/codeset.m4.
14909         * doc/posix-functions/wcrtomb.texi: Document the bug.
14910
14911 2008-12-21  Bruno Haible  <bruno@clisp.org>
14912
14913         Work around a btowc() bug on IRIX 6.5.
14914         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
14915         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
14916         REPLACE_WTOBC if not.
14917         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
14918         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
14919         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
14920
14921 2008-12-21  Bruno Haible  <bruno@clisp.org>
14922
14923         * modules/wcrtomb-tests: New file.
14924         * tests/test-wcrtomb.sh: New file.
14925         * tests/test-wcrtomb.c: New file.
14926
14927         New module 'wcrtomb'.
14928         * lib/wchar.in.h (wcrtomb): New declaration.
14929         * lib/wcrtomb.c: New file.
14930         * m4/wcrtomb.m4: New file.
14931         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
14932         HAVE_WCRTOMB.
14933         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
14934         HAVE_WCRTOMB.
14935         * modules/wcrtomb: New file.
14936         * doc/posix-functions/wcrtomb.texi: Mention the new module.
14937
14938 2008-12-21  Bruno Haible  <bruno@clisp.org>
14939
14940         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
14941         * modules/mbsrtowcs (Files): Likewise.
14942         * modules/wctob (Files): Likewise.
14943         * modules/c-strcase-tests (Files): Likewise.
14944         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
14945         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
14946         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
14947         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
14948         * modules/vasnprintf-posix-tests (Files): Likewise.
14949
14950 2008-12-21  William Pursell  <bill.pursell@gmail.com>
14951
14952         gitlog-to-changelog: pass all command-line arguments to git-log
14953         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
14954         it is sometimes convenient to filter the commits in various ways.
14955         gitlog-to-changelog only allows --since to specify a start date,
14956         but git-log itself supports many other filtering mechanisms.
14957         At the moment, I want to filter by branch name.  Rather than
14958         adding a --branch option to gitlog-to-changelog, it seems more
14959         flexible to simply pass all options directly to git-log and let
14960         git do the work.  Notice that this effectively makes --since a
14961         redundant option for gitlog-to-changelog, but removing it would
14962         require current usage to change since calls would then require
14963         an additional '--'.
14964
14965 2008-12-21  Bruno Haible  <bruno@clisp.org>
14966
14967         * modules/mbsnrtowcs-tests: New file.
14968         * tests/test-mbsnrtowcs1.sh: New file.
14969         * tests/test-mbsnrtowcs2.sh: New file.
14970         * tests/test-mbsnrtowcs3.sh: New file.
14971         * tests/test-mbsnrtowcs4.sh: New file.
14972         * tests/test-mbsnrtowcs.c: New file.
14973
14974         New module 'mbsnrtowcs'.
14975         * lib/wchar.in.h (mbsnrtowcs): New declaration.
14976         * lib/mbsnrtowcs.c: New file.
14977         * lib/mbsrtowcs-state.c: New file.
14978         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
14979         (internal_state): Remove variable.
14980         * m4/mbsnrtowcs.m4: New file.
14981         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
14982         compilation units.
14983         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
14984         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14985         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
14986         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14987         * modules/mbsnrtowcs: New file.
14988         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
14989         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
14990         portability problem.
14991
14992 2008-12-21  Bruno Haible  <bruno@clisp.org>
14993
14994         Work around mbsrtowcs bug.
14995         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
14996         (gl_FUNC_MBSRTOWCS): Invoke it.
14997         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14998         m4/locale-zh.m4.
14999         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
15000
15001 2008-12-21  Bruno Haible  <bruno@clisp.org>
15002
15003         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
15004
15005 2008-12-21  Bruno Haible  <bruno@clisp.org>
15006
15007         Update doc for AIX.
15008         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
15009         16-bit wchar_t type.
15010         * doc/posix-functions/btowc.texi: Likewise.
15011         * doc/posix-functions/fgetwc.texi: Likewise.
15012         * doc/posix-functions/fgetws.texi: Likewise.
15013         * doc/posix-functions/fputwc.texi: Likewise.
15014         * doc/posix-functions/fputws.texi: Likewise.
15015         * doc/posix-functions/fwide.texi: Likewise.
15016         * doc/posix-functions/fwprintf.texi: Likewise.
15017         * doc/posix-functions/fwscanf.texi: Likewise.
15018         * doc/posix-functions/getwchar.texi: Likewise.
15019         * doc/posix-functions/getwc.texi: Likewise.
15020         * doc/posix-functions/iswalnum.texi: Likewise.
15021         * doc/posix-functions/iswalpha.texi: Likewise.
15022         * doc/posix-functions/iswblank.texi: Likewise.
15023         * doc/posix-functions/iswcntrl.texi: Likewise.
15024         * doc/posix-functions/iswctype.texi: Likewise.
15025         * doc/posix-functions/iswdigit.texi: Likewise.
15026         * doc/posix-functions/iswgraph.texi: Likewise.
15027         * doc/posix-functions/iswlower.texi: Likewise.
15028         * doc/posix-functions/iswprint.texi: Likewise.
15029         * doc/posix-functions/iswpunct.texi: Likewise.
15030         * doc/posix-functions/iswspace.texi: Likewise.
15031         * doc/posix-functions/iswupper.texi: Likewise.
15032         * doc/posix-functions/iswxdigit.texi: Likewise.
15033         * doc/posix-functions/mbrtowc.texi: Likewise.
15034         * doc/posix-functions/mbsrtowcs.texi: Likewise.
15035         * doc/posix-functions/mbstowcs.texi: Likewise.
15036         * doc/posix-functions/mbtowc.texi: Likewise.
15037         * doc/posix-functions/putwchar.texi: Likewise.
15038         * doc/posix-functions/putwc.texi: Likewise.
15039         * doc/posix-functions/swprintf.texi: Likewise.
15040         * doc/posix-functions/tolower.texi: Likewise.
15041         * doc/posix-functions/toupper.texi: Likewise.
15042         * doc/posix-functions/towctrans.texi: Likewise.
15043         * doc/posix-functions/ungetwc.texi: Likewise.
15044         * doc/posix-functions/vswprintf.texi: Likewise.
15045         * doc/posix-functions/wcrtomb.texi: Likewise.
15046         * doc/posix-functions/wcscat.texi: Likewise.
15047         * doc/posix-functions/wcschr.texi: Likewise.
15048         * doc/posix-functions/wcscmp.texi: Likewise.
15049         * doc/posix-functions/wcscoll.texi: Likewise.
15050         * doc/posix-functions/wcscpy.texi: Likewise.
15051         * doc/posix-functions/wcscspn.texi: Likewise.
15052         * doc/posix-functions/wcsftime.texi: Likewise.
15053         * doc/posix-functions/wcslen.texi: Likewise.
15054         * doc/posix-functions/wcsncat.texi: Likewise.
15055         * doc/posix-functions/wcsncmp.texi: Likewise.
15056         * doc/posix-functions/wcsncpy.texi: Likewise.
15057         * doc/posix-functions/wcspbrk.texi: Likewise.
15058         * doc/posix-functions/wcsrchr.texi: Likewise.
15059         * doc/posix-functions/wcsrtombs.texi: Likewise.
15060         * doc/posix-functions/wcsspn.texi: Likewise.
15061         * doc/posix-functions/wcsstr.texi: Likewise.
15062         * doc/posix-functions/wcstod.texi: Likewise.
15063         * doc/posix-functions/wcstof.texi: Likewise.
15064         * doc/posix-functions/wcstoimax.texi: Likewise.
15065         * doc/posix-functions/wcstok.texi: Likewise.
15066         * doc/posix-functions/wcstold.texi: Likewise.
15067         * doc/posix-functions/wcstoll.texi: Likewise.
15068         * doc/posix-functions/wcstol.texi: Likewise.
15069         * doc/posix-functions/wcstombs.texi: Likewise.
15070         * doc/posix-functions/wcstoull.texi: Likewise.
15071         * doc/posix-functions/wcstoul.texi: Likewise.
15072         * doc/posix-functions/wcstoumax.texi: Likewise.
15073         * doc/posix-functions/wcswidth.texi: Likewise.
15074         * doc/posix-functions/wcsxfrm.texi: Likewise.
15075         * doc/posix-functions/wctob.texi: Likewise.
15076         * doc/posix-functions/wctomb.texi: Likewise.
15077         * doc/posix-functions/wctrans.texi: Likewise.
15078         * doc/posix-functions/wctype.texi: Likewise.
15079         * doc/posix-functions/wcwidth.texi: Likewise.
15080         * doc/posix-functions/wmemchr.texi: Likewise.
15081         * doc/posix-functions/wmemcmp.texi: Likewise.
15082         * doc/posix-functions/wmemcpy.texi: Likewise.
15083         * doc/posix-functions/wmemmove.texi: Likewise.
15084         * doc/posix-functions/wmemset.texi: Likewise.
15085         * doc/posix-functions/wprintf.texi: Likewise.
15086         * doc/posix-functions/wscanf.texi: Likewise.
15087
15088 2008-12-21  Bruno Haible  <bruno@clisp.org>
15089
15090         Update doc for HP-UX 11.11.
15091         * doc/posix-functions/btowc.texi: Clarify that the function is missing
15092         in HP-UX version 11.00, not in all versions of HP-UX 11.
15093         * doc/posix-functions/fwide.texi: Likewise.
15094         * doc/posix-functions/fwprintf.texi: Likewise.
15095         * doc/posix-functions/fwscanf.texi: Likewise.
15096         * doc/posix-functions/inet_ntop.texi: Likewise.
15097         * doc/posix-functions/inet_pton.texi: Likewise.
15098         * doc/posix-functions/mbrlen.texi: Likewise.
15099         * doc/posix-functions/mbrtowc.texi: Likewise.
15100         * doc/posix-functions/mbsinit.texi: Likewise.
15101         * doc/posix-functions/mbsrtowcs.texi: Likewise.
15102         * doc/posix-functions/swprintf.texi: Likewise.
15103         * doc/posix-functions/swscanf.texi: Likewise.
15104         * doc/posix-functions/towctrans.texi: Likewise.
15105         * doc/posix-functions/vfwprintf.texi: Likewise.
15106         * doc/posix-functions/vswprintf.texi: Likewise.
15107         * doc/posix-functions/vwprintf.texi: Likewise.
15108         * doc/posix-functions/wcrtomb.texi: Likewise.
15109         * doc/posix-functions/wcsrtombs.texi: Likewise.
15110         * doc/posix-functions/wcsstr.texi: Likewise.
15111         * doc/posix-functions/wctob.texi: Likewise.
15112         * doc/posix-functions/wctrans.texi: Likewise.
15113         * doc/posix-functions/wmemchr.texi: Likewise.
15114         * doc/posix-functions/wmemcmp.texi: Likewise.
15115         * doc/posix-functions/wmemcpy.texi: Likewise.
15116         * doc/posix-functions/wmemmove.texi: Likewise.
15117         * doc/posix-functions/wmemset.texi: Likewise.
15118         * doc/posix-functions/wprintf.texi: Likewise.
15119         * doc/posix-functions/wscanf.texi: Likewise.
15120
15121 2008-12-21  Bruno Haible  <bruno@clisp.org>
15122
15123         Work around a portability problem.
15124         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
15125         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
15126
15127 2008-12-20  Bruno Haible  <bruno@clisp.org>
15128
15129         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
15130         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
15131         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
15132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
15133         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
15134
15135         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
15136         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
15137         set.
15138         (GNULIB_defined_mbstate_t): New macro.
15139         (mbsinit): Redefine if REPLACE_MBSINIT is set.
15140         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
15141         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
15142         reuses the system's mbrtowc function but works around the bugs.
15143         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
15144         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
15145         macros.
15146         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
15147         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
15148         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
15149         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
15150         REPLACE_MBSINIT if mbsinit needs to be overridden.
15151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
15152         REPLACE_MBSINIT, REPLACE_MBRTOWC.
15153         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
15154         REPLACE_MBSINIT, REPLACE_MBRTOWC.
15155         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
15156         m4/locale-zh.m4.
15157         (Depends): Add mbsinit.
15158         * modules/mbsinit (Depends): Add mbrtowc.
15159         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
15160
15161 2008-12-20  Bruno Haible  <bruno@clisp.org>
15162
15163         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
15164         so that there are no conversion errors on AIX.
15165         * tests/test-mbsrtowcs.c (main): LIkewise.
15166
15167 2008-12-20  Bruno Haible  <bruno@clisp.org>
15168
15169         Work around wctob bug on Solaris <= 9.
15170         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
15171         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
15172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
15173         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
15174         * modules/wctob (Files): Add m4/locale-fr.m4.
15175         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
15176
15177 2008-12-20  Bruno Haible  <bruno@clisp.org>
15178
15179         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
15180         /dev/null.
15181         * tests/test-select-in.sh: Likewise.
15182         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15183
15184 2008-12-20  Bruno Haible  <bruno@clisp.org>
15185
15186         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
15187         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
15188         Cygwin 1.5.x.
15189
15190 2008-12-20  Bruno Haible  <bruno@clisp.org>
15191
15192         Ensure mbstate_t is defined on HP-UX 11.11.
15193         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
15194         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
15195         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
15196         AC_USE_SYSTEM_EXTENSIONS.
15197         * modules/fnmatch (Depends-on): Add extensions.
15198         * modules/mbrlen (Depends-on): Likewise.
15199         * modules/mbrtowc (Depends-on): Likewise.
15200         * modules/mbsinit (Depends-on): Likewise.
15201         * modules/mbsrtowcs (Depends-on): Likewise.
15202         * modules/mbswidth (Depends-on): Likewise.
15203         * modules/quotearg (Depends-on): Likewise.
15204         * modules/strftime (Depends-on): Likewise.
15205
15206 2008-12-20  Bruno Haible  <bruno@clisp.org>
15207
15208         Ensure wctob is declared on IRIX 6.5.
15209         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
15210         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
15211         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
15212         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
15213         of HAVE_WCTOB.
15214         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
15215         HAVE_WCTOB.
15216         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
15217
15218 2008-12-19  Bruno Haible  <bruno@clisp.org>
15219
15220         * modules/mbsrtowcs-tests: New file.
15221         * tests/test-mbsrtowcs1.sh: New file.
15222         * tests/test-mbsrtowcs2.sh: New file.
15223         * tests/test-mbsrtowcs3.sh: New file.
15224         * tests/test-mbsrtowcs4.sh: New file.
15225         * tests/test-mbsrtowcs.c: New file.
15226
15227         New module 'mbsrtowcs'.
15228         * lib/wchar.in.h (mbsrtowcs): New declaration.
15229         * lib/mbsrtowcs.c: New file.
15230         * m4/mbsrtowcs.m4: New file.
15231         * modules/mbsrtowcs: New file.
15232         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
15233         HAVE_MBSRTOWCS.
15234         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
15235         HAVE_MBSRTOWCS.
15236         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
15237
15238 2008-12-19  Bruno Haible  <bruno@clisp.org>
15239
15240         New module 'mbrlen'.
15241         * lib/wchar.in.h (mbrlen): New declaration.
15242         * lib/mbrlen.c: New file.
15243         * m4/mbrlen.m4: New file.
15244         * modules/mbrlen: New file.
15245         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
15246         HAVE_MBRLEN.
15247         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
15248         HAVE_MBRLEN.
15249         * doc/posix-functions/mbrlen.texi: Document the new module.
15250
15251 2008-12-19  Bruno Haible  <bruno@clisp.org>
15252
15253         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
15254         * modules/mbrtowc (Depends-on): Add verify.
15255         Suggested by Paul Eggert.
15256
15257 2008-12-18  Bruno Haible  <bruno@clisp.org>
15258
15259         * modules/mbsinit-tests: New file.
15260         * tests/test-mbsinit.sh: New file.
15261         * tests/test-mbsinit.c: New file.
15262
15263 2008-12-18  Bruno Haible  <bruno@clisp.org>
15264
15265         * modules/mbrtowc-tests: New file.
15266         * tests/test-mbrtowc1.sh: New file.
15267         * tests/test-mbrtowc2.sh: New file.
15268         * tests/test-mbrtowc3.sh: New file.
15269         * tests/test-mbrtowc4.sh: New file.
15270         * tests/test-mbrtowc.c: New file.
15271
15272         New module 'mbrtowc'.
15273         * lib/wchar.in.h (mbstate_t): Override when the system does not have
15274         mbsinit and mbrtowc.
15275         (mbrtowc): New declaration.
15276         * lib/mbrtowc.c: New file.
15277         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
15278         * modules/mbrtowc: New file.
15279         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
15280         HAVE_MBRTOWC.
15281         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
15282         HAVE_MBRTOWC.
15283         * doc/posix-functions/mbrtowc.texi: Document the new module.
15284
15285 2008-12-18  Bruno Haible  <bruno@clisp.org>
15286
15287         New module 'wctob'.
15288         * lib/wchar.in.h (wctob): New declaration.
15289         * lib/wctob.c: New file.
15290         * m4/wctob.m4: New file.
15291         * modules/wctob: New file.
15292         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
15293         HAVE_WCTOB.
15294         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
15295         * doc/posix-functions/wctob.texi: Document the new module.
15296
15297 2008-12-18  Bruno Haible  <bruno@clisp.org>
15298
15299         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
15300         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
15301
15302 2008-12-18  Simon Josefsson  <simon@josefsson.org>
15303
15304         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
15305         G. Christensen" <tgc@jupiterrise.com>.
15306
15307         * lib/flock.c: Need to include errno.h.  Reported by "Tom
15308         G. Christensen" <tgc@jupiterrise.com>.
15309
15310         * lib/flock.c: Need to include string.h.  Reported by "Tom
15311         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
15312         <ebb9@byu.net>.
15313
15314 2008-12-18  Bruno Haible  <bruno@clisp.org>
15315
15316         * m4/locale-ja.m4: New file, from GNU gettext.
15317
15318 2008-12-17  Bruno Haible  <bruno@clisp.org>
15319
15320         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
15321         Suggested by Eric Blake.
15322
15323 2008-12-17  Bruno Haible  <bruno@clisp.org>
15324
15325         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
15326
15327 2008-12-17  Bruno Haible  <bruno@clisp.org>
15328
15329         * lib/mbsinit.c: Include verify.h. Verify an assumption.
15330         * modules/mbsinit (Depends-on): Add verify.
15331         Suggested by Paul Eggert.
15332
15333 2008-12-17  Bruno Haible  <bruno@clisp.org>
15334
15335         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
15336         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
15337         gl_FUNC_MBRTOWC.
15338         * m4/mbiter.m4 (gl_MBITER): LIkewise.
15339         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
15340         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
15341         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
15342         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
15343         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
15344         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
15345         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
15346         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
15347         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
15348         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
15349         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
15350         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
15351         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
15352         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
15353         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15354         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
15355         * modules/trim (configure.ac): Likewise.
15356
15357 2008-12-17  Bruno Haible  <bruno@clisp.org>
15358
15359         * modules/btowc-tests: New file.
15360         * tests/test-btowc1.sh: New file.
15361         * tests/test-btowc2.sh: New file.
15362         * tests/test-btowc.c: New file.
15363
15364         New module 'btowc'.
15365         * lib/wchar.in.h (btowc): New declaration.
15366         * lib/btowc.c: New file.
15367         * m4/btowc.m4: New file.
15368         * modules/btowc: New file.
15369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
15370         HAVE_BTOWC.
15371         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
15372         * doc/posix-functions/btowc.texi: Document the new module.
15373
15374 2008-12-17  Bruno Haible  <bruno@clisp.org>
15375
15376         New module 'mbsinit'.
15377         * lib/wchar.in.h (mbsinit): New declaration.
15378         * lib/mbsinit.c: New file.
15379         * m4/mbsinit.m4: New file.
15380         * modules/mbsinit: New file.
15381         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
15382         HAVE_MBSINIT.
15383         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
15384         HAVE_MBSINIT.
15385         * doc/posix-functions/mbsinit.texi: Document the new module.
15386
15387 2008-12-16  Bruno Haible  <bruno@clisp.org>
15388
15389         * lib/unistd.in.h: Add comment.
15390         * tests/test-environ.c: Don't include <stdlib.h>.
15391
15392 2008-12-16  Bruno Haible  <bruno@clisp.org>
15393
15394         * lib/parse-duration.h (parse_duration): Document return value
15395         convention.
15396         * lib/parse-duration.c: Include specification header first. Add
15397         comments.
15398         (_): Remove macro.
15399         (parse_year_month_day, parse_hour_minute_second): Move side effects
15400         outside of strchr call.
15401         (parse_non_iso8601): Move side effects outside of isspace call.
15402         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
15403         call.
15404
15405 2008-12-16  Bruno Haible  <bruno@clisp.org>
15406
15407         * tests/test-parse-duration.sh: Produce no output when the test
15408         succeeds.
15409
15410 2008-12-16  Bruno Haible  <bruno@clisp.org>
15411
15412         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
15413         expressions.
15414
15415 2008-12-15  Bruno Haible  <bruno@clisp.org>
15416
15417         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
15418         * doc/glibc-functions/flistxattr.texi: Likewise.
15419         * doc/glibc-functions/fopencookie.texi: Likewise.
15420         * doc/glibc-functions/fremovexattr.texi: Likewise.
15421         * doc/glibc-functions/fsetxattr.texi: Likewise.
15422         * doc/glibc-functions/getxattr.texi: Likewise.
15423         * doc/glibc-functions/lgetxattr.texi: Likewise.
15424         * doc/glibc-functions/listxattr.texi: Likewise.
15425         * doc/glibc-functions/llistxattr.texi: Likewise.
15426         * doc/glibc-functions/lremovexattr.texi: Likewise.
15427         * doc/glibc-functions/lsetxattr.texi: Likewise.
15428         * doc/glibc-functions/removexattr.texi: Likewise.
15429         * doc/glibc-functions/setxattr.texi: Likewise.
15430         * doc/posix-functions/open_memstream.texi: Likewise.
15431
15432 2008-12-15  Eric Blake  <ebb9@byu.net>
15433
15434         Update doc for cygwin 1.7.
15435         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
15436         functions.
15437         * doc/posix-functions/fchmodat.texi: Likewise.
15438         * doc/posix-functions/fchownat.texi: Likewise.
15439         * doc/posix-functions/fdopendir.texi: Likewise.
15440         * doc/posix-functions/fmemopen.texi: Likewise.
15441         * doc/posix-functions/freeaddrinfo.texi: Likewise.
15442         * doc/posix-functions/fstatat.texi: Likewise.
15443         * doc/posix-functions/futimens.texi: Likewise.
15444         * doc/posix-functions/gai_strerror.texi: Likewise.
15445         * doc/posix-functions/getaddrinfo.texi: Likewise.
15446         * doc/posix-functions/getnameinfo.texi: Likewise.
15447         * doc/posix-functions/if_freenameindex.texi: Likewise.
15448         * doc/posix-functions/if_indextoname.texi: Likewise.
15449         * doc/posix-functions/if_nameindex.texi: Likewise.
15450         * doc/posix-functions/if_nametoindex.texi: Likewise.
15451         * doc/posix-functions/insque.texi: Likewise.
15452         * doc/posix-functions/linkat.texi: Likewise.
15453         * doc/posix-functions/llrint.texi: Likewise.
15454         * doc/posix-functions/llrintf.texi: Likewise.
15455         * doc/posix-functions/llrintl.texi: Likewise.
15456         * doc/posix-functions/lockf.texi: Likewise.
15457         * doc/posix-functions/lrintl.texi: Likewise.
15458         * doc/posix-functions/mkdirat.texi: Likewise.
15459         * doc/posix-functions/mkfifoat.texi: Likewise.
15460         * doc/posix-functions/mknodat.texi: Likewise.
15461         * doc/posix-functions/mq_close.texi: Likewise.
15462         * doc/posix-functions/mq_getattr.texi: Likewise.
15463         * doc/posix-functions/mq_notify.texi: Likewise.
15464         * doc/posix-functions/mq_open.texi: Likewise.
15465         * doc/posix-functions/mq_receive.texi: Likewise.
15466         * doc/posix-functions/mq_send.texi: Likewise.
15467         * doc/posix-functions/mq_setattr.texi: Likewise.
15468         * doc/posix-functions/mq_timedreceive.texi: Likewise.
15469         * doc/posix-functions/mq_timedsend.texi: Likewise.
15470         * doc/posix-functions/mq_unlink.texi: Likewise.
15471         * doc/posix-functions/open_memstream.texi: Likewise.
15472         * doc/posix-functions/openat.texi: Likewise.
15473         * doc/posix-functions/posix_fadvise.texi: Likewise.
15474         * doc/posix-functions/posix_fallocate.texi: Likewise.
15475         * doc/posix-functions/posix_madvise.texi: Likewise.
15476         * doc/posix-functions/posix_memalign.texi: Likewise.
15477         * doc/posix-functions/posix_openpt.texi: Likewise.
15478         * doc/posix-functions/readlinkat.texi: Likewise.
15479         * doc/posix-functions/remque.texi: Likewise.
15480         * doc/posix-functions/renameat.texi: Likewise.
15481         * doc/posix-functions/rintl.texi: Likewise.
15482         * doc/posix-functions/sem_unlink.texi: Likewise.
15483         * doc/posix-functions/shm_open.texi: Likewise.
15484         * doc/posix-functions/shm_unlink.texi: Likewise.
15485         * doc/posix-functions/signgam.texi: Likewise.
15486         * doc/posix-functions/sigset.texi: Likewise.
15487         * doc/posix-functions/stpcpy.texi: Likewise.
15488         * doc/posix-functions/stpncpy.texi: Likewise.
15489         * doc/posix-functions/strerror.texi: Likewise.
15490         * doc/posix-functions/strtod.texi: Likewise.
15491         * doc/posix-functions/symlinkat.texi: Likewise.
15492         * doc/posix-functions/unlinkat.texi: Likewise.
15493         * doc/posix-functions/utimensat.texi: Likewise.
15494         * doc/glibc-functions/bindresvport.texi: Likewise.
15495         * doc/glibc-functions/dn_expand.texi: Likewise.
15496         * doc/glibc-functions/exp10.texi: Likewise.
15497         * doc/glibc-functions/exp10f.texi: Likewise.
15498         * doc/glibc-functions/fgetxattr.texi: Likewise.
15499         * doc/glibc-functions/flistxattr.texi: Likewise.
15500         * doc/glibc-functions/fopencookie.texi: Likewise.
15501         * doc/glibc-functions/freeifaddrs.texi: Likewise.
15502         * doc/glibc-functions/fremovexattr.texi: Likewise.
15503         * doc/glibc-functions/fsetxattr.texi: Likewise.
15504         * doc/glibc-functions/getifaddrs.texi: Likewise.
15505         * doc/glibc-functions/getxattr.texi: Likewise.
15506         * doc/glibc-functions/lgetxattr.texi: Likewise.
15507         * doc/glibc-functions/listxattr.texi: Likewise.
15508         * doc/glibc-functions/llistxattr.texi: Likewise.
15509         * doc/glibc-functions/lremovexattr.texi: Likewise.
15510         * doc/glibc-functions/lsetxattr.texi: Likewise.
15511         * doc/glibc-functions/pow10.texi: Likewise.
15512         * doc/glibc-functions/pow10f.texi: Likewise.
15513         * doc/glibc-functions/rcmd_af.texi: Likewise.
15514         * doc/glibc-functions/removexattr.texi: Likewise.
15515         * doc/glibc-functions/res_init.texi: Likewise.
15516         * doc/glibc-functions/res_mkquery.texi: Likewise.
15517         * doc/glibc-functions/res_query.texi: Likewise.
15518         * doc/glibc-functions/res_querydomain.texi: Likewise.
15519         * doc/glibc-functions/res_send.texi: Likewise.
15520         * doc/glibc-functions/rresvport_af.texi: Likewise.
15521         * doc/glibc-functions/setxattr.texi: Likewise.
15522         * doc/glibc-functions/strcasestr.texi: Likewise.
15523
15524 2008-12-15  Bruno Haible  <bruno@clisp.org>
15525
15526         Fix compilation error on OSF/1 4.0.
15527         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
15528         <sys/time.h>, simply delegate to the system header.
15529         Reported by Daniel Richard G. <oss@teragram.com>.
15530
15531 2008-12-15  Bruno Haible  <bruno@clisp.org>
15532
15533         * doc/posix-functions/openat.texi: Mention the 'openat' module.
15534         * doc/posix-functions/fchmodat.texi: Likewise.
15535         * doc/posix-functions/fchownat.texi: Likewise.
15536         * doc/posix-functions/fdopendir.texi: Likewise.
15537         * doc/posix-functions/fstatat.texi: Likewise.
15538         * doc/posix-functions/mkdirat.texi: Likewise.
15539         * doc/posix-functions/unlinkat.texi: Likewise.
15540
15541 2008-12-14  Bruno Haible  <bruno@clisp.org>
15542
15543         Update doc for POSIX:2008.
15544         * doc/posix-functions/faccessat.texi: New file.
15545         * doc/posix-functions/fchmodat.texi: New file.
15546         * doc/posix-functions/fchownat.texi: New file.
15547         * doc/posix-functions/fdopendir.texi: New file.
15548         * doc/posix-functions/fstatat.texi: New file.
15549         * doc/posix-functions/futimens.texi: New file.
15550         * doc/posix-functions/linkat.texi: New file.
15551         * doc/posix-functions/mkdirat.texi: New file.
15552         * doc/posix-functions/mkfifoat.texi: New file.
15553         * doc/posix-functions/mknodat.texi: New file.
15554         * doc/posix-functions/open_wmemstream.texi: New file.
15555         * doc/posix-functions/openat.texi: New file.
15556         * doc/posix-functions/psiginfo.texi: New file.
15557         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
15558         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
15559         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
15560         * doc/posix-functions/readlinkat.texi: New file.
15561         * doc/posix-functions/renameat.texi: New file.
15562         * doc/posix-functions/strerror_l.texi: New file.
15563         * doc/posix-functions/symlinkat.texi: New file.
15564         * doc/posix-functions/unlinkat.texi: New file.
15565         * doc/posix-functions/utimensat.texi: New file.
15566         * doc/gnulib.texi (Function Substitutes): Add these subsections.
15567
15568 2008-12-14  Bruno Haible  <bruno@clisp.org>
15569
15570         Update doc for POSIX:2008.
15571         * doc/posix-functions/alphasort.texi: Renamed from
15572         doc/glibc-functions/alphasort.texi.
15573         * doc/posix-functions/dirfd.texi: Renamed from
15574         doc/glibc-functions/dirfd.texi.
15575         * doc/posix-functions/dprintf.texi: Renamed from
15576         doc/glibc-functions/dprintf.texi.
15577         * doc/posix-functions/duplocale.texi: Renamed from
15578         doc/glibc-functions/duplocale.texi.
15579         * doc/posix-functions/fexecve.texi: Renamed from
15580         doc/glibc-functions/fexecve.texi.
15581         * doc/posix-functions/fmemopen.texi: Renamed from
15582         doc/glibc-functions/fmemopen.texi.
15583         * doc/posix-functions/freelocale.texi: Renamed from
15584         doc/glibc-functions/freelocale.texi.
15585         * doc/posix-functions/getdate_err.texi: Renamed from
15586         doc/glibc-functions/getdate_err.texi.
15587         * doc/posix-functions/isalnum_l.texi: Renamed from
15588         doc/glibc-functions/isalnum_l.texi.
15589         * doc/posix-functions/isalpha_l.texi: Renamed from
15590         doc/glibc-functions/isalpha_l.texi.
15591         * doc/posix-functions/isblank_l.texi: Renamed from
15592         doc/glibc-functions/isblank_l.texi.
15593         * doc/posix-functions/iscntrl_l.texi: Renamed from
15594         doc/glibc-functions/iscntrl_l.texi.
15595         * doc/posix-functions/isdigit_l.texi: Renamed from
15596         doc/glibc-functions/isdigit_l.texi.
15597         * doc/posix-functions/isgraph_l.texi: Renamed from
15598         doc/glibc-functions/isgraph_l.texi.
15599         * doc/posix-functions/islower_l.texi: Renamed from
15600         doc/glibc-functions/islower_l.texi.
15601         * doc/posix-functions/isprint_l.texi: Renamed from
15602         doc/glibc-functions/isprint_l.texi.
15603         * doc/posix-functions/ispunct_l.texi: Renamed from
15604         doc/glibc-functions/ispunct_l.texi.
15605         * doc/posix-functions/isspace_l.texi: Renamed from
15606         doc/glibc-functions/isspace_l.texi.
15607         * doc/posix-functions/isupper_l.texi: Renamed from
15608         doc/glibc-functions/isupper_l.texi.
15609         * doc/posix-functions/iswalnum_l.texi: Renamed from
15610         doc/glibc-functions/iswalnum_l.texi.
15611         * doc/posix-functions/iswalpha_l.texi: Renamed from
15612         doc/glibc-functions/iswalpha_l.texi.
15613         * doc/posix-functions/iswblank_l.texi: Renamed from
15614         doc/glibc-functions/iswblank_l.texi.
15615         * doc/posix-functions/iswcntrl_l.texi: Renamed from
15616         doc/glibc-functions/iswcntrl_l.texi.
15617         * doc/posix-functions/iswctype_l.texi: Renamed from
15618         doc/glibc-functions/iswctype_l.texi.
15619         * doc/posix-functions/iswdigit_l.texi: Renamed from
15620         doc/glibc-functions/iswdigit_l.texi.
15621         * doc/posix-functions/iswgraph_l.texi: Renamed from
15622         doc/glibc-functions/iswgraph_l.texi.
15623         * doc/posix-functions/iswlower_l.texi: Renamed from
15624         doc/glibc-functions/iswlower_l.texi.
15625         * doc/posix-functions/iswprint_l.texi: Renamed from
15626         doc/glibc-functions/iswprint_l.texi.
15627         * doc/posix-functions/iswpunct_l.texi: Renamed from
15628         doc/glibc-functions/iswpunct_l.texi.
15629         * doc/posix-functions/iswspace_l.texi: Renamed from
15630         doc/glibc-functions/iswspace_l.texi.
15631         * doc/posix-functions/iswupper_l.texi: Renamed from
15632         doc/glibc-functions/iswupper_l.texi.
15633         * doc/posix-functions/iswxdigit_l.texi: Renamed from
15634         doc/glibc-functions/iswxdigit_l.texi.
15635         * doc/posix-functions/isxdigit_l.texi: Renamed from
15636         doc/glibc-functions/isxdigit_l.texi.
15637         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
15638         doc/glibc-functions/mbsnrtowcs.texi.
15639         * doc/posix-functions/mkdtemp.texi: Renamed from
15640         doc/glibc-functions/mkdtemp.texi.
15641         * doc/posix-functions/newlocale.texi: Renamed from
15642         doc/glibc-functions/newlocale.texi.
15643         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
15644         doc/glibc-functions/nl_langinfo_l.texi.
15645         * doc/posix-functions/open_memstream.texi: Renamed from
15646         doc/glibc-functions/open_memstream.texi.
15647         * doc/posix-functions/opterr.texi: Renamed from
15648         doc/glibc-functions/opterr.texi.
15649         * doc/posix-functions/optind.texi: Renamed from
15650         doc/glibc-functions/optind.texi.
15651         * doc/posix-functions/optopt.texi: Renamed from
15652         doc/glibc-functions/optopt.texi.
15653         * doc/posix-functions/psignal.texi: Renamed from
15654         doc/glibc-functions/psignal.texi.
15655         * doc/posix-functions/scandir.texi: Renamed from
15656         doc/glibc-functions/scandir.texi.
15657         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
15658         doc/glibc-functions/sched_get_priority_min.texi.
15659         * doc/posix-functions/signgam.texi: Renamed from
15660         doc/glibc-functions/signgam.texi.
15661         * doc/posix-functions/stpcpy.texi: Renamed from
15662         doc/glibc-functions/stpcpy.texi.
15663         * doc/posix-functions/stpncpy.texi: Renamed from
15664         doc/glibc-functions/stpncpy.texi.
15665         * doc/posix-functions/strcasecmp_l.texi: Renamed from
15666         doc/glibc-functions/strcasecmp_l.texi.
15667         * doc/posix-functions/strcoll_l.texi: Renamed from
15668         doc/glibc-functions/strcoll_l.texi.
15669         * doc/posix-functions/strfmon_l.texi: Renamed from
15670         doc/glibc-functions/strfmon_l.texi.
15671         * doc/posix-functions/strftime_l.texi: Renamed from
15672         doc/glibc-functions/strftime_l.texi.
15673         * doc/posix-functions/strncasecmp_l.texi: Renamed from
15674         doc/glibc-functions/strncasecmp_l.texi.
15675         * doc/posix-functions/strndup.texi: Renamed from
15676         doc/glibc-functions/strndup.texi.
15677         * doc/posix-functions/strnlen.texi: Renamed from
15678         doc/glibc-functions/strnlen.texi.
15679         * doc/posix-functions/strsignal.texi: Renamed from
15680         doc/glibc-functions/strsignal.texi.
15681         * doc/posix-functions/strxfrm_l.texi: Renamed from
15682         doc/glibc-functions/strxfrm_l.texi.
15683         * doc/posix-functions/timer_gettime.texi: Renamed from
15684         doc/glibc-functions/timer_gettime.texi.
15685         * doc/posix-functions/tolower_l.texi: Renamed from
15686         doc/glibc-functions/tolower_l.texi.
15687         * doc/posix-functions/toupper_l.texi: Renamed from
15688         doc/glibc-functions/toupper_l.texi.
15689         * doc/posix-functions/towctrans_l.texi: Renamed from
15690         doc/glibc-functions/towctrans_l.texi.
15691         * doc/posix-functions/towlower_l.texi: Renamed from
15692         doc/glibc-functions/towlower_l.texi.
15693         * doc/posix-functions/towupper_l.texi: Renamed from
15694         doc/glibc-functions/towupper_l.texi.
15695         * doc/posix-functions/uselocale.texi: Renamed from
15696         doc/glibc-functions/uselocale.texi.
15697         * doc/posix-functions/vdprintf.texi: Renamed from
15698         doc/glibc-functions/vdprintf.texi.
15699         * doc/posix-functions/wcpcpy.texi:
15700         Renamed from doc/glibc-functions/wcpcpy.texi.
15701         * doc/posix-functions/wcpncpy.texi: Renamed from
15702         doc/glibc-functions/wcpncpy.texi.
15703         * doc/posix-functions/wcscasecmp.texi: Renamed from
15704         doc/glibc-functions/wcscasecmp.texi.
15705         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
15706         doc/glibc-functions/wcscasecmp_l.texi.
15707         * doc/posix-functions/wcscoll_l.texi: Renamed from
15708         doc/glibc-functions/wcscoll_l.texi.
15709         * doc/posix-functions/wcsdup.texi: Renamed from
15710         doc/glibc-functions/wcsdup.texi.
15711         * doc/posix-functions/wcsncasecmp.texi: Renamed from
15712         doc/glibc-functions/wcsncasecmp.texi.
15713         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
15714         doc/glibc-functions/wcsncasecmp_l.texi.
15715         * doc/posix-functions/wcsnlen.texi: Renamed from
15716         doc/glibc-functions/wcsnlen.texi.
15717         * doc/posix-functions/wcsnrtombs.texi: Renamed from
15718         doc/glibc-functions/wcsnrtombs.texi.
15719         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
15720         doc/glibc-functions/wcsxfrm_l.texi.
15721         * doc/posix-functions/wctrans_l.texi: Renamed from
15722         doc/glibc-functions/wctrans_l.texi.
15723         * doc/posix-functions/wctype_l.texi: Renamed from
15724         doc/glibc-functions/wctype_l.texi.
15725         * doc/gnulib.texi (Function Substitutes): Add these subsections.
15726         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
15727         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
15728         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
15729         these subsections.
15730         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
15731         Remove sections.
15732
15733 2008-12-14  Bruno Haible  <bruno@clisp.org>
15734
15735         Update doc for POSIX:2008.
15736         * doc/posix-functions/*.texi: Update URL of POSIX specification.
15737
15738 2008-12-14  Bruno Haible  <bruno@clisp.org>
15739
15740         Update doc for POSIX:2008.
15741         * doc/pastposix-functions/bcmp.texi: Renamed from
15742         doc/posix-functions/bcmp.texi.
15743         * doc/pastposix-functions/bcopy.texi: Renamed from
15744         doc/posix-functions/bcopy.texi.
15745         * doc/pastposix-functions/bsd_signal.texi: Renamed from
15746         doc/posix-functions/bsd_signal.texi.
15747         * doc/pastposix-functions/bzero.texi: Renamed from
15748         doc/posix-functions/bzero.texi.
15749         * doc/pastposix-functions/ecvt.texi: Renamed from
15750         doc/posix-functions/ecvt.texi.
15751         * doc/pastposix-functions/fcvt.texi: Renamed from
15752         doc/posix-functions/fcvt.texi.
15753         * doc/pastposix-functions/ftime.texi: Renamed from
15754         doc/posix-functions/ftime.texi.
15755         * doc/pastposix-functions/gcvt.texi: Renamed from
15756         doc/posix-functions/gcvt.texi.
15757         * doc/pastposix-functions/getcontext.texi: Renamed from
15758         doc/posix-functions/getcontext.texi.
15759         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
15760         doc/posix-functions/gethostbyaddr.texi.
15761         * doc/pastposix-functions/gethostbyname.texi: Renamed from
15762         doc/posix-functions/gethostbyname.texi.
15763         * doc/pastposix-functions/getwd.texi: Renamed from
15764         doc/posix-functions/getwd.texi.
15765         * doc/pastposix-functions/h_errno.texi: Renamed from
15766         doc/posix-functions/h_errno.texi.
15767         * doc/pastposix-functions/index.texi: Renamed from
15768         doc/posix-functions/index.texi.
15769         * doc/pastposix-functions/makecontext.texi: Renamed from
15770         doc/posix-functions/makecontext.texi.
15771         * doc/pastposix-functions/mktemp.texi: Renamed from
15772         doc/posix-functions/mktemp.texi.
15773         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
15774         doc/posix-functions/pthread_attr_getstackaddr.texi.
15775         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
15776         doc/posix-functions/pthread_attr_setstackaddr.texi.
15777         * doc/pastposix-functions/rindex.texi: Renamed from
15778         doc/posix-functions/rindex.texi.
15779         * doc/pastposix-functions/scalb.texi: Renamed from
15780         doc/posix-functions/scalb.texi.
15781         * doc/pastposix-functions/setcontext.texi: Renamed from
15782         doc/posix-functions/setcontext.texi.
15783         * doc/pastposix-functions/swapcontext.texi: Renamed from
15784         doc/posix-functions/swapcontext.texi.
15785         * doc/pastposix-functions/ualarm.texi: Renamed from
15786         doc/posix-functions/ualarm.texi.
15787         * doc/pastposix-functions/usleep.texi: Renamed from
15788         doc/posix-functions/usleep.texi.
15789         * doc/pastposix-functions/vfork.texi: Renamed from
15790         doc/posix-functions/vfork.texi.
15791         * doc/pastposix-functions/wcswcs.texi: Renamed from
15792         doc/posix-functions/wcswcs.texi.
15793         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
15794         (Function Substitutes): Update.
15795
15796 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15797
15798         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
15799         m4/strerror.m4.
15800
15801 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15802             Bruno Haible  <bruno@clisp.org>
15803
15804         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
15805
15806 2008-12-13  Bruno Haible  <bruno@clisp.org>
15807
15808         * modules/strtoull (Depends-on): Remove unistd.
15809
15810 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15811
15812         * modules/strtoull (Depends-on): Add stdlib.
15813
15814 2008-12-11  Simon Josefsson  <simon@josefsson.org>
15815
15816         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
15817
15818 2008-12-10  Jim Meyering  <meyering@redhat.com>
15819
15820         gl_ASSERT: don't say assertions are disabled when they're not
15821         * m4/assert.m4 (gl_ASSERT): Do not make configure report
15822         "checking whether to enable assertions... no", when they are in
15823         fact enabled.  This is solely a bug in the output of configure.
15824         In spite of saying "no", NDEBUG was not defined in that case.
15825         Also, as noted by Eric Blake, leave assertions enabled upon
15826         --enable-assert=INVALID.
15827
15828 2008-12-10  Bruno Haible  <bruno@clisp.org>
15829
15830         Change MODULES.html to refer to POSIX:2008 where possible.
15831         * MODULES.html.sh (POSIX2008_URL): New variable.
15832         (posix_headers): Remove sys/timeb, ucontext.
15833         (posix2001_headers): New variable.
15834         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
15835         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
15836         index, makecontext, mktemp, pthread_attr_getstackaddr,
15837         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
15838         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
15839         (posix2001_functions): New variable.
15840         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
15841         otherwise.
15842
15843 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15844
15845         add missing include to parse-duration.c
15846         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
15847         * modules/parse-duration (Depends-on): Add xalloc.
15848
15849         fix sed script reading maint.mk
15850         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
15851         (syntax-check-rules): Use it.
15852
15853 2008-12-09  Bruno Haible  <bruno@clisp.org>
15854
15855         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
15856         MacOS X 10.4/PowerPC.
15857         Reported by Simon Josefsson.
15858
15859 2008-12-08  Jim Meyering  <meyering@redhat.com>
15860
15861         work around mingw's lack of some S_IF definitions
15862         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
15863         Reported by Simon Josefsson.
15864
15865 2008-12-08  Bruno Haible  <bruno@clisp.org>
15866
15867         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
15868         applied to variables. Needed on MacOS X 10.4/PowerPC.
15869         Reported by Simon Josefsson.
15870
15871 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
15872         and Eric Blake  <ebb9@byu.net>
15873
15874         assert: honor --enable-assert
15875         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
15876         order to honor --enable-assert, rather than treating it as a
15877         synonym for --disable-assert.
15878
15879 2008-12-08  Jim Meyering  <meyering@redhat.com>
15880
15881         * lib/posixtm.c: Remove now-useless declaration of mktime.
15882
15883         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
15884
15885 2008-12-07  Bruno Haible  <bruno@clisp.org>
15886
15887         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
15888         test_once): Mark functions as static.
15889         * tests/test-tls.c (test_tls): Likewise.
15890
15891 2008-12-07  Bruno Haible  <bruno@clisp.org>
15892
15893         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
15894         iconv_register_autodetect.
15895
15896 2008-12-07  Jim Meyering  <meyering@redhat.com>
15897
15898         posixtm.c: avoid a warning
15899         * lib/posixtm.c (posixtime): Don't initialize tm0.
15900         It's no longer needed to placate gcc4's -Wuninitialized,
15901         and the attempt to placate would elicit a new warning.
15902
15903         unicodeio.c: mark unused parameters
15904         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15905         (fallback_failure_callback): Likewise.
15906
15907 2008-12-07  Bruno Haible  <bruno@clisp.org>
15908
15909         * gnulib-tool (func_create_testdir): When building the tests
15910         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
15911         Reported by Simon Josefsson.
15912
15913 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15914
15915         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
15916
15917 2008-12-06  Bruno Haible  <bruno@clisp.org>
15918
15919         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
15920         Suggested by Eric Blake.
15921
15922 2008-12-06  Bruno Haible  <bruno@clisp.org>
15923
15924         Fix a c-stack test failure on MacOS X.
15925         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
15926         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
15927         handler for SIGBUS as well.
15928         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
15929         install a signal handler for SIGBUS as well.
15930         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
15931
15932 2008-12-06  Bruno Haible  <bruno@clisp.org>
15933
15934         Advocacy documentation.
15935         * doc/gnulib-intro.texi (Benefits): New section.
15936         * doc/gnulib.texi: Update.
15937
15938 2008-12-06  Bruno Haible  <bruno@clisp.org>
15939
15940         Document the 'manywarnings' module.
15941         * doc/manywarnings.texi: New file.
15942         * doc/gnulib.texi: Include it.
15943
15944 2008-12-05  Eric Blake  <ebb9@byu.net>
15945
15946         tests: silence some gcc warnings
15947         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
15948         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
15949         type mismatches.
15950
15951 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15952             Bruno Haible  <bruno@clisp.org>
15953
15954         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
15955
15956 2008-11-29  Jim Meyering  <meyering@redhat.com>
15957
15958         unicodeio.c: mark unused parameters
15959         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15960         (fallback_failure_callback): Likewise.
15961
15962         fts: fix a thinko
15963         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
15964         (set_stat_type): Return S_IF*-valued "type" directly.
15965         Prompted by James Youngman's spotting a related bug.
15966         Confirmed by further testing through find.
15967
15968         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
15969         * lib/fts.c (D_TYPE): Define.
15970         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
15971         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
15972         (s_ifmt_shift_bits): New function.
15973         (set_stat_type): New function.
15974         (fts_build): When not calling fts_stat, call set_stat_type
15975         to propagate dirent.d_type info to fts_read caller.
15976         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
15977         fts_statp->st_mode type information may be valid.
15978
15979 2008-11-28  Simon Josefsson  <simon@josefsson.org>
15980
15981         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
15982         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
15983         <sds@gnu.org>.
15984
15985 2008-11-20  Bruno Haible  <bruno@clisp.org>
15986
15987         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
15988         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
15989         INCLUDE_NEXT.
15990         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
15991         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
15992         * modules/math (Makefile.am): Substitute
15993         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
15994         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15995
15996 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
15997             Bruno Haible  <bruno@clisp.org>
15998
15999         * lib/stdint.in.h: Define all type macros so that their expansion is
16000         a single typedef'ed token. Fixes a compilation failure in Boost which
16001         does "using ::int8_t;".
16002
16003 2008-11-18  Simon Josefsson  <simon@josefsson.org>
16004
16005         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
16006         gl_MANYWARN_ALL_GCC.
16007         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
16008         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
16009         * modules/manywarnings: New file.
16010         * MODULES.html.sh: Mention manywarnings module.
16011
16012 2008-11-18  Bruno Haible  <bruno@clisp.org>
16013
16014         * doc/gnulib-tool.texi (Unit tests): New section.
16015
16016 2008-11-18  Simon Josefsson  <simon@josefsson.org>
16017
16018         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
16019         paths like 'lib/po/foo.po'.
16020
16021 2008-11-17  Simon Josefsson  <simon@josefsson.org>
16022
16023         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
16024         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
16025
16026 2008-11-17  Simon Josefsson  <simon@josefsson.org>
16027
16028         * m4/warnings.m4: Use CPPFLAGS to really check whether the
16029         parameter works.
16030
16031 2008-11-17  Simon Josefsson  <simon@josefsson.org>
16032
16033         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
16034
16035 2008-11-17  Bruce Korb  <bkorb@gnu.org>
16036
16037         * modules/parse-duration-tests: New file.
16038         * tests/test-parse-duration.sh: New file.
16039         * tests/test-parse-duration.c: New file.
16040
16041         New module 'parse-duration'.
16042         * lib/parse-duration.h: New file.
16043         * lib/parse-duration.c: New file.
16044         * modules/parse-duration: New file.
16045
16046 2008-11-17  Bruno Haible  <bruno@clisp.org>
16047
16048         * tests/test-select-out.sh: Comment out the first pipe test.
16049         Reported by Simon Josefsson.
16050
16051 2008-11-17  Bruno Haible  <bruno@clisp.org>
16052
16053         * modules/getaddrinfo (Depends-on): Add servent, hostent.
16054         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
16055         gl_HOSTENT.
16056
16057 2008-11-17  Bruno Haible  <bruno@clisp.org>
16058
16059         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
16060         -lnetwork and -lnet. Needed for Haiku and BeOS.
16061
16062 2008-11-16  Bruno Haible  <bruno@clisp.org>
16063
16064         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
16065
16066 2008-11-16  Bruno Haible  <bruno@clisp.org>
16067
16068         Avoid test failure on Haiku.
16069         * tests/test-fsync.c: Include <errno.h>.
16070         (main): Don't require that fsync (0) fails.
16071
16072 2008-11-15  Bruno Haible  <bruno@clisp.org>
16073
16074         New module 'hostent'.
16075         * modules/hostent: New file.
16076         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
16077
16078 2008-11-15  Bruno Haible  <bruno@clisp.org>
16079
16080         New module 'servent'.
16081         * modules/servent: New file.
16082         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
16083
16084 2008-11-15  Bruno Haible  <bruno@clisp.org>
16085
16086         Avoid generating same test program with two different rules.
16087         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
16088         test-frexp to test-frexp-nolibm.
16089         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
16090         test-frexpl to test-frexpl-nolibm.
16091
16092 2008-11-15  Bruno Haible  <bruno@clisp.org>
16093
16094         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
16095         $(FREXPL_LIBM).
16096
16097 2008-11-15  Bruno Haible  <bruno@clisp.org>
16098
16099         * lib/netdb.in.h: Activate the definitions also when the system's
16100         <netdb.h> has 'struct addrinfo'.
16101         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
16102         EAI_OVERFLOW or AI_NUMERICSERV.
16103         * doc/posix-headers/netdb.texi: Document the problem.
16104
16105 2008-11-15  Bruno Haible  <bruno@clisp.org>
16106
16107         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
16108
16109         Make the 'sched' module work on platforms where <sched.h> exists but
16110         is incomplete (such as Haiku).
16111         * lib/sched.in.h; Include the system's <sched.h> if it exists.
16112         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
16113         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
16114         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
16115         HAVE_STRUCT_SCHED_PARAM.
16116         * modules/sched (Depends-on): Add include_next.
16117         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
16118         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
16119         * doc/posix-headers/sched.texi: Document the issue.
16120
16121 2008-11-13  Jim Meyering  <meyering@redhat.com>
16122
16123         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
16124         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
16125         test would fail due to the difference in the Report bugs to ...
16126         line.  The expected address is empty, "<>", while the actual
16127         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
16128
16129 2008-11-12  Bruno Haible  <bruno@clisp.org>
16130
16131         lstat: don't compile lstat.c on systems lacking lstat
16132         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
16133         which don't have lstat; this is handled by lib/sys_stat.in.h already.
16134         Reported by Daniel P. Berrange via Jim Meyering.
16135
16136 2008-11-12  Jim Meyering  <meyering@redhat.com>
16137
16138         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
16139
16140 2008-11-12  Simon Josefsson  <simon@josefsson.org>
16141
16142         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
16143         instead.
16144
16145 2008-11-12  Bruno Haible  <bruno@clisp.org>
16146
16147         * lib/unicodeio.c: Include unistr.h.
16148         (utf8_wctomb): Remove function.
16149         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
16150
16151 2008-11-12  Simon Josefsson  <simon@josefsson.org>
16152
16153         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
16154         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
16155         <bruno@clisp.org>.
16156         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
16157
16158 2008-11-12  Simon Josefsson  <simon@josefsson.org>
16159
16160         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
16161         * doc/gnulib.texi: Add section for warnings.
16162
16163 2008-11-11  Bruno Haible  <bruno@clisp.org>
16164
16165         * lib/sockets.h: Add a comment.
16166
16167 2008-11-11  Karl Berry  <karl@gnu.org>
16168
16169         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
16170
16171 2008-11-11  Eric Blake  <ebb9@byu.net>
16172
16173         fdl.texi: avoid git symlinks
16174         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
16175
16176 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16177
16178         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
16179
16180 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16181
16182         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
16183         (gl_WARN_ADD): Substitute $2 if literal.
16184
16185 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16186
16187         * m4/warning.m4: Remove.
16188
16189 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
16190
16191         * m4/warnings.m4: Almost complete rewrite. :-)
16192
16193 2008-11-10  Simon Josefsson  <simon@josefsson.org>
16194
16195         * modules/warnings: New module.
16196         * m4/warnings.m4: New file.
16197         * MODULES.html.sh: Mention warnings module.
16198         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
16199         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16200
16201 2008-11-10  Eric Blake  <ebb9@byu.net>
16202
16203         fdl.texi: make a symlink to the latest version
16204         * doc/standards.texi: Revert today's earlier change.
16205         * doc/fdl-1.2.texi: Rename from old fdl.texi...
16206         * doc/fdl.texi: ...and replace this with a symlink to the newer
16207         fdl-1.3.texi.
16208
16209 2008-11-10  Bruno Haible  <bruno@clisp.org>
16210
16211         * tests/test-select-fd.c (main): Accept the result file name as fourth
16212         argument.
16213         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
16214         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
16215
16216 2008-11-10  Bruno Haible  <bruno@clisp.org>
16217
16218         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
16219         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
16220         as autoconf-substituted macros.
16221         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
16222         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
16223         gl_NETDB_H_DEFAULTS. Set these variables.
16224         * modules/netdb (Makefile.am): Substitute these variables.
16225
16226 2008-11-10  Eric Blake  <ebb9@byu.net>
16227
16228         standards.texi: include correct file for FDL 1.3
16229         * doc/standards.texi (GNU Free Documentation License): Change
16230         include file to pull in FDL 1.3, not 1.2.
16231
16232         fdl.texi: revert accidental change to license
16233         * doc/fdl.texi: This is FDL 1.2, not 1.3.
16234
16235 2008-11-10  Bruno Haible  <bruno@clisp.org>
16236
16237         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
16238         cross-compiling guesses also when the native compile gives no result.
16239
16240 2008-11-10  Bruno Haible  <bruno@clisp.org>
16241
16242         * lib/spawni.c (__spawni): Force variable into the stack.
16243
16244 2008-11-10  Bruno Haible  <bruno@clisp.org>
16245
16246         Add support for Haiku.
16247         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
16248         glibc and BeOS, but also on Haiku.
16249         * lib/fpurge.c (fpurge): Likewise.
16250         * lib/freadable.c (freadable): Likewise.
16251         * lib/freadahead.c (freadahead): Likewise.
16252         * lib/freading.c (freading): Likewise.
16253         * lib/freadptr.c (freadptr): Likewise.
16254         * lib/freadseek.c (freadptrinc): Likewise.
16255         * lib/fseeko.c (rpl_fseeko): Likewise.
16256         * lib/fseterr.c (fseterr): Likewise.
16257         * lib/fwritable.c (fwritable): Likewise.
16258         * lib/fwriting.c (fwriting): Likewise.
16259         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
16260
16261 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
16262
16263         * lib/config.charset: Treat Haiku like BeOS.
16264
16265 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
16266
16267         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
16268         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
16269
16270 2008-11-08  Bruno Haible  <bruno@clisp.org>
16271
16272         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
16273         AC_CACHE_CHECK.
16274
16275 2008-11-08  Bruno Haible  <bruno@clisp.org>
16276
16277         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
16278
16279 2008-11-08  Bruno Haible  <bruno@clisp.org>
16280
16281         * tests/test-select-fd.c: New file.
16282         * tests/test-select-in.sh: New file.
16283         * tests/test-select-out.sh: New file.
16284         * tests/test-select-stdin.c: New file.
16285         * modules/select-tests (Files): Add the new files.
16286         (Depends-on): Add gettimeofday.
16287         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
16288         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
16289         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
16290
16291 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
16292             Bruno Haible  <bruno@clisp.org>
16293
16294         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
16295
16296 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
16297
16298         * build-aux/pmccabe2html: Added support for C++ source files.
16299
16300 2008-11-05  Ben Pfaff  <blp@gnu.org>
16301
16302         Fix lib/close.c build on Windows.
16303         * modules/close (Files): Add lib/w32sock.h.
16304
16305 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
16306
16307         Accept Bison's NEWS format.
16308         * build-aux/announce-gen (print_news_deltas): Tweak
16309         $re_prefix.
16310
16311 2008-11-04  Bruno Haible  <bruno@clisp.org>
16312
16313         * modules/random_r (Maintainer): Add glibc.
16314
16315 2008-11-04  Simon Josefsson  <simon@josefsson.org>
16316
16317         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
16318         by karl@freefriends.org (Karl Berry).
16319         * doc/alloca.texi: Likewise.
16320         * doc/c-ctype.texi: Likewise.
16321         * doc/c-strcase.texi: Likewise.
16322         * doc/c-strcaseeq.texi: Likewise.
16323         * doc/c-strcasestr.texi: Likewise.
16324         * doc/c-strstr.texi: Likewise.
16325         * doc/c-strtod.texi: Likewise.
16326         * doc/c-strtold.texi: Likewise.
16327         * doc/ctime.texi: Likewise.
16328         * doc/error.texi: Likewise.
16329         * doc/fdl.texi: Likewise.
16330         * doc/gcd.texi: Likewise.
16331         * doc/getdate.texi: Likewise.
16332         * doc/gnulib-intro.texi: Likewise.
16333         * doc/gnulib-tool.texi: Likewise.
16334         * doc/gnulib.texi: Likewise.
16335         * doc/inet_ntoa.texi: Likewise.
16336         * doc/maintain.texi: Likewise.
16337         * doc/make-stds.texi: Likewise.
16338         * doc/quote.texi: Likewise.
16339         * doc/regexprops-generic.texi: Likewise.
16340         * doc/standards.texi: Likewise.
16341         * doc/verify.texi: Likewise.
16342         * doc/visibility.texi: Likewise.
16343         * doc/gnulib.texi (GNU Free Documentation License): Include
16344         fdl-1.3.texi instead of fdl.texi.
16345
16346 2008-11-04  Simon Josefsson  <simon@josefsson.org>
16347
16348         * doc/fdl-1.3.texi: New file, from
16349         <http://www.gnu.org/licenses/fdl-1.3.texi>.
16350         * modules/fdl-1.3: Add.
16351         * MODULES.html.sh: Add fdl-1.3.
16352
16353 2008-11-03  Bruno Haible  <bruno@clisp.org>
16354
16355         Make determination of absolute name of header file work with AIX xlc.
16356         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
16357         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
16358         preprocessing.
16359         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16360         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
16361
16362 2008-11-03  Simon Josefsson  <simon@josefsson.org>
16363
16364         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
16365         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
16366         <ludo@gnu.org>.
16367
16368 2008-11-02  Bruno Haible  <bruno@clisp.org>
16369
16370         Mark 'strpbrk' obsolete.
16371         * modules/strpbrk (Status, Notice): New sections.
16372         * modules/strtok_r (Depends-on): Add strpbrk.
16373
16374 2008-11-02  Bruno Haible  <bruno@clisp.org>
16375
16376         Mark 'strdup' obsolete.
16377         * modules/strdup (Status, Notice): New sections.
16378         * modules/findprog (Depends-on): Add strdup.
16379         * modules/getaddrinfo (Depends-on): Likewise.
16380         * modules/localename (Depends-on): Likewise.
16381         * modules/relocatable-lib (Depends-on): Likewise.
16382         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
16383         * modules/relocatable-prog (Depends-on): Likewise.
16384         * modules/trim (Depends-on): Likewise.
16385         * modules/unictype/gen-ctype (Depends-on): Likewise.
16386         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16387
16388 2008-11-02  Bruno Haible  <bruno@clisp.org>
16389
16390         Mark 'strcspn' obsolete.
16391         * modules/strcspn (Status, Notice): New sections.
16392
16393 2008-11-02  Bruno Haible  <bruno@clisp.org>
16394
16395         Mark 'rmdir' obsolete.
16396         * modules/rmdir (Status, Notice): New sections.
16397         * modules/clean-temp (Depends-on): Add rmdir.
16398         * modules/openat (Depends-on): Likewise.
16399
16400 2008-11-02  Bruno Haible  <bruno@clisp.org>
16401
16402         Mark 'raise' obsolete.
16403         * modules/raise (Status, Notice): New sections.
16404         (Include): Specify <signal.h>.
16405         * modules/stdio (Depends-on): Add raise.
16406         * modules/write (Depends-on): Likewise.
16407
16408 2008-11-02  Bruno Haible  <bruno@clisp.org>
16409
16410         Mark 'memset' obsolete.
16411         * modules/memset (Status, Notice): New sections.
16412
16413 2008-11-02  Bruno Haible  <bruno@clisp.org>
16414
16415         Mark 'memmove' obsolete.
16416         * modules/memmove (Status, Notice): New sections.
16417         * modules/argp (Depends-on): Add memmove.
16418         * modules/argz (Depends-on): Likewise.
16419         * modules/canonicalize (Depends-on): Likewise.
16420         * modules/canonicalize-lgpl (Depends-on): Likewise.
16421         * modules/fts (Depends-on): Likewise.
16422         * modules/getcwd (Depends-on): Likewise.
16423         * modules/human (Depends-on): Likewise.
16424         * modules/regex (Depends-on): Likewise.
16425         * modules/striconveh (Depends-on): Likewise.
16426         * modules/trim (Depends-on): Likewise.
16427         * modules/unistr/u8-move (Depends-on): Likewise.
16428         * modules/unistr/u16-move (Depends-on): Likewise.
16429         * modules/unistr/u32-move (Depends-on): Likewise.
16430
16431 2008-11-02  Bruno Haible  <bruno@clisp.org>
16432
16433         Mark 'memcpy' obsolete.
16434         * modules/memcpy (Status, Notice): New sections.
16435
16436 2008-11-02  Bruno Haible  <bruno@clisp.org>
16437
16438         Mark 'memcmp' obsolete.
16439         * modules/memcmp (Status, Notice): New sections.
16440         * modules/argmatch (Depends-on): Add memchr.
16441         * modules/backupfile (Depends-on): Likewise.
16442         * modules/c-strcasestr (Depends-on): Likewise.
16443         * modules/crypto/des (Depends-on): Likewise.
16444         * modules/csharpcomp (Depends-on): Likewise.
16445         * modules/fnmatch (Depends-on): Likewise.
16446         * modules/git-merge-changelog (Depends-on): Likewise.
16447         * modules/isnand (Depends-on): Likewise.
16448         * modules/isnand-nolibm (Depends-on): Likewise.
16449         * modules/isnanf (Depends-on): Likewise.
16450         * modules/isnanf-nolibm (Depends-on): Likewise.
16451         * modules/isnanl (Depends-on): Likewise.
16452         * modules/isnanl-nolibm (Depends-on): Likewise.
16453         * modules/mbchar (Depends-on): Likewise.
16454         * modules/memcoll (Depends-on): Likewise.
16455         * modules/quotearg (Depends-on): Likewise.
16456         * modules/regex (Depends-on): Likewise.
16457         * modules/relocatable-prog (Depends-on): Likewise.
16458         * modules/same (Depends-on): Likewise.
16459         * modules/signbit (Depends-on): Likewise.
16460         * modules/strcasestr-simple (Depends-on): Likewise.
16461         * modules/unictype/gen-ctype (Depends-on): Likewise.
16462         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16463         * modules/uniname/uniname (Depends-on): Likewise.
16464         * modules/unistr/u8-cmp (Depends-on): Likewise.
16465
16466 2008-11-02  Bruno Haible  <bruno@clisp.org>
16467
16468         Mark 'memchr' obsolete.
16469         * modules/memchr (Status, Notice): New sections.
16470         * modules/argp (Depends-on): Add memchr.
16471         * modules/base64 (Depends-on): Likewise.
16472         * modules/c-strcasestr (Depends-on): Likewise.
16473         * modules/chdir-long (Depends-on): Likewise.
16474         * modules/fnmatch (Depends-on): Likewise.
16475         * modules/getsubopt (Depends-on): Likewise.
16476         * modules/git-merge-changelog (Depends-on): Likewise.
16477         * modules/glob (Depends-on): Likewise.
16478         * modules/strcasestr-simple (Depends-on): Likewise.
16479         * modules/strnlen (Depends-on): Likewise.
16480
16481 2008-11-02  Bruno Haible  <bruno@clisp.org>
16482
16483         Mark 'atexit' obsolete.
16484         * modules/atexit (Status, Notice): New sections.
16485         * modules/chdir-long (Depends-on): Add atexit.
16486         * modules/wait-process (Depends-on): Likewise.
16487
16488 2008-11-02  Bruno Haible  <bruno@clisp.org>
16489
16490         * gnulib-tool: New option --with-obsolete.
16491         (func_usage): Document it.
16492         (func_modules_transitive_closure): Drop obsolete dependencies if
16493         incobsolete is not true.
16494         (func_import): Read and save the incobsolete variable to the cache.
16495
16496 2008-11-02  Bruno Haible  <bruno@clisp.org>
16497
16498         * modules/TEMPLATE-EXTENDED: New field 'Status'.
16499         * gnulib-tool: New option --extract-status.
16500         (func_usage): Document it.
16501         (sed_extract_prog): Recognize it.
16502         (func_get_status): New function.
16503
16504 2008-10-30  Simon Josefsson  <simon@josefsson.org>
16505
16506         * modules/sockets (License): Change from LGPL to LGPLv2+.
16507
16508 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16509
16510         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
16511
16512 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16513
16514         * MODULES.html.sh (Support for systems lacking POSIX:2001):
16515         Mention times and sys_times.
16516         * modules/sys_times, modules/sys_times-tests: New modules.
16517         * modules/times, modules/times-tests: Likewise
16518         * m4/sys_times_h.m4: New file.
16519         * lib/sys_times.in.h: Likewise
16520         * lib/times.c: Likewise.
16521         * tests/test-sys_times.c: Likewise.
16522         * tests/test-times.c: Likewise.
16523         * doc/posix-headers/sys_times.texi: Update.
16524         * doc/posix-functions/times.texi: Update.
16525
16526 2008-10-28  Jim Meyering  <meyering@redhat.com>
16527
16528         * modules/tempname (Depends-on): Add lstat.
16529
16530         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
16531
16532 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16533
16534         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
16535         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
16536         using idiom used elsewhere in gnulib.
16537
16538 2008-10-27  Jim Meyering  <meyering@redhat.com>
16539
16540         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
16541
16542 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16543
16544         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
16545         TESTS_ENVIRONMENT, for shell scripts that needs to call built
16546         programs.
16547         * tests/test-argp-2.sh: Use $EXEEXT when needed.
16548
16549 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16550
16551         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
16552
16553 2008-10-27  Bruno Haible  <bruno@clisp.org>
16554
16555         * tests/test-lstat.c: Include <stdio.h>.
16556
16557 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16558
16559         * modules/lstat-tests: New module.
16560         * tests/test-lstat.c: New file.
16561
16562 2008-10-26  Jim Meyering  <meyering@redhat.com>
16563
16564         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
16565
16566 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16567             Bruno Haible  <bruno@clisp.org>
16568
16569         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
16570         * modules/configmake (Include): Add a note that the include must come
16571         after all system headers.
16572         * lib/javaversion.c: Include configmake.h after all other includes.
16573
16574 2008-10-26  Bruno Haible  <bruno@clisp.org>
16575
16576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
16577         HAVE_STRUCT_RANDOM_DATA to 1.
16578         (gl_STDLIB_H): Simplify.
16579
16580 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16581
16582         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
16583         substitute HAVE_STRUCT_RANDOM_DATA.
16584         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
16585         random_data.
16586         * modules/stdlib (Makefile.am): Substitute
16587         HAVE_STRUCT_RANDOM_DATA.
16588
16589 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16590
16591         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
16592         * doc/gnulib-intro.texi (Copyright): Likewise.
16593
16594 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16595
16596         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
16597         findings.
16598
16599 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
16600             Bruno Haible  <bruno@clisp.org>
16601
16602         * lib/unistd.in.h: Include <winsock2.h>.
16603         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
16604         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
16605         Provide dummy declarations.
16606         (gethostname): Override.
16607         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
16608         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
16609         gl_PREREQ_SYS_H_WINSOCK2.
16610         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
16611         * doc/posix-functions/gethostname.texi: More details.
16612
16613 2008-10-25  Bruno Haible  <bruno@clisp.org>
16614
16615         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
16616         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
16617         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
16618
16619         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
16620         here ...
16621         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
16622         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
16623         gl_UNISTD_H_DEFAULTS.
16624
16625 2008-10-25  Eric Blake  <ebb9@byu.net>
16626
16627         signbit: avoid spurious compiler failure
16628         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
16629         declarations inside function.
16630
16631 2008-10-24  Simon Josefsson  <simon@josefsson.org>
16632             Bruno Haible  <bruno@clisp.org>
16633
16634         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
16635         * modules/random_r (Depends-on): Add stdint.
16636
16637 2008-10-24  Bruno Haible  <bruno@clisp.org>
16638
16639         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
16640         Eggert.
16641         * modules/strerror (License): Likewise.
16642
16643 2008-10-24  Jim Meyering  <meyering@redhat.com>
16644
16645         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
16646         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
16647
16648 2008-10-24  Eric Blake  <ebb9@byu.net>
16649
16650         getgroups: fix compilation when getgroups is available
16651         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
16652         but with <config.h> override of getgroups disabled.
16653
16654 2008-10-24  Simon Josefsson  <simon@josefsson.org>
16655
16656         * doc/gnulib.texi (Header files): Add note about C++ problems.
16657         Explained by Bruno Haible <bruno@clisp.org>.
16658
16659 2008-10-23  Bruno Haible  <bruno@clisp.org>
16660
16661         Define a dummy SA_NODEFER macro on Interix.
16662         * lib/signal.in.h (SA_NODEFER): Define fallback.
16663         Reported by Aleksey Cheusov <cheusov@tut.by> via
16664         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
16665
16666 2008-10-23  Bruno Haible  <bruno@clisp.org>
16667
16668         * modules/freadahead (License): Change to LGPLv2+.
16669         Suggested by Simon Josefsson.
16670
16671 2008-10-23  Jim Meyering  <meyering@redhat.com>
16672
16673         random_r: new module
16674         * modules/random_r: New file.
16675         * m4/random_r.m4: New file.
16676         * lib/random_r.c: New file, from glibc.
16677         * modules/random_r-tests: New file.
16678         * tests/test-random_r.c: New file.
16679         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
16680          Declare.
16681         (RAND_MAX): Define.
16682         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
16683         * modules/stdlib: Substitute them, too.
16684         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
16685         * doc/glibc-functions/initstate_r.texi: Mention the new module.
16686         * doc/glibc-functions/random_r.texi: Likewise.
16687         * doc/glibc-functions/setstate_r.texi: Likewise.
16688         * doc/glibc-functions/srandom_r.texi: Likewise.
16689         * config/srclist.txt: Mention it.
16690
16691 2008-10-23  David Lutterkort  <lutter@redhat.com>
16692
16693         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
16694         link requirement
16695
16696 2008-10-23  Jim Meyering  <meyering@redhat.com>
16697
16698         selinux-h: mark parameters of stub functions as intentionally unused
16699         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
16700         * lib/se-context.in.h: Likewise.
16701
16702 2008-10-22  Simon Josefsson  <simon@josefsson.org>
16703
16704         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
16705
16706 2008-10-22  Simon Josefsson  <simon@josefsson.org>
16707
16708         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
16709
16710 2008-10-22  Eric Blake  <ebb9@byu.net>
16711
16712         glthread/thread: avoid compiler warning
16713         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
16714         Add unreachable abort to silence compiler.
16715
16716 2008-10-22  Eric Blake  <ebb9@byu.net>
16717
16718         netdb: also supply struct addrinfo for cygwin 1.5.x
16719         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
16720         older cygwin.
16721         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
16722         cygwin.
16723         * doc/posix-headers/netdb.texi (netdb.h): Document this.
16724
16725 2008-10-22  Bruno Haible  <bruno@clisp.org>
16726
16727         * users.txt: Update entry about pspp.
16728
16729 2008-10-21  Bruno Haible  <bruno@clisp.org>
16730
16731         Simplification.
16732         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
16733         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
16734
16735         Simplification.
16736         * lib/ioctl.c (ioctl): Don't undefine.
16737         * lib/socket.c (socket): Don't undefine.
16738
16739         Remove unused module indicator macros.
16740         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
16741         GNULIB_$1 as a C macro.
16742
16743         * doc/posix-functions/close.texi: Undo last change.
16744         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
16745         Windows platforms.
16746
16747 2008-10-21  Bruno Haible  <bruno@clisp.org>
16748
16749         Add gethostname() declaration to <unistd.h>.
16750         * lib/unistd.in.h (gethostname): New declaration.
16751         * lib/gethostname.c: Include <unistd.h>.
16752         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
16753         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
16754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
16755         and HAVE_GETHOSTNAME.
16756         * modules/gethostname (Depends-on): Add unistd.
16757         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16758         (Include): Specify <unistd.h>.
16759         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
16760         HAVE_GETHOSTNAME.
16761         * tests/test-gethostname.c: Include <unistd.h> first.
16762
16763 2008-10-21  Bruno Haible  <bruno@clisp.org>
16764
16765         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
16766         * modules/select-tests (Depends-on): Likewise.
16767         Reported by Simon Josefsson.
16768
16769 2008-10-21  Simon Josefsson  <simon@josefsson.org>
16770
16771         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
16772         * lib/accept.c: New file, based on winsock.c.
16773         * lib/bind.c: New file, based on winsock.c.
16774         * lib/connect.c: New file, based on winsock.c.
16775         * lib/getpeername.c: New file, based on winsock.c.
16776         * lib/getsockname.c: New file, based on winsock.c.
16777         * lib/getsockopt.c: New file, based on winsock.c.
16778         * lib/ioctl.c: New file, based on winsock.c.
16779         * lib/listen.c: New file, based on winsock.c.
16780         * lib/recv.c: New file, based on winsock.c.
16781         * lib/recvfrom.c: New file, based on winsock.c.
16782         * lib/send.c: New file, based on winsock.c.
16783         * lib/sendto.c: New file, based on winsock.c.
16784         * lib/setsockopt.c: New file, based on winsock.c.
16785         * lib/shutdown.c: New file, based on winsock.c.
16786         * lib/socket.c: New file, based on winsock.c.
16787         * lib/w32sock.h: New file, based on winsock.c.
16788         * lib/winsock.c: Remove file.
16789         * modules/accept: Likewise.
16790         * modules/bind: Likewise.
16791         * modules/connect: Likewise.
16792         * modules/getpeername: Likewise.
16793         * modules/getsockname: Likewise.
16794         * modules/getsockopt: Likewise.
16795         * modules/ioctl: Likewise.
16796         * modules/listen: Likewise.
16797         * modules/recv: Likewise.
16798         * modules/recvfrom: Likewise.
16799         * modules/send: Likewise.
16800         * modules/sendto: Likewise.
16801         * modules/setsockopt: Likewise.
16802         * modules/shutdown: Likewise.
16803         * modules/socket: Use socket.c instead of winsock.c.
16804         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
16805         * doc/posix-functions/accept.texi: Doc fix.
16806         * doc/posix-functions/bind.texi: Doc fix.
16807         * doc/posix-functions/close.texi: Doc fix.
16808         * doc/posix-functions/connect.texi: Doc fix.
16809         * doc/posix-functions/getpeername.texi: Doc fix.
16810         * doc/posix-functions/getsockname.texi: Doc fix.
16811         * doc/posix-functions/getsockopt.texi: Doc fix.
16812         * doc/posix-functions/ioctl.texi: Doc fix.
16813         * doc/posix-functions/listen.texi: Doc fix.
16814         * doc/posix-functions/recv.texi: Doc fix.
16815         * doc/posix-functions/recvfrom.texi: Doc fix.
16816         * doc/posix-functions/send.texi: Doc fix.
16817         * doc/posix-functions/sendto.texi: Doc fix.
16818         * doc/posix-functions/setsockopt.texi: Doc fix.
16819         * doc/posix-functions/shutdown.texi: Doc fix.
16820         * doc/posix-functions/socket.texi: Doc fix.
16821
16822 2008-10-20  Bruno Haible  <bruno@clisp.org>
16823
16824         Take into account the role of SIGABRT_COMPAT on Windows 2008.
16825         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
16826         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
16827         as an alias for SIGABRT.
16828         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
16829         (sigaction): Map it to SIGABRT.
16830         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
16831
16832 2008-10-20  Bruno Haible  <bruno@clisp.org>
16833
16834         * lib/fts.c: Don't include lstat.h.
16835         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
16836
16837         Move the lstat() declaration to <sys/stat.h>.
16838         * lib/lstat.h: Remove file.
16839         * lib/sys_stat.in.h: Add special invocation convention.
16840         (lstat): New declaration.
16841         * lib/lstat.c (orig_lstat): New function.
16842         (rpl_lstat): Use orig_lstat instead of lstat.
16843         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
16844         AC_C_INLINE. Set REPLACE_LSTAT.
16845         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
16846         and REPLACE_LSTAT.
16847         * modules/lstat (Files): Remove lib/lstat.h.
16848         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16849         (Include): Specify <sys/stat.h> instead of lstat.h.
16850         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
16851         REPLACE_LSTAT.
16852         * NEWS: Mention the change.
16853
16854 2008-10-20  Bruno Haible  <bruno@clisp.org>
16855
16856         * modules/posix_spawn-tests: New file.
16857         * tests/test-posix_spawn3.c: New file.
16858
16859 2008-10-20  Bruno Haible  <bruno@clisp.org>
16860
16861         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
16862         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16863         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
16864         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16865         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
16866
16867 2008-10-20  Bruno Haible  <bruno@clisp.org>
16868
16869         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
16870         of posix_spawn on AIX 5.3.
16871
16872 2008-10-20  Bruno Haible  <bruno@clisp.org>
16873
16874         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
16875
16876 2008-10-20  Bruno Haible  <bruno@clisp.org>
16877
16878         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
16879         of AC_LANG_PROGRAM.
16880
16881 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16882
16883         * lib/netdb.in.h: Don't define GNU specific constants until they
16884         are supported or needed.  Reported by Bruno Haible
16885         <bruno@clisp.org>.
16886
16887 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16888
16889         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
16890
16891 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16892
16893         * lib/getaddrinfo.h: Remove file.
16894         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
16895         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
16896         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
16897         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
16898         * modules/netdb: Substitute GNULIB_GETADDRINFO.
16899         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
16900         * tests/test-getaddrinfo.c: Likewise.
16901         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
16902         * NEWS: Mention change.
16903
16904 2008-10-19  Bruno Haible  <bruno@clisp.org>
16905
16906         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
16907
16908 2008-10-19  Bruno Haible  <bruno@clisp.org>
16909
16910         * lib/wait-process.c: Include simply <sys/wait.h>.
16911         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
16912         WIFSTOPPED): Remove fallback definitions.
16913         * modules/wait-process (Depends-on): Add sys_wait.
16914
16915         New module 'sys_wait'.
16916         * modules/sys_wait: New file.
16917         * lib/sys_wait.in.h: New file, partially copied from
16918         lib/wait-process.c.
16919         * m4/sys_wait_h.m4: New file.
16920         * doc/posix-headers/sys_wait.texi: Mention the new module.
16921
16922 2008-10-19  Bruno Haible  <bruno@clisp.org>
16923
16924         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
16925
16926 2008-10-19  Bruno Haible  <bruno@clisp.org>
16927
16928         Assume that waitpid() fills an 'int' status, not a 'union wait'.
16929         * lib/wait-process.c (WAIT_T): Remove type.
16930         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
16931         (wait_subprocess): Update.
16932
16933 2008-10-19  Bruno Haible  <bruno@clisp.org>
16934
16935         New module 'atoll'.
16936         * modules/atoll: New file.
16937         * lib/stdlib.in.h (atoll): New declaration.
16938         * lib/atoll.c: New file, from glibc with modifications.
16939         * m4/atoll.m4: New file.
16940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
16941         HAVE_ATOLL.
16942         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
16943         * doc/posix-functions/atoll.texi: Mention the new module.
16944
16945 2008-10-19  Bruno Haible  <bruno@clisp.org>
16946
16947         Add strtoull() declaration to <stdlib.h>.
16948         * lib/stdlib.in.h (strtoull): New declaration.
16949         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16950         Set HAVE_STRTOULL.
16951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
16952         HAVE_STRTOULL.
16953         * modules/strtoull (Depends-on): Add stdlib.
16954         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16955         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
16956         HAVE_STRTOULL.
16957
16958 2008-10-19  Bruno Haible  <bruno@clisp.org>
16959
16960         Add strtoll() declaration to <stdlib.h>.
16961         * lib/stdlib.in.h (strtoll): New declaration.
16962         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16963         Set HAVE_STRTOLL.
16964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
16965         HAVE_STRTOLL.
16966         * modules/strtoll (Depends-on): Add stdlib.
16967         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16968         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
16969
16970 2008-10-19  Bruno Haible  <bruno@clisp.org>
16971
16972         * modules/bcopy (Depends-on): Add strings.
16973         (Include): Specify <strings.h>.
16974
16975 2008-10-19  Bruno Haible  <bruno@clisp.org>
16976
16977         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
16978
16979 2008-10-19  Bruno Haible  <bruno@clisp.org>
16980
16981         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
16982         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
16983         mingw.
16984
16985 2008-10-19  Bruno Haible  <bruno@clisp.org>
16986
16987         * lib/atanl.c: Don't include isnanl.h.
16988         * lib/cosl.c: Likewise.
16989         * lib/ldexpl.c: Likewise.
16990         * lib/logl.c: Likewise.
16991         * lib/sinl.c: Likewise.
16992         * lib/sqrtl.c: Likewise.
16993         * lib/tanl.c: Likewise.
16994
16995         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
16996         * lib/isnanf.h: Remove file.
16997         * lib/isnand.h: Remove file.
16998         * lib/isnanl.h: Remove file.
16999         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
17000         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
17001         macros.
17002         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
17003         HAVE_ISNANF, don't define it as a C macro.
17004         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
17005         HAVE_ISNAND, don't define it as a C macro.
17006         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
17007         HAVE_ISNANL, don't define it as a C macro.
17008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
17009         HAVE_ISNAN[FDL].
17010         * modules/isnanf (Files): Remove lib/isnanf.h.
17011         (Depends-on): Add math.
17012         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17013         (Include): Specify <math.h> instead of isnanf.h.
17014         * modules/isnand (Files): Remove lib/isnand.h.
17015         (Depends-on): Add math.
17016         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17017         (Include): Specify <math.h> instead of isnand.h.
17018         * modules/isnanl (Files): Remove lib/isnanl.h.
17019         (Depends-on): Add math.
17020         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17021         (Include): Specify <math.h> instead of isnanl.h.
17022         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
17023         HAVE_ISNAN[FDL].
17024         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
17025         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
17026         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
17027         * NEWS: Mention the change.
17028
17029 2008-10-18  Bruno Haible  <bruno@clisp.org>
17030
17031         Add getusershell(), setusershell(), endusershell() declarations to
17032         <unistd.h>.
17033         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
17034         declarations.
17035         * lib/getusershell.c: Include unistd.h.
17036         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
17037         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
17038         HAVE_GETUSERSHELL.
17039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
17040         and HAVE_GETUSERSHELL.
17041         * modules/getusershell (Depends-on): Add unistd, extensions.
17042         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17043         (Include): Specify <unistd.h>.
17044         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
17045         HAVE_GETUSERSHELL.
17046
17047 2008-10-18  Bruno Haible  <bruno@clisp.org>
17048
17049         Add a getloadavg() declaration to <stdlib.h>.
17050         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
17051         getloadavg declaration.
17052         (getloadavg): New declaration.
17053         * lib/getloadavg.c: Include <stdlib.h> first.
17054         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
17055         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
17056         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
17057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
17058         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
17059         * modules/getloadavg (Depends-on): Add stdlib, extensions.
17060         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17061         (Include): Specify <stdlib.h>.
17062         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
17063         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
17064
17065 2008-10-18  Bruno Haible  <bruno@clisp.org>
17066
17067         * lib/dirchownmod.c: Don't include lchmod.h.
17068
17069         Move the lchmod() declaration to <sys/stat.h>.
17070         * lib/lchmod.h: Remove file.
17071         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
17072         (lchmod): New declaration, moved here from lib/lchown.h.
17073         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
17074         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
17075         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
17076         and HAVE_LCHMOD.
17077         * modules/lchmod (Files): Remove lib/lchmod.h.
17078         (Depends-on): Add sys_stat, extensions.
17079         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
17080         (Include): Specify <sys/stat.h> instead of lchmod.h.
17081         * modules/sys_stat (Depends-on): Add link-warning.
17082         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
17083         definition of GL_LINK_WARNING.
17084         * NEWS: Mention the change.
17085
17086 2008-10-18  Bruno Haible  <bruno@clisp.org>
17087
17088         * lib/fchdir.c: Don't include dirfd.h.
17089         * lib/fts.c: Likewise.
17090         * lib/getcwd.c: Likewise.
17091         * lib/glob.c: Likewise.
17092
17093         Move the dirfd() declaration to <dirent.h>.
17094         * lib/dirfd.h: Remove file.
17095         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
17096         (dirfd): New declaration.
17097         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
17098         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
17099         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
17100         HAVE_DECL_DIRFD.
17101         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
17102         HAVE_DECL_DIRFD.
17103         * modules/dirfd (Files): Remove lib/dirfd.h.
17104         (Depends-on): Add dirent, extensions.
17105         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
17106         (Include): Specify <dirent.h> instead of dirfd.h.
17107         * modules/dirent (Depends-on): Add link-warning.
17108         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
17109         definition of GL_LINK_WARNING.
17110         * NEWS: Mention the change.
17111
17112 2008-10-18  Bruno Haible  <bruno@clisp.org>
17113
17114         Move the euidaccess() declaration to <unistd.h>.
17115         * lib/euidaccess.h: Remove file.
17116         * lib/unistd.in.h (euidaccess): New declaration.
17117         * lib/euidaccess.c: Don't include euidaccess.h.
17118         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
17119         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
17120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
17121         and HAVE_EUIDACCESS.
17122         * modules/euidaccess (Files): Remove lib/euidaccess.h.
17123         (Depends-on): Add unistd.
17124         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17125         (Include): Specify <unistd.h> instead of euidaccess.h.
17126         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
17127         HAVE_EUIDACCESS.
17128         * NEWS: Mention the change.
17129
17130 2008-10-18  Bruno Haible  <bruno@clisp.org>
17131
17132         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
17133
17134         Move the getdomainname() declaration to <unistd.h>.
17135         * lib/getdomainname.h: Remove file.
17136         * lib/unistd.in.h (getdomainname): New declaration.
17137         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
17138         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17139         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
17140         HAVE_GETDOMAINNAME.
17141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17142         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
17143         * modules/getdomainname (Files): Remove lib/getdomainname.h.
17144         (Depends-on): Add unistd, extensions.
17145         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17146         (Includes): Specify <unistd.h> instead of getdomainname.h.
17147         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
17148         HAVE_GETDOMAINNAME.
17149         * NEWS: Mention the change.
17150
17151 2008-10-18  Bruno Haible  <bruno@clisp.org>
17152
17153         * modules/dirent: New file.
17154         * m4/dirent_h.m4: New file.
17155         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
17156         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
17157         * modules/fchdir (Files): Remove lib/dirent.in.h.
17158         (Depends-on): Add dirent.
17159         (Makefile.am): Move rules to modules/dirent.
17160         * doc/posix-headers/dirent.texi: Mention the new module.
17161
17162 2008-10-18  Bruno Haible  <bruno@clisp.org>
17163
17164         Avoid -Wunused-parameter warnings in public gnulib header files.
17165         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
17166         macro.
17167         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
17168
17169 2008-10-18  Bruno Haible  <bruno@clisp.org>
17170
17171         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
17172         * doc/glibc-functions/error.texi: Mention the module 'error'.
17173         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
17174         * doc/glibc-functions/getdomainname.texi: Mention the module
17175         'getdomainname'.
17176         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
17177         * doc/glibc-functions/getpagesize.texi: Mention the module
17178         'getpagesize'.
17179         * doc/glibc-functions/getusershell.texi: Mention the module
17180         'getusershell'.
17181         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
17182         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
17183         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
17184         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
17185         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
17186         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
17187         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
17188         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
17189         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
17190         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
17191         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
17192         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
17193         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
17194         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
17195
17196 2008-10-17  Bruno Haible  <bruno@clisp.org>
17197
17198         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
17199         HP-UX and IRIX, use -0.0L.
17200         * tests/test-ceill.c (minus_zero): Likewise.
17201         * tests/test-floorl.c (minus_zero): Likewise.
17202         * tests/test-frexpl.c (minus_zero): Likewise.
17203         * tests/test-isnan.c (minus_zerol): Likewise.
17204         * tests/test-isnanl.h (minus_zero): Likewise.
17205         * tests/test-ldexpl.c (minus_zero): Likewise.
17206         * tests/test-roundl.c (minus_zero): Likewise.
17207         * tests/test-signbit.c (minus_zerol): Likewise.
17208         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17209         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17210         * tests/test-truncl.c (minus_zero): Likewise.
17211         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17212         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17213         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
17214         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17215
17216 2008-10-17  Bruno Haible  <bruno@clisp.org>
17217
17218         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
17219         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
17220         that it gets activated only for gcc >= 3.0.
17221         * lib/dirent.in.h: Likewise.
17222         * lib/errno.in.h: Likewise.
17223         * lib/fcntl.in.h: Likewise.
17224         * lib/float.in.h: Likewise.
17225         * lib/iconv.in.h: Likewise.
17226         * lib/inttypes.in.h: Likewise.
17227         * lib/locale.in.h: Likewise.
17228         * lib/math.in.h: Likewise.
17229         * lib/netdb.in.h: Likewise.
17230         * lib/netinet_in.in.h: Likewise.
17231         * lib/search.in.h: Likewise.
17232         * lib/signal.in.h: Likewise.
17233         * lib/spawn.in.h: Likewise.
17234         * lib/stdarg.in.h: Likewise.
17235         * lib/stdint.in.h: Likewise.
17236         * lib/stdio.in.h: Likewise.
17237         * lib/stdlib.in.h: Likewise.
17238         * lib/string.in.h: Likewise.
17239         * lib/strings.in.h: Likewise.
17240         * lib/sys_file.in.h: Likewise.
17241         * lib/sys_ioctl.in.h: Likewise.
17242         * lib/sys_select.in.h: Likewise.
17243         * lib/sys_socket.in.h: Likewise.
17244         * lib/sys_stat.in.h: Likewise.
17245         * lib/sys_time.in.h: Likewise.
17246         * lib/sysexits.in.h: Likewise.
17247         * lib/time.in.h: Likewise.
17248         * lib/unistd.in.h: Likewise.
17249         * lib/wchar.in.h: Likewise.
17250         * lib/wctype.in.h: Likewise.
17251         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17252
17253 2008-10-17  Jim Meyering  <meyering@redhat.com>
17254
17255         ignore-value: don't depend on inline module
17256         * modules/ignore-value (Depends-on): Remove 'inline'.
17257         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
17258         Suggestion from Bruno Haible.
17259
17260 2008-10-17  Bruno Haible  <bruno@clisp.org>
17261
17262         New implementation of condition variables for Win32.
17263         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
17264         (gl_linked_waitqueue_t): New type.
17265         (gl_cond_t): Use it.
17266         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
17267         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
17268         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
17269         (glthread_cond_init_func, glthread_cond_wait_func,
17270         glthread_cond_timedwait_func, glthread_cond_signal_func,
17271         glthread_cond_broadcast_func, glthread_cond_destroy_func):
17272         Reimplemented on the basis of gl_linked_waitqueue_t.
17273         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
17274         gl_waitqueue_t.
17275         (gl_rwlock_t): Update.
17276         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
17277
17278 2008-10-17  Simon Josefsson  <simon@josefsson.org>
17279
17280         * modules/recvfrom (Depends-on): Add dependency on getpeername.
17281         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17282
17283 2008-10-17  Jim Meyering  <meyering@redhat.com>
17284
17285         ignore-value: new module
17286         * modules/ignore-value: New file.
17287         * lib/ignore-value.h: New file.
17288         * MODULES.html.sh (Compiler warning management): New section,
17289         just for this module.  More to come.
17290
17291 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17292
17293         open-safer.c: avoid 'signed and unsigned in conditional...' warning
17294         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
17295         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
17296
17297 2008-10-16  Jim Meyering  <meyering@redhat.com>
17298
17299         openat-die.c: avoid 'no previous prototype' warning
17300         * lib/openat-die.c: Include "openat.h".
17301         Reported by Reuben Thomas <rrt@sc3d.org>.
17302
17303 2008-10-16  Simon Josefsson  <simon@josefsson.org>
17304
17305         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
17306         * lib/netdb.in.h: Fix typo.
17307         Reported by Bruno Haible  <bruno@clisp.org>
17308
17309         * lib/netdb.in.h: Include sys/socket.h for platforms without
17310         netdb.h, to get structures like hostent on MinGW.
17311         * modules/netdb (Depends-on): Add sys_socket.
17312
17313 2008-10-15  Simon Josefsson  <simon@josefsson.org>
17314
17315         * modules/netdb, modules/netdb-tests: New file.
17316         * m4/netdb_h.m4: New file.
17317         * lib/netdb.in.h: Add, currently just an empty file pending
17318         definitions.
17319         * tests/test-netdb.c: New file.
17320         * doc/posix-headers/netdb.texi: Mention that we replace it if
17321         needed.
17322         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17323         netdb.
17324
17325 2008-10-15  Simon Josefsson  <simon@josefsson.org>
17326
17327         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
17328         with code.
17329
17330 2008-10-13  Bruno Haible  <bruno@clisp.org>
17331
17332         * lib/glthread/cond.c (glthread_cond_wait_func,
17333         glthread_cond_timedwait_func): Add a comment.
17334
17335 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17336
17337         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
17338         * tests/test-select.c: Likewise,
17339
17340 2008-10-13  Bruno Haible  <bruno@clisp.org>
17341
17342         * lib/glthread/cond.c (glthread_cond_wait_func,
17343         glthread_cond_timedwait_func): Fix variable name.
17344         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17345
17346 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
17347
17348         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
17349         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
17350         struct sockaddr.sa_len.
17351         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
17352
17353 2008-10-13  Simon Josefsson  <simon@josefsson.org>
17354
17355         * build-aux/pmccabe2html: Add css and css_url parameters.
17356
17357 2008-10-12  Bruno Haible  <bruno@clisp.org>
17358
17359         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
17360         calling aclx_get.
17361         Reported by Rainer Tammer <tammer@tammer.net>.
17362
17363 2008-10-12  Bruno Haible  <bruno@clisp.org>
17364
17365         Use msvcrt aware primitives for creation/termination of Win32 threads.
17366         * lib/glthread/thread.c: Include <process.h>.
17367         (glthread_create_func): Use _beginthreadex instead of CreateThread.
17368         (wrapper_func): Update signature.
17369         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
17370
17371 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17372             Bruno Haible  <bruno@clisp.org>
17373
17374         Provide a Win32 implementation of the 'cond' module.
17375         * lib/glthread/cond.h [USE_WIN32]: New implementation.
17376         * lib/glthread/cond.c (glthread_cond_init_func,
17377         glthread_cond_wait_func, glthread_cond_timedwait_func,
17378         glthread_cond_signal_func, glthread_cond_broadcast_func,
17379         glthread_cond_destroy_func) [USE_WIN32]: New functions.
17380         * modules/cond (Dependencies): Add gettimeofday.
17381
17382 2008-10-11  Bruno Haible  <bruno@clisp.org>
17383
17384         Make sleep work on older versions of mingw.
17385         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
17386         only whether it exists.
17387         * doc/posix-functions/sleep.texi: Mention the problem with older
17388         versions of mingw.
17389
17390 2008-10-11  Bruno Haible  <bruno@clisp.org>
17391
17392         New module 'shutdown'.
17393         * modules/shutdown: New file.
17394         * lib/sys_socket.in.h (shutdown): New declaration.
17395         * lib/winsock.c (shutdown): New function.
17396         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17397         GNULIB_SHUTDOWN.
17398         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
17399         * doc/posix-functions/shutdown.texi: Document the new module.
17400
17401 2008-10-11  Jim Meyering  <meyering@redhat.com>
17402
17403         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
17404
17405 2008-10-11  Bruno Haible  <bruno@clisp.org>
17406
17407         New module 'fclose'.
17408         * modules/fclose: New file.
17409         * lib/stdio.in.h (fclose): New declaration.
17410         * lib/fclose.c: New file.
17411         * m4/fclose.m4: New file.
17412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
17413         REPLACE_FCLOSE.
17414         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
17415         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
17416         REPLACE_FCLOSE.
17417         * modules/close (Depends-on): fclose.
17418         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
17419
17420 2008-10-11  Bruno Haible  <bruno@clisp.org>
17421
17422         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
17423         set errno and don't call _close.
17424
17425 2008-10-10  Bruno Haible  <bruno@clisp.org>
17426
17427         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
17428         ACL, not afterwards. Fixes test failure on Cygwin.
17429
17430 2008-10-09  Ben Pfaff  <blp@gnu.org>
17431
17432         * build-aux/announce-gen: Fix gnulib version related part of usage
17433         message.  Die with a useful error message if no tarballs are
17434         found.
17435
17436 2008-10-10  Jim Meyering  <meyering@redhat.com>
17437
17438         bootstrap: use git's --depth=N option only if it's supported
17439         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
17440         recognize the --depth option.  Reported by Pádraig Brady.
17441
17442 2008-10-09  Bruno Haible  <bruno@clisp.org>
17443
17444         New module 'ioctl'.
17445         * modules/ioctl: New file.
17446         * lib/sys_socket.in.h (ioctl): Remove declaration.
17447         * lib/winsock.c: Include <sys/ioctl.h>.
17448         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
17449         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17450         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
17451         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
17452         * doc/posix-functions/ioctl.texi: Mention the new module.
17453
17454 2008-10-09  Bruno Haible  <bruno@clisp.org>
17455
17456         New module 'sys_ioctl'.
17457         * lib/sys_ioctl.in.h: New file.
17458         * m4/sys_ioctl_h.m4: New file.
17459         * modules/sys_ioctl: New file.
17460         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
17461
17462 2008-10-09  Bruno Haible  <bruno@clisp.org>
17463
17464         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
17465         * lib/winsock.c: Include <stdarg.h>.
17466         (rpl_ioctl): Change to second argument 'int' and then varargs.
17467
17468 2008-10-09  Bruno Haible  <bruno@clisp.org>
17469
17470         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
17471         when the sys_socket module is present and the system has <winsock2.h>.
17472
17473 2008-10-09  Bruno Haible  <bruno@clisp.org>
17474
17475         * doc/posix-functions/close.texi: Mention module 'close' instead of
17476         module 'sys_socket'.
17477
17478 2008-10-09  Bruno Haible  <bruno@clisp.org>
17479
17480         * doc/glibc-headers/sys_ioctl.texi: New file.
17481         * doc/gnulib.texi: Include it.
17482
17483 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17484             Bruno Haible  <bruno@clisp.org>
17485
17486         Combine the two replacements of 'close'.
17487         * lib/sys_socket.in.h (close): Define to a reminder to include
17488         <unistd.h>.
17489         (_gl_close_fd_maybe_socket): New declaration.
17490         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
17491         * lib/winsock.c (close): Remove undefinition.
17492         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
17493         needed for the gnulib module 'close'.
17494         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
17495         define to an error symbol or to a warning, if suitable.
17496         * lib/close.c: Include <sys/socket.h>.
17497         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
17498         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
17499         UNISTD_H_HAVE_WINSOCK2_H.
17500         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
17501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17502         UNISTD_H_HAVE_WINSOCK2_H.
17503         * modules/sys_socket (Files): Add m4/unistd_h.m4.
17504         (configure.ac): Set a module indicator.
17505         (Makefile.am): Substitute GNULIB_CLOSE.
17506         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
17507         * modules/poll-tests (Depends-on): Add close.
17508         * modules/select-tests (Depends-on): Likewise.
17509
17510 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17511             Bruno Haible  <bruno@clisp.org>
17512
17513         New module 'close'.
17514         * modules/close: New file.
17515         * lib/unistd.in.h (close): Move declaration out of the
17516         FCHDIR_REPLACEMENT scope.
17517         (_gl_unregister_fd): New declaration.
17518         * lib/close.c: New file.
17519         * lib/fchdir.c (rpl_close): Remove function.
17520         * m4/close.m4: New file.
17521         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17522         close.
17523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
17524         REPLACE_CLOSE.
17525         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
17526         REPLACE_CLOSE.
17527         * modules/fchdir (Depends-on): Add close.
17528
17529 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17530             Bruno Haible  <bruno@clisp.org>
17531
17532         * lib/fcntl.in.h (open): Simplify conditionals.
17533         (_gl_register_fd): New declaration.
17534         * lib/fchdir.c (rpl_open): Remove function.
17535         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
17536         also.
17537         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
17538         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17539         open.
17540
17541 2008-10-09  Jim Meyering  <meyering@redhat.com>
17542
17543         GNUmakefile: use the more name-space-friendly "_version"
17544         * top/GNUmakefile (_dummy): Update.
17545         (_version): Rename from "version".
17546
17547 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17548             Bruno Haible  <bruno@clisp.org>
17549
17550         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
17551         rpl_close.
17552         (_gl_register_fd): New function, extracted from rpl_open.
17553         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
17554         (rpl_open, rpl_opendir): Use _gl_register_fd.
17555
17556 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17557
17558         Fix organization of 'open' replacement.
17559         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
17560         (gl_FUNC_OPEN): Use it.
17561         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
17562
17563 2008-10-08  Bruno Haible  <bruno@clisp.org>
17564
17565         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
17566
17567 2008-10-08  Simon Josefsson  <simon@josefsson.org>
17568
17569         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
17570         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
17571         listen).
17572
17573 2008-10-08  Eric Blake  <ebb9@byu.net>
17574
17575         GNUmakefile: add 'make version' target
17576         * top/GNUmakefile (_curr-ver): Split version update rules...
17577         (version): ...into a target.
17578
17579 2008-10-07  Bruno Haible  <bruno@clisp.org>
17580
17581         Use a more portable replacement expression for -0.0L.
17582         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
17583         instead of -0.0L. Fix m4 quotation.
17584
17585         * tests/test-signbit.c: Include <float.h>.
17586         (minus_zero): New variable.
17587         (test_signbitl): Use minus_zero instead of -zero.
17588         * modules/signbit-tests (Depends-on): Add float.
17589
17590         * tests/test-ceill.c: Include <float.h>.
17591         (zero): Remove variable.
17592         (minus_zero): New variable.
17593         (main): Use minus_zero instead of -zero.
17594         * modules/ceill-tests (Depends-on): Add float.
17595
17596         * tests/test-floorl.c: Include <float.h>.
17597         (zero): Remove variable.
17598         (minus_zero): New variable.
17599         (main): Use minus_zero instead of -zero.
17600         * modules/floorl-tests (Depends-on): Add float.
17601
17602         * tests/test-roundl.c: Include <float.h>.
17603         (zero): Remove variable.
17604         (minus_zero): New variable.
17605         (main): Use minus_zero instead of -zero.
17606         * modules/roundl-tests (Depends-on): Add float.
17607
17608         * tests/test-truncl.c: Include <float.h>.
17609         (zero): Remove variable.
17610         (minus_zero): New variable.
17611         (main): Use minus_zero instead of -zero.
17612         * modules/truncl-tests (Depends-on): Add float.
17613
17614         * tests/test-frexpl.c (zero): Remove variable.
17615         (minus_zero): New variable.
17616         (main): Use minus_zero instead of -zero.
17617         * modules/frexpl-tests (Depends-on): Add float.
17618
17619         * tests/test-isnan.c (zerol): Remove variable.
17620         (minus_zerol): New variable.
17621         (test_long_double): Use minus_zerol instead of -zerol.
17622         * modules/isnan-tests (Depends-on): Add float.
17623
17624         * tests/test-isnanl.h (zero): Remove variable.
17625         (minus_zero): New variable.
17626         (main): Use minus_zero instead of -zero.
17627         * modules/isnanl-nolibm-tests (Depends-on): Add float.
17628         * modules/isnanl-tests (Depends-on): Add float.
17629
17630         * tests/test-ldexpl.c (zero): Remove variable.
17631         (minus_zero): New variable.
17632         (main): Use minus_zero instead of -zero.
17633         * modules/ldexpl-tests (Depends-on): Add float.
17634
17635         * tests/test-snprintf-posix.h (zerol): Remove variable.
17636         (minus_zerol): New variable.
17637         (test_function): Use minus_zerol instead of -zerol.
17638         * modules/snprintf-posix-tests (Depends-on): Add float.
17639         * modules/vsnprintf-posix-tests (Depends-on): Add float.
17640
17641         * tests/test-sprintf-posix.h (zerol): Remove variable.
17642         (minus_zerol): New variable.
17643         (test_function): Use minus_zerol instead of -zerol.
17644         * modules/sprintf-posix-tests (Depends-on): Add float.
17645         * modules/vsprintf-posix-tests (Depends-on): Add float.
17646
17647         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
17648         (minus_zerol): New variable.
17649         (test_function): Use minus_zerol instead of -zerol.
17650         * modules/vasnprintf-posix-tests (Depends-on): Add float.
17651
17652         * tests/test-vasprintf-posix.c (zerol): Remove variable.
17653         (minus_zerol): New variable.
17654         (test_function): Use minus_zerol instead of -zerol.
17655         * modules/vasprintf-posix-tests (Depends-on): Add float.
17656
17657 2008-10-07  Simon Josefsson  <simon@josefsson.org>
17658
17659         * MODULES.html.sh (Support for building documentation): Mention
17660         pmccabe2html.  Sort entries.
17661
17662         Add pmccabe2html module, from gnupdf.
17663         * build-aux/pmccabe.css: New file.
17664         * build-aux/pmccabe2html: New file.
17665         * m4/pmccabe2html.m4: New file.
17666         * modules/pmccabe2html: New file.
17667
17668 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
17669
17670         flock: new module
17671         * MODULES.html.sh: Add to list of modules.
17672         * lib/flock.c: flock implementation for Windows and Unix systems
17673         which have fcntl.
17674         * doc/glibc-functions/flock.texi: Update documentation.
17675         * lib/sys_file.in.h: <sys/file.h> header file.
17676         * m4/flock.m4: M4 macros.
17677         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
17678         * modules/flock: flock module.
17679         * modules/flock-tests: flock tests module.
17680         * modules/sys_file: sys/file.h module.
17681         * tests/test-flock.c: test suite for flock.
17682
17683 2008-10-06  Jim Meyering  <meyering@redhat.com>
17684
17685         bootstrap: check for LT_INIT more portably still ;-)
17686         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
17687         Spotted by Bruno Haible.
17688
17689 2008-10-06  Eric Blake  <ebb9@byu.net>
17690
17691         test-signbit: avoid tripping Irix cc bug on -0.0L
17692         * tests/test-signbit.c (minus_zerol): Delete, and replace with
17693         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
17694         entire testsuite consistent and avoids an Irix 6.2 bug.
17695
17696 2008-10-05  Bruno Haible  <bruno@clisp.org>
17697             Jim Meyering  <jim@meyering.net>
17698
17699         Add an option for ignoring EPIPE during close_stdout.
17700         * lib/closeout.h: Include <stdbool.h>.
17701         (close_stdout_set_ignore_EPIPE): New declaration.
17702         * lib/closeout.c: Include <stdbool.h>.
17703         (ignore_EPIPE): New variable.
17704         (close_stdout_set_ignore_EPIPE): New function.
17705         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
17706         * lib/close-stream.c (close_stream): Mention the possible EPIPE
17707         failure.
17708         * modules/closeout (Depends-on): Add stdbool.
17709
17710 2008-10-05  Bruno Haible  <bruno@clisp.org>
17711
17712         * modules/accept: New file.
17713         * modules/bind: New file.
17714         * modules/connect: New file.
17715         * modules/getpeername: New file.
17716         * modules/getsockname: New file.
17717         * modules/getsockopt: New file.
17718         * modules/listen: New file.
17719         * modules/recv: New file.
17720         * modules/recvfrom: New file.
17721         * modules/send: New file.
17722         * modules/sendto: New file.
17723         * modules/setsockopt: New file.
17724         * modules/socket: New file.
17725         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
17726         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17727         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
17728         the particular module is requested. Add a link warning when the
17729         particular module is not requested.
17730         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
17731         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
17732         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
17733         the particular module is requested.
17734         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
17735         gl_SYS_SOCKET_H_DEFAULTS): New macros.
17736         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
17737         * modules/sys_socket (Depends-on): Add link-warning.
17738         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
17739         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
17740         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
17741         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
17742         GL_LINK_WARNING.
17743         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
17744         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
17745         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
17746         * doc/posix-functions/getpeername.texi: Mention the new module
17747         'getpeername'.
17748         * doc/posix-functions/getsockname.texi: Mention the new module
17749         'getsockname'.
17750         * doc/posix-functions/getsockopt.texi: Mention the new module
17751         'getsockopt'.
17752         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
17753         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
17754         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
17755         * doc/posix-functions/send.texi: Mention the new module 'send'.
17756         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
17757         * doc/posix-functions/setsockopt.texi: Mention the new module
17758         'setsockopt'.
17759         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
17760         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
17761         listen, connect, accept.
17762         * modules/select-tests (Depends-on): Likewise.
17763
17764 2008-10-05  Bruno Haible  <bruno@clisp.org>
17765
17766         * lib/winsock.c (strerror): Remove unused #undef.
17767         (rpl_close): Remove unused local variable.
17768
17769         * modules/sys_socket (Depends-on); Add errno.
17770
17771 2008-10-05  Bruno Haible  <bruno@clisp.org>
17772
17773         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
17774         (select): Add a link warning when the 'select' module is not used.
17775         * modules/sys_select (Depends-on): Add link-warning.
17776         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
17777         Suggested by Paolo Bonzini.
17778
17779 2008-10-05  Jim Meyering  <meyering@redhat.com>
17780
17781         bootstrap: check for LT_INIT more portably
17782         * build-aux/bootstrap: Avoid using grep -E, since it's not
17783         portable enough.  Suggestion from Bruno Haible.
17784
17785 2008-10-05  Bruno Haible  <bruno@clisp.org>
17786
17787         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
17788         as being fixed by gnulib.
17789
17790 2008-10-05  Bruno Haible  <bruno@clisp.org>
17791
17792         * modules/select-tests: New file, mostly copied from
17793         modules/sys_select-tests.
17794         * tests/test-select.c: New file, mostly copied from
17795         tests/test-sys_select.c.
17796         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
17797         * modules/sys_select-tests (Depends-on): Remove all dependencies.
17798         (Makefile.am): Remove test_sys_select_LDADD.
17799
17800         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
17801         to an undefined symbol, for an error message.
17802         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
17803         (gl_SYS_SELECT_H_DEFAULTS): New macro.
17804         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
17805         winsock-select.c here.
17806         * modules/sys_select (Files): Remove lib/winsock-select.c.
17807         (Depends-on): Remove alloca.
17808         (Makefile.am): Substitute GNULIB_SELECT.
17809         * modules/select: New file.
17810         * doc/posix-functions/select.texi: Update.
17811
17812 2008-10-05  Bruno Haible  <bruno@clisp.org>
17813
17814         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
17815         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
17816         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
17817         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
17818         getdtablesize.
17819         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17820         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17821
17822 2008-10-05  Bruno Haible  <bruno@clisp.org>
17823
17824         * modules/getdtablesize-tests: New file.
17825         * tests/test-getdtablesize.c: New file.
17826
17827         New module 'getdtablesize'.
17828         * lib/unistd.in.h (getdtablesize): New declaration.
17829         * lib/getdtablesize.c: New file.
17830         * m4/getdtablesize.m4: New file.
17831         * modules/getdtablesize: New file.
17832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17833         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
17834         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
17835         HAVE_GETDTABLESIZE.
17836         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
17837
17838 2008-10-05  Bruno Haible  <bruno@clisp.org>
17839
17840         * modules/sched (Makefile.am): Fix typo.
17841         Reported by Simon Josefsson.
17842
17843 2008-10-05  Jim Meyering  <meyering@redhat.com>
17844
17845         bootstrap: check for LT_INIT, too
17846         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
17847         are deprecated.  Suggestion from Ralf Wildenhues.
17848
17849 2008-10-05  Bruno Haible  <bruno@clisp.org>
17850
17851         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
17852         overriding them by ours.
17853         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
17854
17855 2008-10-05  Jim Meyering  <meyering@redhat.com>
17856
17857         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
17858         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
17859         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
17860
17861 2008-10-04  Bruno Haible  <bruno@clisp.org>
17862
17863         * modules/dup2 (License): Change to LGPLv2+.
17864         * modules/sleep (License): Likewise.
17865         * modules/perror (License): Likewise.
17866         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
17867         Blake.
17868         * modules/signal (License): Likewise.
17869         * modules/sigprocmask (License): Likewise.
17870         * modules/raise (License): Change to LGPLv2+, with approval by Jim
17871         Meyering.
17872
17873 2008-10-04  Bruno Haible  <bruno@clisp.org>
17874
17875         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
17876         Reported by Rainer Tammer <tammer@tammer.net>.
17877
17878 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
17879             Bruno Haible  <bruno@clisp.org>
17880
17881         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
17882         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
17883         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
17884
17885 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
17886
17887         filevercmp: new module
17888         * lib/filevercmp.h: New function filevercmp comparing version strings.
17889         * lib/filevercmp.c: Implementation of filevercmp function.
17890         * modules/filevercmp: Module metadata.
17891         * tests/test-filevercmp.c: Unit test for new module.
17892         * modules/filevercmp-tests: Unit test metadata.
17893         * MODULES.html.sh: Add filevercmp module.
17894
17895 2008-10-03  Bruno Haible  <bruno@clisp.org>
17896
17897         * lib/c-ctype.h: Add comment.
17898         Reported by Jim Meyering.
17899
17900 2008-10-02  Bruno Haible  <bruno@clisp.org>
17901
17902         * modules/posix_spawn-internal (Depends-on): Add 'open'.
17903
17904 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17905
17906         * build-aux/bootstrap: Allow renaming bootstrap, and change the
17907         name of bootstrap.conf accordingly.
17908
17909 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17910
17911         * build-aux/bootstrap: Install git-merge-changelog configuration
17912         items into .gitconfig if needed.
17913
17914 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17915
17916         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
17917         git repository, and initialize/update it accordingly.
17918
17919 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
17920
17921         * modules/fsync-tests: New file.
17922         * tests/test-fsync.c: New file.
17923
17924         New module 'fsync'.
17925         * lib/fsync.c: New file.
17926         * m4/fsync.m4: New file.
17927         * modules/fsync: New file.
17928         * lib/unistd.in.h (fsync): New declaration.
17929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
17930         GNULIB_FSYNC and HAVE_FSYNC.
17931         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
17932         * MODULES.html.sh (posix_functions): Add fsync.
17933         * doc/posix-functions/fsync.texi: Mention the new module.
17934
17935 2008-10-02  Jim Meyering  <meyering@redhat.com>
17936
17937         fts.c: sync with similar code from coreutils' remove.c
17938         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
17939         Guard also with "#if defined __linux__", since for now at least,
17940         this code is Linux-kernel-specific.
17941
17942 2008-10-02  Jim Meyering  <meyering@redhat.com>
17943
17944         fts: bug fixes
17945         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
17946         Include <sys/vfs.h>, not <sys/statfs.h>.
17947
17948         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
17949         Include <sys/vfs.h>, not <sys/statfs.h>.
17950
17951 2008-10-01  Bruno Haible  <bruno@clisp.org>
17952
17953         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
17954         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
17955         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
17956         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
17957         * doc/posix-functions/posix_spawnp.texi: Likewise.
17958         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
17959         whether posix_spawn actually works.
17960         * m4/pipe.m4 (gl_PIPE): Likewise.
17961         * modules/execute (Files): Add m4/posix_spawn.m4.
17962         * modules/pipe (Files): Add m4/posix_spawn.m4.
17963         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
17964
17965 2008-10-01  Jim Meyering  <meyering@redhat.com>
17966
17967         remove trailing spaces
17968         * NEWS: Likewise.
17969         * lib/poll.c (poll): Likewise.
17970         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
17971         * lib/winsock.c (rpl_close): Likewise.
17972         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
17973         * modules/yield: Likewise.
17974         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
17975         * tests/test-sys_select.c (connect_to_socket): Likewise.
17976
17977         fts.c: adjust a new interface to be more generally useful
17978         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
17979         (fts_build): Adjust caller.
17980
17981 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17982
17983         * modules/cond-tests: New file.
17984         * tests/test-cond.c: New file.
17985
17986 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17987             Bruno Haible  <bruno@clisp.org>
17988
17989         * modules/cond (Dependencies): Add errno, time.
17990         * lib/glthread/cond.h: Include <time.h>.
17991         (gl_cond_define, gl_cond_define_initialized): Use the same definition
17992         across platforms.
17993
17994 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17995             Bruno Haible  <bruno@clisp.org>
17996
17997         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
17998
17999 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18000             Bruno Haible  <bruno@clisp.org>
18001
18002         * modules/tls-tests (Depends-on): Add thread, yield.
18003         (configure.ac): Remove all checks.
18004         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
18005         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
18006         gl_thread_self): Remove definitions. Include glthread/thread.h and
18007         glthread/yield.h instead.
18008         (test_tls): Pass an additional NULL argument to gl_thread_join.
18009
18010 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18011             Bruno Haible  <bruno@clisp.org>
18012
18013         * modules/lock-tests (Depends-on): Add thread, yield.
18014         (configure.ac): Remove all checks.
18015         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
18016         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
18017         gl_thread_self): Remove definitions. Include glthread/thread.h and
18018         glthread/yield.h instead.
18019         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
18020         additional NULL argument to gl_thread_join.
18021
18022 2008-09-30  Bruno Haible  <bruno@clisp.org>
18023
18024         Fix the Win32 implementation of the 'thread' module.
18025         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
18026         pointer type.
18027         (gl_thread_self): Invoke gl_thread_self_func.
18028         (gl_thread_self_func): New declaration.
18029         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
18030         (do_init_self_key, init_self_key): New functions.
18031         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
18032         Remove some fields.
18033         (running_threads, running_lock): Remove variables.
18034         (get_current_thread_handle): New function.
18035         (gl_thread_self_func, wrapper_func, glthread_create_func,
18036         glthread_join_func, gl_thread_exit_func): Largely rewritten and
18037         simplified.
18038
18039 2008-09-30  Bruno Haible  <bruno@clisp.org>
18040
18041         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
18042         files.
18043
18044 2008-09-30  Jim Meyering  <meyering@redhat.com>
18045
18046         fts.m4: correct the test for statfs.f_type
18047         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
18048         when checking for statfs.f_type.
18049
18050 2008-09-15  Simon Josefsson  <simon@josefsson.org>
18051
18052         tests: avoid some compiler warnings
18053         * tests/test-memchr.c (main): Pass NULL indirectly.
18054         * tests/test-getdate.c (main): Remove unused variable 'ret'.
18055
18056 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
18057
18058         getdate.y: disallow countable dayshifts like "4 yesterday ago"
18059         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
18060         exactly specified dayshifts.
18061         (dayshift): New rule.
18062         (rel): Add dayshift.
18063         (relative_time_table) [tomorrow, yesterday, today, now]:
18064         Use tDAY_SHIFT in place of tDAY_UNIT.
18065         * tests/test-getdate.c: Add tests for now-disallowed countable
18066         dayshifts, e.g., "4 yesterday ago".
18067
18068 2008-09-29  Bruno Haible  <bruno@clisp.org>
18069
18070         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
18071         * tests/test-posix_spawn1.in.sh: Renamed from
18072         tests/test-posix_spawn.in.sh.
18073         * tests/test-posix_spawn2.c: New file.
18074         * tests/test-posix_spawn2.in.sh: New file.
18075         * modules/posix_spawnp-tests (Files): Update.
18076         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
18077
18078 2008-09-29  Bruno Haible  <bruno@clisp.org>
18079
18080         Propagate effects of putenv/setenv/unsetenv to child processes.
18081         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
18082         * lib/pipe.c (create_pipe): Likewise.
18083
18084 2008-09-29  Bruno Haible  <bruno@clisp.org>
18085
18086         Enable use of shell scripts as executables in mingw.
18087         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
18088         run the program as a shell script.
18089         * lib/pipe.c (create_pipe): Likewise.
18090         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
18091         resulting array.
18092
18093 2008-09-29  Eric Blake  <ebb9@byu.net>
18094
18095         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
18096
18097 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
18098
18099         * doc/posix-functions/accept.texi: Update mingw problems.
18100         * doc/posix-functions/bind.texi: Update mingw problems.
18101         * doc/posix-functions/close.texi: Update mingw problems.
18102         * doc/posix-functions/connect.texi: Update mingw problems.
18103         * doc/posix-functions/getpeername.texi: Update mingw problems.
18104         * doc/posix-functions/getsockname.texi: Update mingw problems.
18105         * doc/posix-functions/getsockopt.texi: Update mingw problems.
18106         * doc/posix-functions/ioctl.texi: Update mingw problems.
18107         * doc/posix-functions/listen.texi: Update mingw problems.
18108         * doc/posix-functions/recv.texi: Update mingw problems.
18109         * doc/posix-functions/recvfrom.texi: Update mingw problems.
18110         * doc/posix-functions/select.texi: Update mingw problems.
18111         * doc/posix-functions/send.texi: Update mingw problems.
18112         * doc/posix-functions/sendto.texi: Update mingw problems.
18113         * doc/posix-functions/setsockopt.texi: Update mingw problems.
18114         * doc/posix-functions/socket.texi: Update mingw problems.
18115
18116 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
18117             Bruno Haible  <bruno@clisp.org>
18118
18119         * lib/sys_select.in.h: Include sys/time.h.
18120         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
18121         * modules/sys_select: Depend on sys_time.
18122         * tests/test-sys_select.c: Test that sys/select.h defines struct
18123         timeval fully.
18124
18125 2008-09-29  Bruno Haible  <bruno@clisp.org>
18126
18127         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
18128         * lib/sys_select.in.h: Likewise.
18129
18130 2008-09-29  Bruno Haible  <bruno@clisp.org>
18131
18132         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
18133
18134 2008-09-29  Bruno Haible  <bruno@clisp.org>
18135
18136         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
18137         Set LIBSOCKET instead of augmenting LIBS.
18138         * modules/sockets (Link): New section.
18139         * modules/sockets-tests (test_sockets_LDADD): New variable.
18140         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
18141         * modules/poll-tests (test_poll_LDADD): New variable.
18142         * NEWS: Document the change.
18143
18144 2008-09-29  Bruno Haible  <bruno@clisp.org>
18145
18146         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
18147         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
18148         ARPA_INET_H directly.
18149         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18150
18151 2008-09-28  Bruno Haible  <bruno@clisp.org>
18152
18153         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
18154         from gl_HEADER_SYS_SOCKET.
18155         (gl_HEADER_SYS_SOCKET): Invoke it.
18156         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18157
18158 2008-09-28  Bruno Haible  <bruno@clisp.org>
18159
18160         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
18161         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
18162         Needed on OSF/1 4.0.
18163
18164 2008-09-28  Bruno Haible  <bruno@clisp.org>
18165
18166         Override open more carefully.
18167         * lib/open.c (orig_open): New function.
18168         (rpl_open): Use orig_open instead of open.
18169         * lib/fcntl.in.h: Add special invocation convention.
18170         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
18171         (gl_FUNC_OPEN): Invoke it.
18172
18173         Override freopen more carefully.
18174         * lib/freopen.c (orig_freopen): New function.
18175         (rpl_freopen): Use orig_freopen instead of freopen.
18176         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
18177         (gl_FUNC_FREOPEN): Invoke it.
18178
18179         Override fopen more carefully.
18180         * lib/fopen.c (orig_fopen): New function.
18181         (rpl_fopen): Use orig_fopen instead of fopen.
18182         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
18183         (gl_FUNC_FOPEN): Invoke it.
18184         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
18185
18186 2008-09-28  Bruno Haible  <bruno@clisp.org>
18187
18188         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
18189         SIGPIPE.
18190
18191 2008-09-28  Bruno Haible  <bruno@clisp.org>
18192
18193         * tests/test-sigaction.c (handler, main): Disable the check whether
18194         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
18195         glibc systems with LinuxThreads.
18196
18197 2008-09-28  Bruno Haible  <bruno@clisp.org>
18198
18199         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
18200
18201         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
18202         with AIX xlc.
18203         * lib/fcntl.in.h (open): Likewise.
18204         Reported by Rainer Tammer <tammer@tammer.net>.
18205
18206 2008-09-28  Bruno Haible  <bruno@clisp.org>
18207
18208         * modules/posix_spawnp-tests: New file.
18209         * tests/test-posix_spawn.c: New file.
18210         * tests/test-posix_spawn.in.sh: New file.
18211
18212         New module 'posix_spawnp'.
18213         * modules/posix_spawnp: New file.
18214         * lib/spawnp.c: New file, from GNU libc with modifications.
18215         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
18216
18217         New module 'posix_spawn'.
18218         * modules/posix_spawn: New file.
18219         * lib/spawn.c: New file, from GNU libc with modifications.
18220         * doc/posix-functions/posix_spawn.texi: Mention the new module.
18221
18222         New module 'posix_spawnattr_destroy'.
18223         * modules/posix_spawnattr_destroy: New file.
18224         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
18225         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
18226         module.
18227
18228         New module 'posix_spawnattr_setsigmask'.
18229         * modules/posix_spawnattr_setsigmask: New file.
18230         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
18231         modifications.
18232         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
18233         new module.
18234
18235         New module 'posix_spawnattr_getsigmask'.
18236         * modules/posix_spawnattr_getsigmask: New file.
18237         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
18238         modifications.
18239         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
18240         new module.
18241
18242         New module 'posix_spawnattr_setsigdefault'.
18243         * modules/posix_spawnattr_setsigdefault: New file.
18244         * lib/spawnattr_setdefault.c: New file, from GNU libc with
18245         modifications.
18246         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
18247         new module.
18248
18249         New module 'posix_spawnattr_getsigdefault'.
18250         * modules/posix_spawnattr_getsigdefault: New file.
18251         * lib/spawnattr_getdefault.c: New file, from GNU libc with
18252         modifications.
18253         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
18254         new module.
18255
18256         New module 'posix_spawnattr_setschedpolicy'.
18257         * modules/posix_spawnattr_setschedpolicy: New file.
18258         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
18259         modifications.
18260         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
18261         new module.
18262
18263         New module 'posix_spawnattr_getschedpolicy'.
18264         * modules/posix_spawnattr_getschedpolicy: New file.
18265         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
18266         modifications.
18267         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
18268         new module.
18269
18270         New module 'posix_spawnattr_setschedparam'.
18271         * modules/posix_spawnattr_setschedparam: New file.
18272         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
18273         modifications.
18274         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
18275         new module.
18276
18277         New module 'posix_spawnattr_getschedparam'.
18278         * modules/posix_spawnattr_getschedparam: New file.
18279         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
18280         modifications.
18281         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
18282         new module.
18283
18284         New module 'posix_spawnattr_setpgroup'.
18285         * modules/posix_spawnattr_setpgroup: New file.
18286         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
18287         modifications.
18288         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
18289         module.
18290
18291         New module 'posix_spawnattr_getpgroup'.
18292         * modules/posix_spawnattr_getpgroup: New file.
18293         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
18294         modifications.
18295         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
18296         module.
18297
18298         New module 'posix_spawnattr_setflags'.
18299         * modules/posix_spawnattr_setflags: New file.
18300         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
18301         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
18302         module.
18303
18304         New module 'posix_spawnattr_getflags'.
18305         * modules/posix_spawnattr_getflags: New file.
18306         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
18307         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
18308         module.
18309
18310         New module 'posix_spawnattr_init'.
18311         * modules/posix_spawnattr_init: New file.
18312         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
18313         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
18314         module.
18315
18316         New module 'posix_spawn_file_actions_destroy'.
18317         * modules/posix_spawn_file_actions_destroy: New file.
18318         * lib/spawn_faction_destroy.c: New file, from GNU libc with
18319         modifications.
18320         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
18321         the new module.
18322
18323         New module 'posix_spawn_file_actions_addopen'.
18324         * modules/posix_spawn_file_actions_addopen: New file.
18325         * lib/spawn_faction_addopen.c: New file, from GNU libc with
18326         modifications.
18327         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
18328         the new module.
18329
18330         New module 'posix_spawn_file_actions_adddup2'.
18331         * modules/posix_spawn_file_actions_adddup2: New file.
18332         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
18333         modifications.
18334         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
18335         the new module.
18336
18337         New module 'posix_spawn_file_actions_addclose'.
18338         * modules/posix_spawn_file_actions_addclose: New file.
18339         * lib/spawn_faction_addclose.c: New file, from GNU libc with
18340         modifications.
18341         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
18342         the new module.
18343
18344         New module 'posix_spawn_file_actions_init'.
18345         * modules/posix_spawn_file_actions_init: New file.
18346         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
18347         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
18348         new module.
18349
18350         New module 'posix_spawn-internal'.
18351         * modules/posix_spawn-internal: New file.
18352         * lib/spawn_int.h: New file, from GNU libc with modifications.
18353         * lib/spawni.c: New file, from GNU libc with modifications.
18354         * m4/posix_spawn.m4: New file.
18355
18356         New module 'spawn'.
18357         * modules/spawn: New file.
18358         * lib/spawn.in.h: New file, from GNU libc with modifications.
18359         * m4/spawn_h.m4: New file.
18360         * doc/posix-headers/spawn.texi: Mention the new module.
18361
18362 2008-09-28  Bruno Haible  <bruno@clisp.org>
18363
18364         * modules/sched-tests: New file.
18365         * tests/test-sched.c: New file.
18366
18367         New module 'sched'.
18368         * modules/sched: New file.
18369         * lib/sched.in.h: New file.
18370         * m4/sched_h.m4: New file.
18371         * doc/posix-headers/sched.texi: Mention the new module.
18372
18373 2008-09-27  Eric Blake  <ebb9@byu.net>
18374
18375         Fix previous patch, and tweak references to $0.
18376         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
18377         (func_version, func_gnulib_dir): Don't call this program
18378         gnulib-tool.
18379         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
18380         with using $0 in function.
18381         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
18382         (func_fatal_error): Reuse the name the user invoked us with.
18383
18384 2008-09-27  Bruno Haible  <bruno@clisp.org>
18385
18386         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
18387         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
18388         (gl_ICONV_H): Not here.
18389         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18390         instead of assigning ICONV_H directly.
18391
18392         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
18393         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
18394         WCHAR_H directly.
18395
18396 2008-09-27  Bruno Haible  <bruno@clisp.org>
18397
18398         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
18399         * modules/arpa_inet (Depends-on): Add link-warning.
18400         (Makefile.am): Insert the definition of GL_LINK-WARNING.
18401         * modules/unistd (Makefile.am): Likewise.
18402
18403 2008-09-26  Bruno Haible  <bruno@clisp.org>
18404
18405         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
18406         variables.
18407         (func_version): Essentially copied from gnulib-tool.
18408         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
18409         func_readlink): Copied from gnulib-tool.
18410
18411 2008-09-26  Bruno Haible  <bruno@clisp.org>
18412
18413         * gnulib-tool (func_version): Change directory to $gnulib_dir before
18414         invoking git-version-gen.
18415
18416 2008-09-26  Bruno Haible  <bruno@clisp.org>
18417
18418         * posix-modules: Update to directory names changed on 2008-01-19.
18419         Remove commas in output before splitting into words. No more need to
18420         avoid 'ftruncate' since 2007-02-19.
18421
18422 2008-09-26  Bruno Haible  <bruno@clisp.org>
18423
18424         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
18425
18426 2008-09-26  Bruno Haible  <bruno@clisp.org>
18427
18428         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
18429         * modules/fwriteerror (Depends-on): Add errno.
18430
18431 2008-09-26  Bruno Haible  <bruno@clisp.org>
18432
18433         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
18434         * tests/test-vc-list-files-cvs.sh: Likewise.
18435
18436 2008-09-26  Bruno Haible  <bruno@clisp.org>
18437
18438         * doc/posix-headers/sys_resource.texi: Reorder items.
18439
18440 2008-09-26  Jim Meyering  <meyering@redhat.com>
18441
18442         fts: tweak inode comparison function
18443         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
18444         inode numbers, as documented.
18445
18446         fts: sort dirent entries on inode number before traversing
18447         This avoids a quadratic, seek-related performance penalty when
18448         operating on a directory containing many entries (measurable at 10k;
18449         3.5 hours at 2 million entries with a cold cache) on certain types
18450         of file systems, including ext3 and ext4, but not tmpfs.
18451         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
18452         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
18453         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
18454         (fs_handles_readdir_ordered_dirents_efficiently): New function.
18455         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
18456         (fts_build): Set the stat.st_ino member from D_INO.
18457         If it is likely to be useful, sort dirent entries on inode number.
18458
18459         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
18460         and the struct statfs.f_type member.
18461         * modules/fts (Depends-on): Add d-ino.
18462
18463 2008-09-26  Bruno Haible  <bruno@clisp.org>
18464
18465         * modules/sigpipe-die (Depends-on): Add sigpipe.
18466
18467         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
18468         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
18469         and GNULIB_STDIO_H_SIGPIPE are set.
18470         * lib/stdio-write.c: New file.
18471         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
18472         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18473         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18474         REPLACE_STDIO_WRITE_FUNCS.
18475         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
18476         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18477         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18478         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18479         * modules/stdio (Files): Add lib/stdio-write.c.
18480         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
18481         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18482         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18483         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18484         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
18485         REPLACE_FPRINTF_POSIX.
18486         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
18487         REPLACE_PRINTF_POSIX.
18488         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
18489         REPLACE_VFPRINTF_POSIX.
18490         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
18491         REPLACE_VPRINTF_POSIX.
18492         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
18493         SIGPIPE issue.
18494         * doc/posix-functions/fputc.texi: Likewise.
18495         * doc/posix-functions/fputs.texi: Likewise.
18496         * doc/posix-functions/fwrite.texi: Likewise.
18497         * doc/posix-functions/printf.texi: Likewise.
18498         * doc/posix-functions/putc.texi: Likewise.
18499         * doc/posix-functions/putchar.texi: Likewise.
18500         * doc/posix-functions/puts.texi: Likewise.
18501         * doc/posix-functions/vfprintf.texi: Likewise.
18502         * doc/posix-functions/vprintf.texi: Likewise.
18503
18504         * modules/safe-write (Depends-on): Add write.
18505
18506         * modules/sigpipe-tests: New file.
18507         * tests/test-sigpipe.c: New file.
18508         * tests/test-sigpipe.sh: New file.
18509
18510         * modules/write: New file.
18511         * lib/unistd.in.h: Include <sys/types.h>.
18512         (write): New declaration.
18513         * lib/write.c: New file.
18514         * m4/write.m4: New file.
18515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18516         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
18517         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
18518         GNULIB_WRITE, REPLACE_WRITE.
18519         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
18520         and the SIGPIPE issue.
18521
18522         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
18523         (raise): New declaration.
18524         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
18525         (ext_signal): New function.
18526         (rpl_raise): New function.
18527         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
18528         GNULIB_SIGNAL_H_SIGPIPE.
18529         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
18530         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
18531
18532         * modules/sigpipe: New file.
18533         * m4/sigpipe.m4: New file.
18534
18535 2008-09-25  Derek Price  <derek@ximbiot.com>
18536             Bruno Haible  <bruno@clisp.org>
18537
18538         * gnulib-tool (func_import): Report all license incompatibilities, not
18539         just the first one.
18540
18541 2008-09-25  Bruno Haible  <bruno@clisp.org>
18542
18543         * gnulib-tool (func_import): When computing the edits, consider not
18544         only the Makefile.ams that exist but also those that will be generated.
18545
18546 2008-09-25  Simon Josefsson  <simon@josefsson.org>
18547
18548         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
18549         fixes gnulib-tool --test warning about duplicate dependency.
18550
18551 2008-09-25  Bruno Haible  <bruno@clisp.org>
18552
18553         * gnulib-tool: Don't ask the user to perform edits in the generated
18554         Makefile.ams.
18555         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
18556         apply to the Makefile.am being generated.
18557         (func_emit_tests_Makefile_am): Execute edits that apply to the
18558         Makefile.am being generated.
18559         (func_import): Setup list of Makefile.am edits before emitting the
18560         Makefile.ams, not at the end.
18561         (func_create_testdir): Update.
18562         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18563
18564 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18565
18566         * gnulib-tool (func_import): Store the --tests-base option in the
18567         comment in gnulib-cache.m4.
18568
18569 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
18570
18571         * NEWS: Document increased portability that sys_select now provides.
18572
18573         * lib/sys_select.in.h: Install select wrapper.
18574         * lib/sys_socket.in.h: Use more descriptive name when there is no
18575         select wrapper.
18576         * lib/winsock-select.c: New.
18577         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
18578         Require gl_HEADER_SYS_SOCKET.
18579         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
18580         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
18581         * tests/test-sys_select.c: Add functional tests.
18582
18583 2008-09-24  Eric Blake  <ebb9@byu.net>
18584
18585         open, fopen: close fd leak in last patch
18586         * lib/open.c (rpl_open): Close fd before returning error.
18587         * lib/fopen.c (rpl_fopen): Close fd before returning error.
18588         * doc/posix-functions/open.texi (open): Document that Irix also
18589         has the bug.
18590         * doc/posix-functions/fopen.texi (fopen): Likewise.
18591         Reported by Paolo Bonzini.
18592
18593 2008-09-24  Bruno Haible  <bruno@clisp.org>
18594
18595         Ensure that a filename ending in a slash cannot be used to access a
18596         non-directory.
18597         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
18598         to check whether it's really a directory.
18599         * lib/fopen.c: Include fcntl.h, unistd.h.
18600         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
18601         and fdopen().
18602         * modules/fopen (Depends-on): Add unistd.
18603         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
18604         * tests/test-fopen.c (main): Likewise.
18605         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
18606         * doc/posix-functions/fopen.texi: Likewise.
18607         Reported by Eric Blake.
18608
18609 2008-09-23  Eric Blake  <ebb9@byu.net>
18610
18611         c-stack: avoid compiler optimizations when provoking overflow
18612         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
18613         recursion harder to optimize, to ensure a stack overflow occurs.
18614         * tests/test-c-stack.c (recurse): Likewise.
18615         Borrowed from libsigsegv.
18616
18617         c-stack: work around Irix sigaltstack bug
18618         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
18619         whether sigaltstack uses wrong end of stack_t (copied in part from
18620         libsigsegv).
18621         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
18622         Irix bug, without requiring an over-allocation.
18623         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
18624         bug.
18625
18626         fopen: document mingw bug on directories
18627         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
18628         not allowing a stream visiting a directory, even though reading
18629         from such a stream is not portable.
18630
18631 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18632
18633         * lib/poll.c: Rewrite.
18634         * modules/poll: Depend on alloca.
18635
18636 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18637
18638         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
18639         instead define prototypes for a full set of wrappers.  Ensure
18640         that Cygwin does not use the compatibility code, which is only
18641         for MinGW.
18642         * lib/winsock.c: New.
18643         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
18644         * modules/sys_socket: Add lib/winsock.c.
18645
18646         * modules/poll-tests: Add errno and perror.
18647         * tests/test-poll.c: Use ioctl, not ioctlsocket.
18648
18649 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18650
18651         * tests/test-poll.c: Downgrade minimum needed Winsock version.
18652
18653 2008-09-23  Bruno Haible  <bruno@clisp.org>
18654
18655         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
18656         * doc/glibc-functions/*: Likewise.
18657
18658 2008-09-23  Simon Josefsson  <simon@josefsson.org>
18659
18660         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
18661         success.
18662
18663 2008-09-22  Eric Blake  <ebb9@byu.net>
18664             Bruno Haible  <bruno@clisp.org>
18665
18666         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
18667         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
18668         supply %A but mishandle pseudo-NaN.
18669         Reported by Simon Josefsson.
18670
18671 2008-09-21  Bruno Haible  <bruno@clisp.org>
18672
18673         * tests/test-lock.c (main): Tweak skip message.
18674         * tests/test-tls.c (main): Likewise.
18675
18676 2008-09-21  Bruno Haible  <bruno@clisp.org>
18677
18678         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
18679         whether 'struct sigaction' has sa_sigaction here...
18680         (gl_PREREQ_SIG_HANDLER_H): ... not here.
18681         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
18682
18683 2008-09-21  Bruno Haible  <bruno@clisp.org>
18684
18685         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
18686         section.
18687         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
18688         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
18689         the new section.
18690         (Support for obsolete systems lacking POSIX:2001): New section.
18691         (String handling <string.h>): Move strdup to the new section.
18692         Suggested by Simon Josefsson and Paolo Bonzini.
18693
18694 2008-09-21  Bruno Haible  <bruno@clisp.org>
18695
18696         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
18697         exponents in %e and %g results on 'long double'. Needed for mingw's
18698         improved *printf functions.
18699         * tests/test-vasprintf-posix.c (test_function): Likewise.
18700         * tests/test-snprintf-posix.h (test_function): Likewise.
18701         * tests/test-sprintf-posix.h (test_function): Likewise.
18702         Reported by Eric Blake.
18703
18704 2008-09-21  Bruno Haible  <bruno@clisp.org>
18705
18706         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
18707         * tests/test-sprintf-posix.h (test_function): Likewise.
18708
18709 2008-09-21  Bruno Haible  <bruno@clisp.org>
18710
18711         * modules/getpass (Depends-on): Add strdup-posix.
18712
18713         New module 'strdup-posix'.
18714         * modules/strdup-posix: New file.
18715         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
18716         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
18717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18718         REPLACE_STRDUP.
18719         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
18720         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
18721         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18722         strdup-posix.
18723
18724         * modules/strdup (Depends-on): Remove malloc-posix.
18725
18726 2008-09-20  Bruno Haible  <bruno@clisp.org>
18727
18728         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
18729         Wildenhues.
18730
18731 2008-09-20  Bruno Haible  <bruno@clisp.org>
18732
18733         Ensure that wint_t gets defined on IRIX 5.3.
18734         * lib/wchar.in.h (wint_t): Define if not defined by the system.
18735         * lib/wctype.in.h (wint_t): Likewise.
18736         (__wctype_wint_t): Remove type.
18737         (isw*): Use wint_t instead of __wctype_wint_t.
18738         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
18739         * modules/wchar (Files): Add m4/wint_t.m4.
18740         (Makefile.am): Substitute HAVE_WINT_T.
18741         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
18742         * tests/test-wctype.c: Check that wint_t is defined.
18743         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
18744         * doc/posix-headers/wctype.texi: Likewise.
18745         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18746
18747 2008-09-18  Bruno Haible  <bruno@clisp.org>
18748
18749         * gnulib-tool (func_exit): Update comment.
18750
18751 2008-09-18  Simon Josefsson  <simon@josefsson.org>
18752
18753         * modules/getaddrinfo (Depends-on): Remove strdup, this module
18754         assumes strdup exists and does not depend on strdup to return
18755         ENOMEM on out of memory conditions.
18756
18757 2008-09-18  Bruno Haible  <bruno@clisp.org>
18758
18759         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
18760         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
18761         digits for the exponent.
18762
18763 2008-09-18  Jim Meyering  <meyering@redhat.com>
18764             Bruno Haible  <bruno@clisp.org>
18765
18766         * lib/vasnprintf.c (decimal_point_char): Define also if
18767         NEED_PRINTF_INFINITE_LONG_DOUBLE.
18768
18769 2008-09-16  Bruno Haible  <bruno@clisp.org>
18770         and Eric Blake  <ebb9@byu.net>
18771
18772         vasnprintf: support Irix 5.3
18773         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
18774         that mishandle long double infinity.
18775         Reported by Tom G. Christensen.
18776
18777 2008-09-16  Bruno Haible  <bruno@clisp.org>
18778
18779         * doc/glibc-functions/scandir.texi: Mention the function is missing on
18780         Solaris 9.
18781         * doc/glibc-functions/alphasort.texi: Likewise.
18782         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
18783
18784 2008-09-16  Jim Meyering  <meyering@redhat.com>
18785
18786         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
18787         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
18788         a umask modification leak out of a subshell.  Otherwise, the
18789         opensolaris /bin/sh would be accepted and thus cause unwarranted
18790         failures in the coreutils test suite.
18791
18792 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
18793
18794         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
18795         to succeed.
18796
18797 2008-09-16  Jim Meyering  <meyering@redhat.com>
18798
18799         avoid spurious test failure when library is built without ACL support
18800         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
18801         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
18802         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
18803         * tests/test-copy-acl.sh: Likewise.
18804
18805 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18806
18807         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
18808         based on character occurrence counts.
18809
18810 2008-09-15  Eric Blake  <ebb9@byu.net>
18811
18812         tests: avoid some compiler warnings
18813         * tests/test-memchr.c (main): Pass NULL indirectly.
18814         * tests/test-closein.c (main): Avoid unused variable.
18815
18816 2008-09-15  Bruno Haible  <bruno@clisp.org>
18817
18818         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
18819         are missing on OpenBSD 4.0 individually.
18820         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18821
18822 2008-09-15  Bruno Haible  <bruno@clisp.org>
18823
18824         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
18825         * doc/posix-functions/strerror.texi: Mention also Cygwin.
18826         * doc/posix-functions/perror.texi: Likewise.
18827         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
18828         is missing.
18829         Reported by Eric Blake.
18830
18831         * lib/errno.in.h: Use replacement values >= 2000.
18832         Reported by Eric Blake.
18833
18834 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18835
18836         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
18837         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
18838         limit.
18839         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
18840         compareseq was aborted.
18841
18842 2008-09-14  Bruno Haible  <bruno@clisp.org>
18843
18844         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
18845         yvec_edit_count.
18846         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
18847         (fstrcmp_bounded): Simplify result computation accordingly.
18848
18849 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18850
18851         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
18852         (fstrcmp): Define in terms of fstrcmp_bounded.
18853         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
18854         lower_bound argument.
18855         Return quickly if the result is certainly < lower_bound.
18856         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
18857
18858 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18859
18860         * lib/diffseq.h (EARLY_ABORT): New macro.
18861         (compareseq): Change return type to bool. Return true when EARLY_ABORT
18862         evaluates to true.
18863
18864 2008-09-14  Bruno Haible  <bruno@clisp.org>
18865
18866         * modules/perror-tests: New file.
18867         * tests/test-perror.sh: New file.
18868         * tests/test-perror.c: New file.
18869
18870         New module 'perror'.
18871         * lib/stdio.in.h (perror): New declaration.
18872         * lib/perror.c: New file.
18873         * m4/perror.m4: New file.
18874         * modules/perror: New file.
18875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
18876         * doc/posix-functions/perror.texi: Mention the perror module.
18877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
18878         REPLACE_PERROR.
18879         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
18880         REPLACE_PERROR.
18881
18882 2008-09-14  Bruno Haible  <bruno@clisp.org>
18883
18884         * modules/stdio (Makefile.am): Reorder to match the order in
18885         lib/stdio.in.h.
18886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18887
18888 2008-09-13  Bruno Haible  <bruno@clisp.org>
18889
18890         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
18891
18892 2008-09-13  Bruno Haible  <bruno@clisp.org>
18893
18894         Extend strerror to cover the added errno values.
18895         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
18896         (rpl_strerror): Provide error messages for the added errno values and
18897         for the WSA* values.
18898         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
18899         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
18900         strerror.
18901         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
18902         * modules/strerror (Depends-on): Add errno.
18903         * doc/posix-functions/strerror.texi: Document the change.
18904         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
18905         and EOVERFLOW.
18906
18907 2008-09-13  Bruno Haible  <bruno@clisp.org>
18908
18909         * modules/EOVERFLOW: Remove file.
18910         * m4/eoverflow.m4: Remove file.
18911         * modules/EOVERFLOW-tests: Remove file.
18912         * tests/test-EOVERFLOW.c: Remove file.
18913         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
18914         * modules/ftell (Depends-on): Likewise.
18915         * modules/getdelim (Depends-on): Likewise.
18916         * modules/getugroups (Depends-on): Likewise.
18917         * modules/poll (Depends-on): Likewise.
18918         * modules/snprintf (Depends-on): Likewise.
18919         * modules/sprintf-posix (Depends-on): Likewise.
18920         * modules/vasnprintf (Depends-on): Likewise.
18921         * modules/vasprintf (Depends-on): Likewise.
18922         * modules/vfprintf-posix (Depends-on): Likewise.
18923         * modules/vsnprintf (Depends-on): Likewise.
18924         * modules/vsprintf-posix (Depends-on): Likewise.
18925         * modules/xvasprintf (Depends-on): Likewise.
18926         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18927         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
18928         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
18929         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
18930         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18931         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
18932         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
18933         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
18934         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18935         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
18936         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
18937         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
18938         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18939         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
18940         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
18941         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
18942         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18943         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
18944         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
18945         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
18946         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18947         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
18948         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
18949         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
18950         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
18951         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18952         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
18953         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
18954         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
18955         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
18956         * MODULES.html.sh: Remove EOVERFLOW.
18957         * NEWS: Mention the change.
18958
18959 2008-09-13  Bruno Haible  <bruno@clisp.org>
18960
18961         * modules/errno-tests: New file.
18962         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
18963
18964         * lib/errno.in.h: New file.
18965         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
18966         * modules/errno: New file.
18967         * doc/posix-headers/errno.texi: Update documentation.
18968         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
18969
18970 2008-09-13  Bruno Haible  <bruno@clisp.org>
18971
18972         * tests/test-poll.c: Use #if for native Windows, rather than testing
18973         __MSVCRT__.
18974
18975 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18976             Bruno Haible  <bruno@clisp.org>
18977
18978         * lib/glob.c: Don't include <pwd.h> on native Windows.
18979         (WINDOWS32): New macro.
18980         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
18981
18982 2008-09-13  Bruno Haible  <bruno@clisp.org>
18983
18984         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
18985         (ETIMEDOUT): Remove macro.
18986         (glthread_cond_timedwait_multithreaded): New declaration.
18987         (glthread_cond_timedwait): Use it.
18988         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
18989         (glthread_cond_timedwait_multithreaded): New function.
18990
18991 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18992
18993         * modules/poll-tests: Do not check for io.h.
18994         * tests/test-poll.c: Check for __MSVCRT__ instead.
18995
18996 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18997
18998         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
18999         * modules/poll-tests: Add inet_pton, stdbool, sockets.
19000         * tests/test-poll.c: Use them.  Use _pipe on Windows.
19001
19002 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
19003
19004         * modules/poll-tests: New.
19005         * tests/test-poll.c: New.
19006
19007 2008-09-12  Eric Blake  <ebb9@byu.net>
19008
19009         frexp: test for NetBSD failure on -0.0
19010         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
19011         not all, bugs from NetBSD 3.0 have been fixed.
19012         * doc/posix-functions/frexp.texi (frexp): Document bug.
19013         Reported by Thomas Klausner.
19014
19015         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
19016         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
19017         literal -0.0.
19018         Reported by Jonathan C. Patschke <jp@centtech.com>.
19019
19020 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19021
19022         * lib/glthread/cond.h: Use dummy implementation also if
19023         USE_WIN32_THREADS.
19024
19025 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19026
19027         * modules/fnmatch-posix (License): Change to LGPLv2+.
19028         * modules/fnmatch-gnu (License): Likewise.
19029
19030 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19031
19032         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
19033
19034 2008-09-11  Jim Meyering  <meyering@redhat.com>
19035
19036         * users.txt: Add gtk-vnc.
19037
19038 2008-09-08  Simon Josefsson  <simon@josefsson.org>
19039
19040         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
19041         rotate amounts.
19042
19043         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
19044         required for 16-bit and 8-bit rotates.
19045         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
19046         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
19047         UINT8_MAX instead of hard-coded constants.
19048         Suggested by Paul Eggert.
19049
19050 2008-09-07  Bruno Haible  <bruno@clisp.org>
19051
19052         * tests/test-striconveh.c (main): Check behaviour when converting from
19053         UTF-7.
19054
19055         Make striconveh work better with stateful encodings.
19056         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
19057         that iconv does not increment the inptr when returning -1/EINVAL.
19058
19059 2008-09-07  Bruno Haible  <bruno@clisp.org>
19060
19061         * build-aux/config.rpath: Update according to libtool-2.2.6.
19062         * build-aux/config.libpath: Likewise.
19063
19064 2008-09-06  Bruno Haible  <bruno@clisp.org>
19065
19066         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
19067         * lib/freadptr.c (freadptr): Likewise.
19068         * lib/freadseek.c (freadptrinc): Likewise.
19069         Reported by Simon Josefsson.
19070
19071 2008-09-06  Bruno Haible  <bruno@clisp.org>
19072
19073         * modules/freadptr (License): Change to LGPLv2+.
19074         * modules/freadseek (License): Likewise.
19075         Suggested by Eric Blake.
19076
19077         * modules/memchr2 (License): Change to LGPLv2+.
19078         Approved by Eric Blake.
19079
19080 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19081             Bruno Haible  <bruno@clisp.org>
19082
19083         Make gnulib-tool work with native 'sed' on AIX.
19084         * gnulib-tool (sed_noop): New variable.
19085         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
19086         func_add_or_update, func_create_testdir): Use it to initialize sed
19087         script variables.
19088         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19089
19090 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
19091             Bruno Haible  <bruno@clisp.org>
19092
19093         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
19094         also works after #include directives.
19095
19096 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
19097
19098         getdate.y: reject an out-of-range timezone value
19099         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
19100         the range [-24...+24].  When specified with only one or two digits,
19101         * tests/test-getdate.c: Tests for the fix.
19102         * doc/getdate.texi: Document this change.
19103
19104 2008-09-03  Bruno Haible  <bruno@clisp.org>
19105
19106         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
19107
19108 2008-09-02  Simon Josefsson  <simon@josefsson.org>
19109
19110         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
19111         <bruce.korb@gmail.com> with ideas from Ben Pfaff
19112         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
19113         Blake <ebb9@byu.net>.
19114
19115         * tests/test-bitrotate.c: Add more test vectors.
19116
19117 2008-09-02  Eric Blake  <ebb9@byu.net>
19118
19119         vasnprintf-posix: handle large precision via %.*d
19120         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
19121         when handling it ourselves.
19122         * tests/test-vasnprintf-posix.c (test_function): Add test.
19123         * tests/test-snprintf-posix.h (test_function): Likewise.
19124         * tests/test-sprintf-posix.h (test_function): Likewise.
19125         * tests/test-vasprintf-posix.c (test_function): Likewise.
19126         Reported by Alain Guibert.
19127
19128 2008-09-01  Eric Blake  <ebb9@byu.net>
19129
19130         c-stack: make configure-time check more robust
19131         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
19132         successful sigaction call.
19133         Reported by Tom G. Christensen.
19134
19135 2008-09-01  Bruno Haible  <bruno@clisp.org>
19136
19137         New module 'findprog-lgpl'.
19138         * modules/findprog-lgpl: New file.
19139         * lib/findprog-lgpl.c: New file.
19140         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
19141         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
19142         to decide whether to use strdup or xstrdup, concatenated_filename or
19143         xconcatenated_filename.
19144
19145 2008-09-01  Bruno Haible  <bruno@clisp.org>
19146
19147         Split module 'concat-filename' into 'concat-filename' (LGPL) and
19148         'xconcat-filename' (GPL).
19149         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
19150         (License): Change to LGPLv2+.
19151         * modules/xconcat-filename: New file.
19152         * lib/concat-filename.h (concatenated_filename): Change specification.
19153         (xconcatenated_filename): New declaration.
19154         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
19155         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
19156         memory situations.
19157         * lib/xconcat-filename.c: New file.
19158         * NEWS: Mention the change.
19159         * lib/findprog.c: Include concat-filename.h, not filename.h.
19160         (find_in_path): Use xconcatenated_filename instead of
19161         concatenated_filename.
19162         * lib/javacomp.c: Include concat-filename.h, not filename.h.
19163         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
19164         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
19165         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
19166         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
19167         instead of concatenated_filename.
19168         * lib/javaexec.c: Include concat-filename.h, not filename.h.
19169         (execute_java_class): Use xconcatenated_filename instead of
19170         concatenated_filename.
19171         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
19172         * modules/javacomp (Depends-on): Likewise.
19173         * modules/javaexec (Depends-on): Likewise.
19174
19175 2008-09-01  Bruno Haible  <bruno@clisp.org>
19176
19177         Split module 'filename' into 'filename' and 'concat-filename'.
19178         * modules/filename: Keep only lib/filename.h.
19179         (License): Change to LGPLv2+.
19180         * modules/concat-filename: New file, extracted from modules/filename.
19181         * lib/filename.h (concatenated_filename): Remove declaration.
19182         * lib/concat-filename.h: New file, extracted from lib/filename.h.
19183         * lib/concat-filename.c: Include concat-filename.h.
19184         * NEWS: Mention the change.
19185
19186 2008-09-01  Simon Josefsson  <simon@josefsson.org>
19187
19188         * lib/bitrotate.h (rotl8, rotr8): Add.
19189
19190         * modules/bitrotate (configure.ac): Need
19191         AC_REQUIRE([AC_C_INLINE]).
19192         (Description): Mention stdint.h.  Reported by Bruno Haible
19193         <bruno@clisp.org>.
19194
19195         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
19196         Paolo Bonzini <bonzini@gnu.org>.
19197
19198 2008-08-31  Bruno Haible  <bruno@clisp.org>
19199
19200         Assume Solaris specific bi-arch conventions on Solaris systems.
19201         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
19202         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
19203         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
19204         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
19205         like acl_libdirstem.
19206         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
19207         acl_libdirstem.
19208         * NEWS: Mention the change.
19209         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
19210
19211 2008-08-31  Jim Meyering  <meyering@redhat.com>
19212
19213         * lib/strftime.h: Add comments describing the two added arguments.
19214
19215         remove duplicate #include directives
19216         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
19217         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
19218
19219 2008-08-31  Bruno Haible  <bruno@clisp.org>
19220
19221         New module 'sigpipe-die'.
19222         * modules/sigpipe-die: New file.
19223         * lib/sigpipe-die.h: New file.
19224         * lib/sigpipe-die.c: New file.
19225         * MODULES.html.sh (Signal handling): Add sigpipe-die.
19226
19227 2008-08-31  Bruno Haible  <bruno@clisp.org>
19228
19229         Don't override previously installed signal handlers.
19230         * lib/fatal-signal.c (saved_sigactions): New variable.
19231         (uninstall_handlers): Reset the signal to the saved handler, not
19232         to SIG_DFL (except when ignored).
19233         (install_handlers): Save the previous handlers.
19234
19235 2008-08-30  Bruno Haible  <bruno@clisp.org>
19236
19237         * gnulib-tool (func_reset_sigpipe): New function.
19238         (func_get_automake_snippet, func_modules_transitive_closure,
19239         func_import): Invoke it before a join command that reads from stdin,
19240         to avoid "echo: write error: Broken pipe" error messages on stderr.
19241         Reported by Sam Steingold <sds@gnu.org>.
19242
19243 2008-08-30  Bruno Haible  <bruno@clisp.org>
19244
19245         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
19246         Code copied from m4/open.m4.
19247         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
19248         access and the filename ends in a slash. Code copied from lib/open.c.
19249         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
19250         * tests/test-fopen.c (main): Check against bug with trailing slash.
19251
19252 2008-08-29  Bruno Haible  <bruno@clisp.org>
19253
19254         Avoid some "gcc -pedantic" warnings.
19255         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
19256         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
19257         * lib/dirent.in.h: Likewise.
19258         * lib/fcntl.in.h: Likewise.
19259         * lib/float.in.h: Likewise.
19260         * lib/iconv.in.h: Likewise.
19261         * lib/inttypes.in.h: Likewise.
19262         * lib/locale.in.h: Likewise.
19263         * lib/math.in.h: Likewise.
19264         * lib/netinet_in.in.h: Likewise.
19265         * lib/search.in.h: Likewise.
19266         * lib/signal.in.h: Likewise.
19267         * lib/stdarg.in.h: Likewise.
19268         * lib/stdint.in.h: Likewise.
19269         * lib/stdio.in.h: Likewise.
19270         * lib/stdlib.in.h: Likewise.
19271         * lib/string.in.h: Likewise.
19272         * lib/strings.in.h: Likewise.
19273         * lib/sys_select.in.h: Likewise.
19274         * lib/sys_socket.in.h: Likewise.
19275         * lib/sys_stat.in.h: Likewise.
19276         * lib/sys_time.in.h: Likewise.
19277         * lib/sysexits.in.h: Likewise.
19278         * lib/time.in.h: Likewise.
19279         * lib/unistd.in.h: Likewise.
19280         * lib/wchar.in.h: Likewise.
19281         * lib/wctype.in.h: Likewise.
19282         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
19283         * modules/fchdir (Makefile.am): Likewise.
19284         * modules/fcntl (Makefile.am): Likewise.
19285         * modules/float (Makefile.am): Likewise.
19286         * modules/iconv_open (Makefile.am): Likewise.
19287         * modules/inttypes (Makefile.am): Likewise.
19288         * modules/locale (Makefile.am): Likewise.
19289         * modules/math (Makefile.am): Likewise.
19290         * modules/netinet_in (Makefile.am): Likewise.
19291         * modules/search (Makefile.am): Likewise.
19292         * modules/signal (Makefile.am): Likewise.
19293         * modules/stdarg (Makefile.am): Likewise.
19294         * modules/stdint (Makefile.am): Likewise.
19295         * modules/stdio (Makefile.am): Likewise.
19296         * modules/stdlib (Makefile.am): Likewise.
19297         * modules/string (Makefile.am): Likewise.
19298         * modules/strings (Makefile.am): Likewise.
19299         * modules/sys_select (Makefile.am): Likewise.
19300         * modules/sys_socket (Makefile.am): Likewise.
19301         * modules/sys_stat (Makefile.am): Likewise.
19302         * modules/sys_time (Makefile.am): Likewise.
19303         * modules/sysexits (Makefile.am): Likewise.
19304         * modules/time (Makefile.am): Likewise.
19305         * modules/unistd (Makefile.am): Likewise.
19306         * modules/wchar (Makefile.am): Likewise.
19307         * modules/wctype (Makefile.am): Likewise.
19308         Reported by Reuben Thomas <rrt@sc3d.org>.
19309
19310 2008-08-29  Bruno Haible  <bruno@clisp.org>
19311
19312         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
19313         any more.
19314
19315 2008-08-29  Simon Josefsson  <simon@josefsson.org>
19316
19317         * MODULES.html.sh (Misc): Add bitrotate.
19318
19319         * modules/bitrotate: New file.
19320
19321         * lib/bitrotate.h: New file.
19322
19323         * modules/bitrotate-tests: New file.
19324
19325         * tests/test-bitrotate.c: New file.
19326
19327         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
19328         on the bitrotate module.
19329
19330         * lib/arctwo.c: Use new bitrotate module.
19331
19332 2008-08-29  Jim Meyering  <meyering@redhat.com>
19333
19334         bootstrap: merge changes from coreutils
19335         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
19336         of copied files.  Remove a kludge, now that this is fixed.
19337         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
19338         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
19339         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
19340
19341 2008-08-29  Bruno Haible  <bruno@clisp.org>
19342
19343         * MODULES.html.sh: Remove --cvs-urls option.
19344
19345 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
19346
19347         maint.mk: adjust to file name change
19348         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
19349
19350 2008-08-28  Jim Meyering  <meyering@redhat.com>
19351
19352         * modules/getndelim2 (License): Relicense to LGPLv2+.
19353         Approved by Richard Stallman for the version of 1995, and by
19354         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
19355
19356 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
19357
19358         * lib/getdelim.c (flockfile, funlockfile): Make all of them
19359         dummy if one is not available.  Do not touch them if
19360         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
19361         (getc_maybe_unlocked): New.
19362         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
19363
19364 2008-08-26  Eric Blake  <ebb9@byu.net>
19365
19366         doc/INSTALL: resync from autoconf
19367         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
19368         (INSTALL_PRELUDE): Delete; this is done more efficiently by
19369         moving...
19370         * install.texi [!autoconf]: ...here.  Resync from autoconf.
19371         * INSTALL: Regenerate.
19372         * INSTALL.ISO: New file.
19373         * INSTALL.UTF-8: Likewise.
19374
19375 2008-08-26  Jim Meyering  <meyering@redhat.com>
19376
19377         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
19378         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
19379         these definitions conditional, so that they may be overridden, too.
19380
19381 2008-08-26  Bruno Haible  <bruno@clisp.org>
19382
19383         Generate INSTALL file variants with prettier quotes.
19384         * doc/Makefile (INSTALL_PRELUDE): New macro.
19385         (INSTALL): Use it.
19386         (INSTALL.ISO, INSTALL.UTF-8): New rules.
19387
19388 2008-08-26  Bruno Haible  <bruno@clisp.org>
19389
19390         Run makeinfo in an English locale.
19391         * doc/Makefile (MAKEINFO): New variable.
19392
19393 2008-08-26  Bruno Haible  <bruno@clisp.org>
19394
19395         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
19396         Suggested by Eric Blake.
19397
19398 2008-08-25  Bruno Haible  <bruno@clisp.org>
19399
19400         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
19401
19402 2008-08-25  Eric Blake  <ebb9@byu.net>
19403
19404         c-stack: test that stack overflow can be caught
19405         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
19406         that platform allows handling stack overflow; at least OS/2 EMX
19407         has sigaltstack, but crashes before transferring control to
19408         handler on stack overflow.
19409         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
19410         check for HAVE_STACK_OVERFLOW_HANDLING.
19411         Reported by Elbert Pol.
19412
19413 2008-08-25  Bruno Haible  <bruno@clisp.org>
19414
19415         * doc/posix-functions/strftime.texi: Fix description of strftime
19416         module.
19417
19418 2008-08-24  Bruno Haible  <bruno@clisp.org>
19419
19420         * tests/uniwidth/test-uc_width2.c: New file.
19421         * tests/uniwidth/test-uc_width2.sh: New file.
19422         * modules/uniwidth/width-tests (Files): Add the new files.
19423         (TESTS): Add uniwidth/test-uc_width2.sh.
19424         (TESTS_ENVIRONMENT): New variable.
19425         (check_PROGRAMS): Add test-uc_width2.
19426         (test_uc_width2_SOURCES): New variable.
19427
19428         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
19429         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
19430         not 0x00AB.
19431         Reported by Alexander V. Lukyanov <lav@netis.ru>.
19432
19433 2008-08-22  Eric Blake  <ebb9@byu.net>
19434
19435         test-lock, test-tls: mention why a test is skipped
19436         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
19437         skipped.
19438         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
19439
19440         count-one-bits: relax license
19441         * modules/count-one-bits (License): Relicense to LGPLv2+.
19442         Suggested by Ludovic Courtès, approved by Ben Pfaff.
19443
19444 2008-08-22  Andreas Schwab  <schwab@suse.de>
19445
19446         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19447         Remove spurious space in assignment.
19448
19449 2008-08-21  Simon Josefsson  <simon@josefsson.org>
19450
19451         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
19452         Paul Eggert <eggert@CS.UCLA.EDU>.
19453
19454 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
19455
19456         * modules/gettext: Add m4/threadlib.m4.
19457
19458 2008-08-19  Eric Blake  <ebb9@byu.net>
19459
19460         test-c-stack: fix compilation failure on FreeBSD 5.0
19461         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
19462         headers before <sys/resource.h>.
19463         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
19464         the bug.
19465         Reported by Nelson H. F. Beebe.
19466
19467         strverscmp: migrate from "strverscmp.h" to <string.h>
19468         * modules/string (Makefile.am): Add new hooks.
19469         * modules/strverscmp (Files): Remove strverscmp.h.
19470         (Depends-on): Add string.
19471         (configure.ac): Add indicator.
19472         (Include): Mention new header.
19473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
19474         defaults.
19475         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
19476         results.
19477         * lib/strverscmp.h: Delete.
19478         * lib/string.in.h (strverscmp): Provide declaration, when needed.
19479         * tests/test-strverscmp.c (includes): Adjust client.
19480         * lib/check-version.c (includes): Likewise.
19481         * NEWS: Document the change.
19482
19483         strverscmp: add unit test
19484         * modules/strverscmp-tests: New file.
19485         * tests/test-strverscmp.c: Likewise.
19486
19487 2008-08-19  Simon Josefsson  <simon@josefsson.org>
19488
19489         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
19490         regarding Windows crypto stuff, from Mono.
19491
19492 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
19493
19494         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
19495         if present, for intel RND.  Return error on failures.
19496
19497 2008-08-18  Ben Pfaff  <blp@gnu.org>
19498
19499         gitlog-to-changelog: give better diagnostic for failed pipe-open
19500         * build-aux/gitlog-to-changelog: Improve error message: suggest
19501         that the version of Git may be too old.
19502
19503 2008-08-18  Simon Josefsson  <simon@josefsson.org>
19504
19505         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
19506         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
19507
19508 2008-08-18  Bruno Haible  <bruno@clisp.org>
19509
19510         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
19511         pthread_in_use().
19512
19513 2008-08-18  Bruno Haible  <bruno@clisp.org>
19514
19515         * lib/glthread/threadlib.c: Include <pthread.h>.
19516
19517 2008-08-18  Bruno Haible  <bruno@clisp.org>
19518
19519         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
19520         glthread_recursive_lock_* macros.
19521         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
19522         Fix syntax error.
19523
19524 2008-08-18  Bruno Haible  <bruno@clisp.org>
19525
19526         * lib/glthread/thread.c: Avoid forcing a context switch right after
19527         thread creation.
19528
19529 2008-08-17  Bruno Haible  <bruno@clisp.org>
19530
19531         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
19532         * lib/glthread/thread.h: Provide Win32 specific implementation.
19533         * modules/thread (Files): Add lib/glthread/thread.c.
19534         (Depends-on): Add lock.
19535         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
19536
19537 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19538
19539         New module 'yield'.
19540         * modules/yield: New file.
19541         * lib/glthread/yield.h: New file.
19542         * m4/yield.m4: New file.
19543         * MODULES.html.sh (Multithreading): Add yield.
19544
19545 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19546
19547         New module 'thread'.
19548         * modules/thread: New file.
19549         * lib/glthread/thread.h: New file.
19550         * m4/thread.m4: New file.
19551         * MODULES.html.sh (Multithreading): Add thread.
19552
19553 2008-08-17  Bruno Haible  <bruno@clisp.org>
19554
19555         * lib/glthread/lock.h: Include <stdlib.h> always.
19556         * lib/glthread/tls.h: Likewise.
19557         * lib/glthread/cond.h: Likewise.
19558
19559 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19560
19561         New module 'cond'.
19562         * modules/cond: New file.
19563         * lib/glthread/cond.h: New file.
19564         * lib/glthread/cond.c: New file.
19565         * m4/cond.m4: New file.
19566         * MODULES.html.sh (Multithreading): Add cond.
19567
19568 2008-08-16  Eric Blake  <ebb9@byu.net>
19569
19570         c-stack: fix regression on Irix 5.3 from 2008-06-21
19571         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
19572         sa_sigaction...
19573         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
19574         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
19575         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
19576         * modules/signal (Makefile.am): Use the value.
19577         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
19578         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
19579         * doc/posix-headers/signal.texi (signal.h): Document this
19580         portability issue.
19581         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
19582         Reported by Tom G. Christensen.
19583
19584 2008-08-17  Bruno Haible  <bruno@clisp.org>
19585
19586         New module 'threadlib'.
19587         * modules/threadlib: New file.
19588         * lib/glthread/threadlib.c: New file, extracted from
19589         lib/glthread/lock.c.
19590         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
19591         functions.
19592         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
19593         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
19594         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
19595         macros.
19596         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
19597         (gl_DISABLE_THREADS): Remove macro.
19598         * modules/lock (Files): Remove build-aux/config.rpath.
19599         (Depends-on): Remove havelib. Add threadlib.
19600         (configure.ac-early): Remove section.
19601         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
19602         * modules/tls (Depends-on): Remove lock. Add threadlib.
19603         (Link): New section, copied from threadlib.
19604         * MODULES.html.sh (Multithreading): Add threadlib.
19605
19606 2008-08-14  Bruno Haible  <bruno@clisp.org>
19607
19608         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
19609         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
19610         glthread_rwlock_unlock, glthread_rwlock_destroy,
19611         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
19612         glthread_recursive_lock_destroy): Define as macros always.
19613         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
19614         glthread_lock_lock.
19615         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
19616         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
19617         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
19618         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
19619         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
19620         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
19621         (glthread_recursive_lock_lock_func): Renamed from
19622         glthread_recursive_lock_lock.
19623         (glthread_recursive_lock_unlock_func): Renamed from
19624         glthread_recursive_lock_unlock.
19625         (glthread_recursive_lock_destroy_func): Renamed from
19626         glthread_recursive_lock_destroy.
19627
19628 2008-08-14  Bruno Haible  <bruno@clisp.org>
19629
19630         * lib/glthread/lock.h: Renamed from lib/lock.h.
19631         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
19632         * lib/glthread/tls.h: Renamed from lib/tls.h.
19633         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
19634         * lib/fstrcmp.c: Update includes.
19635         * lib/strsignal.c: Update includes.
19636         * modules/lock (Files, Makefile.am): Update.
19637         (Include): Change to "glthread/lock.h".
19638         * modules/tls (Files, Makefile.am): Update.
19639         (Include): Change to "glthread/tls.h".
19640         * tests/test-lock.c: Update includes.
19641         * tests/test-tls.c: Update includes.
19642         * NEWS: Mention the renamed header files.
19643
19644 2008-08-11  Jim Meyering  <meyering@redhat.com>
19645
19646         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
19647
19648 2008-08-11  Eric Blake  <ebb9@byu.net>
19649
19650         test-c-stack: avoid C99-ism
19651         * tests/test-c-stack.c (main): Fix whitespace, move declaration
19652         before statement.
19653         Reported by Alain Guibert.
19654
19655 2008-08-10  Jim Meyering  <meyering@redhat.com>
19656
19657         ensure that return value of uinttostr et al are not ignored
19658         * lib/inttostr.h (__GNUC_PREREQ): Define.
19659         (__attribute_warn_unused_result__): Define.
19660         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
19661
19662 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
19663
19664         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
19665         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
19666
19667 2008-08-07  Jim Meyering  <meyering@redhat.com>
19668
19669         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
19670
19671         * modules/mkstemp (License): Relicense under LGPLv2+.
19672         * modules/tempname (License): Likewise.
19673
19674 2008-08-06  Bruno Haible  <bruno@clisp.org>
19675
19676         * lib/poll.c (poll): Further micro-optimization.
19677
19678 2008-08-06  Jim Meyering  <meyering@redhat.com>
19679
19680         inet_pton.c: use locale-independent tolower
19681         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
19682         (inet_pton6): Use c_tolower rather than tolower.
19683         * modules/inet_pton (Depends-on): Add c-ctype.
19684
19685 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
19686
19687         * lib/poll.c (poll): Avoid division when timeout is 0, cache
19688         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
19689
19690 2008-08-06  Jim Meyering  <meyering@redhat.com>
19691
19692         * modules/inet_pton (License): Relicense under LGPLv2+.
19693
19694 2008-08-03  Bruno Haible  <bruno@clisp.org>
19695
19696         Additional non-aborting API for lock and tls.
19697         * lib/lock.h: Include <errno.h>.
19698         (glthread_lock_init): New macro/function.
19699         (gl_lock_init): Define as wrapper around glthread_lock_init.
19700         (glthread_lock_lock): New macro/function.
19701         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
19702         (glthread_lock_unlock): New macro/function.
19703         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
19704         (glthread_lock_destroy): New macro/function.
19705         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
19706         (glthread_rwlock_init): New macro/function.
19707         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
19708         (glthread_rwlock_rdlock): New macro/function.
19709         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
19710         (glthread_rwlock_wrlock): New macro/function.
19711         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
19712         (glthread_rwlock_unlock): New macro/function.
19713         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
19714         (glthread_rwlock_destroy): New macro/function.
19715         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
19716         (glthread_recursive_lock_init): New macro/function.
19717         (gl_recursive_lock_init): Define as wrapper around
19718         glthread_recursive_lock_init.
19719         (glthread_recursive_lock_lock): New macro/function.
19720         (gl_recursive_lock_lock): Define as wrapper around
19721         glthread_recursive_lock_lock.
19722         (glthread_recursive_lock_unlock): New macro/function.
19723         (gl_recursive_lock_unlock): Define as wrapper around
19724         glthread_recursive_lock_unlock.
19725         (glthread_recursive_lock_destroy): New macro/function.
19726         (gl_recursive_lock_destroy): Define as wrapper around
19727         glthread_recursive_lock_destroy.
19728         (glthread_once): New macro/function.
19729         (gl_once): Define as wrapper around glthread_once.
19730         Update function declarations.
19731         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
19732         glthread_rwlock_init. Return error code.
19733         (glthread_rwlock_rdlock_multithreaded): Renamed from
19734         glthread_rwlock_rdlock. Return error code.
19735         (glthread_rwlock_wrlock_multithreaded): Renamed from
19736         glthread_rwlock_wrlock. Return error code.
19737         (glthread_rwlock_unlock_multithreaded): Renamed from
19738         glthread_rwlock_unlock. Return error code.
19739         (glthread_rwlock_destroy_multithreaded): Renamed from
19740         glthread_rwlock_destroy. Return error code.
19741         (glthread_recursive_lock_init_multithreaded): Renamed from
19742         glthread_recursive_lock_init. Return error code.
19743         (glthread_recursive_lock_lock_multithreaded): Renamed from
19744         glthread_recursive_lock_lock. Return error code.
19745         (glthread_recursive_lock_unlock_multithreaded): Renamed from
19746         glthread_recursive_lock_unlock. Return error code.
19747         (glthread_recursive_lock_destroy_multithreaded): Renamed from
19748         glthread_recursive_lock_destroy. Return error code.
19749         (glthread_once_call): Make static.
19750         (glthread_once_multithreaded): Renamed from glthread_once.
19751         * lib/tls.h: Include <errno.h>.
19752         (glthread_tls_key_init): New macro/function.
19753         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
19754         (glthread_tls_set): New macro/function.
19755         (gl_tls_set): Define as wrapper around glthread_tls_set.
19756         (glthread_tls_key_destroy): New macro/function.
19757         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
19758         Update function declarations.
19759         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
19760         glthread_tls_get.
19761         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19762
19763 2008-08-04  Eric Blake  <ebb9@byu.net>
19764
19765         gnumakefile: use space, not TAB, outside of targets
19766         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
19767
19768 2008-08-02  Jim Meyering  <meyering@redhat.com>
19769
19770         getdate.y: avoid locale-dependent date parsing failure
19771         In Turkish locales, getdate would fail to recognize keywords
19772         containing a lowercase "i".  The solution is not to rely on
19773         locale-sensitive case-conversion.
19774         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
19775         (lookup_word): Use c_toupper in place of toupper.
19776         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
19777         Reported by Vefa Bicakci <bicave@superonline.com> in
19778         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
19779         * modules/getdate (Depends-on): Add c-ctype.
19780
19781 2008-08-02  Bruno Haible  <bruno@clisp.org>
19782
19783         * gnulib-tool (func_import): When updating or creating a .gitignore
19784         file, prepend each added line with a slash, and ignore leading slashes
19785         from the existing lines.
19786         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19787
19788 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19789
19790         Portability fix for GNU make 3.79.1.
19791         * top/GNUmakefile: Avoid 'else COND', which older GNU make
19792         versions do not understand.
19793
19794 2008-08-01  Bruno Haible  <bruno@clisp.org>
19795
19796         Work around bug of HP-UX 10.20 cc with -0.0 literal.
19797         * tests/test-isnanf.h (zero): New variable.
19798         (main): Avoid literal -0.0f.
19799         * tests/test-isnand.h (zero): New variable.
19800         (main): Avoid literal -0.0.
19801         * tests/test-isnanl.h (zero): New variable.
19802         (main): Avoid literal -0.0L.
19803         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
19804         (test_float, test_double, test_long_double): Avoid literals -0.0f,
19805         -0.0, -0.0L.
19806         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
19807         (test_signbitd): Avoid literal -0.0.
19808         (test_signbitl): Avoid literal -0.0L.
19809         * tests/test-ceilf1.c (zero): New variable.
19810         (main): Avoid literal -0.0f.
19811         * tests/test-ceill.c (zero): New variable.
19812         (main): Avoid literal -0.0L.
19813         * tests/test-floorf1.c (zero): New variable.
19814         (main): Avoid literal -0.0f.
19815         * tests/test-floorl.c (zero): New variable.
19816         (main): Avoid literal -0.0L.
19817         * tests/test-roundf1.c (zero): New variable.
19818         (main): Avoid literal -0.0f.
19819         * tests/test-round1.c (zero): New variable.
19820         (main): Avoid literal -0.0.
19821         * tests/test-roundl.c (zero): New variable.
19822         (main): Avoid literal -0.0L.
19823         * tests/test-truncf1.c (zero): New variable.
19824         (main): Avoid literal -0.0f.
19825         * tests/test-trunc1.c (zero): New variable.
19826         (main): Avoid literal -0.0.
19827         * tests/test-truncl.c (zero): New variable.
19828         (main): Avoid literal -0.0L.
19829         * tests/test-frexp.c (zero): New variable.
19830         (main): Avoid literal -0.0.
19831         * tests/test-frexpl.c (zero): New variable.
19832         (main): Avoid literal -0.0L.
19833         * tests/test-ldexpl.c (zero): New variable.
19834         (main): Avoid literal -0.0L.
19835         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19836         (zerod, zerol): New variables.
19837         (test_function): Avoid literals -0.0, -0.0L.
19838         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19839         (zerod, zerol): New variables.
19840         (test_function): Avoid literals -0.0, -0.0L.
19841         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19842         (zerod, zerol): New variables.
19843         (test_function): Avoid literals -0.0, -0.0L.
19844         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19845         (zerod, zerol): New variables.
19846         (test_function): Avoid literals -0.0, -0.0L.
19847         * tests/test-strtod.c (zero): New variable.
19848         (main): Avoid literal -0.0.
19849         Reported by Jonathan C. Patschke <jp@centtech.com>.
19850
19851 2008-07-31  Jim Meyering  <meyering@redhat.com>
19852
19853         sha256.h: correct definition of SHA224_DIGEST_SIZE
19854         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
19855         Reported by Paulie Pena IV <paulie4@gmail.com>.
19856         Define as 224 / 8, rather than as a literal.
19857         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
19858         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
19859         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
19860
19861 2008-07-31  Bruno Haible  <bruno@clisp.org>
19862
19863         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
19864         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
19865         Reported by Jonathan Patschke <jp@centtech.com>.
19866
19867 2008-07-31  Bruno Haible  <bruno@clisp.org>
19868
19869         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
19870         Reported by Paolo Bonzini <bonzini@gnu.org>.
19871
19872 2008-07-30  Eric Blake  <ebb9@byu.net>
19873
19874         test-strtod: allow compilation without -lm
19875         * tests/test-strtod.c (main): Avoid link dependence on fabs.
19876         Reported by Dennis Clarke <blastwave@gmail.com>.
19877
19878 2008-07-28  Jim Meyering  <meyering@redhat.com>
19879
19880         bootstrap: work also when there are no .po files in po/
19881         * build-aux/bootstrap (update_po_files): Complete the change
19882         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
19883
19884 2008-07-27  Jim Meyering  <meyering@redhat.com>
19885
19886         * users.txt: Add zile.
19887
19888 2008-07-26  Ben Pfaff  <blp@gnu.org>
19889
19890         Add missing dependencies on new m4/exponent[fdl].m4 files.
19891         * modules/isnanf-nolibm: Add m4/exponentf.m4.
19892         * modules/isnand-nolibm: Add m4/exponentd.m4.
19893         * modules/isnanl-nolibm: Add m4/exponentl.m4.
19894         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
19895         m4/isnan[fdl].m4, because the macros actually used moved.
19896         Reported by Jim Meyering.
19897
19898 2008-07-14  Ben Pfaff  <blp@gnu.org>
19899
19900         Add isinf module.
19901         * lib/isinf.c: New file.
19902         * lib/math.in.h: Define isinf macro if we have decided to replace
19903         it.
19904         * m4/isinf.m4: New file.
19905         * m4/math_h.m4: Initialize and substitute variables for isinf
19906         module.
19907         * modules/isinf: New file.
19908         * modules/isinf-tests: New file.
19909         * modules/math: Add substitutions for new module.
19910         * tests/test-isinf.c: New file.
19911         * doc/posix-functions/isinf.texi: Mention new module.
19912         * MODULES.html.sh: Mention new module.
19913
19914 2008-07-14  Ben Pfaff  <blp@gnu.org>
19915
19916         Factor out some macros for use by additional modules.
19917         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
19918         exponentf.m4.
19919         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
19920         exponentd.m4.
19921         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
19922         file exponentl.m4.
19923         * m4/exponentf.m4: New file.
19924         * m4/exponentd.m4: New file.
19925         * m4/exponentl.m4: New file.
19926         * modules/isnanf: Use new file m4/exponentf.m4.
19927         * modules/isnand: Use new file m4/exponentd.m4.
19928         * modules/isnanl: Use new file m4/exponentl.m4.
19929
19930 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
19931
19932         mktime.c: normalize tp->tm_isdst value to -1/0/1.
19933         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
19934         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
19935         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
19936
19937         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
19938         readlink on platforms without PATH_MAX.
19939
19940 2008-07-21  Eric Blake  <ebb9@byu.net>
19941
19942         Warn, not fail, on stale version.
19943         * top/GNUmakefile (_curr-ver): Tone down previous patch.
19944
19945         Don't allow installation with stale devel version number.
19946         * top/GNUmakefile (_is-install-target): New macro.
19947         (_curr-ver): Forbid installation with stale version number.
19948
19949 2008-07-20  Bruno Haible  <bruno@clisp.org>
19950
19951         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
19952         TESTS_ENVIRONMENT.
19953         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
19954
19955 2008-07-20  Bruno Haible  <bruno@clisp.org>
19956
19957         * lib/c-stack.h (c_stack_action): Add documentation.
19958         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
19959
19960 2008-07-20  Bruno Haible  <bruno@clisp.org>
19961
19962         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
19963         * modules/readlink (License): Likewise.
19964
19965 2008-07-17  Eric Blake  <ebb9@byu.net>
19966
19967         * modules/c-stack (Link): Fix typo.
19968
19969         Make c-stack use libsigsegv, when available.
19970         * modules/c-stack (Depends-on): Add libsigsegv.
19971         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
19972         needed.
19973         * lib/c-stack.c (SIGSTKSZ): Define fallback.
19974         (segv_handler, overflow_handler, c_stack_action)
19975         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
19976         implementation when libsigsegv is available, but only when using
19977         the library is necessary.
19978         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
19979         comment, explaining why XSI check fails on Linux.
19980         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
19981         * tests/test-c-stack2.sh: Tweak skip message.
19982         * NEWS: Document new link-time requirements.
19983
19984 2008-07-16  Eric Blake  <ebb9@byu.net>
19985
19986         c-stack: Expose false positives when not using libsigsegv.
19987         * modules/c-stack-tests (Files): Expand test.
19988         * tests/test-c-stack.c (main): Add means to conditionally trigger
19989         non-overflow SIGSEGV.
19990         * tests/test-c-stack2.sh: New file.
19991
19992 2008-07-14  Bruno Haible  <bruno@clisp.org>
19993
19994         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
19995         Reported by Eric Blake.
19996
19997 2008-07-14  Sam Steingold  <sds@gnu.org>
19998             Bruno Haible  <bruno@clisp.org>
19999
20000         New module libsigsegv.
20001         * modules/libsigsegv: New file.
20002         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
20003         modifications.
20004         * MODULES.html.sh (Signal handling): New section.
20005
20006 2008-07-14  Bruno Haible  <bruno@clisp.org>
20007
20008         * modules/unictype/ctype-* (Description): Add the word "function".
20009         Improves the resulting doc in MODULES.html.
20010
20011 2008-07-12  Ben Pfaff  <blp@gnu.org>
20012
20013         Add longlong module.
20014         * modules/longlong: New file.
20015
20016 2008-07-12  Bruno Haible  <bruno@clisp.org>
20017
20018         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
20019         to empty.
20020
20021 2008-07-10  Ben Pfaff  <blp@gnu.org>
20022
20023         Add isnan module.
20024         * doc/posix-functions/isnan.texi: Mention new module.
20025         * lib/math.in.h: Define isnan macro if we have decided to replace
20026         it.
20027         * m4/isnan.m4: New file.
20028         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
20029         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
20030         also.
20031         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
20032         redundancy.
20033         * m4/math_h.m4: Initialize and substitute variables for isnan
20034         module.
20035         * modules/isnan: New file.
20036         * modules/isnan-tests: New file.
20037         * modules/math: Add substitutions for new module.
20038         * tests/test-isnan.c: New file.
20039         * MODULES.html.sh: Mention new module.
20040
20041 2008-07-10  Ben Pfaff  <blp@gnu.org>
20042
20043         Add isnanf module.
20044         * lib/isnanf.m4: New file.
20045         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
20046         (gl_HAVE_ISNANF_IN_LIBM): New macro.
20047         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
20048         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
20049         * modules/isnanf: New file.
20050         * modules/isnanf-tests: New file.
20051         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
20052         files.
20053         * tests/test-isnanf-nolibm.c: factored most of its contents into
20054         new file tests/test-isnanf.h.
20055         * tests/test-isnanf.h: New file.
20056         * tests/test-isnanf.c: New file.
20057         * MODULES.html.sh: Mention new module.
20058         * doc/glibc-functions/isnanf.texi: Mention new module.
20059
20060 2008-07-10  Ben Pfaff  <blp@gnu.org>
20061
20062         Add isnand module.
20063         * lib/isnand.h: New file.
20064         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
20065         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
20066         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
20067         functionality also.
20068         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
20069         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
20070         (gl_HAVE_ISNAND_IN_LIBM): New macro.
20071         * modules/isnand: New file.
20072         * modules/isnand-tests: New file.
20073         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
20074         files.
20075         * tests/test-isnand-nolibm.c: factored most of its contents into
20076         new file tests/test-isnand.h.
20077         * tests/test-isnand.h: New file.
20078         * tests/test-isnand.c: New file.
20079         * MODULES.html.sh: Mention new module.
20080
20081 2008-07-10  Ben Pfaff  <blp@gnu.org>
20082
20083         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
20084         * lib/isnand.h: Rename lib/isnand-nolibm.h.
20085         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
20086         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
20087         * modules/isnanf-nolibm: Update references to renamed files.
20088         * modules/isnand-nolibm: Likewise.
20089         * modules/isnanf-nolibm-tests: Likewise.
20090         * modules/isnand-nolibm-tests: Likewise.
20091         * lib/frexp.c: Likewise.
20092         * lib/isfinite.c: Likewise.
20093         * lib/signbitd.c: Likewise.
20094         * lib/signbitf.c: Likewise.
20095         * lib/vasnprintf.c: Likewise.
20096         * tests/test-ceilf1.c: Likewise.
20097         * tests/test-ceilf2.c: Likewise.
20098         * tests/test-floorf1.c: Likewise.
20099         * tests/test-floorf2.c: Likewise.
20100         * tests/test-frexp.c: Likewise.
20101         * tests/test-round1.c: Likewise.
20102         * tests/test-round2.c: Likewise.
20103         * tests/test-roundf1.c: Likewise.
20104         * tests/test-strtod.c: Likewise.
20105         * tests/test-trunc1.c: Likewise.
20106         * tests/test-trunc2.c: Likewise.
20107         * tests/test-truncf1.c: Likewise.
20108         * tests/test-truncf2.c: Likewise.
20109         * NEWS: Mention the renamed header files.
20110
20111 2008-07-11  Jim Meyering  <meyering@redhat.com>
20112
20113         vc-list-files: make the last-resort awk code more portable
20114         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
20115         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
20116         does not support it.
20117
20118 2008-07-10  Eric Blake  <ebb9@byu.net>
20119
20120         Work with tar's bootstrap.
20121         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
20122         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
20123         an m4 comment.
20124
20125 2008-07-09  Jim Meyering  <meyering@redhat.com>
20126
20127         posix-shell.m4: fix typo that made this test malfunction
20128         * m4/posix-shell.m4: Remove capitalization in variable name.
20129
20130 2008-07-08  Bruno Haible  <bruno@clisp.org>
20131
20132         * m4/onceonly.m4: Update comments.
20133         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20134
20135 2008-07-04  Jim Meyering  <meyering@redhat.com>
20136
20137         * users.txt: Add vc-dwim.
20138         (bison, coreutils): Use the gitweb URL.
20139
20140 2008-07-03  Jim Meyering  <meyering@redhat.com>
20141
20142         * users.txt: Add libffcall.  From Sam Steingold.
20143
20144 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
20145
20146         getdate.y: do not ignore TZ with relative day, month or year offset
20147         * lib/getdate.y (get_date): Move the tz-handling block to follow the
20148         relative-date-handling, since otherwise, the latter would clobber the
20149         sole output (an updated Start value) of the tz-handling block.
20150         * tests/test-getdate.c: Tests for the fix
20151
20152 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20153
20154         Recognize 'foo_LIBRARIES += libgnu.a'.
20155         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
20156         makefile snippet has already specified an installation location,
20157         also using '+='.
20158
20159 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
20160
20161         getdate.y: factor out common actions
20162         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
20163         Use them in place of open-coded actions.
20164
20165 2008-07-01  Simon Josefsson  <simon@josefsson.org>
20166
20167         Add self-test for getdate module.
20168         * modules/getdate-tests: New file.
20169         * tests/test-getdate.c: New file.
20170
20171 2008-06-29  Bruno Haible  <bruno@clisp.org>
20172
20173         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
20174         .gitignore.
20175         Reported by Sylvain Beucler <beuc@beuc.net>.
20176
20177 2008-06-29  Bruno Haible  <bruno@clisp.org>
20178
20179         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
20180         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
20181
20182 2008-06-29  Bruno Haible  <bruno@clisp.org>
20183
20184         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
20185         EXTRA_DIST.
20186         Reported by Sylvain Beucler <beuc@beuc.net>.
20187
20188 2008-06-26  Jim Meyering  <meyering@redhat.com>
20189
20190         make several modules depend on the "open" module
20191         This provides slightly increased consistency when opening-for-write
20192         the name of a non-directory spelled with a trailing slash.
20193         * modules/chdir-safer: Likewise.
20194         * modules/chown: Likewise.
20195         * modules/clean-temp: Likewise.
20196         * modules/copy-file: Likewise.
20197         * modules/fchdir: Likewise.
20198         * modules/fcntl-safer: Likewise.
20199         * modules/pipe: Likewise.
20200         * modules/utime: Likewise.
20201         Prompted by Eric Blake and Bruno Haible.
20202
20203 2008-06-24  Andreas Schwab  <schwab@suse.de>
20204
20205         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
20206         literals can be used as initializers for global variables.
20207
20208 2008-06-23  Eric Blake  <ebb9@byu.net>
20209
20210         Make gnulib-cache.m4 easier to diff.
20211         * gnulib-tool (func_import): Allow newlines when reading cached
20212         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
20213
20214 2008-06-23  Bruno Haible  <bruno@clisp.org>
20215
20216         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
20217         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
20218         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
20219         m4/signalblocking.m4.
20220         (gl_PREREQ_SIGACTION): Don't invoke it.
20221         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
20222         gl_PREREQ_SIG_HANDLER_H.
20223         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20224         Don't check for sigaction here.
20225
20226 2008-06-23  Bruno Haible  <bruno@clisp.org>
20227
20228         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
20229         (install_handlers): Don't set the SA_RESETHAND flag.
20230
20231 2008-06-23  Bruno Haible  <bruno@clisp.org>
20232
20233         * m4/sigaction.m4: Comment fixes.
20234         * lib/signal.in.h: Likewise.
20235
20236 2008-06-23  Eric Blake  <ebb9@byu.net>
20237
20238         Fix typo.
20239         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
20240
20241         Avoid SA_ namespace.
20242         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
20243         Reported by Ralf Wildenhues.
20244
20245         Avoid test failure due to SA_RESTORER.
20246         * tests/test-sigaction.c (SA_MASK): New macro.
20247         (main): Avoid failing due to extension flags being set.
20248         Reported by Jim Meyering.
20249
20250         Revert use of sig-handler.h in sigprocmask.c.
20251         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
20252         it requires the existence of struct sigaction.
20253         * lib/sigprocmask.c (handler_t): Restore typedef.
20254         (rpl_signal, old_handlers): Use local type.
20255
20256 2008-06-22  Bruno Haible  <bruno@clisp.org>
20257
20258         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
20259         conditionally.
20260         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20261
20262 2008-06-22  Bruno Haible  <bruno@clisp.org>
20263
20264         * doc/posix-functions/siginterrupt.texi: Move note.
20265
20266         * lib/signal.in.h (SA_RESTART): New macro.
20267         * lib/sigaction.c: Update comment.
20268
20269         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
20270
20271         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
20272         (gl_PREREQ_SIGPROCMASK): Invoke it.
20273         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
20274
20275         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
20276
20277         * lib/sigprocmask.c: Update a comment.
20278
20279 2008-06-21  Eric Blake  <ebb9@byu.net>
20280
20281         Use sigaction module rather than signal().
20282         * modules/c-stack (Depends-on): Add sigaction.
20283         * modules/fatal-signal (Depends-on): Likewise.
20284         * modules/nanosleep (Depends-on): Likewise.
20285         * modules/sigprocmask (Files): Add sig-handler.h.
20286         * modules/sigaction (Files): Likewise.
20287         * lib/sig-handler.h (get_handler): New file, suggested by Paul
20288         Eggert.
20289         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
20290         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
20291         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
20292         (init_fatal_signals): Likewise.
20293         * lib/nanosleep.c (rpl_nanosleep): Likewise.
20294         (siginterrupt): Delete fallback.
20295         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
20296         instead.
20297         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
20298         siginterrupt.
20299
20300         New module sigaction, for mingw.
20301         * modules/sigaction: New module...
20302         * modules/sigaction-tests: ...and its test.
20303         * m4/sigaction.m4: New file.
20304         * lib/sigaction.c: Likewise.
20305         * tests/test-sigaction.c: Likewise.
20306         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
20307         * modules/signal (Makefile.am): Likewise.
20308         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
20309         needed.
20310         * doc/posix-headers/signal.texi (signal.h): Mention provided
20311         types.
20312         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
20313         that sigaction is preferable.
20314         * doc/posix-functions/sigaction.texi (sigaction): Mention new
20315         module.
20316         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20317         sigaction.
20318
20319         Improve robustness of sigprocmask by overriding signal.
20320         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
20321         is in use.
20322         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
20323         (SIGKILL, SIGSTOP): Provide fallbacks.
20324         (rpl_signal): Implement.
20325         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
20326         signal can be called inside handlers.
20327
20328         Fix nanosleep module on mingw.
20329         * modules/nanosleep (Depends-on): Add sys_select.
20330         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
20331
20332         Fix licensing of sigprocmask.
20333         * modules/raise (License): Relicense as LGPL.
20334
20335 2008-06-21  Bruno Haible  <bruno@clisp.org>
20336
20337         * lib/propername.c (proper_name_utf8): Don't use the transliterated
20338         result if it contains question marks.
20339         Reported by Michael Geng <linux@michaelgeng.de>.
20340
20341 2008-06-19  Bruno Haible  <bruno@clisp.org>
20342
20343         Fix CVS-ism.
20344         * doc/gnulib.texi: Include updated-stamp.texi.
20345         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
20346         (updated-stamp.texi): New rule.
20347         (gnulib.info): Depend on it.
20348         * doc/.gitignore: Add updated-stamp.texi.
20349         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
20350
20351 2008-06-19  Bruno Haible  <bruno@clisp.org>
20352
20353         * doc/Makefile (gnulib.info): Update and simplify dependencies.
20354         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20355
20356 2008-06-19  Eric Blake  <ebb9@byu.net>
20357
20358         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
20359         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
20360         Reported by Stepan Kasal.
20361
20362 2008-06-18  Bruno Haible  <bruno@clisp.org>
20363
20364         * lib/fatal-signal.c (init_fatal_signals): Add comment.
20365         Reported by Eric Blake.
20366
20367 2008-06-18  Eric Blake  <ebb9@byu.net>
20368
20369         Work around cygwin 1.5.25 strsignal bug.
20370         * tests/test-strsignal.c: Allow for const char *.
20371         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
20372
20373 2008-06-18  Simon Josefsson  <simon@josefsson.org>
20374
20375         * users.txt: Update URL to article and add author/date
20376         information.
20377
20378 2008-06-17  Bruno Haible  <bruno@clisp.org>
20379
20380         New macro gl_DISABLE_THREADS.
20381         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
20382         if the user did not pass --enable-threads or --disable-threads option.
20383         (gl_DISABLE_THREADS): New macro.
20384         Reported by Eric Blake <ebb9@byu.net>.
20385
20386 2008-06-17  Bruno Haible  <bruno@clisp.org>
20387
20388         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
20389         when the macro ignores it.
20390         Based on a patch by Eric Blake <ebb9@byu.net>.
20391
20392 2008-06-17  Bruno Haible  <bruno@clisp.org>
20393
20394         * modules/tls (License): Change to LGPLv2+.
20395         Reported by Eric Blake.
20396
20397 2008-06-17  Eric Blake  <ebb9@byu.net>
20398
20399         Simplify c-stack prerequisites.
20400         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
20401         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
20402         no longer requires <ucontext.h> to exist.  Optimize setrlimit
20403         check.
20404         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
20405         <sys/resource.h>.
20406
20407         Move c-stack test into testsuite.
20408         * modules/c-stack-tests: New file.
20409         * lib/c-stack.c [DEBUG]: Move test program...
20410         * tests/test-c-stack.c: ...into this new file.  Skip rather than
20411         fail test if sigaltstack is lacking.
20412         * tests/test-c-stack.sh: New driver file.
20413
20414 2008-06-16  Eric Blake  <ebb9@byu.net>
20415
20416         Use raise module consistently.
20417         * modules/fatal-signal (Depends-on): Add raise.
20418         * modules/sigprocmask (Depends-on): Likewise.
20419         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
20420         * lib/sigprocmask.c (sigprocmask): Likewise.
20421         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20422         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
20423
20424         Fix compliance bug in sigpending.
20425         * lib/sigprocmask.c (sigpending): Return pending array via
20426         parameter, not return value.
20427
20428 2008-06-14  Eric Blake  <ebb9@byu.net>
20429
20430         Improve obstack-printf test code.
20431         * tests/test-obstack-printf.c (test_function): Fix comment, and
20432         simplify usage of obstack_* in macros.  Add a test for coverage.
20433         Reported by Bruno Haible.
20434
20435 2008-06-14  Bruno Haible  <bruno@clisp.org>
20436
20437         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
20438         array size as a constant, not as a const variable.
20439         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
20440         AC_USE_SYSTEM_EXTENSIONS.
20441         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20442         Test whether the obstack_printf function actually exists.
20443         * modules/obstack-printf (Depends-on): Add extensions.
20444         (Include): Remove obstack.h.
20445         * modules/obstack-printf-posix (Depends-on): Add extensions.
20446         (Include): Remove obstack.h.
20447
20448 2008-06-13  Eric Blake  <ebb9@byu.net>
20449
20450         Add obstack-printf and obstack-printf-posix modules.
20451         * modules/obstack-printf: New file.
20452         * modules/obstack-printf-posix: Likewise.
20453         * MODULES.html.sh (Misc): Mention them.
20454         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20455         Likewise.
20456         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20457         Likewise.
20458         * modules/stdio (Makefile.am): Accomodate new modules.
20459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20460         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
20461         Declare.
20462         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
20463         functions.
20464         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
20465         (gl_REPLACE_OBSTACK_PRINTF): New macros
20466         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
20467         * tests/test-obstack-printf.c: New file.
20468         * modules/obstack-printf-tests: Likewise.
20469         * modules/obstack-printf-posix-tests: Likewise.
20470
20471 2008-06-11  Bruno Haible  <bruno@clisp.org>
20472
20473         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
20474         * lib/open.c: Include errno.h.
20475         (open): Fail when attempting to write to a file that has a trailing
20476         slash.
20477         * tests/test-open.c (main): Test against trailing slash bug.
20478         * doc/posix-functions/open.texi: Mention the trailing slash bug.
20479
20480 2008-06-10  Bruno Haible  <bruno@clisp.org>
20481
20482         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
20483         for $? to work inside the trap command, with various /bin/sh-s.
20484         * tests/test-vc-list-files-cvs.sh: Likewise.
20485
20486 2008-06-10  Bruno Haible  <bruno@clisp.org>
20487
20488         * lib/acl-internal.h: Don't include gettext.h here.
20489         * lib/set-mode-acl.c: Include gettext.h here.
20490         * lib/copy-acl.c: Likewise.
20491
20492 2008-06-10  Bruno Haible  <bruno@clisp.org>
20493
20494         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
20495         * lib/wait-process.c (wait_subprocess): Likewise.
20496         * lib/execute.h (execute): Add termsigp argument.
20497         * lib/execute.c (execute): Likewise.
20498         * lib/csharpcomp.c (compile_csharp_using_pnet,
20499         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
20500         * lib/csharpexec.c (execute_csharp_using_pnet,
20501         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
20502         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
20503         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
20504         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
20505         is_jikes_present): Update.
20506         * lib/javaexec.c (execute_java_class): Update.
20507         * lib/javaversion.c (execute_and_read_line): Update.
20508         * NEWS: Document the changes.
20509         Reported by Eric Blake.
20510
20511 2008-06-10  Eric Blake  <ebb9@byu.net>
20512
20513         Add missing include.
20514         * tests/test-strstr.c (includes): Add <signal.h>.
20515         * tests/test-strcasestr.c (includes): Likewise.
20516         * tests/test-memmem.c (includes): Likewise.
20517
20518 2008-06-10  Bruno Haible  <bruno@clisp.org>
20519
20520         * lib/wait-process.c (wait_subprocess): Add an assertion.
20521
20522 2008-06-10  Bruno Haible  <bruno@clisp.org>
20523
20524         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
20525
20526 2008-06-10  Bruno Haible  <bruno@clisp.org>
20527
20528         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
20529         using alarm().
20530         * tests/test-strcasestr.c (main): Likewise.
20531         * tests/test-strstr.c (main): Likewise.
20532
20533 2008-06-09  Bruno Haible  <bruno@clisp.org>
20534
20535         Work around the Solaris 10 ACE ACLs ABI change.
20536         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
20537         declare if ACL_NO_TRIVIAL is present.
20538         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
20539         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
20540         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
20541         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
20542         define if ACL_NO_TRIVIAL is present.
20543         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
20544         and use the current ABI.
20545         (file_has_acl): Use same #if condition as elsewhere.
20546         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
20547         in use, and use the current ABI.
20548         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
20549         Reported by Jim Meyering.
20550
20551 2008-06-09  Eric Blake  <ebb9@byu.net>
20552
20553         Work around environments that (stupidly) ignore SIGALRM.
20554         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
20555         before using alarm().
20556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20557         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20558         Reported by Ian Beckwith <ianb@erislabs.net>.
20559
20560         Produce autobuild blurb earlier in log.
20561         * modules/autobuild (configure.ac-early): Move AB_INIT here.
20562
20563 2008-06-09  Jim Meyering  <meyering@redhat.com>
20564         and Ondřej Vašík  <ovasik@redhat.com>
20565
20566         utimens.c: correct kernel bug work-around
20567         Ondřej Vašík found that the invalid return value of 280 indicates
20568         failure, not success, and the kernel bug we're trying to work
20569         around affects not just the utimensat call, but also the fallback
20570         futimens call.
20571         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
20572         not success.
20573         [HAVE_FUTIMENS]: Use the same work-around, here.
20574
20575 2008-06-09  Jim Meyering  <meyering@redhat.com>
20576
20577         add more guards around definition of ACE_-related code
20578         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
20579         ALLOW and ACE_OWNER are also defined.
20580
20581 2008-06-08  Bruno Haible  <bruno@clisp.org>
20582
20583         * lib/acl-internal.h: Add me as co-author.
20584         * lib/file-has-acl.c: Likewise.
20585         * lib/set-mode-acl.c: Likewise.
20586         * lib/copy-acl.c: Likewise.
20587
20588 2008-06-08  Bruno Haible  <bruno@clisp.org>
20589
20590         Add support for AIX ACLs.
20591         * lib/acl-internal.h (acl_nontrivial): New declaration.
20592         * lib/file-has-acl.c (acl_nontrivial): New function.
20593         (file_has_acl): Add implementation using AIX 4 ACL API.
20594         * lib/set-mode-acl.c (qset_acl): Likewise.
20595         * lib/copy-acl.c (qcopy_acl): Likewise.
20596
20597 2008-06-08  Bruno Haible  <bruno@clisp.org>
20598
20599         Add support for HP-UX ACLs.
20600         * lib/acl-internal.h (acl_nontrivial): New declaration.
20601         * lib/file-has-acl.c (acl_nontrivial): New function.
20602         (file_has_acl): Add implementation using HP-UX 11 ACL API.
20603         * lib/set-mode-acl.c (qset_acl): Likewise.
20604         * lib/copy-acl.c (qcopy_acl): Likewise.
20605
20606 2008-06-08  Bruno Haible  <bruno@clisp.org>
20607
20608         Add support for Cygwin ACLs.
20609         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
20610         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
20611         the chmod_or_fchmod call.
20612         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
20613
20614 2008-06-08  Bruno Haible  <bruno@clisp.org>
20615
20616         Fix bug with setuid modes in Solaris 10+ code.
20617         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
20618         succeeded, when the mode contains some special bits.
20619
20620 2008-06-08  Bruno Haible  <bruno@clisp.org>
20621
20622         Add support for Solaris 7..10 ACLs.
20623         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
20624         declarations.
20625         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
20626         functions.
20627         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
20628         * lib/set-mode-acl.c (qset_acl): Likewise.
20629         * lib/copy-acl.c (qcopy_acl): Likewise.
20630
20631 2008-06-08  Bruno Haible  <bruno@clisp.org>
20632
20633         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
20634         declaration.
20635         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
20636         (acl_access_nontrivial): Remove MacOS X case.
20637         (file_has_acl): Use acl_extended_nontrivial.
20638         * lib/copy-acl.c (qcopy_acl): Likewise.
20639
20640 2008-06-08  Bruno Haible  <bruno@clisp.org>
20641
20642         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
20643
20644 2008-06-08  Jim Meyering  <meyering@redhat.com>
20645
20646         * modules/acl (Maintainer): Add Bruno Haible.
20647
20648 2008-06-07  Bruno Haible  <bruno@clisp.org>
20649
20650         Improve support for Tru64 ACLs.
20651         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
20652         ACL on OSF/1.
20653
20654 2008-06-07  Bruno Haible  <bruno@clisp.org>
20655
20656         Add support for MacOS X ACLs.
20657         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
20658         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
20659         * lib/set-mode-acl.c (qset_acl): Likewise.
20660         * lib/copy-acl.c (qcopy_acl): Likewise.
20661
20662 2008-06-07  Bruno Haible  <bruno@clisp.org>
20663
20664         Fix memory leak introduced on 2008-05-22.
20665         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
20666         use.
20667
20668 2008-06-07  Bruno Haible  <bruno@clisp.org>
20669
20670         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
20671         to construct an empty ACL.
20672
20673 2008-06-07  Bruno Haible  <bruno@clisp.org>
20674
20675         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
20676         precisely.
20677         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
20678
20679 2008-06-07  Bruno Haible  <bruno@clisp.org>
20680
20681         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
20682         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
20683
20684 2008-06-07  Bruno Haible  <bruno@clisp.org>
20685
20686         * doc/posix-functions/_setjmp.texi: Explain the use of this function
20687         regardless of POSIX.
20688         * doc/posix-functions/_longjmp.texi: Likewise.
20689         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
20690         SystemV platform in this case.
20691
20692 2008-06-06  Eric Blake  <ebb9@byu.net>
20693
20694         Document abort() bugs.
20695         * doc/posix-functions/abort.texi (abort): Mention anomalies.
20696
20697         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
20698         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
20699         sigsetjmp.
20700         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
20701         siglongjmp, but only as a macro.
20702         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
20703         is obsolete.
20704         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
20705
20706         Tweak documentation to cover cygwin argz bugs.
20707         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
20708         argz bug fix; no code change needed since no cygwin releases
20709         occurred between the last fix and the bug being tested.
20710         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
20711         module and recently fixed cygwin bugs.
20712         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
20713         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
20714         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
20715         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
20716         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
20717         Likewise.
20718         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
20719         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
20720         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
20721         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
20722         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
20723         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
20724         Likewise.
20725
20726         Avoid gcc warning on cygwin.
20727         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
20728         !ACL_NO_TRIVIAL]: Avoid unused variable.
20729
20730 2008-06-05  Eric Blake  <ebb9@byu.net>
20731
20732         Be tolerant of UNKNOWN version in gnulib-tool test dir.
20733         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
20734         git-version-gen fails to come up with a version.
20735         Reported by Simon Josefsson.
20736
20737 2008-06-05  Jim Meyering  <meyering@redhat.com>
20738             Paul Eggert  <eggert@cs.ucla.edu>
20739
20740         utimens.c: work around a probable Linux kernel bug
20741         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
20742         appears to be a kernel bug that causes utimensat to return 280
20743         instead of 0, indicating success.
20744
20745 2008-06-04  Bruno Haible  <bruno@clisp.org>
20746
20747         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
20748         2008-06-01 commit.
20749
20750 2008-06-04  Bruno Haible  <bruno@clisp.org>
20751
20752         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
20753         * lib/file-has-acl.c (acl_access_nontrivial): New function.
20754         (file_has_acl): Use it. Save errno afterwards.
20755         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
20756
20757 2008-06-03  Bruno Haible  <bruno@clisp.org>
20758
20759         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
20760         draft code. Simplify #ifs.
20761         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
20762         Put Solaris code after POSIX-draft code. Fix comments regarding
20763         Solaris 10, HP-UX. Mention Cygwin.
20764         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
20765
20766 2008-06-03  Eric Blake  <ebb9@byu.net>
20767
20768         Provide fallback for older kernels.
20769         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
20770         Provide runtime fallback if kernel lacks support.
20771         Reported by Mike Frysinger.
20772
20773 2008-06-02  Bruno Haible  <bruno@clisp.org>
20774
20775         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
20776         it exists.
20777
20778 2008-06-02  Bruno Haible  <bruno@clisp.org>
20779
20780         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
20781         * lib/copy-acl.c (qcopy_acl): Update comment.
20782
20783 2008-06-02  Bruno Haible  <bruno@clisp.org>
20784
20785         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
20786         like ACL APIs.
20787
20788 2008-06-02  Bruno Haible  <bruno@clisp.org>
20789
20790         * tests/test-file-has-acl.sh: Use different code for Cygwin.
20791         * tests/test-set-mode-acl.sh: Likewise.
20792         * tests/test-copy-acl.sh: Likewise.
20793         * tests/test-copy-file.sh: Likewise.
20794
20795 2008-06-02  Bruno Haible  <bruno@clisp.org>
20796
20797         * tests/test-file-has-acl.sh: Remove unused code.
20798
20799 2008-06-01  Bruno Haible  <bruno@clisp.org>
20800
20801         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
20802         (copy_acl): Just a wrapper around qcopy_acl that emits the error
20803         messages.
20804         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
20805
20806 2008-06-01  Bruno Haible  <bruno@clisp.org>
20807
20808         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
20809         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
20810         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
20811         APIs.
20812         * modules/acl-tests (configure.ac): Remove tests now contained in
20813         m4/acl.m4.
20814
20815 2008-06-02  Jim Meyering  <meyering@redhat.com>
20816
20817         announce-gen: use a better key-server host name
20818         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
20819         it may be more consistently reliable.  Suggested by Werner Koch
20820         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
20821
20822 2008-06-01  Bruno Haible  <bruno@clisp.org>
20823
20824         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
20825         Reported by Voroskoi Andras <voroskoi@gmail.com>.
20826
20827 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
20828
20829         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
20830
20831 2008-06-01  Bruno Haible  <bruno@clisp.org>
20832
20833         New ACL tests.
20834         * tests/test-file-has-acl.sh: New file.
20835         * tests/test-file-has-acl.c: New file.
20836         * tests/test-set-mode-acl.sh: New file.
20837         * tests/test-set-mode-acl.c: New file.
20838         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
20839         * tests/test-copy-acl.c: New file.
20840         * modules/acl-tests: New file, based on modules/copy-file-tests.
20841         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
20842         (Depends-on): Add acl-tests.
20843         (configure.ac): Remove checks.
20844         (Makefile.am): Don't create test-sameacls program here any more.
20845
20846 2008-06-01  Bruno Haible  <bruno@clisp.org>
20847
20848         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
20849         * tests/test-sameacls.c: Include progname.h.
20850         (main): Invoke set_program_name. Portability fixes for MacOS X,
20851         Solaris, HP-UX.
20852
20853 2008-06-01  Bruno Haible  <bruno@clisp.org>
20854
20855         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
20856         function.
20857         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
20858
20859 2008-06-01  Bruno Haible  <bruno@clisp.org>
20860
20861         * modules/rpmatch (Depends-on): Add strdup.
20862
20863 2008-06-01  Bruno Haible  <bruno@clisp.org>
20864
20865         * lib/pipe.c: Include unistd-safer.h.
20866         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
20867         * modules/pipe (Depends-on): Add unistd-safer.
20868
20869 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20870
20871         * modules/autobuild (configure.ac): Call AB_INIT.
20872
20873 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20874
20875         * tests/test-getaddrinfo.c: Don't print debug messages by default.
20876         Suggested by Bruno Haible <bruno@clisp.org>.
20877
20878 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20879
20880         * tests/test-base64.c: Cast size_t to unsigned long when invoking
20881         printf.  Use %lu instead of %d.  Reported by Bruno Haible
20882         <bruno@clisp.org>.
20883
20884 2008-05-29  Eric Blake  <ebb9@byu.net>
20885
20886         Prefer new POSIX 200x interfaces over futimesat.
20887         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
20888         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
20889         when available.
20890         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
20891
20892 2008-05-28  Bruno Haible  <bruno@clisp.org>
20893
20894         * modules/stpcpy (License): Change to LGPLv2+.
20895         Requested by David Lutterkort <dlutter@redhat.com>.
20896
20897 2008-05-27  Bruno Haible  <bruno@clisp.org>
20898
20899         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
20900         current mingw.
20901         Reported by Jose E. Marchesi <jemarch@gnu.org>.
20902
20903 2008-05-27  Bruno Haible  <bruno@clisp.org>
20904
20905         * modules/iconv_open (Link): New section, from module 'iconv'.
20906         * modules/striconv (Link): Likewise.
20907         * modules/striconveh (Link): Likewise.
20908         * modules/xstriconv (Link): Likewise.
20909         * modules/unicodeio (Link): Likewise.
20910         * modules/propername (Link): Likewise.
20911         Reported by Jim Meyering.
20912
20913 2008-05-26  Jim Meyering  <meyering@redhat.com>
20914
20915         sha256: do not artificially restrict buffer length to be < 2^32
20916         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
20917         uint32_t to size_t.
20918         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
20919         to match.
20920
20921         avoid unaligned access errors, e.g., on sparc
20922         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
20923         direct access through a possibly-unaligned uint64* pointer.
20924         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
20925         direct access through a possibly-unaligned uint32* pointer.
20926         Prompted by this patch from Tom "spot" Callaway:
20927         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
20928
20929         sha512.c: fix typo in comment
20930         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
20931
20932 2008-05-25  Bruno Haible  <bruno@clisp.org>
20933
20934         * lib/set-mode-acl.c: Renamed from lib/acl.c.
20935         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
20936         (Makefile.am): Update lib_SOURCES.
20937
20938 2008-05-25  Bruno Haible  <bruno@clisp.org>
20939
20940         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
20941
20942 2008-05-25  Jim Meyering  <meyering@redhat.com>
20943
20944         useless-if-before-free: freed expr may have white-space differences
20945         * build-aux/useless-if-before-free: Recognize cases in which the
20946         freed expression differs from the tested one in embedded white
20947         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
20948         $1 was used, so we can't make any regexp shy.  Improved tests now
20949         detect this.
20950
20951         useless-if-before-free: accept white space in the expression.
20952         * build-aux/useless-if-before-free: For now, any white space
20953         in the expression must be identical in the free argument.
20954
20955         useless-if-before-free: efficiency tweak
20956         * build-aux/useless-if-before-free: Make the expression-matching
20957         regexp "shy".
20958         Make the *outer* regexp shy, not the expr-matching one.
20959
20960         update code-in-comment to accept cast of free arg
20961         * build-aux/useless-if-before-free: Update regexp.
20962
20963 2008-05-25  Bruno Haible  <bruno@clisp.org>
20964
20965         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
20966         * modules/copy-file-tests (Files, Makefile.am): Update.
20967         * tests/test-copy-file.c (func_test_copy): Update.
20968
20969 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
20970
20971         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
20972
20973 2008-05-23  Bruno Haible  <bruno@clisp.org>
20974
20975         Improve support for ACLs on OSF/1.
20976         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
20977         Remove fallback for unknown flavors of ACLs.
20978
20979 2008-05-22  Bruno Haible  <bruno@clisp.org>
20980
20981         Add support for ACLs on OSF/1.
20982         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
20983         replacements.
20984         (acl_free_text): New macro fallback.
20985         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
20986         acl_free.
20987         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
20988         acl_free_text function. Require AC_C_INLINE.
20989
20990 2008-05-22  Bruno Haible  <bruno@clisp.org>
20991
20992         Make copy_acl work on MacOS X 10.5.
20993         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
20994         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
20995         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
20996         If MODE_INSIDE_ACL, don't assume that every system has the same text
20997         representation for ACLs as FreeBSD.
20998         * lib/copy-acl.c (copy_acl): Add support for platforms with
20999         !MODE_INSIDE_ACL.
21000         * lib/file-has-acl.c (file_has_acl): Likewise.
21001         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
21002         FreeBSD, MacOS X, or IRIX, respectively.
21003
21004 2008-05-22  Bruno Haible  <bruno@clisp.org>
21005
21006         * lib/acl.h: Don't include <sys/acl.h>.
21007         (GETACLCNT): Move fallback to lib/acl-internal.h.
21008         * lib/acl-internal.h: Include <sys/acl.h> here.
21009         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
21010
21011 2008-05-22  Bruno Haible  <bruno@clisp.org>
21012
21013         Split off copy_acl function to separate file.
21014         * lib/copy-acl.c: New file, extracted from lib/acl.c.
21015         * lib/acl.c (copy_acl): Moved function to separate file.
21016         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
21017         * modules/acl (Files): Add lib/copy-acl.c.
21018         (Makefiles.am): Augment lib_SOURCES.
21019
21020 2008-05-22  Bruno Haible  <bruno@clisp.org>
21021
21022         * modules/copy-file-tests: New file.
21023         * tests/test-copy-file.sh: New file.
21024         * tests/test-copy-file.c: New file.
21025         * tests/test-copy-file-sameacls.c: New file.
21026
21027 2008-05-22  Eric Blake  <ebb9@byu.net>
21028
21029         Avoid gcc warning.
21030         * tests/test-memcmp.c (main): Pass NULL indirectly.
21031
21032 2008-05-21  Bruno Haible  <bruno@clisp.org>
21033
21034         Add reference doc about ACLs.
21035         * doc/acl-resources.txt: New file.
21036         * doc/acl-cygwin.txt: New file.
21037
21038 2008-05-21  Bruno Haible  <bruno@clisp.org>
21039
21040         Avoid one more warning from gcc.
21041         * lib/vasnprintf.c (IF_LINT): Update comments.
21042         (VASNPRINTF): Use it also for the 'prefix' array initializer.
21043
21044 2008-05-21  Jim Meyering  <meyering@redhat.com>
21045
21046         avoid a warning from gcc
21047         * lib/vasnprintf.c (IF_LINT): Define.
21048         (scale10_round_decimal_long_double):
21049         Use it to avoid a "may be used uninitialized" warning.
21050         (scale10_round_decimal_double): Likewise.
21051
21052 2008-05-21  Simon Josefsson  <simon@josefsson.org>
21053
21054         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
21055         declared.
21056
21057 2008-05-20  Bruno Haible  <bruno@clisp.org>
21058
21059         * tests/test-memcmp.c (main): Test also the sign of the result. Test
21060         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
21061
21062 2008-05-20  Simon Josefsson  <simon@josefsson.org>
21063
21064         * modules/memcmp-tests: New file.
21065         * tests/test-memcmp.c: New file.
21066
21067 2008-05-19  Bruno Haible  <bruno@clisp.org>
21068
21069         * modules/propername (Notice, configure.ac): Put quoted "..." into
21070         --keyword option.
21071         * lib/propername.h: Update comments accordingly.
21072         Reported by Eric Blake.
21073
21074 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
21075
21076         * modules/getpass-gnu (Depends-on): Add fseeko.
21077
21078 2008-05-19  Simon Josefsson  <simon@josefsson.org>
21079
21080         * modules/base64-tests: New file.
21081
21082 2008-05-19  Bo Borgerson <gigabo@gmail.com>
21083
21084         * lib/base64.c (base64_decode_ctx): If a decode context structure
21085         was passed in use it to ignore newlines.  If a context structure
21086         was _not_ passed in, continue to treat newlines as garbage (this
21087         is the historical behavior).  Formerly base64_decode.
21088         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
21089         takes a decode context structure.
21090         * lib/base64.h (base64_decode): Macro for four-argument calls.
21091         (base64_decode_alloc): Likewise.
21092         * lib/base64.c (base64_decode_ctx): If a decode context structure
21093         was passed in use it to ignore newlines.  If a context structure
21094         was _not_ passed in, continue to treat newlines as garbage (this
21095         is the historical behavior).  Formerly base64_decode.
21096         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
21097         takes a decode context structure.
21098         * lib/base64.h (base64_decode): Macro for four-argument calls.
21099         (base64_decode_alloc): Likewise.
21100
21101 2008-05-19  Jim Meyering  <meyering@redhat.com>
21102
21103         avoid a warning from gcc
21104         * lib/trim.c (IF_LINT): Define.
21105         (trim2): Use it to avoid a "may be used uninitialized" warning.
21106
21107         Fix doc typo.
21108         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
21109
21110 2008-05-19  Bruno Haible  <bruno@clisp.org>
21111
21112         * doc/glibc-functions/getpass.texi: Document limits of other
21113         implementations.
21114
21115 2008-05-19  Simon Josefsson  <simon@josefsson.org>
21116             Bruno Haible <bruno@clisp.org>
21117
21118         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
21119
21120 2008-05-18  Bruno Haible  <bruno@clisp.org>
21121
21122         * modules/propername: New file, from GNU gettext.
21123         * lib/propername.h: New file, from GNU gettext.
21124         * lib/propername.c: New file, from GNU gettext.
21125         * MODULES.html.sh (Internationalization functions): Add propername.
21126
21127 2008-05-16  Jim Meyering  <meyering@redhat.com>
21128             Bruno Haible  <bruno@clisp.org>
21129
21130         Avoid some warnings from "gcc -Wshadow".
21131         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
21132
21133 2008-05-15  Eric Blake  <ebb9@byu.net>
21134
21135         Extend previous patch to cygwin 1.7.0.
21136         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
21137         fast implementation in cygwin >= 1.7.0.
21138         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21139         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21140
21141 2008-05-15  Bruno Haible  <bruno@clisp.org>
21142
21143         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
21144         implementation in glibc >= 2.9.
21145         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21146         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21147
21148 2008-05-15  Bruno Haible  <bruno@clisp.org>
21149
21150         * MODULES.html.sh (Internationalization functions): Remove linebreak.
21151         (Unicode string functions): Add unilbrk/*.
21152         Reported by Karl Berry.
21153
21154 2008-05-15  Eric Blake  <ebb9@byu.net>
21155
21156         Fix violation of <stdbool.h> replacement in regex.
21157         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
21158         * lib/regexec.c (re_search_internal): Likewise.
21159         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
21160
21161 2008-05-15  Jim Meyering  <meyering@redhat.com>
21162
21163         avoid distracting test output when git or cvs is not found
21164         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
21165         * tests/test-vc-list-files-git.sh: Likewise.
21166
21167 2008-05-15  Eric Blake  <ebb9@byu.net>
21168
21169         Glibc finally accepted the memmem speedup code, bugzilla #5514.
21170         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
21171         glibc version.
21172         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21173         * doc/posix-functions/strstr.texi (strstr): Likewise.
21174         * lib/str-two-way.h (MAX): Sychronize with glibc.
21175
21176 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
21177
21178         * lib/regcomp.c (optimize_utf8): Add a note on why we test
21179         opr.ctx_type.
21180         (calc_first): Initialize constraint field.
21181         (duplicate_node_closure): Use it instead of special casing ANCHORS.
21182         Fix grammar.
21183         (duplicate_node): Merge constraint field for all node types.
21184         (calc_eclosure_iter): Look at constraint field for all node types.
21185         * lib/regex_internal.c (create_cd_newstate): Don't look at
21186         opr.ctx_type.
21187
21188 2008-05-14  Bruno Haible  <bruno@clisp.org>
21189
21190         Help GCC to do better code generation.
21191         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
21192         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21193         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
21194         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
21195         Declare with attribute 'malloc' if supported.
21196
21197 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
21198
21199         use "echo STR|wc -c" rather than unportable "expr length STR"
21200         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
21201         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
21202
21203 2008-05-14  Jim Meyering  <meyering@redhat.com>
21204
21205         use dd ibs=$n count=1 ... rather than less-portable head -c$n
21206         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
21207         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
21208         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
21209         via Collin Lasse.
21210
21211 2008-05-14  Eric Blake  <ebb9@byu.net>
21212
21213         Avoid quadratic growth in gl_LIBSOURCES.
21214         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
21215         Suggested by Bruno Haible.
21216
21217         Test xmemdup0.
21218         * modules/xmemdup0-tests: New file.
21219         * tests/test-xmemdup0.c: Likewise.
21220
21221 2008-05-13  Eric Blake  <ebb9@byu.net>
21222
21223         Split xmemdup0 into its own module.
21224         * modules/xmemdup0: New file.
21225         * lib/xmemdup0.h: Likewise.
21226         * lib/xmemdup0.c: Likewise.
21227         * MODULES.html.sh (Memory management functions): Add xmemdup0.
21228         * lib/xalloc.h (xmemdup0): Remove.
21229         * lib/xmalloc.c (xmemdup0): Likewise.
21230
21231 2008-05-13  Eric Blake  <ebb9@byu.net>
21232             Bruno Haible  <bruno@clisp.org>
21233
21234         Reduce number of forks required during autoconf.
21235         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
21236         and gl_LIBSOURCES_DIR.
21237         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
21238         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
21239         m4_syscmd per file.
21240         <m4_foreach_w>: Move...
21241         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
21242
21243 2008-05-13  Eric Blake  <ebb9@byu.net>
21244
21245         * gnulib-tool: Fix various comment typos.
21246
21247 2008-05-12  Bruno Haible  <bruno@clisp.org>
21248
21249         Tailor the linebreaking algorithm.
21250         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
21251
21252 2008-05-12  Bruno Haible  <bruno@clisp.org>
21253
21254         Update to Unicode 5.0.0.
21255         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21256         LBP_JV, LBP_JT. Redistribute values.
21257         (unilbrk_table): Change size.
21258         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
21259         Unicode TR#14 rev. 22.
21260         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21261         LBP_JV, LBP_JT. Redistribute values.
21262         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
21263         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
21264         Update.
21265         * lib/unilbrk/lbrkprop1.h: Regenerated.
21266         * lib/unilbrk/lbrkprop2.h: Regenerated.
21267         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
21268         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
21269         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
21270         Likewise.
21271         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
21272         Likewise.
21273         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
21274         result.
21275         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21276         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21277         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21278         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
21279         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
21280         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
21281
21282 2008-05-11  Bruno Haible  <bruno@clisp.org>
21283
21284         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
21285
21286 2008-05-11  Bruno Haible  <bruno@clisp.org>
21287
21288         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
21289         * modules/unilbrk/gen-lbrk: New file.
21290
21291 2008-05-11  Bruno Haible  <bruno@clisp.org>
21292
21293         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
21294         * m4/sha512.m4 (gl_SHA512): Likewise.
21295
21296 2008-05-11  Jim Meyering  <meyering@redhat.com>
21297
21298         New modules: crypto/sha256, crypto/sha512 (from coreutils)
21299         * modules/crypto/sha256: New file.
21300         * modules/crypto/sha512: Likewise.
21301         * lib/sha256.c: Likewise.
21302         * lib/sha256.h: Likewise.
21303         * lib/sha512.c: Likewise.
21304         * lib/sha512.h: Likewise.
21305         * lib/u64.h: Likewise.
21306         * m4/sha256.m4: Likewise.
21307         * m4/sha512.m4: Likewise.
21308         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
21309
21310 2008-05-10  Bruno Haible  <bruno@clisp.org>
21311
21312         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
21313         (Input/Output <stdio.h>): Add xprintf.
21314         (Signal handling <signal.h>): Add strsignal.
21315         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
21316         (Core language properties): Add func.
21317         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
21318         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
21319         strings.
21320         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
21321         (Input/output): New section.
21322         (File system functions): Add openat-die, stat-macros.
21323         (Networking functions): Add sockets.
21324         (Unicode string functions): Add unictype/*.
21325         (Support for building libraries and executables): Add gperf.
21326         (Support for building documentation): Add agpl-3.0.
21327         (Misc): Add nocrash.
21328
21329 2008-05-10  Bruno Haible  <bruno@clisp.org>
21330
21331         * modules/unictype/gen-ctype: New file.
21332
21333 2008-05-10  Jim Meyering  <meyering@redhat.com>
21334
21335         Make chdir-safer.c more efficient on a system with no symlinks.
21336         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
21337         also if ELOOP is zero.  Suggested by Bruno Haible.
21338
21339         Make chdir-safer.c slightly safer.
21340         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
21341         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
21342
21343         Avoid compile failure on systems without ELOOP (like mingw).
21344         * lib/chdir-safer.c (ELOOP): Define if not already defined.
21345         Reported by Bruno Haible.
21346
21347 2008-05-10  Bruno Haible  <bruno@clisp.org>
21348
21349         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
21350         (is_utf8_encoding): Use a case-insensitive comparison.
21351         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
21352         streq.
21353
21354 2008-05-10  Bruno Haible  <bruno@clisp.org>
21355
21356         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
21357         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
21358         * lib/unilbrk/ulc-common.h (iconv_string_length,
21359         iconv_string_keeping_offsets): Remove declarations.
21360         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
21361         Don't include <iconv.h>, streq.h, xsize.h.
21362         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
21363         conversion.
21364         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
21365         <iconv.h>, streq.h, xsize.h.
21366         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
21367         conversion.
21368         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
21369         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
21370         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
21371         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
21372
21373 2008-05-10  Bruno Haible  <bruno@clisp.org>
21374
21375         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
21376         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
21377
21378         * modules/unilbrk/u32-width-linebreaks-tests: New file.
21379         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
21380
21381         * modules/unilbrk/u16-width-linebreaks-tests: New file.
21382         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
21383
21384         * modules/unilbrk/u8-width-linebreaks-tests: New file.
21385         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
21386
21387         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
21388         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
21389
21390         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
21391         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
21392
21393         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
21394         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
21395
21396         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
21397         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
21398
21399 2008-05-10  Bruno Haible  <bruno@clisp.org>
21400
21401         Split up 'linebreak' module.
21402         * lib/unilbrk.h: New file, based on lib/linebreak.h.
21403         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
21404         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
21405         modifications.
21406         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
21407         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
21408         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
21409         lib/linebreak.c.
21410         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
21411         lib/linebreak.c.
21412         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
21413         lib/linebreak.c.
21414         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
21415         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
21416         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
21417         lib/linebreak.c.
21418         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
21419         lib/linebreak.c.
21420         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
21421         lib/linebreak.c.
21422         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
21423         lib/linebreak.c.
21424         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
21425         lib/linebreak.c.
21426         * modules/unilbrk/base: New file.
21427         * modules/unilbrk/tables: New file.
21428         * modules/unilbrk/u8-possible-linebreaks: New file.
21429         * modules/unilbrk/u16-possible-linebreaks: New file.
21430         * modules/unilbrk/u32-possible-linebreaks: New file.
21431         * modules/unilbrk/ulc-common: New file.
21432         * modules/unilbrk/ulc-possible-linebreaks: New file.
21433         * modules/unilbrk/u8-width-linebreaks: New file.
21434         * modules/unilbrk/u16-width-linebreaks: New file.
21435         * modules/unilbrk/u32-width-linebreaks: New file.
21436         * modules/unilbrk/ulc-width-linebreaks: New file.
21437         * lib/linebreak.h: Remove file.
21438         * lib/linebreak.c: Remove file.
21439         * m4/linebreak.m4: Remove file.
21440         * modules/linebreak: Remove file.
21441         * NEWS: Mention the changes.
21442
21443 2008-05-09  Eric Blake  <ebb9@byu.net>
21444
21445         Add xmemdup0.
21446         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
21447         implementation.
21448         * lib/xmalloc.c (xmemdup0): New C implementation.
21449
21450 2008-05-08  Bruno Haible  <bruno@clisp.org>
21451
21452         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
21453
21454 2008-05-07  Eric Blake  <ebb9@byu.net>
21455
21456         Support cross-compilation of <wctype.h>.
21457         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
21458         AC_CACHE_CHECK.
21459
21460 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
21461
21462         * build-aux/vc-list-files: Add support for bzr.
21463
21464 2008-05-03  Jim Meyering  <meyering@redhat.com>
21465
21466         avoid failed assertion with tight malloc
21467         * tests/test-getndelim2.c: Correct an off-by-one assertion.
21468
21469 2008-05-03  Simon Josefsson  <simon@josefsson.org>
21470
21471         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
21472         are needed from arpa/inet.h.
21473         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
21474         Reported by Bruno Haible.
21475
21476 2008-05-02  Jim Meyering  <meyering@redhat.com>
21477
21478         avoid compilation error on FreeBSD 6
21479         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
21480
21481 2008-05-01  Jim Meyering  <meyering@redhat.com>
21482
21483         useless-if-before-free: correct --help's exit status description
21484         * build-aux/useless-if-before-free (usage): Like grep, exit 0
21485         for one or more matches, etc.  Reported by Bruno Haible.
21486
21487         vc-list-files: make the stand-alone gnulib test work
21488         * modules/vc-list-files-tests (configure.ac):
21489         Define and AC_SUBST abs_aux_dir.
21490         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
21491         $(abs_top_srcdir) to each script and having each of them
21492         duplicate the work of setting PATH, set PATH here, using
21493         the new variable, abs_aux_dir instead.
21494         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
21495         * tests/test-vc-list-files-git.sh: Likewise.
21496         Reported by Bruno Haible.
21497
21498 2008-05-01  Bruno Haible  <bruno@clisp.org>
21499
21500         * lib/getndelim2.c (getndelim2): Fix newsize computation during
21501         reallocation. Rename 'done' to 'found_delimiter'.
21502
21503 2008-05-01  Jim Meyering  <meyering@redhat.com>
21504
21505         vc-list-files: accommodate /bin/sh like the one from Solaris 10
21506         * build-aux/vc-list-files: Use `...`, not $(...).
21507
21508 2008-04-30  Jim Meyering  <meyering@redhat.com>
21509
21510         add tests for vc-list-files
21511         * modules/vc-list-files-tests: New module.
21512         * tests/test-vc-list-files-cvs.sh: New file.
21513         * tests/test-vc-list-files-git.sh: New file.
21514
21515         avoid a warning from gcc
21516         * lib/getndelim2.c (IF_LINT): Define.
21517         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
21518
21519         vc-list-files: work properly with build-aux/cvsu, too
21520         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
21521         to all cvs-based clauses.
21522
21523         vc-list-files: work properly in the CVS+awk case, too
21524         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
21525
21526         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
21527         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
21528         take more than one file argument, so .  Add quotes, just in case $dir
21529         ever contains a shell meta-character.  Prompted by Soren Hansen in
21530         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
21531
21532 2008-04-29  Eric Blake  <ebb9@byu.net>
21533
21534         Optimize getndelim2 to use block operations when possible.
21535         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
21536         freadseek, and memchr2.
21537         * lib/getndelim2.c (getndelim2): Use them for block reads.
21538
21539 2008-04-29  Bruno Haible  <bruno@clisp.org>
21540
21541         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
21542         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21543         * modules/inet_ntop (Depends-on): Add extensions.
21544         * modules/inet_pton (Depends-on): Likewise.
21545         Reported by Simon Josefsson.
21546
21547 2008-04-29  Jim Meyering  <meyering@redhat.com>
21548
21549         When the is more than one match in a block, match all of them.
21550         * build-aux/useless-if-before-free: Iterate through each block
21551         until there are no more matches.
21552
21553         Fix broken useless-if-before-free script.
21554         * build-aux/useless-if-before-free: Fix typo: missing "?" after
21555         the expression to match cast of argument to free-like function.
21556
21557 2008-04-29  Eric Blake  <ebb9@byu.net>
21558
21559         Use new header.
21560         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
21561
21562 2008-04-29  Jim Meyering  <meyering@redhat.com>
21563
21564         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
21565         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
21566         by gnulib to exist and to declare e.g., inet_ntop.
21567         Don't include "inet_ntop.h", now removed.
21568
21569         * m4/arpa_inet_h.m4: Remove trailing blanks.
21570
21571 2008-04-29  Eric Blake  <ebb9@byu.net>
21572
21573         Silence valgrind on safe reads beyond potential array bounds.
21574         * lib/rawmemchr.valgrind: New file.
21575         * lib/strchrnul.valgrind: Likewise.
21576         * modules/rawmemchr (Files): Distribute new file.
21577         * modules/strchrnul (Files): Likewise.
21578         Suggested by Bruno Haible.
21579
21580 2008-04-29  Bruno Haible  <bruno@clisp.org>
21581
21582         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
21583         (inet_ntop, inet_pton): Change portability warning's wording.
21584         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
21585         Invoke gl_CHECK_NEXT_HEADERS.
21586         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
21587         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
21588         set ARPA_INET_H.
21589         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21590         * modules/arpa_inet (Description): No longer only for systems that
21591         lack it.
21592         (Depends-on): Add include_next.
21593         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
21594         HAVE_ARPA_INET_H.
21595
21596 2008-04-29  Jim Meyering  <meyering@redhat.com>
21597
21598         * modules/mkdir (License): Re-license as LGPLv2+.
21599
21600 2008-04-29  Bruno Haible  <bruno@clisp.org>
21601
21602         * modules/rawmemchr (Maintainer): Set to Eric.
21603         * modules/strchrnul (Maintainer): Likewise.
21604
21605 2008-04-29  Simon Josefsson  <simon@josefsson.org>
21606
21607         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
21608         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
21609
21610         * modules/arpa_inet (arpa/inet.h): Use them.
21611
21612 2008-04-28  Eric Blake  <ebb9@byu.net>
21613
21614         Test getndelim2.
21615         * modules/getndelim2-tests: New file.
21616         * tests/test-getndelim2.c: Likewise.
21617         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
21618         stream.
21619         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
21620
21621         * MODULES.html.sh: Document new module.
21622
21623 2008-04-20  Bruno Haible  <bruno@clisp.org>
21624
21625         * lib/c-stack.c (die): Use raise.
21626         * modules/c-stack (Depends-on): Add raise.
21627
21628 2008-04-28  Bruno Haible  <bruno@clisp.org>
21629
21630         Expect rpmatch to be declared.
21631         * lib/yesno.c (rpmatch): Remove declaration.
21632
21633         Declare rpmatch.
21634         * lib/stdlib.in.h (rpmatch): New declaration.
21635         * lib/rpmatch.c: Include <stdlib.h> first.
21636         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
21637         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
21638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
21639         HAVE_RPMATCH.
21640         * modules/rpmatch (Depends-on): Add stdlib, extensions.
21641         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21642         (Include): Set to <stdlib.h>.
21643         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
21644         HAVE_RPMATCH.
21645         * NEWS: Document the change.
21646
21647 2008-04-28  Bruno Haible  <bruno@clisp.org>
21648
21649         Change rpmatch to use nl_langinfo when appropriate.
21650         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
21651         (N_): New macro.
21652         (localized_pattern): New function/macro.
21653         (try): Remove match, nomatch arguments. Copy the pattern into safe
21654         memory before caching it.
21655         (rpmatch): Use localized_pattern. Add translator comments.
21656         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
21657         Suggested by Eric Blake.
21658         * modules/rpmatch (Depends-on): Add stdbool.
21659
21660 2008-04-28  Eric Blake  <ebb9@byu.net>
21661
21662         Add rawmemchr module, matching glibc.
21663         * modules/string (Makefile.am): New indicator.
21664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
21665         * lib/string.in.h (rawmemchr): Declare when appropriate.
21666         * modules/rawmemchr: New file.
21667         * m4/rawmemchr.m4: Likewise.
21668         * lib/rawmemchr.c: Likewise.
21669         * modules/rawmemchr-tests: Likewise.
21670         * tests/test-rawmemchr.c: Likewise.
21671         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
21672         module.
21673         * modules/strchrnul (Depends-on): Add rawmemchr.
21674         * lib/strchrnul.c (strchrnul): Optimize a corner case.
21675
21676         Whitespace cleanup.
21677         * tests/test-strchrnul.c: Reindent.
21678         * lib/strchrnul.c: Likewise.
21679
21680         Optimize and test strchrnul.
21681         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
21682         * modules/strchrnul-tests: New file.
21683         * tests/test-strchrnul.c: Likewise.
21684
21685         Remove intprops dependency.
21686         * modules/memchr (Depends-on): Remove intprops.
21687         * modules/memrchr (Depends-on): Likewise.
21688         * modules/memchr2 (Depends-on): Likewise.
21689         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
21690         * lib/memrchr.c (__memrchr): Likewise.
21691         * lib/memrchr2.c (memchr2): Likewise.
21692         Reported by Simon Josefsson.
21693
21694 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21695
21696         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
21697         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21698
21699 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21700
21701         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
21702
21703         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
21704
21705         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
21706
21707         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
21708         declarations.
21709         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
21710
21711         * m4/inet_pton.m4: Don't check for header files.
21712
21713         * m4/inet_ntop.m4: Don't check for header files.
21714
21715 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21716
21717         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
21718         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
21719         trigger for cygwin).
21720         Reported by Bruno Haible  <bruno@clisp.org>.
21721
21722 2008-04-28  Bruno Haible  <bruno@clisp.org>
21723
21724         * doc/posix-functions/strdup.texi: Mention mingw problem.
21725
21726 2008-04-27  Bruno Haible  <bruno@clisp.org>
21727
21728         * modules/stat-time-tests (Depends-on): Add sleep.
21729         * tests/test-stat-time.c (force_unlink): New function.
21730         (cleanup): Use it.
21731         (test_mtime): Remove the ctime related tests.
21732         (test_ctime): New function, containing the ctime related tests.
21733         (main): Call test_ctime, except on native Windows platforms.
21734
21735 2008-04-27  Bruno Haible  <bruno@clisp.org>
21736
21737         * lib/rpmatch.c (rpmatch): Add some comments.
21738         Reported by James Youngman <jay@gnu.org>.
21739
21740 2008-04-27  Bruno Haible  <bruno@clisp.org>
21741
21742         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
21743         quiet NaNs.
21744
21745 2008-04-27  Bruno Haible  <bruno@clisp.org>
21746
21747         Make test-yesno.sh work on mingw.
21748         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
21749         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
21750         (main): Set stdin to binary mode.
21751         * modules/yesno-tests (Depends-on): Add binary-io.
21752
21753 2008-04-27  Bruno Haible  <bruno@clisp.org>
21754
21755         Fix 'isfinite' on x86, x86_64, ia64 platforms.
21756         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
21757         argument that lie outside the IEEE 854 domain.
21758         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
21759         (gl_ISFINITE): Use it.
21760         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
21761
21762 2008-04-27  Bruno Haible  <bruno@clisp.org>
21763
21764         Allow local renaming in config.h.
21765         * lib/memrchr.c (memrchr): Don't undefine outside libc.
21766
21767 2008-04-27  Bruno Haible  <bruno@clisp.org>
21768
21769         * lib/memchr.c (__memchr): Change type of 'i'.
21770         * lib/memchr2.c (memchr2): Likewise.
21771
21772 2008-04-26  Eric Blake  <ebb9@byu.net>
21773         and Bruno Haible  <bruno@clisp.org>
21774
21775         Optimize and test memrchr.
21776         * modules/memrchr (Depends-on): Add intprops.
21777         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
21778         * modules/memrchr-tests: New file.
21779         * tests/test-memrchr.c: New file.
21780
21781 2008-04-26  Bruno Haible  <bruno@clisp.org>
21782
21783         Add tentative support for DragonFly BSD.
21784         * lib/stdio-impl.h: Add macros for DragonFly BSD.
21785         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
21786         fp.
21787         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21788         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
21789         * lib/fpurge.c (fpurge): Likewise.
21790         * lib/freadable.c (freaadable): Likewise.
21791         * lib/freadahead.c (freadahead): Likewise.
21792         * lib/freading.c (freading): Likewise.
21793         * lib/freadptr.c (freadptr): Likewise.
21794         * lib/freadseek.c (freadptrinc): Likewise.
21795         * lib/fseeko.c (fseeko): Likewise.
21796         * lib/fseterr.c (fseterr): Likewise.
21797         * lib/fwritable.c (fwritable): Likewise.
21798         * lib/fwriting.c (fwriting): Likewise.
21799
21800 2008-04-26  Bruno Haible  <bruno@clisp.org>
21801
21802         * lib/stdio-impl.h: New file.
21803         * lib/fbufmode.c: Include stdio-impl.h.
21804         (fbufmode): Use fp_, remove redundant #defines.
21805         * lib/fflush.c: Include stdio-impl.h.
21806         (clear_ungetc_buffer): Remove redundant #defines.
21807         * lib/fpurge.c: Include stdio-impl.h.
21808         (fpurge): Remove redundant #defines.
21809         * lib/freadable.c: Include stdio-impl.h.
21810         (freadable): Remove redundant #defines.
21811         * lib/freadahead.c: Include stdio-impl.h.
21812         (freadahead): Remove redundant #defines.
21813         * lib/freading.c: Include stdio-impl.h.
21814         (freading): Remove redundant #defines.
21815         * lib/freadptr.c: Include stdio-impl.h.
21816         (freadptr): Remove redundant #defines.
21817         * lib/freadseek.c: Include stdio-impl.h.
21818         (freadptrinc): Remove redundant #defines.
21819         * lib/fseeko.c: Include stdio-impl.h.
21820         (rpl_fseeko): Remove redundant #defines.
21821         * lib/fseterr.c: Include stdio-impl.h.
21822         (fseterr): Remove redundant #defines.
21823         * lib/fwritable.c: Include stdio-impl.h.
21824         (fwritable: Remove redundant #defines.
21825         * lib/fwriting.c: Include stdio-impl.h.
21826         (fwriting): Remove redundant #defines.
21827         * modules/fbufmode (Files): Add lib/stdio-impl.h.
21828         * modules/fflush (Files): Likewise.
21829         * modules/fpurge (Files): Likewise.
21830         * modules/freadable (Files): Likewise.
21831         * modules/freadahead (Files): Likewise.
21832         * modules/freading (Files): Likewise.
21833         * modules/freadptr (Files): Likewise.
21834         * modules/freadseek (Files): Likewise.
21835         * modules/fseeko (Files): Likewise.
21836         * modules/fseterr (Files): Likewise.
21837         * modules/fwritable (Files): Likewise.
21838         * modules/fwriting (Files): Likewise.
21839
21840 2008-04-26  Bruno Haible  <bruno@clisp.org>
21841
21842         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21843         restore_seek_optimization, update_fpos_cache): New functions, extracted
21844         from rpl_fflush.
21845         (rpl_fflush): Use them.
21846         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
21847         (gl_REPLACE_FFLUSH): Use it.
21848
21849 2008-04-26  Bruno Haible  <bruno@clisp.org>
21850
21851         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
21852         on Solaris.
21853         * tests/test-xstrtoimax.sh: Likewise.
21854         * tests/test-xstrtoumax.sh: Likewise.
21855         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21856
21857 2008-04-26  Bruno Haible  <bruno@clisp.org>
21858
21859         * modules/memchr-tests: New file.
21860         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
21861
21862 2008-04-26  Eric Blake  <ebb9@byu.net>
21863             Bruno Haible  <bruno@clisp.org>
21864
21865         * lib/memchr.c: Include intprops.h.
21866         (__memchr): Optimize parallel detection of matching bytes. Rename local
21867         variables. Add explanatory comments.
21868
21869 2008-04-26  Bruno Haible  <bruno@clisp.org>
21870
21871         Fix module 'memchr', broken since 2000-10-28.
21872         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
21873
21874 2008-04-26  Bruno Haible  <bruno@clisp.org>
21875
21876         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
21877         comments.
21878
21879 2008-04-25  Eric Blake  <ebb9@byu.net>
21880
21881         Use native fstatat on cygwin 1.7.0.
21882         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
21883         first.
21884
21885 2008-04-23  Eric Blake  <ebb9@byu.net>
21886
21887         Improve memchr2 performance.
21888         * lib/memchr2.c (memchr2): Further optimize parallel detection of
21889         NUL bytes.
21890         * modules/memchr2 (Depends-on): Use intprops.h.
21891
21892 2008-04-23  Simon Josefsson  <simon@josefsson.org>
21893
21894         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
21895         an inline function instead of a CPP macro.  Patch by Ben Pfaff
21896         <blp@cs.stanford.edu>.
21897
21898 2008-04-23  Simon Josefsson  <simon@josefsson.org>
21899
21900         * lib/arpa_inet.in.h: New file.
21901
21902         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
21903         (Makefile.am): Sed in substitute header file.
21904
21905         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
21906         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
21907
21908         * modules/inet_ntop (configure.ac): Use
21909         gl_ARPA_INET_MODULE_INDICATOR.
21910
21911         * modules/inet_pton (configure.ac): Use
21912         gl_ARPA_INET_MODULE_INDICATOR.
21913
21914 2008-04-22  Jim Meyering  <meyering@redhat.com>
21915
21916         * modules/verify (License): Re-license as LGPLv2+.
21917
21918 2008-04-22  Simon Josefsson  <simon@josefsson.org>
21919
21920         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
21921         parameter to void* as per POSIX standard (MinGW uses char*).
21922
21923 2008-04-21  Bruno Haible  <bruno@clisp.org>
21924
21925         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21926         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21927         Define to replacements if REPLACE_ISWCNTRL is 1.
21928         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
21929         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
21930         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
21931         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
21932         what it fixes.
21933         * doc/posix-functions/iswalpha.texi: Likewise.
21934         * doc/posix-functions/iswblank.texi: Likewise.
21935         * doc/posix-functions/iswcntrl.texi: Likewise.
21936         * doc/posix-functions/iswdigit.texi: Likewise.
21937         * doc/posix-functions/iswgraph.texi: Likewise.
21938         * doc/posix-functions/iswlower.texi: Likewise.
21939         * doc/posix-functions/iswprint.texi: Likewise.
21940         * doc/posix-functions/iswpunct.texi: Likewise.
21941         * doc/posix-functions/iswspace.texi: Likewise.
21942         * doc/posix-functions/iswupper.texi: Likewise.
21943         * doc/posix-functions/iswxdigit.texi: Likewise.
21944         Reported by Alain Guibert.
21945
21946 2008-04-21  Bruno Haible  <bruno@clisp.org>
21947
21948         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
21949         Patch by Alain Guibert.
21950
21951 2008-04-21  Bruno Haible  <bruno@clisp.org>
21952
21953         Fix test failures on mingw.
21954         * tests/test-xstrtol.c (print_no_progname): New function.
21955         (main): Install it in error_print_progname hook.
21956         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
21957         * tests/test-xstrtoimax.sh: Likewise.
21958         * tests/test-xstrtoumax.sh: Likewise.
21959
21960 2008-04-21  Bruno Haible  <bruno@clisp.org>
21961
21962         Fix test failure on mingw.
21963         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
21964
21965 2008-04-21  Bruno Haible  <bruno@clisp.org>
21966
21967         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
21968         Actually assign a value.
21969
21970 2008-04-20  Bruno Haible  <bruno@clisp.org>
21971
21972         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
21973         take 2.
21974         * lib/canonicalize.c (canonicalize_file_name): Elide if the
21975         'canonicalize-lgpl' module is also used.
21976         * lib/canonicalize-lgpl.c: Undo last change.
21977         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
21978
21979 2008-04-20  Bruno Haible  <bruno@clisp.org>
21980
21981         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
21982         config.h. Provide _mkdir based fallback for mingw.
21983         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
21984         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
21985         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
21986         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
21987         rather than defining mkdir in config.h.
21988         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
21989         (gl_SYS_STAT_H_DEFAULTS): New macro.
21990         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
21991         HAVE_IO_H any more.
21992         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
21993         HAVE_DECL_MKDIR and HAVE_IO_H.
21994
21995 2008-04-20  Bruno Haible  <bruno@clisp.org>
21996
21997         * lib/isapipe.c: Port to native Windows platforms.
21998
21999 2008-04-20  Bruno Haible  <bruno@clisp.org>
22000
22001         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
22002
22003 2008-04-21  Eric Blake  <ebb9@byu.net>
22004
22005         Work around preprocessors that don't handle UINTMAX_MAX.
22006         * lib/memchr2.c (memchr2): Avoid embedded #if.
22007         Reported by Alain Guibert, fix suggested by Bruno Haible.
22008
22009 2008-04-21  Simon Josefsson  <simon@josefsson.org>
22010
22011         * doc/posix-functions/strftime.texi (strftime): Explain better
22012         Windows incompatibility.  Suggested by Micah Cowan
22013         <micah@cowan.name>.
22014
22015 2008-04-20  Bruno Haible  <bruno@clisp.org>
22016
22017         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
22018         unistr/u8-mblen.
22019
22020 2008-04-20  Bruno Haible  <bruno@clisp.org>
22021
22022         Fix test failure on platforms with non-GNU iconv.
22023         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
22024         (U_TO_U8): Use it, rather than u16_to_u8.
22025         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
22026         units at the end of the input string.
22027         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
22028
22029 2008-04-20  Bruno Haible  <bruno@clisp.org>
22030
22031         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
22032         when the resulting length is 0.
22033         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
22034
22035 2008-04-20  Bruno Haible  <bruno@clisp.org>
22036
22037         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
22038         works.
22039         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
22040
22041 2008-04-20  Bruno Haible  <bruno@clisp.org>
22042
22043         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
22044         * modules/tsearch-tests (configure.ac): Test for initstate function.
22045
22046 2008-04-20  Bruno Haible  <bruno@clisp.org>
22047
22048         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
22049         for nlink_t if missing.
22050         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
22051
22052 2008-04-19  Bruno Haible  <bruno@clisp.org>
22053
22054         Work around snprintf bug on Linux libc5.
22055         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
22056         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
22057         gl_SNPRINTF_SIZE1.
22058         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22059         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
22060         that test failed.
22061         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
22062         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
22063         * modules/snprintf (Files): Add m4/printf.m4.
22064         * modules/vsnprintf (Files): Likewise.
22065         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
22066         * doc/posix-functions/vsnprintf.texi: Likewise.
22067
22068 2008-04-19  Bruno Haible  <bruno@clisp.org>
22069
22070         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
22071         from 0.0058 to less than 10^-7.
22072
22073 2008-04-19  Bruno Haible  <bruno@clisp.org>
22074
22075         Fix rounding when a precision is given.
22076         * lib/vasnprintf.c (is_borderline): New function.
22077         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
22078         9...9x.
22079         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
22080         %e, %g.
22081         * tests/test-vasprintf-posix.c (test_function): Likewise.
22082         * tests/test-snprintf-posix.h (test_function): Likewise.
22083         * tests/test-sprintf-posix.h (test_function): Likewise.
22084         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
22085         * tests/test-printf-posix.h (test_function): Likewise.
22086         * tests/test-printf-posix.output: Update.
22087         Reported by John Darrington <john@darrington.wattle.id.au> via
22088         Ben Pfaff <blp@cs.stanford.edu>.
22089
22090 2008-04-18  Simon Josefsson  <simon@josefsson.org>
22091
22092         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
22093         Suggested by Bruno Haible <bruno@clisp.org>.
22094
22095 2008-04-17  Bruno Haible  <bruno@clisp.org>
22096
22097         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
22098         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
22099         implementation.
22100         Patch by Bruce Merry <bmerry@gmail.com>.
22101
22102 2008-04-17  Simon Josefsson  <simon@josefsson.org>
22103
22104         * doc/posix-functions/strftime.texi (strftime): Mention that %e
22105         doesn't work under Windows.
22106
22107 2008-04-16  Bruno Haible  <bruno@clisp.org>
22108
22109         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
22110         New macros.
22111         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
22112         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
22113         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
22114         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
22115         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
22116         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
22117         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
22118         macros.
22119         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
22120         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
22121         Northern Sotho, Uighur.
22122
22123 2008-04-16  Bruno Haible  <bruno@clisp.org>
22124
22125         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
22126         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
22127         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
22128         Reported by Daniel Bergström <daniel@octocode.com>.
22129
22130 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
22131             Bruno Haible  <bruno@clisp.org>
22132
22133         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
22134         function.
22135         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
22136         New functions, mostly extracted from gl_locale_name_default.
22137         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
22138
22139 2008-04-16  Eric Blake  <ebb9@byu.net>
22140
22141         Adjust strtod detection to catch glibc 2.7 bug.
22142         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
22143         Reported by John Gatewood Ham.
22144
22145 2008-04-16  Bruno Haible  <bruno@clisp.org>
22146
22147         Add tentative support for Linux libc5.
22148         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
22149         * lib/fpurge.c (fpurge): Likewise.
22150         * lib/freadable.c (freadable): Likewise.
22151         * lib/freadahead.c (freadahead): Likewise.
22152         * lib/freading.c (freading): Likewise.
22153         * lib/freadptr.c (freadptr): Likewise.
22154         * lib/freadseek.c (freadptrinc): Likewise.
22155         * lib/fseeko.c (rpl_fseeko): Likewise.
22156         * lib/fseterr.c (fseterr): Likewise.
22157         * lib/fwritable.c (fwritable): Likewise.
22158         * lib/fwriting.c (fwriting): Likewise.
22159         Reported by Alain Guibert <alguibert+bts@free.fr>.
22160
22161 2008-04-15  Bruno Haible  <bruno@clisp.org>
22162
22163         * modules/mathl (configure.ac): Define module indicator.
22164
22165 2008-04-15  Bruno Haible  <bruno@clisp.org>
22166
22167         * lib/logl.c (logl): Remove unused variables.
22168
22169 2008-04-15  Bruno Haible  <bruno@clisp.org>
22170
22171         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
22172         fails.
22173
22174 2008-04-15  Bruno Haible  <bruno@clisp.org>
22175
22176         * lib/trim.c (trim2): Fix argument of isspace() macro.
22177
22178 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
22179
22180         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
22181         to 0.
22182         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
22183
22184 2008-04-14  Bruno Haible  <bruno@clisp.org>
22185
22186         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
22187         AC_LANG_PROGRAM argument.
22188         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
22189         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
22190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22191         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22192         * m4/math_h.m4 (gl_MATH_H): Likewise.
22193         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22194         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22195         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
22196         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
22197         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22198         * m4/regex.m4 (gl_REGEX): Likewise.
22199         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
22200         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
22201         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22202         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
22203         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
22204         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22205         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22206         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22207
22208 2008-04-14  Jim Meyering  <meyering@redhat.com>
22209
22210         test-strtod: fix typos: s/abs/fabs/
22211         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
22212
22213 2008-04-13  Bruno Haible  <bruno@clisp.org>
22214
22215         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
22216         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
22217         module is also used and while not building the reloc-wrapper.
22218
22219 2008-04-13  Bruno Haible  <bruno@clisp.org>
22220
22221         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
22222
22223 2008-04-13  Bruno Haible  <bruno@clisp.org>
22224
22225         Fix AIX compilation failure introduced on 2008-04-02.
22226         * tests/test-frexp.c (exp): Undefine before redefining.
22227         * tests/test-frexpl.c (exp): Likewise.
22228
22229 2008-04-13  Bruno Haible  <bruno@clisp.org>
22230
22231         Work around a HP-UX stdio bug.
22232         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
22233         * tests/test-ftello.c (main): Likewise.
22234         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
22235         * doc/posix-functions/ftello.texi: Likewise.
22236
22237 2008-04-13  Bruno Haible  <bruno@clisp.org>
22238
22239         Make test-signbit pass on HP-UX/hppa.
22240         * tests/test-signbit.c (minus_zerol): New variable.
22241         (test_signbitl): Use it.
22242
22243 2008-04-13  Bruno Haible  <bruno@clisp.org>
22244
22245         Make truncl work on OSF/1 4.0.
22246         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
22247         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
22248         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
22249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
22250         HAVE_DECL_TRUNCL.
22251         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
22252         HAVE_DECL_TRUNCL.
22253         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
22254
22255 2008-04-13  Bruno Haible  <bruno@clisp.org>
22256
22257         * lib/unictype.h: Remove trailing comma from enumeration definitions.
22258
22259 2008-04-13  Bruno Haible  <bruno@clisp.org>
22260
22261         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
22262         expression, so as to avoid HP-UX 11 cc compiler bug.
22263
22264 2008-04-13  Bruno Haible  <bruno@clisp.org>
22265
22266         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
22267
22268 2008-04-13  Bruno Haible  <bruno@clisp.org>
22269
22270         * lib/git-merge-changelog.c: Remove empty declaration outside of
22271         functions.
22272
22273 2008-04-13  Bruno Haible  <bruno@clisp.org>
22274
22275         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
22276
22277 2008-04-13  Bruno Haible  <bruno@clisp.org>
22278
22279         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
22280         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
22281         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
22282         also if it exists but lacks definitions of the SHUT_* macros.
22283         * modules/sys_socket (Description): Update.
22284         Reported by Elbert Pol <e.pol@chello.nl>.
22285
22286 2008-04-13  Bruno Haible  <bruno@clisp.org>
22287
22288         * lib/localcharset.c (OS2): Don't redefine if already defined.
22289         Reported by Elbert Pol <e.pol@chello.nl>.
22290
22291 2008-04-13  Bruno Haible  <bruno@clisp.org>
22292
22293         * lib/binary-io.h [__EMX__]: Include <io.h>.
22294         Reported by Elbert Pol <e.pol@chello.nl>.
22295
22296 2008-04-12  Bruno Haible  <bruno@clisp.org>
22297
22298         * lib/fpucw.h: Enable the definitions also for x86_64.
22299         Needed for NetBSD/x86_64.
22300         Reported by Thomas Klausner <tk@giga.or.at>.
22301
22302 2008-04-12  Bruno Haible  <bruno@clisp.org>
22303
22304         * tests/test-strtod.c: Include isnand.h.
22305         (main): Use isnand instead of isnan.
22306         Reported by Jim Meyering.
22307
22308 2008-04-12  Bruno Haible  <bruno@clisp.org>
22309
22310         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
22311         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22312
22313 2008-04-12  Jim Meyering  <meyering@redhat.com>
22314
22315         * m4/math_h.m4 (gl_MATH_H): Fix typos.
22316
22317 2008-04-12  Bruno Haible  <bruno@clisp.org>
22318
22319         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
22320         Reported by Elbert Pol <e.pol@chello.nl>.
22321
22322 2008-04-12  Eric Blake  <ebb9@byu.net>
22323
22324         Work around Solaris 10 math.h bug.
22325         * m4/math_h.m4 (gl_MATH_H): Check for bug.
22326         (gl_MATH_H_DEFAULTS): Set up default.
22327         * modules/math (Makefile.am): Replace new indicators.
22328         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
22329         * tests/test-math.c (main): Test this.
22330         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
22331         * doc/posix-headers/math.texi (math.h): Mention bug.
22332         Reported by Nelson H. F. Beebe and Jim Meyering.
22333
22334 2008-04-11  Bruno Haible  <bruno@clisp.org>
22335
22336         Adapt to future versions of Apple GCC.
22337         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
22338         Reported by Peter O'Gorman <peter@pogma.com>.
22339
22340 2008-04-11  Bruno Haible  <bruno@clisp.org>
22341
22342         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
22343
22344 2008-04-11  Bruno Haible  <bruno@clisp.org>
22345
22346         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
22347
22348         * modules/getaddrinfo-tests (Makefile.am): Define
22349         test_getaddrinfo_LDADD.
22350
22351 2008-04-11  Bruno Haible  <bruno@clisp.org>
22352
22353         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
22354         (init): Fix syntax error.
22355         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
22356         is declared.
22357
22358 2008-04-11  Bruno Haible  <bruno@clisp.org>
22359
22360         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
22361         * modules/glob (Depends-on): Add stdbool.
22362
22363 2008-04-11  Bruno Haible  <bruno@clisp.org>
22364
22365         * lib/trim.c: Include <string.h>.
22366
22367 2008-04-11  Eric Blake  <ebb9@byu.net>
22368
22369         Avoid compile failure on OS/2.
22370         * lib/regex_internal.h (internal_function): Disable optimization
22371         on OS/2 (__EMX__), where it caused compiler error.
22372         Reported by Elbert Pol.
22373
22374 2008-04-11  Bruno Haible  <bruno@clisp.org>
22375
22376         Flush the standard error stream before aborting. Needed on mingw.
22377         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
22378         * tests/test-array_list.c (ASSERT): Likewise.
22379         * tests/test-array_oset.c (ASSERT): Likewise.
22380         * tests/test-avltree_list.c (ASSERT): Likewise.
22381         * tests/test-avltree_oset.c (ASSERT): Likewise.
22382         * tests/test-avltreehash_list.c (ASSERT): Likewise.
22383         * tests/test-binary-io.c (ASSERT): Likewise.
22384         * tests/test-byteswap.c (ASSERT): Likewise.
22385         * tests/test-c-ctype.c (ASSERT): Likewise.
22386         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
22387         * tests/test-c-strcasestr.c (ASSERT): Likewise.
22388         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
22389         * tests/test-c-strstr.c (ASSERT): Likewise.
22390         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
22391         * tests/test-canonicalize.c (ASSERT): Likewise.
22392         * tests/test-carray_list.c (ASSERT): Likewise.
22393         * tests/test-ceilf1.c (ASSERT): Likewise.
22394         * tests/test-ceilf2.c (ASSERT): Likewise.
22395         * tests/test-ceill.c (ASSERT): Likewise.
22396         * tests/test-count-one-bits.c (ASSERT): Likewise.
22397         * tests/test-fbufmode.c (ASSERT): Likewise.
22398         * tests/test-fflush2.c (ASSERT): Likewise.
22399         * tests/test-floorf1.c (ASSERT): Likewise.
22400         * tests/test-floorf2.c (ASSERT): Likewise.
22401         * tests/test-floorl.c (ASSERT): Likewise.
22402         * tests/test-fopen.c (ASSERT): Likewise.
22403         * tests/test-fpending.c (ASSERT): Likewise.
22404         * tests/test-fprintf-posix.c (ASSERT): Likewise.
22405         * tests/test-fpurge.c (ASSERT): Likewise.
22406         * tests/test-freadable.c (ASSERT): Likewise.
22407         * tests/test-freadahead.c (ASSERT): Likewise.
22408         * tests/test-freading.c (ASSERT): Likewise.
22409         * tests/test-freadptr.c (ASSERT): Likewise.
22410         * tests/test-freadptr2.c (ASSERT): Likewise.
22411         * tests/test-freadseek.c (ASSERT): Likewise.
22412         * tests/test-freopen.c (ASSERT): Likewise.
22413         * tests/test-frexp.c (ASSERT): Likewise.
22414         * tests/test-frexpl.c (ASSERT): Likewise.
22415         * tests/test-fseek.c (ASSERT): Likewise.
22416         * tests/test-fseeko.c (ASSERT): Likewise.
22417         * tests/test-fstrcmp.c (ASSERT): Likewise.
22418         * tests/test-ftell.c (ASSERT): Likewise.
22419         * tests/test-ftello.c (ASSERT): Likewise.
22420         * tests/test-func.c (ASSERT): Likewise.
22421         * tests/test-fwritable.c (ASSERT): Likewise.
22422         * tests/test-fwriting.c (ASSERT): Likewise.
22423         * tests/test-getdelim.c (ASSERT): Likewise.
22424         * tests/test-getline.c (ASSERT): Likewise.
22425         * tests/test-i-ring.c (ASSERT): Likewise.
22426         * tests/test-iconv-utf.c (ASSERT): Likewise.
22427         * tests/test-iconv.c (ASSERT): Likewise.
22428         * tests/test-isfinite.c (ASSERT): Likewise.
22429         * tests/test-isnand.c (ASSERT): Likewise.
22430         * tests/test-isnanf.c (ASSERT): Likewise.
22431         * tests/test-isnanl.h (ASSERT): Likewise.
22432         * tests/test-ldexpl.c (ASSERT): Likewise.
22433         * tests/test-linked_list.c (ASSERT): Likewise.
22434         * tests/test-linkedhash_list.c (ASSERT): Likewise.
22435         * tests/test-localename.c (ASSERT): Likewise.
22436         * tests/test-lseek.c (ASSERT): Likewise.
22437         * tests/test-mbscasecmp.c (ASSERT): Likewise.
22438         * tests/test-mbscasestr1.c (ASSERT): Likewise.
22439         * tests/test-mbscasestr2.c (ASSERT): Likewise.
22440         * tests/test-mbscasestr3.c (ASSERT): Likewise.
22441         * tests/test-mbscasestr4.c (ASSERT): Likewise.
22442         * tests/test-mbschr.c (ASSERT): Likewise.
22443         * tests/test-mbscspn.c (ASSERT): Likewise.
22444         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
22445         * tests/test-mbspbrk.c (ASSERT): Likewise.
22446         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
22447         * tests/test-mbsrchr.c (ASSERT): Likewise.
22448         * tests/test-mbsspn.c (ASSERT): Likewise.
22449         * tests/test-mbsstr1.c (ASSERT): Likewise.
22450         * tests/test-mbsstr2.c (ASSERT): Likewise.
22451         * tests/test-mbsstr3.c (ASSERT): Likewise.
22452         * tests/test-memchr2.c (ASSERT): Likewise.
22453         * tests/test-memmem.c (ASSERT): Likewise.
22454         * tests/test-open.c (ASSERT): Likewise.
22455         * tests/test-printf-frexp.c (ASSERT): Likewise.
22456         * tests/test-printf-frexpl.c (ASSERT): Likewise.
22457         * tests/test-printf-posix.c (ASSERT): Likewise.
22458         * tests/test-quotearg.c (ASSERT): Likewise.
22459         * tests/test-rbtree_list.c (ASSERT): Likewise.
22460         * tests/test-rbtree_oset.c (ASSERT): Likewise.
22461         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
22462         * tests/test-round1.c (ASSERT): Likewise.
22463         * tests/test-roundf1.c (ASSERT): Likewise.
22464         * tests/test-roundl.c (ASSERT): Likewise.
22465         * tests/test-signbit.c (ASSERT): Likewise.
22466         * tests/test-sleep.c (ASSERT): Likewise.
22467         * tests/test-snprintf-posix.c (ASSERT): Likewise.
22468         * tests/test-snprintf.c (ASSERT): Likewise.
22469         * tests/test-sprintf-posix.c (ASSERT): Likewise.
22470         * tests/test-stat-time.c (ASSERT): Likewise.
22471         * tests/test-strcasestr.c (ASSERT): Likewise.
22472         * tests/test-strerror.c (ASSERT): Likewise.
22473         * tests/test-striconv.c (ASSERT): Likewise.
22474         * tests/test-striconveh.c (ASSERT): Likewise.
22475         * tests/test-striconveha.c (ASSERT): Likewise.
22476         * tests/test-strsignal.c (ASSERT): Likewise.
22477         * tests/test-strstr.c (ASSERT): Likewise.
22478         * tests/test-strtod.c (ASSERT): Likewise.
22479         * tests/test-trunc1.c (ASSERT): Likewise.
22480         * tests/test-trunc2.c (ASSERT): Likewise.
22481         * tests/test-truncf1.c (ASSERT): Likewise.
22482         * tests/test-truncf2.c (ASSERT): Likewise.
22483         * tests/test-truncl.c (ASSERT): Likewise.
22484         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
22485         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
22486         * tests/test-vasnprintf.c (ASSERT): Likewise.
22487         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
22488         * tests/test-vasprintf.c (ASSERT): Likewise.
22489         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
22490         * tests/test-vprintf-posix.c (ASSERT): Likewise.
22491         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
22492         * tests/test-vsnprintf.c (ASSERT): Likewise.
22493         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
22494         * tests/test-wcwidth.c (ASSERT): Likewise.
22495         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
22496         * tests/test-xprintf-posix.c (ASSERT): Likewise.
22497         * tests/test-xvasprintf.c (ASSERT): Likewise.
22498         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
22499         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
22500         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
22501         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
22502         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
22503         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
22504         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
22505         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
22506         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
22507         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
22508         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
22509         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
22510         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
22511         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
22512         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
22513         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
22514         * tests/unictype/test-block_list.c (ASSERT): Likewise.
22515         * tests/unictype/test-block_of.c (ASSERT): Likewise.
22516         * tests/unictype/test-block_test.c (ASSERT): Likewise.
22517         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
22518         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
22519         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
22520         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
22521         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
22522         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
22523         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
22524         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
22525         * tests/unictype/test-combining.c (ASSERT): Likewise.
22526         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
22527         * tests/unictype/test-digit.c (ASSERT): Likewise.
22528         * tests/unictype/test-mirror.c (ASSERT): Likewise.
22529         * tests/unictype/test-numeric.c (ASSERT): Likewise.
22530         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
22531         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
22532         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
22533         * tests/unictype/test-scripts.c (ASSERT): Likewise.
22534         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
22535         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
22536         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
22537         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
22538         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
22539         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
22540         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
22541         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
22542         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
22543         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
22544         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
22545         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
22546         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
22547         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
22548         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
22549         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
22550         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
22551         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
22552         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
22553         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
22554         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
22555         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
22556         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
22557         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
22558         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
22559         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
22560         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
22561         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
22562         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
22563         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
22564         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
22565         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
22566         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
22567         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
22568         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
22569         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
22570         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
22571         Reported by Eric Blake.
22572
22573 2008-04-11  Bruno Haible  <bruno@clisp.org>
22574
22575         * lib/wchar.in.h: Tweak comment.
22576
22577 2008-04-11  Bruno Haible  <bruno@clisp.org>
22578
22579         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
22580         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
22581         gl_COMMON.
22582         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
22583
22584 2008-04-11  Bruno Haible  <bruno@clisp.org>
22585
22586         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
22587
22588 2008-04-11  Simon Josefsson  <simon@josefsson.org>
22589
22590         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
22591         of attempting to use non-existing /dev/*random.  Based on patch
22592         from Adam Strzelecki <ono@java.pl> in
22593         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
22594
22595 2008-04-08  Bruno Haible  <bruno@clisp.org>
22596
22597         Add tentative support for emx+gcc.
22598         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
22599         * lib/fpurge.c (fpurge): Likewise.
22600         * lib/freadable.c (freadable): Likewise.
22601         * lib/freadahead.c (freadahead): Likewise.
22602         * lib/freading.c (freading): Likewise.
22603         * lib/freadptr.c (freadptr): Likewise.
22604         * lib/freadseek.c (freadptrinc): Likewise.
22605         * lib/fseeko.c (rpl_fseeko): Likewise.
22606         * lib/fseterr.c (fseterr): Likewise.
22607         * lib/fwritable.c (fwritable): Likewise.
22608         * lib/fwriting.c (fwriting): Likewise.
22609         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
22610
22611 2008-04-09  Eric Blake  <ebb9@byu.net>
22612
22613         Avoid some autoconf warnings.
22614         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
22615         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
22616         * m4/afs.m4 (gl_AFS): Likewise.
22617         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
22618         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
22619         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22620         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
22621         (gl_INTEGER_TYPE_SUFFIX): Likewise.
22622         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
22623         (AC_CHECK_DECLS_ONCE): Likewise.
22624         Rename file...
22625         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
22626         gnulib-tool requires autoconf 2.59 or better.
22627         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
22628
22629 2008-04-08  Eric Blake  <ebb9@byu.net>
22630
22631         Use 'git describe --match' if present (added in git 1.5.5).
22632         * build-aux/git-version-gen: Limit result to tags that match 'v*'
22633         if possible.
22634
22635 2008-04-08  Bruno Haible  <bruno@clisp.org>
22636
22637         Add tentative support for OpenServer.
22638         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
22639         _ptr, _cnt.
22640         * lib/fpurge.c (fpurge): Likewise.
22641         * lib/freadable.c (freadable): Likewise.
22642         * lib/freadahead.c (freadahead): Likewise.
22643         * lib/freading.c (freading): Likewise.
22644         * lib/freadptr.c (freadptr): Likewise.
22645         * lib/freadseek.c (freadptrinc): Likewise.
22646         * lib/fseeko.c (rpl_fseeko): Likewise.
22647         * lib/fseterr.c (fseterr): Likewise.
22648         * lib/fwritable.c (fwritable): Likewise.
22649         * lib/fwriting.c (fwriting): Likewise.
22650         Reported by Roger Cornelius <rac@tenzing.org> and
22651         Brian K. White <brian@aljex.com>.
22652
22653 2008-04-06  Jim Meyering  <meyering@redhat.com>
22654
22655         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
22656
22657 2008-04-06  Bruno Haible  <bruno@clisp.org>
22658
22659         Avoid possible error with non-ASCII bytes in UTF-8 locales.
22660         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
22661         * tests/test-printf-posix.sh: Likewise.
22662         * tests/test-vfprintf-posix.sh: Likewise.
22663         * tests/test-vprintf-posix.sh: Likewise.
22664         * tests/test-xprintf-posix.sh: Likewise.
22665
22666 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22667
22668         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
22669         hide error from 'ls', needed on OS/2.
22670         Report by Elbert Pol <elbert.pol@gmail.com>.
22671
22672 2008-04-04  Eric Blake  <ebb9@byu.net>
22673
22674         Make test-fseeko.c failures meaningful.
22675         * tests/test-fseeko.c: Print line number on failure.
22676         * tests/test-fseek.c: Likewise.
22677         Reported by Nelson H. F. Beebe.
22678
22679         Improve strtod bug detection check.
22680         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
22681         required for Solaris 10.
22682         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
22683
22684 2008-04-04  Bruno Haible  <bruno@clisp.org>
22685
22686         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
22687         by m4/setenv.m4.
22688
22689 2008-04-03  Eric Blake  <ebb9@byu.net>
22690
22691         Ensure sane .version contents.
22692         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
22693         version string.
22694         * build-aux/git-version-gen: Improve documentation.
22695
22696         Make GNU make output nicer.
22697         * top/GNUmakefile [!_have-Makefile]: Add dependency on
22698         MAKECMDGOALS to enforce message for all command line targets.  Set
22699         srcdir for use in maint.mk.
22700
22701         Another maintainer tweak.
22702         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
22703         a target that regenerates version.
22704
22705 2008-04-03  Jim Meyering  <meyering@redhat.com>
22706
22707         vc-list-files: don't cause coreutils "make po-check" failure
22708         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
22709
22710 2008-04-03  Eric Blake  <ebb9@byu.net>
22711
22712         Allow VPATH usage of vc-list-files.
22713         * build-aux/vc-list-files (scriptversion): Add timestamp.
22714         (options): Add --help, --version, -C.
22715         (CVS): Support installed cvsu.
22716
22717 2008-04-02  Bruno Haible  <bruno@clisp.org>
22718
22719         Avoid some "statement with no effect" warnings from gcc.
22720         * tests/test-wctype.c (main): Explicitly ignore unused values.
22721         Reported by Jim Meyering.
22722
22723 2008-04-02  Jim Meyering  <meyering@redhat.com>
22724
22725         Avoid some warnings from "gcc -Wshadow".
22726         * tests/test-frexp.c (exp): Define to a different identifier.
22727         * tests/test-frexpl.c (exp): Likewise.
22728
22729 2008-04-03  Jim Meyering  <meyering@redhat.com>
22730
22731         bootstrap: remove dangling *.[ch] symlinks from lib
22732         * build-aux/bootstrap [dangling symlink removal]: Move find's
22733         -depth option to precede all others, to avoid a warning.
22734         Remove *.[ch] files too, and from "$source_base" (usually lib/).
22735
22736 2008-04-02  Bruno Haible  <bruno@clisp.org>
22737
22738         Avoid some warnings from "gcc -Wshadow".
22739         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
22740         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
22741         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
22742         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
22743         Reported by Jim Meyering.
22744
22745 2008-04-01  Bruno Haible  <bruno@clisp.org>
22746
22747         Fix test to work on IRIX 6.5 with cc.
22748         * tests/test-math.c (numeric_equal): New function.
22749         (main): Use it.
22750
22751 2008-04-01  Bruno Haible  <bruno@clisp.org>
22752
22753         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
22754
22755 2008-04-01  Bruno Haible  <bruno@clisp.org>
22756
22757         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
22758         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22759         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
22760         (Depends-on): Remove math.
22761
22762         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
22763         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22764         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
22765         (Depends-on): Remove math.
22766
22767         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
22768         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22769         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
22770         (Depends-on): Remove math.
22771         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
22772         (Depends-on): Remove math.
22773
22774         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
22775         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22776         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
22777         (Depends-on): Remove math.
22778         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
22779         (Depends-on): Remove math.
22780
22781         * tests/test-round1.c: Include nan.h.
22782         (main): Use NaNd instead of NAN.
22783         * modules/round-tests (Files): Add tests/nan.h.
22784
22785         * tests/test-trunc1.c: Include nan.h.
22786         (main): Use NaNd instead of NAN.
22787         * modules/trunc-tests (Files): Add tests/nan.h.
22788
22789         * tests/test-roundf1.c: Include nan.h.
22790         (main): Use NaNf instead of NAN.
22791         * modules/roundf-tests (Files): Add tests/nan.h.
22792
22793         * tests/test-truncf1.c: Include nan.h.
22794         (main): Use NaNf instead of NAN.
22795         * modules/truncf-tests (Files): Add tests/nan.h.
22796
22797         * tests/test-ceilf1.c: Include nan.h.
22798         (main): Use NaNf instead of NAN.
22799         * modules/ceilf-tests (Files): Add tests/nan.h.
22800
22801         * tests/test-floorf1.c: Include nan.h.
22802         (main): Use NaNf instead of NAN.
22803         * modules/floorf-tests (Files): Add tests/nan.h.
22804
22805         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
22806         (main): Use NaNf instead of NAN.
22807         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
22808
22809         * tests/test-isnand.c: Include nan.h instead of <math.h>.
22810         (main): Use NaNd instead of NAN.
22811         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
22812
22813         * tests/test-frexp.c: Include nan.h.
22814         (main): Use NaNd instead of NAN.
22815         * modules/frexp-tests (Files): Add tests/nan.h.
22816
22817         * lib/isnan.c: Don't include <math.h>.
22818         (FUNC): Don't use NAN macro.
22819         * modules/isnand-nolibm (Depends-on): Remove math.
22820         * modules/isnanf-nolibm (Depends-on): Remove math.
22821         * modules/isnanl (Depends-on): Remove math.
22822         * modules/isnanl-nolibm (Depends-on): Remove math.
22823
22824         * tests/nan.h: New file.
22825
22826 2008-04-01  Eric Blake  <ebb9@byu.net>
22827
22828         Fix typos.
22829         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
22830         values to be the right type.
22831
22832         For now, cater to gnulib strtod inaccuracies.
22833         * tests/test-strtod.c (main): Allow 1-ulp error on expected
22834         fractional results.  While not as nice from a QoI perspective, it
22835         is a quicker patch than correctly implementing decimal to binary
22836         rounding.
22837
22838 2008-03-31  Eric Blake  <ebb9@byu.net>
22839
22840         Guarantee a definition of NAN.
22841         * lib/math.in.h (NAN): Define if missing.
22842         * tests/test-math.c (main): Test it.
22843         * doc/posix-headers/math.texi (math.h): Document this.
22844         * lib/isnan.c (rpl_isnand): Use it.
22845         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
22846         * tests/test-floorf1.c (NaN): Likewise.
22847         * tests/test-frexp.c (NaN): Likewise.
22848         * tests/test-isnand.c (NaN): Likewise.
22849         * tests/test-isnanf.c (NaN): Likewise.
22850         * tests/test-round1.c (NaN): Likewise.
22851         * tests/test-roundf1.c (NaN): Likewise.
22852         * tests/test-snprintf-posix.h (NaN): Likewise.
22853         * tests/test-sprintf-posix.h (NaN): Likewise.
22854         * tests/test-trunc1.c (NaN): Likewise.
22855         * tests/test-truncf1.c (NaN): Likewise.
22856         * tests/test-vasnprintf-posix.c (NaN): Likewise.
22857         * tests/test-vasprintf-posix.c (NaN): Likewise.
22858         * modules/isnand-nolibm (Depends-on): Add math.
22859         * modules/isnanf-nolibm (Depends-on): Likewise.
22860         * modules/isnanl (Depends-on): Likewise.
22861         * modules/isnanl-nolibm (Depends-on): Likewise.
22862         * modules/snprintf-posix-tests (Depends-on): Likewise.
22863         * modules/sprintf-posix-tests (Depends-on): Likewise.
22864         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
22865         * modules/vsprintf-posix-tests (Depends-on): Likewise.
22866         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
22867         * modules/vasprintf-posix-tests (Depends-on): Likewise.
22868
22869 2008-03-31  Bruno Haible  <bruno@clisp.org>
22870
22871         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
22872         * doc/posix-functions/strtod.texi: Likewise.
22873
22874 2008-03-31  Bruno Haible  <bruno@clisp.org>
22875
22876         * tests/test-strtod.c (main): Don't use C99 syntax.
22877
22878 2008-03-31  Bruno Haible  <bruno@clisp.org>
22879
22880         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
22881         Reported by Eric Blake.
22882
22883 2008-03-31  Jim Meyering  <meyering@redhat.com>
22884
22885         Don't compare actual signbit return values.
22886         * tests/test-strtod.c (main): Rather, compare only their
22887         zero/non-zero nature.
22888
22889 2008-03-31  Eric Blake  <ebb9@byu.net>
22890
22891         More strtod documentation.
22892         * doc/posix-functions/strtod.texi (strtod): Interpret more test
22893         failures as distinct bugs.
22894
22895 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
22896
22897         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
22898         Problem reported by Erik Benada in
22899         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
22900
22901 2008-03-30  Bruno Haible  <bruno@clisp.org>
22902
22903         * tests/test-strtod.c: Add comments about which assertion fails on which
22904         platform.
22905         * doc/posix-functions/strtod.texi: Add info about many more platforms.
22906
22907 2008-03-30  Eric Blake  <ebb9@byu.net>
22908
22909         Test signbit behavior on zeros.
22910         * tests/test-signbit.c (test_signbitf): Add tests for zero.
22911         (test_signbitd, test_signbitl): Likewise.
22912
22913         More strtod touchups.
22914         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
22915         sign of negative underflow, for now.  Use .5, not .1.
22916         * doc/posix-functions/strtod.texi (strtod): Mention these
22917         limitations.
22918         Reported by Jim Meyering.
22919
22920 2008-03-30  Bruno Haible  <bruno@clisp.org>
22921
22922         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
22923         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
22924
22925 2008-03-30  Bruno Haible  <bruno@clisp.org>
22926
22927         Avoid failure when attempting to return empty iconv results on some
22928         platforms.
22929         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
22930         allocation, don't report ENOMEM when the resulting string is empty.
22931
22932 2008-03-30  Bruno Haible  <bruno@clisp.org>
22933
22934         Fix buffer overrun.
22935         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
22936         Don't consider the width for tmp_length. Check count against tmp_length
22937         before doing the padding. Ensure enough allocation during padding.
22938
22939 2008-03-30  Eric Blake  <ebb9@byu.net>
22940
22941         strtod touchups.
22942         * lib/strtod.c (strtod): Avoid compiler warnings.
22943         Reported by Jim Meyering.
22944
22945 2008-03-30  Bruno Haible  <bruno@clisp.org>
22946
22947         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
22948         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
22949         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
22950         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
22951         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
22952         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
22953         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
22954         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
22955
22956         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
22957         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
22958         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
22959         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
22960         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
22961         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
22962         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
22963         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
22964
22965         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
22966         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
22967         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
22968         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
22969         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
22970         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
22971         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
22972         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
22973
22974         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
22975         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
22976
22977         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
22978         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
22979
22980         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
22981         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
22982
22983         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
22984         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
22985         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
22986
22987         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
22988         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
22989         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
22990
22991         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
22992         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
22993         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
22994
22995         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
22996         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
22997         * modules/vasprintf (Depends-on): Add EOVERFLOW.
22998
22999         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
23000         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
23001         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
23002         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
23003         (Depends-on): Add EOVERFLOW.
23004         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
23005         (Depends-on): Add EOVERFLOW.
23006         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
23007         (Depends-on): Add EOVERFLOW.
23008         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
23009         (Depends-on): Add EOVERFLOW.
23010         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
23011         (Depends-on): Add EOVERFLOW.
23012         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
23013         (Depends-on): Add EOVERFLOW.
23014         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
23015         (Depends-on): Add EOVERFLOW.
23016         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
23017         (Depends-on): Add EOVERFLOW.
23018
23019         * lib/sprintf.c (EOVERFLOW): Remove fallback.
23020         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
23021         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
23022
23023         * lib/snprintf.c (EOVERFLOW): Remove fallback.
23024         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
23025         * modules/snprintf (Depends-on): Add EOVERFLOW.
23026
23027         * lib/poll.c (EOVERFLOW): Remove fallback.
23028         * modules/poll (Depends-on): Add EOVERFLOW.
23029
23030         * lib/getugroups.c (EOVERFLOW): Remove fallback.
23031         * modules/getugroups (Depends-on): Add EOVERFLOW.
23032
23033         * lib/getdelim.c (EOVERFLOW): Remove fallback.
23034         * modules/getdelim (Depends-on): Add EOVERFLOW.
23035
23036         * lib/ftell.c (EOVERFLOW): Remove fallback.
23037         * modules/ftell (Depends-on): Add EOVERFLOW.
23038
23039         * lib/fprintf.c (EOVERFLOW): Remove fallback.
23040         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
23041         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
23042
23043         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
23044
23045         * modules/EOVERFLOW-tests: New file.
23046         * tests/test-EOVERFLOW.c: New file.
23047
23048         * modules/EOVERFLOW: New file.
23049         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
23050
23051 2008-03-30  Bruno Haible  <bruno@clisp.org>
23052
23053         Fix bug introduced on 2007-06-10.
23054         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
23055         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
23056
23057 2008-03-30  Bruno Haible  <bruno@clisp.org>
23058
23059         Improve freadseek's efficiency after ungetc.
23060         * lib/freadseek.c: Include freadahead.h.
23061         (freadptrinc): New function, extracted from freadseek.
23062         (freadseek): Use it in a loop. Use freadahead to determine the number
23063         of loop iterations.
23064         * modules/freadseek (Depends-on): Add freadahead.
23065         (configure.ac): Require AC_C_INLINE.
23066
23067 2008-03-30  Bruno Haible  <bruno@clisp.org>
23068
23069         * lib/freadseek.c (freadseek): Don't ignore the return value of
23070         freadptr.
23071
23072 2008-03-29  Eric Blake  <ebb9@byu.net>
23073
23074         Add hex float support.
23075         * modules/strtod (Depends-on): Add c-ctype.
23076         (Link): Mention POW_LIB.
23077         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
23078         whitespace between 'e' and exponent.
23079         * tests/test-strtod.c (main): Enable hex float tests.
23080         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
23081         now provides.
23082
23083         Document various strtod bugs, with some fixes.
23084         * doc/posix-functions/strtod.texi (strtod): Document bugs with
23085         "-0x", "inf", "nan", and hex constants.
23086         * doc/posix-functions/atof.texi (atof): Likewise.
23087         * modules/stdlib (Makefile.am): Support strtod.
23088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
23089         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
23090         detect additional strtod bugs.
23091         * lib/stdlib.in.h (rpl_strtod): Add declarations.
23092         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
23093         bool where appropriate.  Parse 'inf' and 'nan'.
23094         * tests/test-strtod.c: New file.
23095         * modules/strtod (Depends-on): Add stdbool, stdlib.
23096         (configure.ac): Turn on module indicator.
23097         * modules/strtod-tests: New module.
23098
23099 2008-03-29  Eric Blake  <ebb9@byu.net>
23100
23101         Fix ftell on mingw.
23102         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
23103         * modules/ftell-tests (Depends-on): Add binary-io.
23104         * modules/ftello-tests (Depends-on): Likewise.
23105         * tests/test-ftell.c (main): Enhance test to cover behavior after
23106         ungetc.  Enforce binary mode.
23107         * tests/test-ftello.c (main): Likewise.
23108
23109         Pass test-freadseek on cygwin.
23110         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
23111         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
23112         ungetc buffer.
23113
23114         * tests/test-fflush2.c (main): Fix typo.
23115
23116 2008-03-29  Bruno Haible  <bruno@clisp.org>
23117
23118         * tests/test-fflush2.c (main): Temporarily disable the contents of
23119         this test.
23120         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
23121         Reported by Eric Blake.
23122
23123 2008-03-28  Simon Josefsson  <simon@josefsson.org>
23124
23125         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
23126         (GC_SHA224_DIGEST_SIZE): Add.
23127
23128         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
23129         (gc_hash_digest_length): Likewise.
23130         (gc_hash_buffer): Likewise.
23131
23132 2008-03-25  Bruno Haible  <bruno@clisp.org>
23133
23134         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
23135         detail which gettext release to use.
23136         Reported by Simon Josefsson.
23137
23138 2008-03-26  Jim Meyering  <meyering@redhat.com>
23139
23140         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
23141         * modules/gnumakefile (clean-GNUmakefile): Also, use
23142         test ... && ... || : syntax rather than if-then ... fi.
23143
23144         gnumakefile: Don't double-quote-expand $(VPATH) value.
23145         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
23146
23147 2008-03-24  Eric Blake  <ebb9@byu.net>
23148
23149         Alter GNUmakefile to install into top directory.
23150         * modules/maintainer-makefile: Split, and add dependency...
23151         * modules/gnumakefile: to this new module.
23152         * build-aux/GNUmakefile: Move...
23153         * top/GNUmakefile: ...here.
23154         * build-aux/maint.mk: Move...
23155         * top/maint.mk: ...here.
23156         * MODULES.html.sh (Support for maintaining...): Document new
23157         module.
23158
23159 2008-03-23  Bruno Haible  <bruno@clisp.org>
23160
23161         * gnulib-tool: New options --vc-files, --no-vc-files.
23162         (func_usage): Document them.
23163         (vc_files): New variable.
23164         (func_import): Consider vc_files.
23165         (func_create_testdir): Set vc_files to empty.
23166         Suggested by Jim Meyering and Karl Berry.
23167
23168 2008-03-23  Bruno Haible  <bruno@clisp.org>
23169
23170         Fix regex compilation error on HP-UX 11.
23171         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
23172         * modules/regex (Files): Add m4/mbstate_t.m4.
23173         Reported by Ton Voon <ton.voon@altinity.com>.
23174
23175 2008-03-23  Bruno Haible  <bruno@clisp.org>
23176
23177         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
23178
23179 2008-03-23  Eric Blake  <ebb9@byu.net>
23180             Bruno Haible  <bruno@clisp.org>
23181
23182         Install files from top/ in the destination directory.
23183         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
23184         augmentation also for the files from top/.
23185         (func_import, func_create_testdir): Rewrite file names:
23186         top/filename -> filename.
23187
23188 2008-03-23  Bruno Haible  <bruno@clisp.org>
23189
23190         Tweak "gnulib --version" output.
23191         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
23192
23193 2008-03-23  Bruno Haible  <bruno@clisp.org>
23194
23195         Tweak "gnulib --version" output.
23196         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
23197         rather than contents of ChangeLog, when possible.
23198
23199 2008-03-21  Eric Blake  <ebb9@byu.net>
23200
23201         More --version tweaks.
23202         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
23203         date of last ChangeLog entry.
23204
23205 2008-03-21  Jim Meyering  <meyering@redhat.com>
23206
23207         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
23208
23209 2008-03-20  Eric Blake  <ebb9@byu.net>
23210
23211         VPATH fix.
23212         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
23213
23214 2008-03-20  Simon Josefsson  <simon@josefsson.org>
23215
23216         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
23217         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
23218
23219 2008-03-20  Eric Blake  <ebb9@byu.net>
23220
23221         Sync GNUmakefile with coreutils.
23222         * build-aux/GNUmakefile (have-Makefile): Rename...
23223         (_have-Makefile): ...to this, for namespace consideration.
23224         (GNUmakefile.cfg): Include, if present.
23225         (_autoreconf): Define a default.
23226         (_is-dist-target): New rule for rebuilds to pick up intra-release
23227         version.
23228         (maint-cfg.mk): Rename...
23229         (cfg.mk): ...to this.
23230
23231 2008-03-18  Jim Meyering  <meyering@redhat.com>
23232
23233         New script and module: mktempd
23234         * MODULES.html.sh (maint+release support): Add mktempd.
23235         * build-aux/mktempd: New file.
23236         * modules/mktempd: New file.
23237
23238 2008-03-15  Jim Meyering  <meyering@redhat.com>
23239
23240         Undo last change.
23241         * lib/sha1.c, lib/md5.c: 63 != ~63.
23242         Reported by Andreas Schwab.
23243
23244         sha1.c, md5.c: Hoist a redundant expression.
23245         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
23246         "ctx->buflen" only once, before calling *_process_block.
23247         * lib/md5.c (md5_process_bytes): Likewise.
23248
23249 2008-03-14  Eric Blake  <ebb9@byu.net>
23250
23251         Bump copyright year in files generated by gnulib-tool.
23252         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
23253         gnulib-tool, rather than hard-coding it.
23254
23255         Fix 'gnulib-tool --version' output to work with git.
23256         * gnulib-tool (func_gnulib_dir): New function, extracted from...
23257         (startup): ...here.
23258         (func_version): Use it to invoke git-version-gen, rather than
23259         relying on CVS keyword expansion.  Modernize wording.
23260         (cvsdatestamp, last_checkin_date, version): Kill unused
23261         variables.
23262
23263 2008-03-12  Jim Meyering  <meyering@redhat.com>
23264
23265         Recognize optional cast of the argument to free.
23266         * build-aux/useless-if-before-free: Update regexps.
23267
23268         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
23269
23270 2008-03-11  Bruno Haible  <bruno@clisp.org>
23271
23272         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
23273         by a single package.
23274         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
23275         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
23276         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
23277         Reported by Sam Steingold <sds@gnu.org>.
23278
23279 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23280
23281         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
23282         repositories.
23283
23284 2008-03-11  Bruno Haible  <bruno@clisp.org>
23285
23286         Avoid conflicts between local macro definitions.
23287         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23288         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
23289
23290 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
23291             Bruno Haible  <bruno@clisp.org>
23292
23293         Make va_copy work with some version of xlc on AIX 5.1.
23294         * lib/stdarg.in.h: New file.
23295         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
23296         On AIX, use a <stdarg.h> file substitute.
23297         * modules/stdarg (Files): Add lib/stdarg.in.h.
23298         (Depends-on): Add include_next.
23299         (Makefile.am): Build a stdarg.h substitute if requested.
23300         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
23301
23302 2008-03-10  Bruno Haible  <bruno@clisp.org>
23303
23304         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
23305         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23306         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23307
23308 2008-03-10  Bruno Haible  <bruno@clisp.org>
23309
23310         * modules/stdlib (Depends-on): Add include_next, remove
23311         absolute-header.
23312
23313 2008-03-09  Bruno Haible  <bruno@clisp.org>
23314
23315         * lib/freadahead.h (freadahead): Document more precisely.
23316         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
23317         the sum of both buffer sizes.
23318         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
23319         * NEWS: Document the change.
23320
23321 2008-03-09  Bruno Haible  <bruno@clisp.org>
23322
23323         Extend freadptr to return also the buffer size.
23324         * lib/freadptr.h (freadptr): Add sizep argument.
23325         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
23326         (freadptr): Add sizep argument. Determine buffer size like freadahead
23327         does.
23328         * tests/test-freadptr.c: Don't include freadahead.h.
23329         (main): Adapt for new calling convention of freadptr.
23330         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
23331         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
23332         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
23333         tests/test-freadptr2.sh.
23334         (Depends): Remove freadahead.
23335         (TESTS): Add test-freadptr2.sh.
23336         (check_PROGRAMS): Add test-freadptr2.
23337
23338 2008-03-09  Bruno Haible  <bruno@clisp.org>
23339
23340         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
23341         Report and solution by Simon Josefsson.
23342
23343 2008-03-06  Bruno Haible  <bruno@clisp.org>
23344
23345         Make fflush after ungetc work on BSD platforms.
23346         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
23347         * tests/test-fflush2.c: New file.
23348         * tests/test-fflush2.sh: New file.
23349         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
23350         tests/test-fflush2.c.
23351         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
23352         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
23353
23354 2008-03-06  Eric Blake  <ebb9@byu.net>
23355
23356         Likewise for ftello.
23357         * modules/ftello (Dependencies): Add extensions.
23358         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
23359
23360 2008-03-06  Bruno Haible  <bruno@clisp.org>
23361
23362         * modules/fseeko (Dependencies): Add extensions.
23363         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
23364         Needed on glibc systems.
23365
23366 2008-03-06  Bruno Haible  <bruno@clisp.org>
23367
23368         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
23369         email address.
23370         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23371
23372 2008-03-06  Bruno Haible  <bruno@clisp.org>
23373
23374         * users.txt: Add libgnupdf.
23375
23376 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23377
23378         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
23379         (Header File Substitutes, Function Substitutes,
23380         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
23381         (Build robot for gnulib): Fix typo.
23382
23383 2008-03-06  Bruno Haible  <bruno@clisp.org>
23384
23385         * doc/gnulib-tool.texi (VCS Issues): Small updates.
23386         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23387
23388 2008-03-06  Bruno Haible  <bruno@clisp.org>
23389
23390         * doc/func.texi: New file, extracted from doc/gnulib.texi.
23391         * doc/gnulib.texi: Include it.
23392
23393 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23394
23395         * modules/func (License): Change license to unlimited; there was
23396         no LGPL parts in the module anyway.
23397
23398 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23399
23400         * modules/__func__: Renamed to modules/func.
23401         * modules/__func__-tests: Renamed to modules/func-tests.
23402         * tests/test-__func__.c: Renamed to tests/test-func.c.
23403         * m4/__func__.m4: Renamed to m4/func.m4.
23404         * doc/gnulib.texi (__func__): Section renamed to func.
23405         Suggested by Eric Blake <ebb9@byu.net>.
23406
23407 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23408
23409         * doc/gnulib.texi (__func__): Use C99 terminology when talking
23410         about __func__.  Make example self-contained.  Suggested by Eric
23411         Blake <ebb9@byu.net>.
23412
23413         * tests/test-__func__.c (main): Avoid extraneous () around __func.
23414         Suggested by Eric Blake <ebb9@byu.net>.
23415
23416 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23417
23418         * modules/__func__: New file.
23419         * modules/__func__-tests: New file.
23420         * tests/test-__func__.c: New file.
23421         * m4/__func__.m4: New file.
23422         * doc/gnulib.texi (__func__): Document __func__ module.
23423
23424 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23425
23426         * modules/byteswap (License): Re-license as LGPLv2+.
23427
23428 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23429
23430         * doc/Makefile: Add pdf target.
23431
23432 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23433
23434         * modules/inline (License): Use 'unlimited', since there are only
23435         *.m4 files in this module.
23436
23437 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
23438             Bruno Haible  <bruno@clisp.org>
23439
23440         Add support for HP C 7.1 on OpenVMS 8.3.
23441         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
23442
23443 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
23444
23445         Update VMS specifics.
23446         * lib/getopt.c [VMS]: Remove include of unixlib.h.
23447
23448 2008-03-02  Jim Meyering  <meyering@redhat.com>
23449
23450         Remove the last dependency on the "free" module.
23451         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
23452         Reported by Bob Proulx.
23453
23454         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
23455
23456         Remove useless "if" tests before free.  Deprecate "free" module.
23457         * doc/posix-functions/free.texi: Mention that this
23458         module is no longer useful.
23459         * modules/free (Notice): Say this module is obsolete.
23460         * modules/readutmp (Depends-on): Remove free.
23461         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
23462         * lib/putenv.c (putenv): Likewise.
23463         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
23464         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
23465         * tests/test-c-strcasestr.c (main): Likewise.
23466         * tests/test-c-strstr.c (main): Likewise.
23467         * tests/test-mbscasestr1.c (main): Likewise.
23468         * tests/test-mbscasestr2.c (main): Likewise.
23469         * tests/test-mbsstr1.c (main): Likewise.
23470         * tests/test-mbsstr2.c (main): Likewise.
23471         * tests/test-memmem.c (main): Likewise.
23472         * tests/test-strcasestr.c (main): Likewise.
23473         * tests/test-striconv.c (main): Likewise.
23474         * tests/test-striconveh.c (main): Likewise.
23475         * tests/test-striconveha.c (main): Likewise.
23476         * tests/test-strstr.c (main): Likewise.
23477
23478         * build-aux/git-version-gen: Adjust a comment and the Usage string.
23479
23480         bootstrap: sync from coreutils again
23481         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
23482
23483 2008-03-01  Jim Meyering  <meyering@redhat.com>
23484
23485         bootstrap: sync from coreutils
23486         * build-aux/bootstrap (update_po_files): Copy a .po file into place
23487         also when the target doesn't exist.
23488
23489 2008-03-01  Eric Blake  <ebb9@byu.net>
23490
23491         Fix bugs in last patch.
23492         * lib/memchr2.c (memchr2): Fix typo.
23493         * tests/test-memchr2.c: Test previous bug, and don't use GNU
23494         extension.
23495         Reported by Bruce Korb.
23496
23497         New module 'memchr2'.
23498         * modules/memchr2: New file.
23499         * modules/memchr2-tests: Likewise.
23500         * lib/memchr2.h: Likewise.
23501         * lib/memchr2.c: Likewise, based on memchr.c.
23502         * tests/test-memchr2.c: New test.
23503         * MODULES.html.sh (String handling): Add memchr2.
23504
23505 2008-02-29  Bruno Haible  <bruno@clisp.org>
23506
23507         * modules/freadseek-tests: New file.
23508         * tests/test-freadseek.sh: New file.
23509         * tests/test-freadseek.c: New file.
23510
23511         New module 'freadseek'.
23512         * modules/freadseek: New file.
23513         * lib/freadseek.h: New file.
23514         * lib/freadseek.c: New file.
23515         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
23516
23517 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
23518
23519         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
23520         wydawca.
23521
23522         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
23523         program_invocation_name and program_invocation_short_name are
23524         present.
23525
23526 2008-02-28  Bruno Haible  <bruno@clisp.org>
23527
23528         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
23529         * tests/test-freadptr.sh: Also test non-seekable stdin.
23530
23531 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
23532
23533         * build-aux/bootstrap (source_base, m4_base)
23534         (doc_base, tests_base): New variables.
23535         (gnulib_tool_options): Do not hardcode base directories, use
23536         the above variables instead.
23537
23538 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
23539
23540         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
23541
23542 2008-02-28  Bruno Haible  <bruno@clisp.org>
23543
23544         * modules/freadptr-tests: New file.
23545         * tests/test-freadptr.sh: New file.
23546         * tests/test-freadptr.c: New file.
23547
23548         New module 'freadptr'.
23549         * modules/freadptr: New file.
23550         * lib/freadptr.h: New file.
23551         * lib/freadptr.c: New file.
23552         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
23553
23554 2008-02-26  Karl Berry  <karl@freefriends.org>
23555
23556         Sync from Libtool:
23557         * libltdl/argz.c (argz_add, argz_count): New functions.
23558         * libltdl/argz.in.h: Declare them.
23559         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
23560
23561 2008-02-22  Bruno Haible  <bruno@clisp.org>
23562
23563         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
23564         is a pointer type.  Needed for HP-UX 10.
23565         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
23566         * doc/posix-functions/gmtime_r.texi: Likewise.
23567         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23568
23569 2008-02-24  Bruno Haible  <bruno@clisp.org>
23570
23571         * modules/environ-tests: New file.
23572         * tests/test-environ.c: New file.
23573
23574         New module 'environ'.
23575         * modules/environ: New file.
23576         * lib/unistd.in.h (environ): New declaration.
23577         * m4/environ.m4: New file.
23578         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
23579         after use.
23580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
23581         HAVE_DECL_ENVIRON.
23582         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
23583         HAVE_DECL_ENVIRON.
23584         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
23585         wrong claim that 'environ' is missing on some systems.
23586         * modules/execute (Depends-on): Add environ.
23587         * lib/execute.c (environ): Remove fallback declaration.
23588         * modules/pipe (Depends-on): Add environ.
23589         * lib/pipe.c (environ): Remove fallback declaration.
23590         * modules/setenv (Depends-on): Add environ.
23591         * lib/setenv.c (environ): Remove fallback declaration.
23592         * modules/unsetenv (Depends-on): Add environ.
23593         * lib/unsetenv.c (environ): Remove fallback declaration.
23594         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
23595         m4/environ.m4.
23596         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
23597         (gl_PREREQ_UNSETENV): Likewise.
23598
23599 2008-02-24  Bruno Haible  <bruno@clisp.org>
23600
23601         * doc/posix-functions/environ.texi: Document the MacOS X problem.
23602
23603 2008-02-20  Bob Proulx  <bob@proulx.com>
23604
23605         Enable use of older two part flavor 'git describe'.
23606         * build-aux/git-version-gen: If using the older two part flavor of
23607         git version then recreate the third part now present in the
23608         newer three part flavor of git describe.
23609
23610 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
23611
23612         * lib/fts.c (fts_build): Typo correction to comment.
23613
23614 2008-02-17  Bruno Haible  <bruno@clisp.org>
23615
23616         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
23617         generating no-op conflicts.
23618
23619 2008-02-17  Bruno Haible  <bruno@clisp.org>
23620
23621         Speed up by 10%.
23622         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
23623         result_entries, rather than an index-based loop.
23624
23625 2008-02-17  Bruno Haible  <bruno@clisp.org>
23626
23627         Speed up by 25%.
23628         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
23629         'hashcode_cached'.
23630         (entry_create): New function.
23631         (entry_hashcode): Use the cached hashcode if possible.
23632         (read_changelog_file, try_split_merged_entry): Use entry_create.
23633
23634 2008-02-17  Bruno Haible  <bruno@clisp.org>
23635
23636         Speed up from O(n^2) to O(n) for long ChangeLog files.
23637         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
23638         (read_changelog_file): Change implementation of entries_reversed list
23639         to rbtreehash.
23640         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
23641
23642 2008-02-17  Bruno Haible  <bruno@clisp.org>
23643
23644         New option --split-merged-entry.
23645         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
23646         (find_paragraph_end, try_split_merged_entry): New functions.
23647         (long_options): Add option --split-merged-entry.
23648         (usage): Document option --split-merged-entry.
23649         (main): Implement option --split-merged-entry.
23650         Reported by Eric Blake.
23651
23652 2008-02-17  Bruno Haible  <bruno@clisp.org>
23653
23654         * lib/git-merge-changelog.c: Include c-strstr.h.
23655         (main): Support the "git pull --rebase" situation.
23656         * modules/git-merge-changelog (Depends-on): Add c-strstr.
23657         Reported by Eric Blake.
23658
23659 2008-02-16  Eric Blake  <ebb9@byu.net>
23660
23661         Avoid doubling \ in common case of "c-maybe" quoting style.
23662         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
23663         eliding outer quotes.
23664         * lib/quotearg.h: Document this.
23665         * tests/test-quotearg.c (result_strings, inputs, results_g)
23666         (flag_results, locale_results): Test it by adding a new string to
23667         each test group.
23668         (compare_strings): Test new string.
23669
23670 2008-02-13  Eric Blake  <ebb9@byu.net>
23671
23672         Avoid trigraph quoting in default output.
23673         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
23674         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
23675         unless explicitly requested.
23676         * tests/test-quotearg.c (flag_results, main): Add additional tests.
23677
23678 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
23679
23680         Don't rely on signed integer overflowing to negative value.
23681         * lib/getugroups.c (getugroups): Include <limits.h>.
23682         Instead, compare against INT_MAX, and increment only if the test passes.
23683
23684 2008-02-13  Jim Meyering  <meyering@redhat.com>
23685         and Eric Blake  <ebb9@byu.net>
23686
23687         Avoid shadowing warning and compile errors on Linux.
23688         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
23689         forwarding macros on Linux.
23690         (dcgettext): Define a stub, for Linux.
23691         (results_g, main): Avoid warnings.
23692
23693 2008-02-12  Eric Blake  <ebb9@byu.net>
23694
23695         Silence warning in last patch.
23696         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
23697
23698         Quotearg part 4: add tests, fix c-maybe colon quoting.
23699         * lib/quotearg.h: Improve documentation.
23700         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
23701         escapes when adding outer quotes.  When quoting trigraphs, use
23702         valid C notation.  When quoting NUL, omit extra characters if next
23703         character is not digit.  Alter prototype.
23704         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
23705         callers.
23706         * modules/quotearg-tests: New module.
23707         * tests/test-quotearg.c: New test.
23708
23709 2008-02-07  Eric Blake  <ebb9@byu.net>
23710
23711         Quotearg part 3: add flag to control outer quote elision.
23712         * lib/quotearg.h (c_maybe_quoting_style): New style.
23713         (enum quoting_flags): Better documentation of flags.
23714         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
23715         c-maybe style.
23716         (quotearg_buffer_restyled): Handle new flag to elide outer
23717         quotes.
23718
23719         Quotearg part 2: add flag that can control NUL elision.
23720         * lib/quotearg.h (set_quoting_flags): New prototype.
23721         * lib/quotearg.c (struct quoting_options): Add flag field.
23722         (set_quoting_flags): New function.
23723         (quotearg_buffer_restyled): Add flags parameter.
23724         (quotearg_alloc_mem): Set the flag if length cannot be returned.
23725         (quotearg_n_options): Set the flag, since length cannot be
23726         returned.
23727         (quoting_options_from_style): Default flags correctly.
23728
23729         Quotearg part 1: more wrappers, restore quotearg_char state.
23730         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
23731         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
23732         (quotearg_colon_mem): New wrappers.
23733         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
23734         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
23735         functions.
23736         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
23737         (quotearg_colon_mem): New functions.
23738
23739 2008-02-11  Bruno Haible  <bruno@clisp.org>
23740
23741         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
23742         library in the current directory: it does not work with parallel make.
23743         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23744
23745 2008-02-11  Bruno Haible  <bruno@clisp.org>
23746
23747         * .gitattributes: New file.
23748
23749 2008-02-11  Jim Meyering  <meyering@redhat.com>
23750
23751         useless-if-before-free: Fix reversed exit values.
23752         * build-aux/useless-if-before-free: Use correct values
23753         for EXIT_MATCH and EXIT_NO_MATCH.
23754
23755         * build-aux/useless-if-before-free: Close stdout carefully.
23756
23757 2008-02-10  Bruno Haible  <bruno@clisp.org>
23758
23759         New module 'git-merge-changelog'.
23760         * modules/git-merge-changelog: New file.
23761         * lib/git-merge-changelog.c: New file.
23762
23763 2008-02-10  Jim Meyering  <meyering@redhat.com>
23764
23765         useless-if-before-free: New option: --list (-l).
23766
23767         useless-if-before-free: Don't exit immediately upon open failure.
23768         * build-aux/useless-if-before-free: Exit 2 for errors.
23769         Upon failure to open a file, don't exit immediately.
23770         Rather, just warn and continue with any remaining files.
23771
23772 2008-02-10  Bruno Haible  <bruno@clisp.org>
23773
23774         New abstract list operation 'node_set_value'.
23775         * lib/gl_list.h (gl_list_node_set_value): New function.
23776         (struct gl_list_implementation): New field node_set_value.
23777         * lib/gl_list.c (gl_list_node_set_value): New function.
23778         * lib/gl_array_list.c (gl_array_node_set_value): New function.
23779         (gl_array_list_implementation): Update.
23780         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
23781         (gl_carray_list_implementation): Update.
23782         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
23783         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23784         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23785         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
23786         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23787         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23788         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23789         Update.
23790         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23791         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
23792         (gl_sublist_list_implementation): Update.
23793
23794 2008-02-10  Bruno Haible  <bruno@clisp.org>
23795
23796         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
23797         Needed when ELEMENT is #defined to 'some_type *'.
23798
23799 2008-02-10  Jim Meyering  <meyering@redhat.com>
23800
23801         New script and module: useless-if-before-free
23802         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
23803         * build-aux/useless-if-before-free: New file.
23804         * modules/useless-if-before-free: New file.
23805
23806         * build-aux/gitlog-to-changelog: Use committer date, not author date.
23807
23808         xstrtol_error: Fix typo.
23809         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
23810         s/exit_failure/exit_status/.
23811
23812 2008-02-09  Jim Meyering  <meyering@redhat.com>
23813
23814         New script and module: gitlog-to-changelog
23815         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
23816         * modules/gitlog-to-changelog: New file.
23817         * build-aux/gitlog-to-changelog: New file.
23818
23819 2008-02-08  Jim Meyering  <meyering@redhat.com>
23820
23821         Avoid two "parameter unused" warnings.
23822         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
23823         Mark "st" as used.
23824
23825         Use "git COMMAND", not "git-COMMAND".
23826         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
23827         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
23828         * build-aux/git-version-gen: Use "git status", not "git-status".
23829
23830 2008-02-07  Bruno Haible  <bruno@clisp.org>
23831
23832         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
23833         Avoids a crash on Windows Vista.
23834         Reported by Adam Strzelecki <ono@java.pl> via
23835         Simon Josefsson <simon@josefsson.org>.
23836
23837 2008-02-06  Bruno Haible  <bruno@clisp.org>
23838
23839         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
23840         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
23841         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
23842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
23843         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23844         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23845         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
23846         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
23847         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23848         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23849         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23850         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23851         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23852         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23853         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23854         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
23855         left-adjust flag.
23856         * tests/test-snprintf-posix.h (test_function): Likewise.
23857         * tests/test-sprintf-posix.h (test_function): Likewise.
23858         * tests/test-vasprintf-posix.c (test_function): Likewise.
23859         * doc/posix-functions/fprintf.texi: Update.
23860         * doc/posix-functions/printf.texi: Update.
23861         * doc/posix-functions/snprintf.texi: Update.
23862         * doc/posix-functions/sprintf.texi: Update.
23863         * doc/posix-functions/vfprintf.texi: Update.
23864         * doc/posix-functions/vprintf.texi: Update.
23865         * doc/posix-functions/vsnprintf.texi: Update.
23866         * doc/posix-functions/vsprintf.texi: Update.
23867         Reported by Peter Fales <psfales@alcatel-lucent.com>.
23868
23869 2008-02-06  Bruno Haible  <bruno@clisp.org>
23870
23871         Fix bug introduced on 2008-01-26.
23872         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
23873
23874 2008-02-06  Bruno Haible  <bruno@clisp.org>
23875
23876         Fix bug introduced on 2007-06-10.
23877         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
23878         !NEED_PRINTF_FLAG_ZERO.
23879
23880 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
23881
23882         getloadavg: use libperfstat on AIX5
23883         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
23884
23885 2008-02-03  Bruno Haible  <bruno@clisp.org>
23886
23887         * lib/diffseq.h: Add comments about required #includes.
23888         Reported by Michael Biggs <gnulib@doubleplum.net>.
23889
23890 2008-02-01  Bruno Haible  <bruno@clisp.org>
23891
23892         * users.txt: Add gnuit.
23893
23894 2008-01-31  Bruno Haible  <bruno@clisp.org>
23895
23896         * lib/md4.c (set_uint32): Mark as inline.
23897         * lib/md5.c (set_uint32): Likewise.
23898         * lib/sha1.c (set_uint32): Likewise.
23899         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
23900         * m4/md5.m4 (gl_MD5): Likewise.
23901         * m4/sha1.m4 (gl_SHA1): Likewise.
23902
23903 2008-01-31  Jim Meyering  <meyering@redhat.com>
23904
23905         Use "sizeof VAR", rather than a literal "4".
23906         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
23907         * lib/md4.c (md4_read_ctx): Likewise.
23908         * lib/sha1.c (sha1_read_ctx): Likewise.
23909
23910 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23911
23912         * tests/test-sha1.c: New file, based on test-md5.c.
23913
23914         * modules/crypto/sha1-tests: New file.
23915
23916 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23917
23918         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
23919
23920 2008-01-31  Jim Meyering  <meyering@redhat.com>
23921
23922         Prefer "sizeof v" over the equivalent "4".
23923         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
23924         * lib/md5.c (set_uint32): Likewise.
23925         * lib/sha1.c (set_uint32): Likewise.
23926
23927 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23928
23929         * lib/sha1.c (set_uint32): Mark function as static.
23930
23931 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23932
23933         md2: clarify comments to say that alignment is not required.
23934         * lib/md2.h: Remove warning about alignment in comment.
23935         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
23936         never been required.
23937
23938 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23939
23940         md4: adapt alignment constraint fix from sha1.
23941         * lib/md4.c (set_uint32): New function, from sha1.c
23942         (md4_read_ctx): Use it.
23943         (md4_finish_ctx): Doc fix.
23944         * lib/md4.h: Doc fix.
23945
23946 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23947
23948         md5: adapt alignment constraint fix from sha1.
23949         * lib/md5.c (set_uint32): New function, from sha1.c
23950         (md5_read_ctx): Use it.
23951         (md5_finish_ctx): Doc fix.
23952         * lib/md5.h: Doc fix.
23953
23954 2008-01-30  Peter Palfrader  <weasel@debian.org>
23955
23956         sha1: remove the result buffer alignment constraint
23957         * lib/sha1.c (set_uint32): New function.
23958         (sha1_read_ctx): Rewrite to remove the result buffer alignment
23959         constraint.
23960         (sha1_finish_ctx): Remove comment warning about alignment constraint.
23961         * lib/sha1.h: Likewise.
23962
23963 2008-01-30  Andreas Schwab  <schwab@suse.de>
23964             Bruno Haible  <bruno@clisp.org>
23965
23966         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
23967         correct definition of LDBL_MIN_EXP.
23968
23969 2008-01-30  Karl Berry  <karl@gnu.org>
23970
23971         * config/srclist-update: try to preserve x bit on updates.
23972         * config/srclistvars.sh: update for karl.
23973
23974 2008-01-29  Jim Meyering  <meyering@redhat.com>
23975
23976         vasnprintf.c: Avoid warning about unused label
23977         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
23978         "overflow" label definition and associated code with the
23979         same cpp condition that guards the sole use of that label.
23980
23981 2008-01-26  Bruno Haible  <bruno@clisp.org>
23982
23983         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
23984         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
23985         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
23986         * lib/isnanl-nolibm.h (isnanl): Likewise.
23987         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23988
23989 2008-01-26  Bruno Haible  <bruno@clisp.org>
23990
23991         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
23992         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
23993
23994 2008-01-26  Bruno Haible  <bruno@clisp.org>
23995
23996         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
23997         GCC >= 4.0 built-in.
23998         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
23999
24000 2008-01-26  Bruno Haible  <bruno@clisp.org>
24001
24002         Rename isnan, applicable to 'double' only, to isnand.
24003         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
24004         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
24005         (configure.ac): Update.
24006         (Include): Replace "isnan.h" with "isnand.h".
24007         * m4/isnand.m4: Renamed from m4/isnan.m4.
24008         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
24009         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
24010         instead of isnan.c.
24011         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
24012         instead of HAVE_ISNAN_IN_LIBC.
24013         (isnand): Renamed from isnan.
24014         * lib/isnand.c: New file.
24015         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
24016         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
24017         (Makefile.am): Update.
24018         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
24019         Include isnand.h instead of isnan.h.
24020         (main): Test isnand instead of isnan.
24021         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
24022         isnan-nolibm.
24023         * modules/frexp (Depends-on): Likewise.
24024         * modules/frexp-tests (Depends-on): Likewise.
24025         * modules/frexp-nolibm (Depends-on): Likewise.
24026         * modules/frexp-nolibm-tests (Depends-on): Likewise.
24027         * modules/isfinite (Depends-on): Likewise.
24028         * modules/round-tests (Depends-on): Likewise.
24029         * modules/signbit (Depends-on): Likewise.
24030         * modules/signbit-tests (Depends-on): Likewise.
24031         * modules/snprintf-posix (Depends-on): Likewise.
24032         * modules/sprintf-posix (Depends-on): Likewise.
24033         * modules/trunc-tests (Depends-on): Likewise.
24034         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24035         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24036         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24037         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24038         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24039         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24040         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24041         * modules/vasnprintf-posix (Depends-on): Likewise.
24042         * modules/vasprintf-posix (Depends-on): Likewise.
24043         * modules/vfprintf-posix (Depends-on): Likewise.
24044         * modules/vsnprintf-posix (Depends-on): Likewise.
24045         * modules/vsprintf-posix (Depends-on): Likewise.
24046         * lib/frexp.c: Include isnand.h instead of isnan.h.
24047         (ISNAN): Set to isnand instead of isnan.
24048         * lib/isfinite.c: Include isnand.h instead of isnan.h.
24049         (gl_isfinited): Use isnand instead of isnan.
24050         * lib/signbitd.c: Include isnand.h instead of isnan.h.
24051         (gl_signbitd): Use isnand instead of isnan.
24052         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
24053         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
24054         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
24055         (main): Use isnand instead of isnan.
24056         * tests/test-round1.c: Include isnand.h.
24057         (main): Use isnand instead of isnan.
24058         * tests/test-round2.c: Include isnand.h instead of isnan.h.
24059         (ISNAN): Set to isnand instead of isnan.
24060         * tests/test-trunc1.c: Include isnand.h.
24061         (main): Use isnand instead of isnan.
24062         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
24063         (equal): Use isnand instead of isnan.
24064         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
24065         isnand-nolibm.
24066         * NEWS: Mention the change.
24067
24068 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24069             Bruno Haible  <bruno@clisp.org>
24070
24071         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
24072         the GCC builtins for signbits are present and set
24073         REPLACE_SIGNBIT_USING_GCC if so.
24074         * lib/math.in.h (signbit): Define using GCC builtins if
24075         REPLACE_SIGNBIT_USING_GCC is set.
24076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
24077         REPLACE_SIGNBIT_USING_GCC.
24078         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
24079
24080 2008-01-25  Jim Meyering  <meyering@redhat.com>
24081
24082         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
24083         * lib/poll.c: Include <config.h>, not "config.h".
24084         * tests/test-getaddrinfo.c: Likewise.
24085
24086 2008-01-25  Simon Josefsson  <simon@josefsson.org>
24087
24088         * modules/sockets-tests: New file.
24089
24090 2008-01-24  Simon Josefsson  <simon@josefsson.org>
24091
24092         * modules/sockets: New module, can be used to call WSA_Startup and
24093         WSA_Cleanup when needed.
24094
24095         * lib/sockets.h, lib/sockets.c: New files.
24096
24097         * m4/sockets.m4: New file.
24098
24099         * tests/test-sockets.c: New file.
24100
24101 2008-01-19  Bruno Haible  <bruno@clisp.org>
24102
24103         * doc/posix-headers: Renamed from doc/headers.
24104         * doc/posix-functions: Renamed from doc/functions.
24105         * doc/gnulib.texi: Update.
24106
24107 2008-01-19  Bruno Haible  <bruno@clisp.org>
24108
24109         * doc/glibc-functions/strcasestr.texi: Include contents of
24110         doc/functions/strcasestr.texi, fixing the list of platforms.
24111         * doc/functions/strcasestr.texi: Remove file.
24112
24113 2008-01-19  Bruno Haible  <bruno@clisp.org>
24114
24115         * doc/glibc-functions/memmem.texi: Include contents of
24116         doc/functions/memmem.texi.
24117         * doc/functions/memmem.texi: Remove file.
24118
24119 2008-01-18  Bruno Haible  <bruno@clisp.org>
24120
24121         * doc/glibc-functions/*.texi: New files.
24122         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
24123         to use the new files.
24124
24125 2008-01-17  Bruno Haible  <bruno@clisp.org>
24126
24127         * tests/test-gethostname.c (main): Fix printf statement.
24128
24129 2008-01-17  Simon Josefsson  <simon@josefsson.org>
24130
24131         * modules/gethostname-tests: New file.
24132
24133         * tests/test-gethostname.c: New file.
24134
24135 2008-01-17  Simon Josefsson  <simon@josefsson.org>
24136
24137         * lib/gethostname.c: Include string.h unconditionally, strncpy is
24138         used by the UNAME case.  Reported by Bruno Haible
24139         <bruno@clisp.org>.
24140
24141 2008-01-17  Eric Blake  <ebb9@byu.net>
24142
24143         Convert c-strcasestr to be more efficient.
24144         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
24145         (Depends-on): Add c-strcase, remove malloca, strnlen.
24146         * tests/test-c-strcasestr.c (main): Enhance test.
24147         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
24148
24149 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
24150
24151         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
24152         Use it in creating po/Makevars.
24153
24154 2008-01-15  Simon Josefsson  <simon@josefsson.org>
24155
24156         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
24157         Applications that requires it should initialize libgcrypt
24158         manually.
24159
24160 2008-01-16  Simon Josefsson  <simon@josefsson.org>
24161
24162         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
24163
24164 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24165
24166         Fix problem with getdate on mingw32 reported by Simon Josefsson
24167         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
24168         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
24169         tzname", when deciding whether to declare tzname.
24170         * lib/strftime.c (tzname): Likewise.
24171
24172 2008-01-15  Bruno Haible  <bruno@clisp.org>
24173
24174         Work around a MacOS X 10.5 bug in frexpl().
24175         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
24176         * doc/functions/frexpl.texi: Document the bug.
24177         Reported by Elias Pipping <pipping@gentoo.org>.
24178
24179 2008-01-14  Eric Blake  <ebb9@byu.net>
24180
24181         Touch up previous patch.
24182         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
24183         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
24184
24185         Convert strcasestr module to use Two-Way algorithm.
24186         * modules/strcasestr-simple: New module, based on the old
24187         strcasestr, but with Two-Way rather than KMP.
24188         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
24189         * lib/string.in.h (rpl_strcasestr): Declare.
24190         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
24191         performance.
24192         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
24193         * modules/string (Makefile.am): Support strcasestr.
24194         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
24195         * modules/strcasestr-tests (Depends-on): Check for alarm.
24196         * tests/test-strcasestr.c: Augment test.
24197         * lib/str-two-way.h: Clean up stray macro.
24198         * NEWS: Document new module.
24199         * MODULES.html.sh (string handling): Likewise.
24200         * doc/functions/strcasestr.texi: New file.
24201         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
24202         here, since it is not a POSIX function.
24203
24204 2008-01-14  Colin Watson  <cjwatson@debian.org>
24205             Bruno Haible  <bruno@clisp.org>
24206
24207         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
24208         works fine; if not, set REPLACE_STRSIGNAL.
24209         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
24210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24211         REPLACE_STRSIGNAL.
24212         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
24213         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
24214         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
24215
24216 2008-01-14  Bruno Haible  <bruno@clisp.org>
24217
24218         * modules/strsignal (Include): Change to <string.h>.
24219
24220 2008-01-14  Colin Watson  <cjwatson@debian.org>
24221
24222         * modules/argp (Notice): Add a notice recommending to change
24223         XGETTEXT_OPTIONS.
24224         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
24225
24226 2008-01-13  Colin Watson  <cjwatson@debian.org>
24227
24228         * modules/strsignal-tests: New file.
24229         * tests/test-strsignal.c: New file.
24230
24231         * lib/strsignal.c: New file, from glibc with modifications.
24232         * lib/siglist.h: New file, from glibc with modifications.
24233         * lib/string.in.h (strsignal): New declaration.
24234         * m4/strsignal.m4: New file.
24235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24236         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
24237         * modules/strsignal: New file.
24238         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
24239         HAVE_DECL_STRSIGNAL.
24240
24241 2008-01-13  Bruno Haible  <bruno@clisp.org>
24242
24243         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
24244         locale encoding is not ASCII. Needed for OpenBSD 4.0.
24245         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24246         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24247
24248 2008-01-13  Bruno Haible  <bruno@clisp.org>
24249
24250         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
24251         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
24252         * lib/argp.h (__attribute__): Likewise.
24253         * lib/c-stack.c (__attribute__): Likewise.
24254         * lib/error.h (__attribute__): Likewise.
24255         * lib/fts.c (__attribute__): Likewise.
24256         * lib/openat.h (__attribute__): Likewise.
24257         * lib/stdio.in.h (__attribute__): Likewise.
24258         * lib/string.in.h (__attribute__): Likewise.
24259         * lib/utimens.c (__attribute__): Likewise.
24260         * lib/vasnprintf.h (__attribute__): Likewise.
24261         * lib/xalloc.h (__attribute__): Likewise.
24262         * lib/xprintf.h (__attribute__): Likewise.
24263         * lib/xstrtol.h (__attribute__): Likewise.
24264         * lib/xvasprintf.h (__attribute__): Likewise.
24265
24266 2008-01-12  Bruno Haible  <bruno@clisp.org>
24267
24268         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
24269         * doc/glibc-headers/a.out.texi: New file.
24270         * doc/glibc-headers/aliases.texi: New file.
24271         * doc/glibc-headers/alloca.texi: New file.
24272         * doc/glibc-headers/ar.texi: New file.
24273         * doc/glibc-headers/argp.texi: New file.
24274         * doc/glibc-headers/argz.texi: New file.
24275         * doc/glibc-headers/byteswap.texi: New file.
24276         * doc/glibc-headers/crypt.texi: New file.
24277         * doc/glibc-headers/endian.texi: New file.
24278         * doc/glibc-headers/envz.texi: New file.
24279         * doc/glibc-headers/err.texi: New file.
24280         * doc/glibc-headers/error.texi: New file.
24281         * doc/glibc-headers/execinfo.texi: New file.
24282         * doc/glibc-headers/fpu_control.texi: New file.
24283         * doc/glibc-headers/fstab.texi: New file.
24284         * doc/glibc-headers/fts.texi: New file.
24285         * doc/glibc-headers/getopt.texi: New file.
24286         * doc/glibc-headers/ieee754.texi: New file.
24287         * doc/glibc-headers/ifaddrs.texi: New file.
24288         * doc/glibc-headers/libintl.texi: New file.
24289         * doc/glibc-headers/mcheck.texi: New file.
24290         * doc/glibc-headers/mntent.texi: New file.
24291         * doc/glibc-headers/obstack.texi: New file.
24292         * doc/glibc-headers/paths.texi: New file.
24293         * doc/glibc-headers/printf.texi: New file.
24294         * doc/glibc-headers/pty.texi: New file.
24295         * doc/glibc-headers/resolv.texi: New file.
24296         * doc/glibc-headers/shadow.texi: New file.
24297         * doc/glibc-headers/sysexits.texi: New file.
24298         * doc/glibc-headers/ttyent.texi: New file.
24299
24300 2008-01-12  Jim Meyering  <meyering@redhat.com>
24301
24302         announce-gen: emit Gnulib's git-based version string.
24303         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
24304         New option --gnulib-version=V, where V is expected to be
24305         the output of running git describe in the gnulib directory.
24306         (get_tool_versions): Request feedback on xdelta.  I suspect it's
24307         not useful, and plan to stop publishing an xdelta file with each
24308         coreutils release.
24309
24310         * build-aux/announce-gen: Also check for lzma-compressed files.
24311
24312 2008-01-11  Bruno Haible  <bruno@clisp.org>
24313
24314         * tests/test-memmem.c (main): Increase maximum allowed time.
24315         * tests/test-strstr.c (main): Likewise.
24316
24317 2008-01-11  Bruno Haible  <bruno@clisp.org>
24318
24319         * doc/functions/memmem.texi: Add more precisions about platforms.
24320         * doc/functions/strstr.texi: Likewise.
24321
24322 2008-01-10  Eric Blake  <ebb9@byu.net>
24323
24324         * m4/strstr.m4: Delete cruft from copy-n-paste.
24325         Reported by Bruno Haible.
24326
24327 2008-01-10  Bruno Haible  <bruno@clisp.org>
24328
24329         Make c-strstr rely on strstr.
24330         * lib/c-strstr.c: Don't include str-kmp.h.
24331         (c_strstr): Define in terms of strstr.
24332         * modules/c-strstr (Files): Remove lib/str-kmp.h.
24333         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
24334
24335 2008-01-10  Bruno Haible  <bruno@clisp.org>
24336
24337         * doc/gnulib.texi (String Functions in C Locale): New section.
24338         * doc/c-ctype.texi: New file.
24339         * doc/c-strcase.texi: New file.
24340         * doc/c-strcaseeq.texi: New file.
24341         * doc/c-strcasestr.texi: New file.
24342         * doc/c-strstr.texi: New file.
24343         * doc/c-strtod.texi: New file.
24344         * doc/c-strtold.texi: New file.
24345
24346 2008-01-10  Eric Blake  <ebb9@byu.net>
24347
24348         * lib/relocatable.h: Fix a comment.
24349
24350 2008-01-10  Eric Blake  <ebb9@byu.net>
24351
24352         Share two-way algorithm.
24353         * lib/str-two-way.h: New file, merged from...
24354         * lib/memmem.c: ...here...
24355         * lib/strstr.c: ...and here.
24356         * modules/memmem (Files): Use it.
24357         * modules/strstr (Files): Likewise.
24358
24359         Avoid quadratic strstr implementations.
24360         * lib/strstr.c: New file.
24361         * m4/strstr.m4: Likewise.
24362         * modules/strstr: Likewise.
24363         * modules/strstr-tests: Likewise.
24364         * tests/test-strstr.c: Likewise.
24365         * lib/string.in.h (rpl_strstr): Declare.
24366         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
24367         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
24368         * modules/string (Makefile.am): Likewise.
24369         * MODULES.html.sh (string handling): Mention new module.
24370         * doc/functions/strstr.texi (strstr): Document the bug.
24371
24372 2008-01-10  Bruno Haible  <bruno@clisp.org>
24373
24374         * lib/relocatable.h (relocate): State whether result is freshly
24375         allocated or not.
24376         * lib/relocatable.c (relocate): Return a freshly allocated string
24377         instead of a pointer to a privately held string.
24378         Reported by Sylvain Beucler <beuc@gnu.org>.
24379
24380 2008-01-10  Colin Watson  <cjwatson@debian.org>
24381
24382         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
24383         s/S_ISNLK/S_ISLNK/.
24384
24385 2008-01-09  Bruno Haible  <bruno@clisp.org>
24386
24387         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
24388         and other files.
24389         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
24390         if it's only a guess.
24391         * modules/memmem: Simplify by depending on memmem-simple.
24392
24393 2008-01-09  Bruno Haible  <bruno@clisp.org>
24394
24395         Work around OpenBSD 4.0 tdelete() bug.
24396         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
24397         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
24398         macros and don't redefine the enum values.
24399         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
24400         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
24401         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
24402
24403 2008-01-09  Bruno Haible  <bruno@clisp.org>
24404
24405         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
24406         (main): Don't perform the tests if setlocale did not install a UTF-8
24407         locale. Needed on OpenBSD 4.0.
24408         * modules/wcwidth-tests (Depends-on): Add localcharset.
24409
24410 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24411
24412         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
24413         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
24414         * NEWS: announce this.
24415         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
24416
24417 2008-01-09  Simon Josefsson  <simon@josefsson.org>
24418         and Eric Blake  <ebb9@byu.net>
24419
24420         Add memmem-simple module.
24421         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
24422         (gl_FUNC_MEMMEM): Separate performance from presence checks.
24423         * modules/memmem-simple: New file.
24424         * modules/memmem (Description): Tweak.
24425         * MODULES.html.sh (string handling): Mention new module.
24426         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
24427         addressed by memmem-simple.
24428         * NEWS: Document the difference.
24429
24430 2008-01-09  Eric Blake  <ebb9@byu.net>
24431
24432         Give gcc some memmem optimization hints.
24433         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
24434         (strcasestr): Declare as pure.
24435         * modules/memmem (Maintainer): Claim my implementation.
24436
24437 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24438
24439         Support AIX 6.1 and higher.
24440         * build-aux/config.libpath: Likewise.
24441         * build-aux/config.rpath: Likewise.
24442
24443 2008-01-08  Jim Meyering  <meyering@redhat.com>
24444             Bruno Haible  <bruno@clisp.org>
24445
24446         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
24447         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
24448         Reported by Peter Fales in
24449         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
24450
24451 2008-01-08  Bruno Haible  <bruno@clisp.org>
24452
24453         * modules/unictype/category-of (Depends-on): Add
24454         unictype/category-none.
24455         * modules/unictype/category-and-tests (Depends-on): Add
24456         unictype/category-{L,N,Lu,Nd}.
24457         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
24458         * modules/unictype/category-or-tests (Depends-on): Add
24459         unictype/category-{L,N}.
24460         * modules/unictype/category-name-tests (Depends-on): Add
24461         unictype/category-{Z,Nl}.
24462         Reported by Simon Josefsson.
24463
24464 2008-01-08  Bruno Haible  <bruno@clisp.org>
24465
24466         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
24467         convention better.
24468         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
24469         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
24470         Reported by Peter Miller <millerp@canb.auug.org.au>.
24471
24472 2008-01-08  Eric Blake  <ebb9@byu.net>
24473
24474         Rewrite memmem to guarantee linear complexity without malloc.
24475         * lib/memmem.c (memmem): Use Two-Way rather than
24476         Knuth-Morris-Pratt, to allow O(1) space usage.
24477         (critical_factorization, two_way_short_needle)
24478         (two_way_long_needle): New functions.
24479         (knuth_morris_pratt): Delete.
24480         * modules/memmem (Depends-on): No longer need malloca or stdbool.
24481         Add stdint.
24482         * tests/test-memmem.c (main): Add tests for periodic needle and
24483         sublinear performance.
24484         * doc/functions/memmem.texi (memmem): Document other deficiencies
24485         in cygwin and older glibc.
24486
24487 2008-01-08  Bruno Haible  <bruno@clisp.org>
24488
24489         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
24490         augmentation.
24491
24492 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
24493
24494         Add a configure time option: --disable-acl.
24495         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
24496         AC_ARG_ENABLE(acl).
24497
24498 2008-01-06  Simon Josefsson  <simon@josefsson.org>
24499
24500         * tests/test-localename.c: Don't include obsolete "setenv.h".
24501
24502         * modules/localename-tests (Depends-on): Need unsetenv.
24503
24504 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24505
24506         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
24507
24508 2008-01-06  Colin Watson  <cjwatson@debian.org>
24509
24510         * users.txt: Add man-db.
24511
24512 2008-01-07  Bruno Haible  <bruno@clisp.org>
24513
24514         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
24515         previous section name.
24516
24517 2008-01-07  Bruno Haible  <bruno@clisp.org>
24518
24519         * lib/progname.c (set_program_name): Don't strip off a leading
24520         "lt-" prefix outside a .libs directory.
24521         Suggested by Paul Eggert.
24522
24523 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
24524             Bruno Haible  <bruno@clisp.org>
24525
24526         Improve memory cleanup in 'relocatable' module.
24527         * lib/relocatable.h (compute_curr_prefix): Change return type to
24528         'char *'.
24529         * lib/relocatable.c (compute_curr_prefix): Change return type to
24530         'char *'. Free curr_installdir after use.
24531         (relocate): Free curr_prefix_better after use.
24532         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
24533
24534 2008-01-01  Bruno Haible  <bruno@clisp.org>
24535
24536         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
24537         failure on older glibc systems.
24538         Reported by Peter Fales <psfales@alcatel-lucent.com>.
24539
24540 2008-01-05  Eric Blake  <ebb9@byu.net>
24541
24542         Avoid quadratic system memmem.
24543         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
24544         Reported by Ralf Wildenhues.
24545
24546         Fix memmem test for mingw.
24547         * modules/memmem-tests (configure.ac): Check for alarm.
24548         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
24549         it.
24550         * doc/functions/memmem.texi: New file.
24551         * doc/gnulib.texi (Function Substitutes): Add memmem.
24552         Reported by Bruno Haible.
24553
24554 2008-01-04  Bruno Haible  <bruno@clisp.org>
24555
24556         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
24557         Require gl_HEADER_STRINGS_H_DEFAULTS, not
24558         gl_HEADER_STRING_H_DEFAULTS.
24559
24560 2008-01-04  Eric Blake  <ebb9@byu.net>
24561
24562         Shorten duration of memmem test.
24563         * tests/test-memmem.c (main): Use alarm to declare failure if test
24564         is taking too long.
24565         Reported by Ralf Wildenhues.
24566
24567 2007-12-21  Simon Josefsson  <simon@josefsson.org>
24568
24569         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
24570         string, needed by strerror.
24571
24572 2008-01-03  Colin Watson  <cjwatson@debian.org>
24573             Bruno Haible  <bruno@clisp.org>
24574
24575         * doc/gnulib-tool.texi (Localization): New section.
24576
24577 2008-01-02  Bruno Haible  <bruno@clisp.org>
24578
24579         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
24580         variables to 'unsigned char *' type.
24581         Reported by Paul Eggert.
24582
24583 2008-01-02  Jim Meyering  <jim@meyering.net>
24584
24585         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
24586
24587 2007-12-31  Jim Meyering  <jim@meyering.net>
24588
24589         Avoid use of private FTS type name.
24590         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
24591
24592 2007-12-30  Karl Berry  <karl@gnu.org>
24593
24594         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
24595         work around defect in Texinfo and/or the standalone Info browser.
24596
24597 2007-12-30  Bruno Haible  <bruno@clisp.org>
24598
24599         Unify 5 copies of the KMP code.
24600         * lib/str-kmp.h: New file.
24601         * lib/c-strcasestr.c: Include str-kmp.h.
24602         (knuth_morris_pratt): Remove function.
24603         (c_strcasestr): Update.
24604         * lib/c-strstr.c: Include str-kmp.h.
24605         (knuth_morris_pratt): Remove function.
24606         (c_strcasestr): Update.
24607         * lib/mbscasestr.c: Include str-kmp.h.
24608         (knuth_morris_pratt_unibyte): Remove function.
24609         * lib/mbsstr.c: Include str-kmp.h.
24610         (knuth_morris_pratt_unibyte): Remove function.
24611         * lib/strcasestr.c: Include str-kmp.h.
24612         (knuth_morris_pratt): Remove function.
24613         (strcasestr): Update.
24614         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
24615         * modules/c-strstr (Files): Likewise.
24616         * modules/mbscasestr (Files): Likewise.
24617         * modules/mbsstr (Files): Likewise.
24618         * modules/strcasestr (Files): Likewise.
24619         Suggested by Paul Eggert.
24620
24621 2007-12-30  Bruno Haible  <bruno@clisp.org>
24622
24623         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
24624         defined.
24625
24626 2007-12-30  Bruno Haible  <bruno@clisp.org>
24627
24628         * lib/xmalloca.h: Include xalloc.h.
24629         (xnmalloca): New macro.
24630
24631 2007-12-30  Bruno Haible  <bruno@clisp.org>
24632
24633         * lib/malloca.h (nmalloca): New macro.
24634         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
24635         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
24636         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
24637         knuth_morris_pratt_multibyte): Likewise.
24638         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
24639         knuth_morris_pratt_multibyte): Likewise.
24640         * lib/memmem.c (knuth_morris_pratt): Likewise.
24641         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
24642
24643 2007-12-25  Bruno Haible  <bruno@clisp.org>
24644
24645         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
24646         * lib/glob.c: Don't include openat.h.
24647         (link_exists2_p): Add back the code that deals with the
24648         !GLOB_ALTDIRFUNC case.
24649         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
24650         let it do the filename concatenation.
24651         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
24652         * modules/glob (Depends-on): Remove openat.
24653
24654 2007-12-31  Bruno Haible  <bruno@clisp.org>
24655
24656         * modules/dirfd (License): Change to LGPLv2+.
24657         Approved by Jim Meyering.
24658
24659 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24660
24661         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
24662         when multiplying M by sizeof (size_t).
24663
24664 2007-12-10  Martin Lambers  <marlam@marlam.de>
24665
24666         Override getpagesize on mingw.
24667         * lib/getpagesize.c: New file.
24668         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
24669         * modules/getpagesize (Files): Add lib/getpagesize.c.
24670         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
24671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24672         REPLACE_GETPAGESIZE.
24673         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
24674
24675 2007-12-25  Bruno Haible  <bruno@clisp.org>
24676
24677         * modules/localcharset (Notice): New field.
24678         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
24679         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
24680
24681 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24682             Bruno Haible  <bruno@clisp.org>
24683
24684         Avoid using the syntax symbol() in formatted documentation.
24685         * MODULES.html.sh (func_module): When replacing symbol() with a
24686         hyperlink, remove the parentheses. Show an error if some remain.
24687         Recognize and render the '...' syntax.
24688         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
24689         Rework. Add paragraph about GCC's inlining.
24690         * doc/alloca.texi: Likewise.
24691         * doc/error.texi: Remove parentheses from symbol reference.
24692         * doc/gnulib-intro.texi: Likewise.
24693         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
24694         * modules/fnmatch (Description): Reword to say "the ... function".
24695         * modules/full-read (Description): Likewise.
24696         * modules/full-write (Description): Likewise.
24697         * modules/safe-read (Description): Likewise.
24698         * modules/safe-write (Description): Likewise.
24699         * modules/strchrnul (Description): Likewise.
24700         * modules/trim (Description): Likewise.
24701         * modules/error (Description): Remove parentheses from symbol
24702         references.
24703         * modules/verror (Description): Likewise.
24704         Reported by Karl Berry.
24705
24706 2007-12-25  Bruno Haible  <bruno@clisp.org>
24707
24708         Fixup after 2007-10-16 commit.
24709         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
24710
24711 2007-12-24  Bruno Haible  <bruno@clisp.org>
24712
24713         Make --enable-relocatable work with DESTDIR.
24714         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
24715         to compute installdir from destprog.
24716         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
24717         also set the RELOC_DESTDIR variable.
24718         Reported by Левашев Иван <octagram@bluebottle.com>.
24719
24720 2007-12-24  Bruno Haible  <bruno@clisp.org>
24721
24722         Fix link error due to xalloc_die().
24723         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
24724         of xreadlink.
24725         * lib/relocwrapper.c: Update comments.
24726         * build-aux/install-reloc: Remove xreadlink.c from file list.
24727         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
24728         xreadlink.c.
24729         Reported by Левашев Иван <octagram@bluebottle.com>.
24730
24731 2007-12-24  Bruno Haible  <bruno@clisp.org>
24732
24733         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
24734         * lib/setenv.h: Remove file.
24735         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
24736         lib/setenv.h.
24737         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
24738         (Depends-on): Add stdlib.
24739         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
24740         gl_FUNC_UNSETENV.
24741         (Include): Replace setenv.h with <stdlib.h>.
24742         * modules/unsetenv: New file.
24743         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
24744         * lib/unsetenv.c: Include <stdlib.h> first.
24745         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
24746         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
24747         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
24748         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
24749         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
24750         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
24752         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24753         * doc/functions/unsetenv.texi: Update.
24754         * modules/xsetenv (Depends-on): Add unsetenv.
24755         * modules/getdate (Depends-on): Likewise.
24756         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
24757         * lib/xsetenv.c: Don't include setenv.h.
24758         * lib/getdate.y: Likewise.
24759         * lib/relocwrapper.c: Likewise.
24760         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
24761         (Depends-on): Add stdlib.
24762         * NEWS: Mention the changes.
24763         Reported by Левашев Иван <octagram@bluebottle.com>.
24764
24765 2007-12-23  Bruno Haible  <bruno@clisp.org>
24766
24767         * lib/memmem.c (memmem): Use lowercase variable names. Tab
24768         indentation.
24769
24770 2007-12-23  Bruno Haible  <bruno@clisp.org>
24771
24772         * lib/c-strcasestr.c: Add more comments.
24773         * lib/c-strstr.c: Likewise.
24774         * lib/mbscasestr.c: Likewise.
24775         * lib/mbsstr.c: Likewise.
24776         * lib/strcasestr.c: Likewise.
24777         * lib/memmem.c: Likewise.
24778
24779 2007-12-23  Bruno Haible  <bruno@clisp.org>
24780
24781         * tests/test-memmem.c: Include <string.h> first.
24782
24783 2007-12-22  Bruno Haible  <bruno@clisp.org>
24784
24785         * gnulib-tool (func_create_testdir): Change $auxdir while generating
24786         the contents of $testsbase.
24787         Reported by Ralf Wildenhues.
24788
24789 2007-12-22  Bruno Haible  <bruno@clisp.org>
24790
24791         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
24792         two variables local_ldadd_before, local_ldadd_last.
24793
24794 2007-12-20  Eric Blake  <ebb9@byu.net>
24795
24796         Work around circular library issue when cross-compiling.
24797         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
24798         that progname.o does not need to pull in rpl_memcmp.
24799
24800 2007-12-19  Eric Blake  <ebb9@byu.net>
24801
24802         Fix memmem to avoid O(n^2) worst-case complexity.
24803         * lib/memmem.c (knuth_morris_pratt): New function.
24804         (memmem): Use it if first few naive iterations fail.
24805         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
24806         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
24807         * modules/memchr (License): Likewise.
24808         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
24809         malloca.
24810         * tests/test-memmem.c: Rewrite, borrowing ideas from
24811         test-mbsstr1.c; the old version wouldn't even compile!
24812         * modules/memmem-tests: New file.
24813         * lib/string.in.h (rpl_memmem): Add declaration.
24814         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
24815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
24816         REPLACE_MEMMEM.
24817
24818 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24819
24820         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
24821         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
24822         before any system include files, and undef after them all.  This
24823         should fix a problem on VMS reported by John E. Malmberg in
24824         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
24825
24826 2007-12-17  Eric Blake  <ebb9@byu.net>
24827
24828         Revert addition of verify, for BSD/OS.
24829         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
24830         can't handle large files, for the sake of obsolete platforms.
24831         * modules/fseeko (Depends-on): Remove verify.
24832         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
24833         * doc/functions/ftello.texi (ftello): Likewise.
24834         * doc/functions/fgetpos.texi (fgetpos): Likewise.
24835         Reported by Larry Jones.
24836
24837 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
24838
24839         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
24840         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
24841
24842 2007-12-17  Jim Meyering  <meyering@redhat.com>
24843
24844         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
24845         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
24846         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
24847         * modules/getcwd (Depends-on): Add openat.
24848         Reported by Petr Salinger.
24849
24850 2007-12-17  Bruno Haible  <bruno@clisp.org>
24851
24852         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
24853         avoid a segmentation fault of the configure test on x86_64 systems.
24854
24855 2007-12-15  Jim Meyering  <meyering@redhat.com>
24856
24857         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
24858
24859 2007-12-13  Eric Blake  <ebb9@byu.net>
24860
24861         Another fseek test.
24862         * tests/test-fseek.c (main): Also test ungetc handling.
24863         * tests/test-fseeko.c (main): Likewise.
24864         * modules/fseeko (Depends-on): Add verify.
24865         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
24866         large.
24867         Reported by Larry Jones.
24868
24869         Fix fseeko on mingw.
24870         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
24871         seek.
24872
24873         Beef up fseek tests.
24874         * tests/test-fseek.c (main): Also test eof handling.
24875         * tests/test-fseeko.c (main): Likewise.
24876         Reported by Larry Jones.
24877
24878 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
24879
24880         Fix fseeko on BSD-based platforms.
24881         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
24882         successful seek.
24883
24884 2007-12-12  Eric Blake  <ebb9@byu.net>
24885
24886         Allow circular dependency of separate libtests.a
24887         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
24888         when use_libtests.
24889
24890 2007-12-11  Eric Blake  <ebb9@byu.net>
24891
24892         Fix bug with -0.0L in previous patch.
24893         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
24894         * tests/test-isnan.c (main): Also test on zeroes.
24895         * tests/test-isnanf.c (main): Likewise.
24896         * tests/test-isnanl.h (main): Likewise.
24897
24898         Detect pseudo-denormals on x86 even when cross-compiling.
24899         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
24900         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
24901         invalid bit patterns that happen to satisfy ==.
24902
24903         Avoid link failures with separate libtests.a.
24904         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
24905         last, to satisfy circular dependencies.
24906
24907 2007-12-11  Eric Blake  <ebb9@byu.net>
24908         and Bruno Haible  <bruno@clisp.org>
24909
24910         Fix OpenBSD 4.0 <float.h> handling of long double.
24911         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
24912         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
24913         * doc/headers/float.texi (float.h): Document OpenBSD bug.
24914
24915 2007-12-11  Jim Meyering  <meyering@redhat.com>
24916
24917         * users.txt: Add libvirt.
24918
24919         Support versions of autoconf prior to 2.59c.
24920         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
24921         if it is not already defined.
24922
24923 2007-12-09  Bruno Haible  <bruno@clisp.org>
24924
24925         Let 'gnulib-tool --import' collect sources needed for the tests in
24926         tests/ rather than in lib/.
24927         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
24928         argument. If true, add rules to generate libtests.a, and put libtests.a
24929         into $(LDADD). Consider source files in subdirectories and set
24930         uses_subdirs.
24931         (func_emit_initmacro_start, func_emit_initmacro_end,
24932         func_emit_initmacro_done): Pass all arguments explicitly.
24933         (func_import): Determine two module lists main_modules,
24934         testsrelated_modules. Determine use_libtests. Determine two variables
24935         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
24936         instead of just sed_transform_lib_file. Determine two variables
24937         main_files and testsrelated_files. Compute 'files' as the union of
24938         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
24939         func_add_or_update. In the generated gnulib-comp.m4, collect the
24940         object files for tests/ in different variables than those for lib/.
24941         Substitute LIBTESTS_LIBDEPS.
24942         (func_create_testdir): Combine the uses_subdirs results from
24943         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
24944
24945 2007-12-09  Bruno Haible  <bruno@clisp.org>
24946
24947         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
24948         the build-aux directory.
24949
24950 2007-12-09  Bruno Haible  <bruno@clisp.org>
24951
24952         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
24953         introduced on 2006-09-09.
24954
24955 2007-12-07  Jim Meyering  <meyering@redhat.com>
24956
24957         Let these macros work also with autoconf-2.59.
24958         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
24959         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
24960         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24961
24962 2007-12-06  Jim Meyering  <meyering@redhat.com>
24963
24964         Avoid a configure-time syntax error in gl_FUNC_ACL.
24965         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
24966         function in each branch, before testing the cache variable.
24967
24968 2007-12-04  Eric Blake  <ebb9@byu.net>
24969
24970         Make scripts executable.
24971         * build-aux/config.guess: Add execute permissions.
24972         * build-aux/config.sub: Likewise.
24973         * build-aux/gendocs.sh: Likewise.
24974
24975         Fix frexp on mingw.
24976         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
24977         cross-compiling.
24978         * doc/functions/frexp.texi (frexp): Document the bug.
24979
24980         Make cygwin fseeko check more reliable.
24981         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
24982         version numbers, rather than unrelated feature check.
24983         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
24984         * doc/functions/ftello.texi (ftello): Likewise.
24985         Reported by Bruno Haible.
24986
24987         * m4/strerror.m4: Bump version number.
24988
24989 2007-12-03  Bruno Haible  <bruno@clisp.org>
24990
24991         * doc/functions/mprotect.texi: Mention the mingw problem.
24992
24993 2007-12-03  Eric Blake  <ebb9@byu.net>
24994
24995         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
24996         REPLACE_STRERROR is initialized before this macro.
24997
24998 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
24999
25000         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
25001         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
25002         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
25003         put -lsec in even for programs other than 'ls'.  This fixes a problem
25004         for gettext reported by Bruno Haible in
25005         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
25006         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
25007         Add support for Solaris 10.  This isn't efficient, but should get the
25008         job done for now.
25009
25010 2007-12-03  James Youngman  <jay@gnu.org>
25011
25012         * doc/regexprops-generic.texi: change "an close-group" to "a
25013         close-group" and "illegal" to "not allowed".
25014
25015 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25016
25017         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
25018         pr_byname.h. Needed for the rare case when the maintainer has done
25019         "make maintainer-clean" in the source directory and then attempts a
25020         build outside the source directory.
25021         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
25022         scripts_byname.h.
25023
25024 2007-12-02  Martin Lambers <marlam@marlam.de>
25025             Bruno Haible  <bruno@clisp.org>
25026
25027         * lib/getpagesize.h: Remove file.
25028         * lib/unistd.in.h: Include declaration of getpagesize here.
25029         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
25030         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
25031         HAVE_SYS_PARAM_H.
25032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
25033         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
25034         * modules/getpagesize (Files): Remove lib/getpagesize.h.
25035         (Depends-on): Add unistd.
25036         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25037         (Include): Use <unistd.h> instead of getpagesize.h.
25038         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
25039         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
25040         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
25041         gl_GETPAGESIZE invocation, already handled by module dependency.
25042         * lib/pagealign_alloc.c: Don't include getpagesize.h.
25043
25044 2007-12-02  Bruno Haible  <bruno@clisp.org>
25045
25046         * modules/strings-tests: New file.
25047         * tests/test-strings.c: New file.
25048
25049         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
25050         * lib/strings.in.h: New file.
25051         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
25052         * m4/strings_h.m4: New file.
25053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
25054         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
25055         * modules/strings: New file.
25056         * modules/string (Makefile.am): Update.
25057         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
25058         Reported by Karl Berry.
25059
25060 2007-12-01  Eric Blake  <ebb9@byu.net>
25061
25062         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
25063         accomodate fix in cygwin 1.5.25.
25064
25065 2007-12-01  Jim Meyering  <meyering@redhat.com>
25066
25067         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
25068         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
25069         that would inhibit utf8-optimization of a regexp containing line-
25070         or buffer-anchors, e.g., `^', `$'.
25071
25072 2007-11-30  Bruno Haible  <bruno@clisp.org>
25073
25074         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
25075         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
25076         glthread_recursive_lock_init.
25077         * lib/lock.c (glthread_recursive_lock_init)
25078         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
25079         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25080
25081 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
25082
25083         New function qset_acl, like set_acl but with syscall semantics.
25084         * lib/acl.h (qset_acl): New decl.
25085         * lib/acl.c (qset_acl): New function.
25086         (set_acl): Use new function.  Use more-consistent diagnostics.
25087
25088 2007-11-28  Jim Meyering  <meyering@redhat.com>
25089
25090         * modules/physmem (License): Change from GPL to LGPLv2+.
25091
25092 2007-11-26  Bruno Haible  <bruno@clisp.org>
25093
25094         * lib/vasnprintf.c (decode_long_double): Don't abort if the
25095         'long double' type has excess precision.
25096         Reported by Jim Meyering in
25097         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
25098
25099 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25100
25101         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
25102         Sync from <http://gnu.org/licenses>.
25103         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
25104         with license text from same location.
25105         * doc/maintain.texi, doc/standards.texi:  Sync from
25106         <http://savannah.gnu.org/projects/gnustandards>.
25107
25108 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
25109         and Jim Meyering  <meyering@redhat.com>
25110
25111         Adjust getdate' grammar to accept a slightly more regular language.
25112         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
25113         Before, the former was rejected.
25114         * lib/getdate.y (digits_to_date_time): New function, factored
25115         out of ...
25116         (number): ...here.  Just call digits_to_date_time.
25117         (hybrid): New non-terminal to handle an <unsigned number,
25118         signed relative offset> sequence consistently.
25119
25120 2007-11-18  Jim Meyering  <meyering@redhat.com>
25121
25122         Pull my changes from coreutils:
25123         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
25124         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
25125         use of $gnulib_tool_option_extras, so that it's separated from the
25126         preceding argument.
25127
25128         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
25129         * build-aux/bootstrap (cp_mark_as_generated): Create any required
25130         parent destination directories before copying a file into place.
25131
25132 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
25133
25134         bootstrap: work also with 4-argument variant of AC_INIT
25135         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
25136
25137 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
25138
25139         Port test-getaddrinfo to Solaris.
25140         Problem reported by Bruno Haible in
25141         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
25142         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
25143         explanation of setting 'hints'.
25144         Don't reject an implementation merely because it returns EAI_SERVICE.
25145         (EAI_SERVICE): Define to 0 if not defined.
25146
25147 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25148
25149         The license of gnu-make and posix-shell is now "GPLed build tool".
25150         * modules/gnu-make (License): Likewise.
25151         * modules/posix-shell (License): Likewise.
25152
25153         New module posix-shell, for determining a POSIX shell
25154         or perhaps something that is close enough to a POSIX shell.
25155         * m4/posix-shell.m4: New file.
25156         * modules/posix-shell: New file.
25157
25158         * MODULES.html.sh: Mention new module.
25159
25160         New module gnu-make, for determining whether we're using GNU Make.
25161         * m4/gnu-make.m4: New file.
25162         * modules/gnu-make: New file.
25163         * MODULES.html.sh: Mention new module.
25164
25165 2007-11-14  Jim Meyering  <meyering@redhat.com>
25166
25167         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
25168         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
25169         use this macro to create a function _definition_.
25170         Remove useless "#undef ARGMATCH_DIE".
25171
25172 2007-11-14  Bruno Haible  <bruno@clisp.org>
25173
25174         * lib/config.charset: Update for OpenBSD 4.1.
25175         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
25176
25177 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
25178
25179         Document 64-bit #if problems in stdint.texi.
25180         * doc/headers/stdint.texi (stdint.h): Mention problems with
25181         64-bit-#if, and how to work around them.
25182
25183         Don't insist on 'long long int' support in the preprocessor.  It
25184         breaks too many things.  For example, PRIdMAX still uses a 'long
25185         long int' format with the latest Sun compiler, even though
25186         HAVE_LONG_LONG_INT isn't defined due to that compiler's
25187         preprocessor problem.  This causes the latest coreutils to dump
25188         core on Solaris 10 sparc with the Sun C compiler.
25189         Instead, fix the 2007-10-16 problem in a different way, by evaluating
25190         the troublesome expressions at configure-time, not at #if-time.
25191         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
25192         preprocessor.
25193         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
25194         compile-time C checks, done at 'configure'-time.
25195         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
25196         * modules/inttypes (Makefile): Substitute the new symbols that
25197         gl_INTTYPES_H now generates.
25198         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
25199
25200 2007-11-12  Bruno Haible  <bruno@clisp.org>
25201
25202         Tests for Unicode character classification functions.
25203
25204         * modules/unictype/bidicategory-byname-tests: New file.
25205         * modules/unictype/bidicategory-name-tests: New file.
25206         * modules/unictype/bidicategory-of-tests: New file.
25207         * modules/unictype/bidicategory-test-tests: New file.
25208         * modules/unictype/block-list-tests: New file.
25209         * modules/unictype/block-of-tests: New file.
25210         * modules/unictype/block-test-tests: New file.
25211         * modules/unictype/category-C-tests: New file.
25212         * modules/unictype/category-Cc-tests: New file.
25213         * modules/unictype/category-Cf-tests: New file.
25214         * modules/unictype/category-Cn-tests: New file.
25215         * modules/unictype/category-Co-tests: New file.
25216         * modules/unictype/category-Cs-tests: New file.
25217         * modules/unictype/category-L-tests: New file.
25218         * modules/unictype/category-Ll-tests: New file.
25219         * modules/unictype/category-Lm-tests: New file.
25220         * modules/unictype/category-Lo-tests: New file.
25221         * modules/unictype/category-Lt-tests: New file.
25222         * modules/unictype/category-Lu-tests: New file.
25223         * modules/unictype/category-M-tests: New file.
25224         * modules/unictype/category-Mc-tests: New file.
25225         * modules/unictype/category-Me-tests: New file.
25226         * modules/unictype/category-Mn-tests: New file.
25227         * modules/unictype/category-N-tests: New file.
25228         * modules/unictype/category-Nd-tests: New file.
25229         * modules/unictype/category-Nl-tests: New file.
25230         * modules/unictype/category-No-tests: New file.
25231         * modules/unictype/category-P-tests: New file.
25232         * modules/unictype/category-Pc-tests: New file.
25233         * modules/unictype/category-Pd-tests: New file.
25234         * modules/unictype/category-Pe-tests: New file.
25235         * modules/unictype/category-Pf-tests: New file.
25236         * modules/unictype/category-Pi-tests: New file.
25237         * modules/unictype/category-Po-tests: New file.
25238         * modules/unictype/category-Ps-tests: New file.
25239         * modules/unictype/category-S-tests: New file.
25240         * modules/unictype/category-Sc-tests: New file.
25241         * modules/unictype/category-Sk-tests: New file.
25242         * modules/unictype/category-Sm-tests: New file.
25243         * modules/unictype/category-So-tests: New file.
25244         * modules/unictype/category-Z-tests: New file.
25245         * modules/unictype/category-Zl-tests: New file.
25246         * modules/unictype/category-Zp-tests: New file.
25247         * modules/unictype/category-Zs-tests: New file.
25248         * modules/unictype/category-and-not-tests: New file.
25249         * modules/unictype/category-and-tests: New file.
25250         * modules/unictype/category-byname-tests: New file.
25251         * modules/unictype/category-name-tests: New file.
25252         * modules/unictype/category-none-tests: New file.
25253         * modules/unictype/category-of-tests: New file.
25254         * modules/unictype/category-or-tests: New file.
25255         * modules/unictype/category-test-withtable-tests: New file.
25256         * modules/unictype/combining-class-tests: New file.
25257         * modules/unictype/ctype-alnum-tests: New file.
25258         * modules/unictype/ctype-alpha-tests: New file.
25259         * modules/unictype/ctype-blank-tests: New file.
25260         * modules/unictype/ctype-cntrl-tests: New file.
25261         * modules/unictype/ctype-digit-tests: New file.
25262         * modules/unictype/ctype-graph-tests: New file.
25263         * modules/unictype/ctype-lower-tests: New file.
25264         * modules/unictype/ctype-print-tests: New file.
25265         * modules/unictype/ctype-punct-tests: New file.
25266         * modules/unictype/ctype-space-tests: New file.
25267         * modules/unictype/ctype-upper-tests: New file.
25268         * modules/unictype/ctype-xdigit-tests: New file.
25269         * modules/unictype/decimal-digit-tests: New file.
25270         * modules/unictype/digit-tests: New file.
25271         * modules/unictype/mirror-tests: New file.
25272         * modules/unictype/numeric-tests: New file.
25273         * modules/unictype/property-alphabetic-tests: New file.
25274         * modules/unictype/property-ascii-hex-digit-tests: New file.
25275         * modules/unictype/property-bidi-arabic-digit-tests: New file.
25276         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
25277         * modules/unictype/property-bidi-block-separator-tests: New file.
25278         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
25279         * modules/unictype/property-bidi-common-separator-tests: New file.
25280         * modules/unictype/property-bidi-control-tests: New file.
25281         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
25282         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
25283         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
25284         * modules/unictype/property-bidi-european-digit-tests: New file.
25285         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
25286         * modules/unictype/property-bidi-left-to-right-tests: New file.
25287         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
25288         * modules/unictype/property-bidi-other-neutral-tests: New file.
25289         * modules/unictype/property-bidi-pdf-tests: New file.
25290         * modules/unictype/property-bidi-segment-separator-tests: New file.
25291         * modules/unictype/property-bidi-whitespace-tests: New file.
25292         * modules/unictype/property-byname-tests: New file.
25293         * modules/unictype/property-combining-tests: New file.
25294         * modules/unictype/property-composite-tests: New file.
25295         * modules/unictype/property-currency-symbol-tests: New file.
25296         * modules/unictype/property-dash-tests: New file.
25297         * modules/unictype/property-decimal-digit-tests: New file.
25298         * modules/unictype/property-default-ignorable-code-point-tests: New file.
25299         * modules/unictype/property-deprecated-tests: New file.
25300         * modules/unictype/property-diacritic-tests: New file.
25301         * modules/unictype/property-extender-tests: New file.
25302         * modules/unictype/property-format-control-tests: New file.
25303         * modules/unictype/property-grapheme-base-tests: New file.
25304         * modules/unictype/property-grapheme-extend-tests: New file.
25305         * modules/unictype/property-grapheme-link-tests: New file.
25306         * modules/unictype/property-hex-digit-tests: New file.
25307         * modules/unictype/property-hyphen-tests: New file.
25308         * modules/unictype/property-id-continue-tests: New file.
25309         * modules/unictype/property-id-start-tests: New file.
25310         * modules/unictype/property-ideographic-tests: New file.
25311         * modules/unictype/property-ids-binary-operator-tests: New file.
25312         * modules/unictype/property-ids-trinary-operator-tests: New file.
25313         * modules/unictype/property-ignorable-control-tests: New file.
25314         * modules/unictype/property-iso-control-tests: New file.
25315         * modules/unictype/property-join-control-tests: New file.
25316         * modules/unictype/property-left-of-pair-tests: New file.
25317         * modules/unictype/property-line-separator-tests: New file.
25318         * modules/unictype/property-logical-order-exception-tests: New file.
25319         * modules/unictype/property-lowercase-tests: New file.
25320         * modules/unictype/property-math-tests: New file.
25321         * modules/unictype/property-non-break-tests: New file.
25322         * modules/unictype/property-not-a-character-tests: New file.
25323         * modules/unictype/property-numeric-tests: New file.
25324         * modules/unictype/property-other-alphabetic-tests: New file.
25325         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
25326         * modules/unictype/property-other-grapheme-extend-tests: New file.
25327         * modules/unictype/property-other-id-continue-tests: New file.
25328         * modules/unictype/property-other-id-start-tests: New file.
25329         * modules/unictype/property-other-lowercase-tests: New file.
25330         * modules/unictype/property-other-math-tests: New file.
25331         * modules/unictype/property-other-uppercase-tests: New file.
25332         * modules/unictype/property-paired-punctuation-tests: New file.
25333         * modules/unictype/property-paragraph-separator-tests: New file.
25334         * modules/unictype/property-pattern-syntax-tests: New file.
25335         * modules/unictype/property-pattern-white-space-tests: New file.
25336         * modules/unictype/property-private-use-tests: New file.
25337         * modules/unictype/property-punctuation-tests: New file.
25338         * modules/unictype/property-quotation-mark-tests: New file.
25339         * modules/unictype/property-radical-tests: New file.
25340         * modules/unictype/property-sentence-terminal-tests: New file.
25341         * modules/unictype/property-soft-dotted-tests: New file.
25342         * modules/unictype/property-space-tests: New file.
25343         * modules/unictype/property-terminal-punctuation-tests: New file.
25344         * modules/unictype/property-test-tests: New file.
25345         * modules/unictype/property-titlecase-tests: New file.
25346         * modules/unictype/property-unassigned-code-value-tests: New file.
25347         * modules/unictype/property-unified-ideograph-tests: New file.
25348         * modules/unictype/property-uppercase-tests: New file.
25349         * modules/unictype/property-variation-selector-tests: New file.
25350         * modules/unictype/property-white-space-tests: New file.
25351         * modules/unictype/property-xid-continue-tests: New file.
25352         * modules/unictype/property-xid-start-tests: New file.
25353         * modules/unictype/property-zero-width-tests: New file.
25354         * modules/unictype/scripts-tests: New file.
25355         * modules/unictype/syntax-c-ident-tests: New file.
25356         * modules/unictype/syntax-c-whitespace-tests: New file.
25357         * modules/unictype/syntax-java-ident-tests: New file.
25358         * modules/unictype/syntax-java-whitespace-tests: New file.
25359         * tests/unictype/test-bidi_byname.c: New file.
25360         * tests/unictype/test-bidi_name.c: New file.
25361         * tests/unictype/test-bidi_of.c: New file.
25362         * tests/unictype/test-bidi_test.c: New file.
25363         * tests/unictype/test-block_list.c: New file.
25364         * tests/unictype/test-block_of.c: New file.
25365         * tests/unictype/test-block_test.c: New file.
25366         * tests/unictype/test-categ_and.c: New file.
25367         * tests/unictype/test-categ_and_not.c: New file.
25368         * tests/unictype/test-categ_byname.c: New file.
25369         * tests/unictype/test-categ_name.c: New file.
25370         * tests/unictype/test-categ_none.c: New file.
25371         * tests/unictype/test-categ_of.c: New file.
25372         * tests/unictype/test-categ_or.c: New file.
25373         * tests/unictype/test-categ_test_withtable.c: New file.
25374         * tests/unictype/test-combining.c: New file.
25375         * tests/unictype/test-decdigit.c: New file.
25376         * tests/unictype/test-digit.c: New file.
25377         * tests/unictype/test-mirror.c: New file.
25378         * tests/unictype/test-numeric.c: New file.
25379         * tests/unictype/test-pr_byname.c: New file.
25380         * tests/unictype/test-pr_test.c: New file.
25381         * tests/unictype/test-predicate-part1.h: New file.
25382         * tests/unictype/test-predicate-part2.h: New file.
25383         * tests/unictype/test-scripts.c: New file.
25384         * tests/unictype/test-sy_c_ident.c: New file.
25385         * tests/unictype/test-sy_java_ident.c: New file.
25386
25387         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
25388         for Unicode 5.0.0.
25389         * tests/unictype/test-categ_Cc.c: Likewise.
25390         * tests/unictype/test-categ_Cf.c: Likewise.
25391         * tests/unictype/test-categ_Cn.c: Likewise.
25392         * tests/unictype/test-categ_Co.c: Likewise.
25393         * tests/unictype/test-categ_Cs.c: Likewise.
25394         * tests/unictype/test-categ_L.c: Likewise.
25395         * tests/unictype/test-categ_Ll.c: Likewise.
25396         * tests/unictype/test-categ_Lm.c: Likewise.
25397         * tests/unictype/test-categ_Lo.c: Likewise.
25398         * tests/unictype/test-categ_Lt.c: Likewise.
25399         * tests/unictype/test-categ_Lu.c: Likewise.
25400         * tests/unictype/test-categ_M.c: Likewise.
25401         * tests/unictype/test-categ_Mc.c: Likewise.
25402         * tests/unictype/test-categ_Me.c: Likewise.
25403         * tests/unictype/test-categ_Mn.c: Likewise.
25404         * tests/unictype/test-categ_N.c: Likewise.
25405         * tests/unictype/test-categ_Nd.c: Likewise.
25406         * tests/unictype/test-categ_Nl.c: Likewise.
25407         * tests/unictype/test-categ_No.c: Likewise.
25408         * tests/unictype/test-categ_P.c: Likewise.
25409         * tests/unictype/test-categ_Pc.c: Likewise.
25410         * tests/unictype/test-categ_Pd.c: Likewise.
25411         * tests/unictype/test-categ_Pe.c: Likewise.
25412         * tests/unictype/test-categ_Pf.c: Likewise.
25413         * tests/unictype/test-categ_Pi.c: Likewise.
25414         * tests/unictype/test-categ_Po.c: Likewise.
25415         * tests/unictype/test-categ_Ps.c: Likewise.
25416         * tests/unictype/test-categ_S.c: Likewise.
25417         * tests/unictype/test-categ_Sc.c: Likewise.
25418         * tests/unictype/test-categ_Sk.c: Likewise.
25419         * tests/unictype/test-categ_Sm.c: Likewise.
25420         * tests/unictype/test-categ_So.c: Likewise.
25421         * tests/unictype/test-categ_Z.c: Likewise.
25422         * tests/unictype/test-categ_Zl.c: Likewise.
25423         * tests/unictype/test-categ_Zp.c: Likewise.
25424         * tests/unictype/test-categ_Zs.c: Likewise.
25425         * tests/unictype/test-ctype_alnum.c: Likewise.
25426         * tests/unictype/test-ctype_alpha.c: Likewise.
25427         * tests/unictype/test-ctype_blank.c: Likewise.
25428         * tests/unictype/test-ctype_cntrl.c: Likewise.
25429         * tests/unictype/test-ctype_digit.c: Likewise.
25430         * tests/unictype/test-ctype_graph.c: Likewise.
25431         * tests/unictype/test-ctype_lower.c: Likewise.
25432         * tests/unictype/test-ctype_print.c: Likewise.
25433         * tests/unictype/test-ctype_punct.c: Likewise.
25434         * tests/unictype/test-ctype_space.c: Likewise.
25435         * tests/unictype/test-ctype_upper.c: Likewise.
25436         * tests/unictype/test-ctype_xdigit.c: Likewise.
25437         * tests/unictype/test-decdigit.h: Likewise.
25438         * tests/unictype/test-digit.h: Likewise.
25439         * tests/unictype/test-numeric.h: Likewise.
25440         * tests/unictype/test-pr_alphabetic.c: Likewise.
25441         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
25442         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25443         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25444         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
25445         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25446         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
25447         * tests/unictype/test-pr_bidi_control.c: Likewise.
25448         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
25449         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
25450         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25451         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25452         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25453         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25454         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25455         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25456         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
25457         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
25458         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
25459         * tests/unictype/test-pr_combining.c: Likewise.
25460         * tests/unictype/test-pr_composite.c: Likewise.
25461         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25462         * tests/unictype/test-pr_dash.c: Likewise.
25463         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25464         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
25465         * tests/unictype/test-pr_deprecated.c: Likewise.
25466         * tests/unictype/test-pr_diacritic.c: Likewise.
25467         * tests/unictype/test-pr_extender.c: Likewise.
25468         * tests/unictype/test-pr_format_control.c: Likewise.
25469         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25470         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25471         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25472         * tests/unictype/test-pr_hex_digit.c: Likewise.
25473         * tests/unictype/test-pr_hyphen.c: Likewise.
25474         * tests/unictype/test-pr_id_continue.c: Likewise.
25475         * tests/unictype/test-pr_id_start.c: Likewise.
25476         * tests/unictype/test-pr_ideographic.c: Likewise.
25477         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
25478         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
25479         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25480         * tests/unictype/test-pr_iso_control.c: Likewise.
25481         * tests/unictype/test-pr_join_control.c: Likewise.
25482         * tests/unictype/test-pr_left_of_pair.c: Likewise.
25483         * tests/unictype/test-pr_line_separator.c: Likewise.
25484         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25485         * tests/unictype/test-pr_lowercase.c: Likewise.
25486         * tests/unictype/test-pr_math.c: Likewise.
25487         * tests/unictype/test-pr_non_break.c: Likewise.
25488         * tests/unictype/test-pr_not_a_character.c: Likewise.
25489         * tests/unictype/test-pr_numeric.c: Likewise.
25490         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25491         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
25492         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
25493         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25494         * tests/unictype/test-pr_other_id_start.c: Likewise.
25495         * tests/unictype/test-pr_other_lowercase.c: Likewise.
25496         * tests/unictype/test-pr_other_math.c: Likewise.
25497         * tests/unictype/test-pr_other_uppercase.c: Likewise.
25498         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
25499         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
25500         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
25501         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
25502         * tests/unictype/test-pr_private_use.c: Likewise.
25503         * tests/unictype/test-pr_punctuation.c: Likewise.
25504         * tests/unictype/test-pr_quotation_mark.c: Likewise.
25505         * tests/unictype/test-pr_radical.c: Likewise.
25506         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25507         * tests/unictype/test-pr_soft_dotted.c: Likewise.
25508         * tests/unictype/test-pr_space.c: Likewise.
25509         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25510         * tests/unictype/test-pr_titlecase.c: Likewise.
25511         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25512         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25513         * tests/unictype/test-pr_uppercase.c: Likewise.
25514         * tests/unictype/test-pr_variation_selector.c: Likewise.
25515         * tests/unictype/test-pr_white_space.c: Likewise.
25516         * tests/unictype/test-pr_xid_continue.c: Likewise.
25517         * tests/unictype/test-pr_xid_start.c: Likewise.
25518         * tests/unictype/test-pr_zero_width.c: Likewise.
25519         * tests/unictype/test-sy_c_whitespace.c: Likewise.
25520         * tests/unictype/test-sy_java_whitespace.c: Likewise.
25521
25522 2007-11-12  Bruno Haible  <bruno@clisp.org>
25523
25524         Unicode character classification functions.
25525         * lib/unictype.h: New file.
25526         * modules/unictype/base: New file.
25527         * modules/unictype/category-L: New file.
25528         * modules/unictype/category-Lu: New file.
25529         * modules/unictype/category-Ll: New file.
25530         * modules/unictype/category-Lt: New file.
25531         * modules/unictype/category-Lm: New file.
25532         * modules/unictype/category-Lo: New file.
25533         * modules/unictype/category-M: New file.
25534         * modules/unictype/category-Mn: New file.
25535         * modules/unictype/category-Mc: New file.
25536         * modules/unictype/category-Me: New file.
25537         * modules/unictype/category-N: New file.
25538         * modules/unictype/category-Nd: New file.
25539         * modules/unictype/category-Nl: New file.
25540         * modules/unictype/category-No: New file.
25541         * modules/unictype/category-P: New file.
25542         * modules/unictype/category-Pc: New file.
25543         * modules/unictype/category-Pd: New file.
25544         * modules/unictype/category-Ps: New file.
25545         * modules/unictype/category-Pe: New file.
25546         * modules/unictype/category-Pi: New file.
25547         * modules/unictype/category-Pf: New file.
25548         * modules/unictype/category-Po: New file.
25549         * modules/unictype/category-S: New file.
25550         * modules/unictype/category-Sm: New file.
25551         * modules/unictype/category-Sc: New file.
25552         * modules/unictype/category-Sk: New file.
25553         * modules/unictype/category-So: New file.
25554         * modules/unictype/category-Z: New file.
25555         * modules/unictype/category-Zs: New file.
25556         * modules/unictype/category-Zl: New file.
25557         * modules/unictype/category-Zp: New file.
25558         * modules/unictype/category-C: New file.
25559         * modules/unictype/category-Cc: New file.
25560         * modules/unictype/category-Cf: New file.
25561         * modules/unictype/category-Cs: New file.
25562         * modules/unictype/category-Co: New file.
25563         * modules/unictype/category-Cn: New file.
25564         * modules/unictype/category-or: New file.
25565         * modules/unictype/category-of: New file.
25566         * modules/unictype/category-test: New file.
25567         * modules/unictype/category-test-withtable: New file.
25568         * modules/unictype/category-byname: New file.
25569         * modules/unictype/category-none: New file.
25570         * modules/unictype/category-and: New file.
25571         * modules/unictype/category-and-not: New file.
25572         * modules/unictype/category-name: New file.
25573         * modules/unictype/combining-class: New file.
25574         * modules/unictype/category-all: New file.
25575         * modules/unictype/bidicategory-all: New file.
25576         * modules/unictype/bidicategory-byname: New file.
25577         * modules/unictype/bidicategory-name: New file.
25578         * modules/unictype/bidicategory-of: New file.
25579         * modules/unictype/bidicategory-test: New file.
25580         * modules/unictype/decimal-digit: New file.
25581         * modules/unictype/digit: New file.
25582         * modules/unictype/numeric: New file.
25583         * modules/unictype/mirror: New file.
25584         * modules/unictype/property-white-space: New file.
25585         * modules/unictype/property-alphabetic: New file.
25586         * modules/unictype/property-other-alphabetic: New file.
25587         * modules/unictype/property-not-a-character: New file.
25588         * modules/unictype/property-default-ignorable-code-point: New file.
25589         * modules/unictype/property-other-default-ignorable-code-point: New
25590         file.
25591         * modules/unictype/property-deprecated: New file.
25592         * modules/unictype/property-logical-order-exception: New file.
25593         * modules/unictype/property-variation-selector: New file.
25594         * modules/unictype/property-private-use: New file.
25595         * modules/unictype/property-unassigned-code-value: New file.
25596         * modules/unictype/property-uppercase: New file.
25597         * modules/unictype/property-other-uppercase: New file.
25598         * modules/unictype/property-lowercase: New file.
25599         * modules/unictype/property-other-lowercase: New file.
25600         * modules/unictype/property-titlecase: New file.
25601         * modules/unictype/property-soft-dotted: New file.
25602         * modules/unictype/property-id-start: New file.
25603         * modules/unictype/property-other-id-start: New file.
25604         * modules/unictype/property-id-continue: New file.
25605         * modules/unictype/property-other-id-continue: New file.
25606         * modules/unictype/property-xid-start: New file.
25607         * modules/unictype/property-xid-continue: New file.
25608         * modules/unictype/property-pattern-white-space: New file.
25609         * modules/unictype/property-pattern-syntax: New file.
25610         * modules/unictype/property-join-control: New file.
25611         * modules/unictype/property-grapheme-base: New file.
25612         * modules/unictype/property-grapheme-extend: New file.
25613         * modules/unictype/property-other-grapheme-extend: New file.
25614         * modules/unictype/property-grapheme-link: New file.
25615         * modules/unictype/property-bidi-control: New file.
25616         * modules/unictype/property-bidi-left-to-right: New file.
25617         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
25618         * modules/unictype/property-bidi-arabic-right-to-left: New file.
25619         * modules/unictype/property-bidi-european-digit: New file.
25620         * modules/unictype/property-bidi-eur-num-separator: New file.
25621         * modules/unictype/property-bidi-eur-num-terminator: New file.
25622         * modules/unictype/property-bidi-arabic-digit: New file.
25623         * modules/unictype/property-bidi-common-separator: New file.
25624         * modules/unictype/property-bidi-block-separator: New file.
25625         * modules/unictype/property-bidi-segment-separator: New file.
25626         * modules/unictype/property-bidi-whitespace: New file.
25627         * modules/unictype/property-bidi-non-spacing-mark: New file.
25628         * modules/unictype/property-bidi-boundary-neutral: New file.
25629         * modules/unictype/property-bidi-pdf: New file.
25630         * modules/unictype/property-bidi-embedding-or-override: New file.
25631         * modules/unictype/property-bidi-other-neutral: New file.
25632         * modules/unictype/property-hex-digit: New file.
25633         * modules/unictype/property-ascii-hex-digit: New file.
25634         * modules/unictype/property-ideographic: New file.
25635         * modules/unictype/property-unified-ideograph: New file.
25636         * modules/unictype/property-radical: New file.
25637         * modules/unictype/property-ids-binary-operator: New file.
25638         * modules/unictype/property-ids-trinary-operator: New file.
25639         * modules/unictype/property-zero-width: New file.
25640         * modules/unictype/property-space: New file.
25641         * modules/unictype/property-non-break: New file.
25642         * modules/unictype/property-iso-control: New file.
25643         * modules/unictype/property-format-control: New file.
25644         * modules/unictype/property-dash: New file.
25645         * modules/unictype/property-hyphen: New file.
25646         * modules/unictype/property-punctuation: New file.
25647         * modules/unictype/property-line-separator: New file.
25648         * modules/unictype/property-paragraph-separator: New file.
25649         * modules/unictype/property-quotation-mark: New file.
25650         * modules/unictype/property-sentence-terminal: New file.
25651         * modules/unictype/property-terminal-punctuation: New file.
25652         * modules/unictype/property-currency-symbol: New file.
25653         * modules/unictype/property-math: New file.
25654         * modules/unictype/property-other-math: New file.
25655         * modules/unictype/property-paired-punctuation: New file.
25656         * modules/unictype/property-left-of-pair: New file.
25657         * modules/unictype/property-combining: New file.
25658         * modules/unictype/property-composite: New file.
25659         * modules/unictype/property-decimal-digit: New file.
25660         * modules/unictype/property-numeric: New file.
25661         * modules/unictype/property-diacritic: New file.
25662         * modules/unictype/property-extender: New file.
25663         * modules/unictype/property-ignorable-control: New file.
25664         * modules/unictype/property-test: New file.
25665         * modules/unictype/property-byname: New file.
25666         * modules/unictype/property-all: New file.
25667         * modules/unictype/scripts: New file.
25668         * modules/unictype/scripts-all: New file.
25669         * modules/unictype/block-of: New file.
25670         * modules/unictype/block-test: New file.
25671         * modules/unictype/block-list: New file.
25672         * modules/unictype/block-all: New file.
25673         * modules/unictype/syntax-c-whitespace: New file.
25674         * modules/unictype/syntax-java-whitespace: New file.
25675         * modules/unictype/syntax-c-ident: New file.
25676         * modules/unictype/syntax-java-ident: New file.
25677         * modules/unictype/ctype-alnum: New file.
25678         * modules/unictype/ctype-alpha: New file.
25679         * modules/unictype/ctype-cntrl: New file.
25680         * modules/unictype/ctype-digit: New file.
25681         * modules/unictype/ctype-graph: New file.
25682         * modules/unictype/ctype-lower: New file.
25683         * modules/unictype/ctype-print: New file.
25684         * modules/unictype/ctype-punct: New file.
25685         * modules/unictype/ctype-space: New file.
25686         * modules/unictype/ctype-upper: New file.
25687         * modules/unictype/ctype-xdigit: New file.
25688         * modules/unictype/ctype-blank: New file.
25689         * lib/unictype/bidi_byname.c: New file.
25690         * lib/unictype/bidi_name.c: New file.
25691         * lib/unictype/bidi_of.c: New file.
25692         * lib/unictype/bidi_test.c: New file.
25693         * lib/unictype/bitmap.h: New file.
25694         * lib/unictype/block_test.c: New file.
25695         * lib/unictype/blocks.c: New file.
25696         * lib/unictype/categ_C.c: New file.
25697         * lib/unictype/categ_Cc.c: New file.
25698         * lib/unictype/categ_Cf.c: New file.
25699         * lib/unictype/categ_Cn.c: New file.
25700         * lib/unictype/categ_Co.c: New file.
25701         * lib/unictype/categ_Cs.c: New file.
25702         * lib/unictype/categ_L.c: New file.
25703         * lib/unictype/categ_Ll.c: New file.
25704         * lib/unictype/categ_Lm.c: New file.
25705         * lib/unictype/categ_Lo.c: New file.
25706         * lib/unictype/categ_Lt.c: New file.
25707         * lib/unictype/categ_Lu.c: New file.
25708         * lib/unictype/categ_M.c: New file.
25709         * lib/unictype/categ_Mc.c: New file.
25710         * lib/unictype/categ_Me.c: New file.
25711         * lib/unictype/categ_Mn.c: New file.
25712         * lib/unictype/categ_N.c: New file.
25713         * lib/unictype/categ_Nd.c: New file.
25714         * lib/unictype/categ_Nl.c: New file.
25715         * lib/unictype/categ_No.c: New file.
25716         * lib/unictype/categ_P.c: New file.
25717         * lib/unictype/categ_Pc.c: New file.
25718         * lib/unictype/categ_Pd.c: New file.
25719         * lib/unictype/categ_Pe.c: New file.
25720         * lib/unictype/categ_Pf.c: New file.
25721         * lib/unictype/categ_Pi.c: New file.
25722         * lib/unictype/categ_Po.c: New file.
25723         * lib/unictype/categ_Ps.c: New file.
25724         * lib/unictype/categ_S.c: New file.
25725         * lib/unictype/categ_Sc.c: New file.
25726         * lib/unictype/categ_Sk.c: New file.
25727         * lib/unictype/categ_Sm.c: New file.
25728         * lib/unictype/categ_So.c: New file.
25729         * lib/unictype/categ_Z.c: New file.
25730         * lib/unictype/categ_Zl.c: New file.
25731         * lib/unictype/categ_Zp.c: New file.
25732         * lib/unictype/categ_Zs.c: New file.
25733         * lib/unictype/categ_and.c: New file.
25734         * lib/unictype/categ_and_not.c: New file.
25735         * lib/unictype/categ_byname.c: New file.
25736         * lib/unictype/categ_name.c: New file.
25737         * lib/unictype/categ_none.c: New file.
25738         * lib/unictype/categ_of.c: New file.
25739         * lib/unictype/categ_or.c: New file.
25740         * lib/unictype/categ_test.c: New file.
25741         * lib/unictype/combining.c: New file.
25742         * lib/unictype/ctype_alnum.c: New file.
25743         * lib/unictype/ctype_alpha.c: New file.
25744         * lib/unictype/ctype_blank.c: New file.
25745         * lib/unictype/ctype_cntrl.c: New file.
25746         * lib/unictype/ctype_digit.c: New file.
25747         * lib/unictype/ctype_graph.c: New file.
25748         * lib/unictype/ctype_lower.c: New file.
25749         * lib/unictype/ctype_print.c: New file.
25750         * lib/unictype/ctype_punct.c: New file.
25751         * lib/unictype/ctype_space.c: New file.
25752         * lib/unictype/ctype_upper.c: New file.
25753         * lib/unictype/ctype_xdigit.c: New file.
25754         * lib/unictype/decdigit.c: New file.
25755         * lib/unictype/digit.c: New file.
25756         * lib/unictype/identsyntaxmap.h: New file.
25757         * lib/unictype/mirror.c: New file.
25758         * lib/unictype/numeric.c: New file.
25759         * lib/unictype/pr_alphabetic.c: New file.
25760         * lib/unictype/pr_ascii_hex_digit.c: New file.
25761         * lib/unictype/pr_bidi_arabic_digit.c: New file.
25762         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
25763         * lib/unictype/pr_bidi_block_separator.c: New file.
25764         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
25765         * lib/unictype/pr_bidi_common_separator.c: New file.
25766         * lib/unictype/pr_bidi_control.c: New file.
25767         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
25768         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
25769         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
25770         * lib/unictype/pr_bidi_european_digit.c: New file.
25771         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
25772         * lib/unictype/pr_bidi_left_to_right.c: New file.
25773         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
25774         * lib/unictype/pr_bidi_other_neutral.c: New file.
25775         * lib/unictype/pr_bidi_pdf.c: New file.
25776         * lib/unictype/pr_bidi_segment_separator.c: New file.
25777         * lib/unictype/pr_bidi_whitespace.c: New file.
25778         * lib/unictype/pr_byname.c: New file.
25779         * lib/unictype/pr_byname.gperf: New file.
25780         * lib/unictype/pr_combining.c: New file.
25781         * lib/unictype/pr_composite.c: New file.
25782         * lib/unictype/pr_currency_symbol.c: New file.
25783         * lib/unictype/pr_dash.c: New file.
25784         * lib/unictype/pr_decimal_digit.c: New file.
25785         * lib/unictype/pr_default_ignorable_code_point.c: New file.
25786         * lib/unictype/pr_deprecated.c: New file.
25787         * lib/unictype/pr_diacritic.c: New file.
25788         * lib/unictype/pr_extender.c: New file.
25789         * lib/unictype/pr_format_control.c: New file.
25790         * lib/unictype/pr_grapheme_base.c: New file.
25791         * lib/unictype/pr_grapheme_extend.c: New file.
25792         * lib/unictype/pr_grapheme_link.c: New file.
25793         * lib/unictype/pr_hex_digit.c: New file.
25794         * lib/unictype/pr_hyphen.c: New file.
25795         * lib/unictype/pr_id_continue.c: New file.
25796         * lib/unictype/pr_id_start.c: New file.
25797         * lib/unictype/pr_ideographic.c: New file.
25798         * lib/unictype/pr_ids_binary_operator.c: New file.
25799         * lib/unictype/pr_ids_trinary_operator.c: New file.
25800         * lib/unictype/pr_ignorable_control.c: New file.
25801         * lib/unictype/pr_iso_control.c: New file.
25802         * lib/unictype/pr_join_control.c: New file.
25803         * lib/unictype/pr_left_of_pair.c: New file.
25804         * lib/unictype/pr_line_separator.c: New file.
25805         * lib/unictype/pr_logical_order_exception.c: New file.
25806         * lib/unictype/pr_lowercase.c: New file.
25807         * lib/unictype/pr_math.c: New file.
25808         * lib/unictype/pr_non_break.c: New file.
25809         * lib/unictype/pr_not_a_character.c: New file.
25810         * lib/unictype/pr_numeric.c: New file.
25811         * lib/unictype/pr_other_alphabetic.c: New file.
25812         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
25813         * lib/unictype/pr_other_grapheme_extend.c: New file.
25814         * lib/unictype/pr_other_id_continue.c: New file.
25815         * lib/unictype/pr_other_id_start.c: New file.
25816         * lib/unictype/pr_other_lowercase.c: New file.
25817         * lib/unictype/pr_other_math.c: New file.
25818         * lib/unictype/pr_other_uppercase.c: New file.
25819         * lib/unictype/pr_paired_punctuation.c: New file.
25820         * lib/unictype/pr_paragraph_separator.c: New file.
25821         * lib/unictype/pr_pattern_syntax.c: New file.
25822         * lib/unictype/pr_pattern_white_space.c: New file.
25823         * lib/unictype/pr_private_use.c: New file.
25824         * lib/unictype/pr_punctuation.c: New file.
25825         * lib/unictype/pr_quotation_mark.c: New file.
25826         * lib/unictype/pr_radical.c: New file.
25827         * lib/unictype/pr_sentence_terminal.c: New file.
25828         * lib/unictype/pr_soft_dotted.c: New file.
25829         * lib/unictype/pr_space.c: New file.
25830         * lib/unictype/pr_terminal_punctuation.c: New file.
25831         * lib/unictype/pr_test.c: New file.
25832         * lib/unictype/pr_titlecase.c: New file.
25833         * lib/unictype/pr_unassigned_code_value.c: New file.
25834         * lib/unictype/pr_unified_ideograph.c: New file.
25835         * lib/unictype/pr_uppercase.c: New file.
25836         * lib/unictype/pr_variation_selector.c: New file.
25837         * lib/unictype/pr_white_space.c: New file.
25838         * lib/unictype/pr_xid_continue.c: New file.
25839         * lib/unictype/pr_xid_start.c: New file.
25840         * lib/unictype/pr_zero_width.c: New file.
25841         * lib/unictype/scripts.c: New file.
25842         * lib/unictype/sy_c_ident.c: New file.
25843         * lib/unictype/sy_c_whitespace.c: New file.
25844         * lib/unictype/sy_java_ident.c: New file.
25845         * lib/unictype/sy_java_whitespace.c: New file.
25846
25847         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
25848         Unicode 5.0.0.
25849         * lib/unictype/blocks.h: Likewise.
25850         * lib/unictype/categ_C.h: Likewise.
25851         * lib/unictype/categ_Cc.h: Likewise.
25852         * lib/unictype/categ_Cf.h: Likewise.
25853         * lib/unictype/categ_Cn.h: Likewise.
25854         * lib/unictype/categ_Co.h: Likewise.
25855         * lib/unictype/categ_Cs.h: Likewise.
25856         * lib/unictype/categ_L.h: Likewise.
25857         * lib/unictype/categ_Ll.h: Likewise.
25858         * lib/unictype/categ_Lm.h: Likewise.
25859         * lib/unictype/categ_Lo.h: Likewise.
25860         * lib/unictype/categ_Lt.h: Likewise.
25861         * lib/unictype/categ_Lu.h: Likewise.
25862         * lib/unictype/categ_M.h: Likewise.
25863         * lib/unictype/categ_Mc.h: Likewise.
25864         * lib/unictype/categ_Me.h: Likewise.
25865         * lib/unictype/categ_Mn.h: Likewise.
25866         * lib/unictype/categ_N.h: Likewise.
25867         * lib/unictype/categ_Nd.h: Likewise.
25868         * lib/unictype/categ_Nl.h: Likewise.
25869         * lib/unictype/categ_No.h: Likewise.
25870         * lib/unictype/categ_P.h: Likewise.
25871         * lib/unictype/categ_Pc.h: Likewise.
25872         * lib/unictype/categ_Pd.h: Likewise.
25873         * lib/unictype/categ_Pe.h: Likewise.
25874         * lib/unictype/categ_Pf.h: Likewise.
25875         * lib/unictype/categ_Pi.h: Likewise.
25876         * lib/unictype/categ_Po.h: Likewise.
25877         * lib/unictype/categ_Ps.h: Likewise.
25878         * lib/unictype/categ_S.h: Likewise.
25879         * lib/unictype/categ_Sc.h: Likewise.
25880         * lib/unictype/categ_Sk.h: Likewise.
25881         * lib/unictype/categ_Sm.h: Likewise.
25882         * lib/unictype/categ_So.h: Likewise.
25883         * lib/unictype/categ_Z.h: Likewise.
25884         * lib/unictype/categ_Zl.h: Likewise.
25885         * lib/unictype/categ_Zp.h: Likewise.
25886         * lib/unictype/categ_Zs.h: Likewise.
25887         * lib/unictype/categ_of.h: Likewise.
25888         * lib/unictype/combining.h: Likewise.
25889         * lib/unictype/ctype_alnum.h: Likewise.
25890         * lib/unictype/ctype_alpha.h: Likewise.
25891         * lib/unictype/ctype_blank.h: Likewise.
25892         * lib/unictype/ctype_cntrl.h: Likewise.
25893         * lib/unictype/ctype_digit.h: Likewise.
25894         * lib/unictype/ctype_graph.h: Likewise.
25895         * lib/unictype/ctype_lower.h: Likewise.
25896         * lib/unictype/ctype_print.h: Likewise.
25897         * lib/unictype/ctype_punct.h: Likewise.
25898         * lib/unictype/ctype_space.h: Likewise.
25899         * lib/unictype/ctype_upper.h: Likewise.
25900         * lib/unictype/ctype_xdigit.h: Likewise.
25901         * lib/unictype/decdigit.h: Likewise.
25902         * lib/unictype/digit.h: Likewise.
25903         * lib/unictype/mirror.h: Likewise.
25904         * lib/unictype/numeric.h: Likewise.
25905         * lib/unictype/pr_alphabetic.h: Likewise.
25906         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25907         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25908         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25909         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25910         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25911         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25912         * lib/unictype/pr_bidi_control.h: Likewise.
25913         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25914         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25915         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25916         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25917         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25918         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25919         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25920         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25921         * lib/unictype/pr_bidi_pdf.h: Likewise.
25922         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25923         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25924         * lib/unictype/pr_combining.h: Likewise.
25925         * lib/unictype/pr_composite.h: Likewise.
25926         * lib/unictype/pr_currency_symbol.h: Likewise.
25927         * lib/unictype/pr_dash.h: Likewise.
25928         * lib/unictype/pr_decimal_digit.h: Likewise.
25929         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25930         * lib/unictype/pr_deprecated.h: Likewise.
25931         * lib/unictype/pr_diacritic.h: Likewise.
25932         * lib/unictype/pr_extender.h: Likewise.
25933         * lib/unictype/pr_format_control.h: Likewise.
25934         * lib/unictype/pr_grapheme_base.h: Likewise.
25935         * lib/unictype/pr_grapheme_extend.h: Likewise.
25936         * lib/unictype/pr_grapheme_link.h: Likewise.
25937         * lib/unictype/pr_hex_digit.h: Likewise.
25938         * lib/unictype/pr_hyphen.h: Likewise.
25939         * lib/unictype/pr_id_continue.h: Likewise.
25940         * lib/unictype/pr_id_start.h: Likewise.
25941         * lib/unictype/pr_ideographic.h: Likewise.
25942         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25943         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25944         * lib/unictype/pr_ignorable_control.h: Likewise.
25945         * lib/unictype/pr_iso_control.h: Likewise.
25946         * lib/unictype/pr_join_control.h: Likewise.
25947         * lib/unictype/pr_left_of_pair.h: Likewise.
25948         * lib/unictype/pr_line_separator.h: Likewise.
25949         * lib/unictype/pr_logical_order_exception.h: Likewise.
25950         * lib/unictype/pr_lowercase.h: Likewise.
25951         * lib/unictype/pr_math.h: Likewise.
25952         * lib/unictype/pr_non_break.h: Likewise.
25953         * lib/unictype/pr_not_a_character.h: Likewise.
25954         * lib/unictype/pr_numeric.h: Likewise.
25955         * lib/unictype/pr_other_alphabetic.h: Likewise.
25956         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25957         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25958         * lib/unictype/pr_other_id_continue.h: Likewise.
25959         * lib/unictype/pr_other_id_start.h: Likewise.
25960         * lib/unictype/pr_other_lowercase.h: Likewise.
25961         * lib/unictype/pr_other_math.h: Likewise.
25962         * lib/unictype/pr_other_uppercase.h: Likewise.
25963         * lib/unictype/pr_paired_punctuation.h: Likewise.
25964         * lib/unictype/pr_paragraph_separator.h: Likewise.
25965         * lib/unictype/pr_pattern_syntax.h: Likewise.
25966         * lib/unictype/pr_pattern_white_space.h: Likewise.
25967         * lib/unictype/pr_private_use.h: Likewise.
25968         * lib/unictype/pr_punctuation.h: Likewise.
25969         * lib/unictype/pr_quotation_mark.h: Likewise.
25970         * lib/unictype/pr_radical.h: Likewise.
25971         * lib/unictype/pr_sentence_terminal.h: Likewise.
25972         * lib/unictype/pr_soft_dotted.h: Likewise.
25973         * lib/unictype/pr_space.h: Likewise.
25974         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25975         * lib/unictype/pr_titlecase.h: Likewise.
25976         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25977         * lib/unictype/pr_unified_ideograph.h: Likewise.
25978         * lib/unictype/pr_uppercase.h: Likewise.
25979         * lib/unictype/pr_variation_selector.h: Likewise.
25980         * lib/unictype/pr_white_space.h: Likewise.
25981         * lib/unictype/pr_xid_continue.h: Likewise.
25982         * lib/unictype/pr_xid_start.h: Likewise.
25983         * lib/unictype/pr_zero_width.h: Likewise.
25984         * lib/unictype/scripts.h: Likewise.
25985         * lib/unictype/scripts_byname.gperf: Likewise.
25986         * lib/unictype/sy_c_ident.h: Likewise.
25987         * lib/unictype/sy_c_whitespace.h: Likewise.
25988         * lib/unictype/sy_java_ident.h: Likewise.
25989         * lib/unictype/sy_java_whitespace.h: Likewise.
25990
25991         * lib/unictype/Makefile: New file.
25992         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
25993         glibc.
25994         * lib/unictype/3level.h: New file, copied from glibc.
25995         * lib/unictype/3levelbit.h: New file.
25996
25997 2007-11-11  Bruno Haible  <bruno@clisp.org>
25998
25999         * modules/gperf: New file.
26000         * modules/iconv_open (Depends-on): Add it.
26001         (Makefile.am): Remove the GPERF definition.
26002
26003 2007-11-11  Bruno Haible  <bruno@clisp.org>
26004
26005         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
26006         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
26007
26008 2007-11-11  Bruno Haible  <bruno@clisp.org>
26009
26010         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
26011         (usage): Remove function.
26012
26013 2007-11-11  Bruno Haible  <bruno@clisp.org>
26014
26015         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
26016         gl_FUNC_CEILF_LIBS.
26017         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
26018         gl_FUNC_CEIL_LIBS.
26019         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
26020         gl_FUNC_CEILL_LIBS.
26021         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
26022         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
26023         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
26024
26025 2007-11-11  Bruno Haible  <bruno@clisp.org>
26026
26027         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
26028         roundf were declared but do not exist on functions.
26029         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
26030         roundl were declared but do not exist on functions.
26031         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
26032         HAVE_FLOORL_AND_CEILL, respectively.
26033         Needed for Sun C on Solaris 10.
26034
26035 2007-11-11  Bruno Haible  <bruno@clisp.org>
26036
26037         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
26038         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
26039         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
26040         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
26041         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
26042         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
26043         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
26044         HAVE_DECL_ROUNDF.
26045         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
26046         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
26047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
26048         of HAVE_DECL_ROUND*.
26049         * modules/math (Makefile.am): Update.
26050
26051 2007-11-10  Bruno Haible  <bruno@clisp.org>
26052
26053         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
26054         ptrdiff_t as m4/intl.m4.
26055
26056 2007-11-10  Jim Meyering  <meyering@redhat.com>
26057
26058         Avoid link failure for the argmatch test.
26059         * tests/test-argmatch.c (usage): Define function to avoid a link
26060         failure: argmatch_die requires a usage function.
26061
26062 2007-11-09  Bruno Haible  <bruno@clisp.org>
26063
26064         * doc/functions/snprintf.texi: Mention BeOS deficiency.
26065         * doc/functions/vsnprintf.texi: Likewise.
26066         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
26067         with a size argument < 2.
26068
26069 2007-11-09  Bruno Haible  <bruno@clisp.org>
26070
26071         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
26072         buffer. Fixes an inefficiency introduced on 2007-11-03.
26073
26074 2007-11-09  Bruno Haible  <bruno@clisp.org>
26075
26076         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
26077         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
26078
26079 2007-11-08  Jim Meyering  <meyering@redhat.com>
26080
26081         Change cache variable name prefix "jm_" to "gl_" everywhere.
26082         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
26083         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
26084         * m4/uptime.m4: s/gl_/jm_/
26085
26086 2007-11-07  Bruno Haible  <bruno@clisp.org>
26087
26088         Update to GNU gettext 0.17.
26089         * m4/intl.m4: Update to GNU gettext 0.17.
26090         * m4/po.m4: Likewise.
26091         * modules/gettext (Files): Remove m4/ulonglong.m4.
26092         (configure.ac): Require gettext infrastructure from version 0.17.
26093
26094 2007-11-06  Bruno Haible  <bruno@clisp.org>
26095
26096         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
26097         symbolic values are not defined in a public header.
26098         * lib/freadable.c (freadable) [QNX]: Likewise.
26099         * lib/freadahead.c (freadahead) [QNX]: Likewise.
26100         * lib/freading.c (freading) [QNX]: Likewise.
26101         * lib/fseterr.c (fseterr) [QNX]: Likewise.
26102         * lib/fwritable.c (fwritable) [QNX]: Likewise.
26103         * lib/fwriting.c (fwriting) [QNX]: Likewise.
26104         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
26105         Reported by Alain Magloire.
26106
26107         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
26108
26109 2007-11-05  Bruno Haible  <bruno@clisp.org>
26110
26111         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
26112         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
26113         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
26114         Reported by Eric Blake.
26115
26116 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26117             Bruno Haible  <bruno@clisp.org>
26118
26119         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
26120         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
26121         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
26122         (malloc): Undefine also before including <stdlib.h>.
26123         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
26124         Needed on OSF/1 4.0.
26125
26126 2007-11-05  Jim Meyering  <meyering@redhat.com>
26127
26128         git-version-gen: sync from coreutils.
26129         * build-aux/git-version-gen: Add comments.
26130         Change the first '-' to '.' in the snapshot version string,
26131         e.g., 6.9-377-08144 -> 6.9.377-08144
26132         Remove first parameter.
26133         Don't declare a version "-dirty" merely because a time
26134         stamp has changed.
26135
26136 2007-11-04  Bruno Haible  <bruno@clisp.org>
26137
26138         * lib/lock.h: Protect all macro definitions containing an 'if'
26139         statement through a "do { ... } while (0)".
26140         * lib/tls.h: Likewise.
26141
26142 2007-11-04  Bruno Haible  <bruno@clisp.org>
26143
26144         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
26145
26146 2007-11-04  Bruno Haible  <bruno@clisp.org>
26147
26148         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
26149         * modules/fprintf-posix (Depends-on): Add nocrash.
26150         * modules/snprintf-posix (Depends-on): Likewise.
26151         * modules/sprintf-posix (Depends-on): Likewise.
26152         * modules/vasnprintf-posix (Depends-on): Likewise.
26153         * modules/vasprintf-posix (Depends-on): Likewise.
26154         * modules/vfprintf-posix (Depends-on): Likewise.
26155         * modules/vsnprintf-posix (Depends-on): Likewise.
26156         * modules/vsprintf-posix (Depends-on): Likewise.
26157         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26158         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26159         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26160         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26161         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26162         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26163         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26164
26165 2007-11-04  Bruno Haible  <bruno@clisp.org>
26166
26167         * modules/nocrash: New file.
26168         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
26169         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
26170
26171 2007-11-04  Bruno Haible  <bruno@clisp.org>
26172
26173         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
26174         precision handling.
26175         * tests/test-vasprintf-posix.c (test_function): Likewise.
26176         * tests/test-snprintf-posix.h (test_function): Likewise.
26177         * tests/test-sprintf-posix.h (test_function): Likewise.
26178
26179         Fix *printf behaviour for large precisions on mingw and BeOS.
26180         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
26181         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
26182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
26183         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26184         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26185         gl_PRINTF_PRECISION and test its result. Invoke
26186         gl_PREREQ_VASNPRINTF_PRECISION.
26187         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26188         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26189         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26190         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26191         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26192         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26193         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26194         * doc/functions/fprintf.texi: Update.
26195         * doc/functions/printf.texi: Update.
26196         * doc/functions/snprintf.texi: Update.
26197         * doc/functions/sprintf.texi: Update.
26198         * doc/functions/vfprintf.texi: Update.
26199         * doc/functions/vprintf.texi: Update.
26200         * doc/functions/vsnprintf.texi: Update.
26201         * doc/functions/vsprintf.texi: Update.
26202
26203 2007-11-04  Bruno Haible  <bruno@clisp.org>
26204
26205         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
26206
26207 2007-11-04  Bruno Haible  <bruno@clisp.org>
26208
26209         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
26210         Reported by Sylvain Beucler <beuc@gnu.org>.
26211
26212 2007-11-03  Bruno Haible  <bruno@clisp.org>
26213
26214         * tests/test-fprintf-posix2.sh: New file.
26215         * tests/test-fprintf-posix2.c: New file.
26216         * modules/fprintf-posix-tests (Files): Add them.
26217         (TESTS): Add test-fprintf-posix2.sh.
26218         (configure.ac): Check for getrlimit and setrlimit.
26219         (check_PROGRAMS): Add test-fprintf-posix2.
26220
26221         * tests/test-printf-posix2.sh: New file.
26222         * tests/test-printf-posix2.c: New file.
26223         * modules/printf-posix-tests (Files): Add them.
26224         (TESTS): Add test-printf-posix2.sh.
26225         (configure.ac): Check for getrlimit and setrlimit.
26226         (check_PROGRAMS): Add test-printf-posix2.
26227
26228         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
26229         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
26230         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
26231         (decode_double): New function, copied from decode_long_double.
26232         (scale10_round_decimal_decoded): New function, extracted from
26233         scale10_round_decimal_long_double.
26234         (scale10_round_decimal_long_double): Use it.
26235         (scale10_round_decimal_double): New function.
26236         (floorlog10): New function.
26237         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
26238         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
26239         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26240         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26241         gl_PRINTF_ENOMEM and test its result. Invoke
26242         gl_PREREQ_VASNPRINTF_ENOMEM.
26243         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26244         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26245         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26246         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26247         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26248         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26249         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26250         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
26251         * modules/snprintf-posix (Depends-on): Likewise.
26252         * modules/sprintf-posix (Depends-on): Likewise.
26253         * modules/vasnprintf-posix (Depends-on): Likewise.
26254         * modules/vasprintf-posix (Depends-on): Likewise.
26255         * modules/vfprintf-posix (Depends-on): Likewise.
26256         * modules/vsnprintf-posix (Depends-on): Likewise.
26257         * modules/vsprintf-posix (Depends-on): Likewise.
26258         * doc/functions/fprintf.texi: Update.
26259         * doc/functions/printf.texi: Update.
26260         * doc/functions/snprintf.texi: Update.
26261         * doc/functions/sprintf.texi: Update.
26262         * doc/functions/vfprintf.texi: Update.
26263         * doc/functions/vprintf.texi: Update.
26264         * doc/functions/vsnprintf.texi: Update.
26265         * doc/functions/vsprintf.texi: Update.
26266
26267 2007-11-03  Bruno Haible  <bruno@clisp.org>
26268
26269         * modules/frexp-nolibm-tests: New file.
26270
26271         * modules/frexp-nolibm: New file.
26272         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
26273
26274 2007-11-03  Bruno Haible  <bruno@clisp.org>
26275
26276         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
26277         value is C99 compliant.
26278         Needed for OSF/1 5.1.
26279
26280 2007-11-03  Bruno Haible  <bruno@clisp.org>
26281
26282         Fix out-of-memory handling of vasnprintf.
26283         * lib/printf-parse.c: Include <errno.h>.
26284         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
26285         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
26286         is already set.
26287
26288 2007-11-02  Eric Blake  <ebb9@byu.net>
26289
26290         Fix tests on cygwin.
26291         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
26292
26293 2007-11-01  Bruno Haible  <bruno@clisp.org>
26294
26295         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
26296         warning.
26297         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
26298         needed for POSIX compatibility.
26299
26300 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26301
26302         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
26303         for compatibility with GNU.
26304
26305 2007-11-01  Bruno Haible  <bruno@clisp.org>
26306
26307         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
26308         (putenv): Renamed from rpl_putenv. Change argument type from
26309         'const char *' to 'char *'.
26310         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
26311         of defining putenv in config.h, just set REPLACE_PUTENV.
26312         * modules/putenv (Depends-on): Add stdlib.
26313         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26314         (Include): Use <stdlib.h>.
26315         * lib/stdlib.in.h (putenv): New declaration.
26316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
26317         REPLACE_PUTENV.
26318         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
26319         REPLACE_PUTENV.
26320         Needed for MacOS X 10.5.0.
26321         Reported by Peter O'Gorman <peter@pogma.com>.
26322
26323 2007-11-01  Jim Meyering  <meyering@redhat.com>
26324
26325         Treat an empty date string exactly like "0".
26326         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
26327         if the remaining date string (to be parsed) is empty, use "0".
26328         Reported by Mischa Molhoek and discussed in this thread:
26329         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
26330
26331 2007-10-31  Bruno Haible  <bruno@clisp.org>
26332
26333         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
26334         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
26335         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
26336         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
26337         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
26338         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
26339
26340 2007-10-31  Bruno Haible  <bruno@clisp.org>
26341
26342         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
26343         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
26344         (AC_TYPE_LONG_LONG_INT): Use it.
26345         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
26346         it as well.
26347         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
26348         to m4/longlong.m4.
26349         * modules/stdint (Files): Remove m4/ulonglong.m4.
26350         * modules/strtoull (Files): Use m4/longlong.m4 instead of
26351         m4/ulonglong.m4.
26352         * modules/strtoumax (Files): Likewise.
26353
26354 2007-10-30  Bruno Haible  <bruno@clisp.org>
26355
26356         * modules/xvasprintf-posix: New file.
26357         Suggested by Eric Blake.
26358
26359 2007-10-30  Bruno Haible  <bruno@clisp.org>
26360
26361         * modules/xprintf-posix-tests: New file.
26362         * tests/test-xprintf-posix.sh: New file.
26363         * tests/test-xprintf-posix.c: New file.
26364         * tests/test-xfprintf-posix.c: New file.
26365
26366         * modules/xprintf-posix: New file.
26367
26368 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26369
26370         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
26371         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
26372         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
26373
26374 2007-10-29  Bruno Haible  <bruno@clisp.org>
26375
26376         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
26377         contain the special marker '_cv_'.
26378         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26379         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26380         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26381         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26382         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26383         Reported by Ralf Wildenhues.
26384
26385 2007-10-29  Bruno Haible  <bruno@clisp.org>
26386
26387         * gnulib-tool (func_import): When --lgpl is not specified, set
26388         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
26389         GPLv3.
26390         Reported by Simon Josefsson.
26391
26392 2007-10-28  Bruno Haible  <bruno@clisp.org>
26393
26394         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
26395         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
26396         HAVE_DECL_ISFINITE.
26397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26398         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
26399         HAVE_DECL_ISFINITE.
26400
26401 2007-10-28  Bruno Haible  <bruno@clisp.org>
26402
26403         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
26404         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
26405
26406 2007-10-28  Bruno Haible  <bruno@clisp.org>
26407
26408         Fix link errors with Sun C 5.0 on Solaris 10.
26409         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
26410         function is declared but not present in the compiler's libm.
26411         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26412         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
26413         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
26414         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
26415         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
26416         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
26417         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
26418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26419         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
26420         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
26421         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
26422         HAVE_DECL_FLOORL.
26423
26424 2007-10-28  Bruno Haible  <bruno@clisp.org>
26425
26426         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
26427         gl_FUNC_FLOORL. Cache the result.
26428         (gl_FUNC_FLOORL): Use it.
26429         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
26430         gl_FUNC_CEILL. Cache the result.
26431         (gl_FUNC_CEILL): Use it.
26432
26433         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
26434         gl_FUNC_FLOOR. Cache the result.
26435         (gl_FUNC_FLOOR): Use it.
26436         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
26437         gl_FUNC_CEIL. Cache the result.
26438         (gl_FUNC_CEIL): Use it.
26439
26440         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
26441         gl_FUNC_FLOORF. Cache the result.
26442         (gl_FUNC_FLOORF): Use it.
26443         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
26444         gl_FUNC_CEILF. Cache the result.
26445         (gl_FUNC_CEILF): Use it.
26446
26447 2007-10-28  Bruno Haible  <bruno@clisp.org>
26448
26449         * gnulib-tool: Allow specifying the LGPL version number through
26450         --lgpl=2 or --lgpl=3.
26451         (func_usage): Document --lgpl with argument.
26452         Handle --lgpl=... arguments.
26453         (func_import): Recognize also gl_LGPL calls with an argument. When
26454         --lgpl=2 is used and the module's license is just LGPL, report an
26455         error. Set sed_transform_lib_file according to the lgpl variable. In
26456         the generated files, use --lgpl or gl_LGPL invocations with argument,
26457         if necessary.
26458         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
26459         an LGPv2+ license.
26460         * doc/gnulib-tool.texi (Modified imports): Update explanation of
26461         gl_LGPL macro.
26462
26463 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26464             Bruno Haible  <bruno@clisp.org>
26465
26466         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
26467         (u16_uctomb_aux): Likewise.
26468         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
26469         !HAVE_INLINE.
26470         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
26471
26472 2007-10-28  Bruno Haible  <bruno@clisp.org>
26473
26474         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
26475         Invoke AM_GETTEXT_OPTION if it exists.
26476         * modules/vasprintf: Likewise.
26477         * modules/verror: Likewise.
26478         * modules/xprintf: Likewise.
26479         * modules/xvasprintf: Likewise.
26480
26481 2007-10-27  Ben Pfaff  <blp@gnu.org>
26482
26483         * lib/math.in.h: Define isfinite macro and prototypes for
26484         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
26485         implementations.
26486         * m4/math_h.m4: New substitutions for isfinite module.
26487         * lib/isfinite.c: New file.
26488         * m4/isfinite.m4: New file.
26489         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
26490         * modules/isfinite: New file.
26491         * modules/isfinite-tests: New file.
26492         * tests/tests-isfinite.c: New file.
26493         * doc/functions/isfinite.texi: Mention isfinite module.
26494         * MODULES.html.sh: Mention new module.
26495
26496 2007-10-27  Ben Pfaff  <blp@gnu.org>
26497
26498         Ralf Wildenhues reported that Tru64 4.0D declares the round
26499         functions but does not have definitions.
26500         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
26501         cannot be found in any library, set the output variable to
26502         "missing" instead of "".
26503         * m4/round.m4: Also use our substitute if we cannot find round in
26504         any library, even if it is declared.
26505         * m4/roundf.m4: Likewise for roundf.
26506         * m4/roundl.m4: Likewise for roundl.
26507         * lib/math.in.h: Undefine roundf, round, roundl before defining
26508         their replacements, to allow for hypothetical systems where these
26509         may be defined as macros but not available in libraries.
26510
26511 2007-10-27  Bruno Haible  <bruno@clisp.org>
26512
26513         * doc/gnulib.texi: Invoke @firstparagraphindent.
26514         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
26515         changes in gnulib.
26516         (Source changes): New section.
26517
26518 2007-10-26  Bruno Haible  <bruno@clisp.org>
26519
26520         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
26521         borrowed from autoconf.
26522
26523 2007-10-26  Bruno Haible  <bruno@clisp.org>
26524
26525         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
26526         strerror returned the empty string. Needed on HP-UX 11.00.
26527
26528 2007-10-24  Micah Cowan  <micah@cowan.name>
26529
26530         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
26531         * build-aux/bootstrap: Remove support for now-unnecessary option,
26532         --cvs-user, and envvars CVS_USER, CVS_RSH.
26533
26534 2007-10-24  Jim Meyering  <meyering@redhat.com>
26535
26536         Avoid diagnostics from sha1sum when there is no cached checksum.
26537         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
26538         if the po.s1 file hasn't been created yet.
26539
26540         * build-aux/bootstrap: Sync from coreutils:
26541         2007-10-24  Jim Meyering  <meyering@redhat.com>
26542         Get gnulib from the git repository, not from an obsolete cvs one.
26543         * build-aux/bootstrap: Suggestion from Micah Cowan.
26544         2007-10-04  Jim Meyering  <jim@meyering.net>
26545         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
26546         (update_po_files): Work also when there are no .po files in po/.
26547
26548 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26549
26550         * README: Append ".git" to git and cg examples.
26551         Problem reported by Benoit Sigoure.
26552
26553 2007-10-23  Micah Cowan  <micah@cowan.name>
26554
26555         * users.txt: Add wget.
26556
26557 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26558
26559         Fix linking of some unistdio tests on FreeBSD.
26560         * modules/unistdio/u16-vsnprintf-tests
26561         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
26562         * modules/unistdio/u16-vsprintf-tests
26563         (test_u16_vsnprintf1_LDADD): Likewise.
26564         * modules/unistdio/u32-vsnprintf-tests
26565         (test_u32_vsnprintf1_LDADD): Likewise.
26566         * modules/unistdio/u32-vsprintf-tests
26567         (test_u32_vsprintf1_LDADD): Likewise.
26568         * modules/unistdio/u8-vsnprintf-tests
26569         (test_u8_vsnprintf1_LDADD): Likewise.
26570         * modules/unistdio/u8-vsprintf-tests
26571         (test_u8_vsprintf1_LDADD): Likewise.
26572         * modules/unistdio/ulc-vsnprintf-tests
26573         (test_ulc_vsnprintf1_LDADD): Likewise.
26574         * modules/unistdio/ulc-vsprintf-tests
26575         (test_ulc_vsprintf1_LDADD): Likewise.
26576
26577         Fix linking of some uniconv tests on FreeBSD.
26578         * modules/uniconv/u16-conv-from-enc-tests
26579         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
26580         * modules/uniconv/u16-conv-to-enc-tests
26581         (test_u16_conv_to_enc_LDADD): Likewise.
26582         * modules/uniconv/u16-strconv-from-enc-tests
26583         (test_u16_strconv_from_enc_LDADD): Likewise.
26584         * modules/uniconv/u16-strconv-to-enc-tests
26585         (test_u16_strconv_to_enc_LDADD): Likewise.
26586         * modules/uniconv/u32-conv-from-enc-tests
26587         (test_u32_conv_from_enc_LDADD): Likewise.
26588         * modules/uniconv/u32-conv-to-enc-tests
26589         (test_u32_conv_to_enc_LDADD): Likewise.
26590         * modules/uniconv/u32-strconv-from-enc-tests
26591         (test_u32_strconv_from_enc_LDADD): Likewise.
26592         * modules/uniconv/u32-strconv-to-enc-tests
26593         (test_u32_strconv_to_enc_LDADD): Likewise.
26594         * modules/uniconv/u8-conv-from-enc-tests
26595         (test_u8_conv_from_enc_LDADD): Likewise.
26596         * modules/uniconv/u8-conv-to-enc-tests
26597         (test_u8_conv_to_enc_LDADD): Likewise.
26598         * modules/uniconv/u8-strconv-from-enc-tests
26599         (test_u8_strconv_from_enc_LDADD): Likewise.
26600         * modules/uniconv/u8-strconv-to-enc-tests
26601         (test_u8_strconv_to_enc_LDADD): Likewise.
26602
26603 2007-10-22  Bruno Haible  <bruno@clisp.org>
26604
26605         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
26606         size.
26607
26608 2007-10-22  Eric Blake  <ebb9@byu.net>
26609
26610         Tweak x*printf documentation.
26611         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
26612         variable name and comments.
26613         Suggested by Bruno Haible.
26614
26615 2007-10-22  Bruno Haible  <bruno@clisp.org>
26616
26617         * lib/acl.c (copy_acl): Fix file name in comment.
26618
26619 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26620
26621         Fix Tru64 problem with stdbool.h.
26622         * lib/stdbool.in.h (false, true):
26623         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
26624         Don't declare as an enum in this situation; it runs afoul of Tru64.
26625         Problem reported by Steven M. Schweda in
26626         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
26627
26628 2007-10-22  Eric Blake  <ebb9@byu.net>
26629
26630         Also wrap vf?printf.
26631         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
26632         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
26633         (xvprintf, xvfprintf): New functions.
26634
26635 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26636
26637         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
26638         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
26639
26640         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
26641         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
26642
26643 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26644
26645         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
26646         by Bruno Haible.
26647
26648 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26649
26650         * lib/getloadavg.c
26651         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
26652         Undef `sys' after including sys/table.h, for Tru64 4.0D.
26653
26654         * tests/test-i-ring.c: Work for C89.
26655
26656 2007-10-22  Bruno Haible  <bruno@clisp.org>
26657
26658         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
26659         -1u, in preprocessor expression, so that we don't test for the bug
26660         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
26661         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
26662
26663 2007-10-22  Eric Blake  <ebb9@byu.net>
26664
26665         * tests/test-yesno.sh: Silence stderr during test.
26666
26667 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26668
26669         * modules/crypto/gc-camellia: New file.
26670
26671         * m4/gc-camellia.m4: New file.
26672
26673         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
26674
26675         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
26676
26677 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26678
26679         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
26680         --help to stdout.  Reported by sms@antinode.org (Steven
26681         M. Schweda).
26682
26683 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26684
26685         * users.txt: Fix link to libksba.
26686
26687 2007-10-21  Ben Pfaff  <blp@gnu.org>
26688
26689         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
26690         round.c roundf implementation that depends on floorf and ceilf to
26691         be tested unconditionally.
26692
26693 2007-10-21  Ben Pfaff  <blp@gnu.org>
26694
26695         * m4/check-libm-func.m4: Removed.
26696         * m4/check-math-lib.m4: New file.
26697         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
26698         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
26699         definition and lack of AC_LIBOBJ([roundf]).
26700         * m4/roundl.m4: Ditto, and similarly for roundl.
26701         * modules/round: Reference new m4 file.
26702         * modules/roundf: Ditto.
26703         * modules/roundl: Ditto.
26704         * tests/test-round2.c (main): Use ROUND instead of round.
26705         Bug report from Bruno Haible.
26706
26707 2007-10-21  Bruno Haible  <bruno@clisp.org>
26708
26709         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
26710         context.
26711
26712 2007-10-21  Bruno Haible  <bruno@clisp.org>
26713
26714         * tests/test-wcwidth.c (main): Allow negative result for some control
26715         characters.
26716
26717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
26718         Needed on OSF/1 5.1.
26719
26720 2007-10-21  Bruno Haible  <bruno@clisp.org>
26721
26722         * tests/test-floorf1.c: Include isnanf.h.
26723         (main): Use isnanf() instead of isnan().
26724         * tests/test-ceilf1.c: Include isnanf.h.
26725         (main): Use isnanf() instead of isnan().
26726         * tests/test-truncf1.c: Include isnanf.h.
26727         (main): Use isnanf() instead of isnan().
26728         * tests/test-roundf1.c: Include isnanf.h.
26729         (main): Use isnanf() instead of isnan().
26730
26731 2007-10-21  Eric Blake  <ebb9@byu.net>
26732
26733         * users.txt: Update URL for m4.
26734
26735 2007-10-21  Bruno Haible  <bruno@clisp.org>
26736
26737         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
26738
26739 2007-10-21  Bruno Haible  <bruno@clisp.org>
26740
26741         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
26742         Git's management files if the CVS files are not present.
26743
26744 2007-10-20  Bruno Haible  <bruno@clisp.org>
26745
26746         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
26747         gcc-3.4.x.
26748
26749 2007-10-20  Ben Pfaff  <blp@gnu.org>
26750
26751         * lib/math.in.h: Declare round, roundf, roundl if we are providing
26752         implementations.
26753         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
26754         * lib/round.c: New file.
26755         * lib/roundf.c: New file.
26756         * lib/roundl.c: New file.
26757         * m4/round.m4: New file.
26758         * m4/roundf.m4: New file.
26759         * m4/roundl.m4: New file.
26760         * m4/check-libm-func-m4: New file.
26761         * modules/math: Replace round, roundf, roundl related @VARS@ in
26762         math.in.h.
26763         * modules/round: New file.
26764         * modules/round-tests: New file.
26765         * modules/roundf: New file.
26766         * modules/roundf-tests: New file.
26767         * modules/roundl: New file.
26768         * modules/roundl-tests: New file.
26769         * tests/test-round1.c: New file.
26770         * tests/test-round2.c: New file.
26771         * tests/test-roundf1.c: New file.
26772         * tests/test-roundf2.c: New file.
26773         * tests/test-roundl.c: New file.
26774         * doc/functions/round.texi: Mention round module.
26775         * doc/functions/roundf.texi: Mention roundf module.
26776         * doc/functions/roundl.texi: Mention roundl module.
26777         * MODULES.html.sh: Mention new modules.
26778         Thanks to Bruno Haible for suggestions.
26779
26780 2007-10-20  Jim Meyering  <meyering@redhat.com>
26781
26782         * lib/xprintf.c: Include <config.h> unconditionally.
26783
26784         Change xprintf's license to GPL.
26785         * modules/xprintf (License): s/LGPL/GPL/, since this module
26786         depends on modules (exit and exitfail) which are GPL.
26787         Suggestion from Bruno Haible.
26788
26789         xprintf fixes.
26790         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
26791         Use a clearer diagnostic.
26792         Patch from Bruno Haible.
26793
26794 2007-10-20  Bruno Haible  <bruno@clisp.org>
26795
26796         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
26797         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
26798         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26799
26800 2007-10-20  Bruno Haible  <bruno@clisp.org>
26801
26802         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
26803         precision in the comparison result > x - 1 or similar.
26804         * tests/test-ceilf2.c (correct_result_p): Likewise.
26805         * tests/test-truncf2.c (correct_result_p): Likewise.
26806         * tests/test-trunc2.c (correct_result_p): Likewise.
26807         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26808
26809 2007-10-20  Bruno Haible  <bruno@clisp.org>
26810
26811         * modules/ceil: New file.
26812         * m4/ceil.m4: New file.
26813         * doc/functions/ceil.texi: Mention the 'ceil' module.
26814
26815 2007-10-20  Bruno Haible  <bruno@clisp.org>
26816
26817         * modules/floor: New file.
26818         * m4/floor.m4: New file.
26819         * doc/functions/floor.texi: Mention the 'floor' module.
26820
26821 2007-10-20  Bruno Haible  <bruno@clisp.org>
26822
26823         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
26824         of %a.
26825         * modules/floorf-tests (Depends-on): Likewise.
26826         * modules/truncf-tests (Depends-on): Likewise.
26827         * modules/trunc-tests (Depends-on): Likewise.
26828         Reported by Ben Pfaff.
26829
26830 2007-10-19  Jim Meyering  <meyering@redhat.com>
26831
26832         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
26833         Don't bother testing specific errno values.  Just test ferror.
26834
26835         New module: xprintf
26836         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
26837
26838 2007-10-19  Bruno Haible  <bruno@clisp.org>
26839
26840         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
26841         syntax.
26842         * modules/javaexec (Makefile.am): Likewise.
26843         * modules/relocatable-prog (Makefile.am): Likewise.
26844         Suggested by Jim Meyering.
26845
26846 2007-10-18  Bruno Haible  <bruno@clisp.org>
26847
26848         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
26849         Reported by Jim Meyering.
26850
26851 2007-10-18  Eric Blake  <ebb9@byu.net>
26852
26853         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
26854
26855 2007-10-18  Bruno Haible  <bruno@clisp.org>
26856
26857         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
26858         the format string into writable memory. Needed in Fortify conditions.
26859
26860 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
26861             Bruno Haible  <bruno@clisp.org>
26862
26863         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
26864         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
26865         * modules/trim (Depends-on): Add mbchar.
26866         (configure.ac): Add gl_FUNC_MBRTOWC.
26867         (Makefile.am): Augment lib_SOURCES.
26868
26869 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
26870
26871         Modify glob.c to use fstatat and dirfd, to simplify it.
26872         Suggested by Eric Blake.
26873         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
26874         Don't include <stdbool.h>; not used.
26875         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
26876         (link_exists_p): Simplify implementation, since we can now assume
26877         dirfd and fstatat.
26878         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
26879
26880 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26881
26882         * gnulib-tool (func_get_dependencies): Fix sed script to
26883         match only tests.
26884
26885 2007-10-17  Bruno Haible  <bruno@clisp.org>
26886
26887         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
26888         allow locale names without encoding suffix.
26889         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26890         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26891
26892 2007-10-16  Bruno Haible  <bruno@clisp.org>
26893
26894         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
26895         * lib/getgroups.c (getgroups): Likewise.
26896         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
26897
26898 2007-10-16  Bruno Haible  <bruno@clisp.org>
26899
26900         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
26901         * modules/malloc-posix (License): Likewise.
26902         * modules/realloc-posix (License): Likewise.
26903         * modules/calloc-posix (License): Likewise.
26904         * modules/intprops (License): Change from GPL to LGPL, with
26905         Paul Eggert's approval.
26906
26907 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26908
26909         Merge glibc changes into lib/glob.c.
26910
26911         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
26912         2007-10-15 04:59:03 UTC.  Here are the changes:
26913
26914         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
26915
26916         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
26917
26918         * lib/glob.c: Add some branch prediction throughout.
26919
26920         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
26921
26922         [BZ #5103]
26923         * lib/glob.c (glob): Recognize patterns starting \/.
26924
26925         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
26926
26927         [BZ #3996]
26928         * lib/glob.c (attribute_hidden): Define if not defined.
26929         (glob): Unescape dirname, filename or username when needed and not
26930         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
26931         is NULL.  Handle unescaped [ in pattern without closing ].
26932         Don't pass GLOB_CHECK down to recursive glob for directories.
26933         (__glob_pattern_type): New function.
26934         (__glob_pattern_p): Implement using __glob_pattern_type.
26935         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
26936         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
26937         Remove unreachable code.
26938
26939         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
26940
26941         * lib/glob.c (glob_in_dir): Add some comments and asserts to
26942         explain why there are no leaks.
26943
26944         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
26945
26946         [BZ #3253]
26947         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
26948         time, rather allocate increasingly bigger arrays of pointers, if
26949         possible with alloca, if too large with malloc.
26950
26951 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26952
26953         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
26954         Problem reported by H.Merijn Brand in
26955         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
26956         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
26957         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26958
26959 2007-10-15  Bruno Haible  <bruno@clisp.org>
26960
26961         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
26962         with explicit rpl_ prefix.
26963         * lib/fopen.c (fopen): Likewise.
26964         * lib/freopen.c (freopen): Likewise.
26965         * lib/iconv.c (iconv): Likewise.
26966         * lib/iconv_close.c (iconv_close): Likewise.
26967
26968 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26969
26970         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
26971
26972 2007-10-15  Bruno Haible  <bruno@clisp.org>
26973
26974         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
26975         <stddef.h> instead of <stdlib.h> since we only need NULL.
26976         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26977
26978 2007-10-15  Bruno Haible  <bruno@clisp.org>
26979
26980         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
26981         Replace paragraph talking about LIBOBJS.
26982         Reported by Colin Watson <cjwatson@debian.org>.
26983
26984 2007-10-15  Bruno Haible  <bruno@clisp.org>
26985
26986         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
26987         <stdlib.h> before using NULL.
26988
26989 2007-10-15  Simon Josefsson  <simon@josefsson.org>
26990
26991         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
26992         Reported by Albert Chin <china@thewrittenword.com>.
26993
26994 2007-10-14  Bruno Haible  <bruno@clisp.org>
26995
26996         * modules/iconv_open-utf-tests: New file.
26997         * tests/test-iconv-utf.c: New file.
26998
26999         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
27000         * modules/iconv_open-utf: New file.
27001         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
27002         (iconv, iconv_close): New declarations.
27003         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
27004         be defined.
27005         (iconv_open): Add special handling of conversion between UTF-8 and
27006         UTF-{16,32}{BE,LE}.
27007         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
27008         * lib/iconv_close.c: New file.
27009         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
27010         gl_FUNC_ICONV_OPEN.
27011         (gl_FUNC_ICONV_OPEN): Use it.
27012         (gl_FUNC_ICONV_OPEN_UTF): New macro.
27013         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
27014         and REPLACE_ICONV_UTF.
27015         * modules/iconv_open (Depends-on): Add c-strcase.
27016         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
27017         ICONV_CONST.
27018         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
27019
27020 2007-10-13  Albert Chin  <china@thewrittenword.com>
27021             Bruno Haible  <bruno@clisp.org>
27022
27023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
27024         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
27025
27026 2007-10-13  Bruno Haible  <bruno@clisp.org>
27027
27028         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
27029         defined, use the ISO C99 inline semantics.
27030         * lib/argp.h (ARGP_EI): Likewise.
27031
27032 2007-10-13  Bruno Haible  <bruno@clisp.org>
27033
27034         Handle 'inline' change in gcc 4.3.0.
27035         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
27036         argp_fmtstream_write, argp_fmtstream_set_lmargin,
27037         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
27038         argp_fmtstream_point): Disable 'extern' declaration if the function
27039         definition is going to be provided inline.
27040         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
27041         semantics, not the ISO C99 inline semantics.
27042         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
27043         'extern' declaration if the function definition is going to be provided
27044         inline.
27045         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
27046         the GNU C inline semantics, not the ISO C99 inline semantics. With
27047         GCC 4.2, avoid a warning.
27048
27049 2007-10-13  Bruno Haible  <bruno@clisp.org>
27050
27051         * lib/freading.h (freading): Enable the use of __freading for
27052         glibc >= 2.7.
27053         * lib/freading.c (freading): Likewise.
27054
27055 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27056
27057         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
27058         "warning: C99 inline functions are not supported; using GNU89".
27059
27060 2007-10-12  Bruno Haible  <bruno@clisp.org>
27061
27062         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
27063         of 2.
27064         * tests/test-ceilf2.c: New file.
27065         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
27066
27067         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
27068         * modules/ceilf-tests: Update.
27069
27070 2007-10-12  Bruno Haible  <bruno@clisp.org>
27071
27072         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
27073         of 2.
27074         * tests/test-floorf2.c: New file.
27075         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
27076
27077         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
27078         * modules/floorf-tests: Update.
27079
27080 2007-10-12  Bruno Haible  <bruno@clisp.org>
27081
27082         * tests/test-trunc2.c: New file.
27083         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
27084
27085         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
27086         * modules/trunc-tests: Update.
27087
27088 2007-10-12  Bruno Haible  <bruno@clisp.org>
27089
27090         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
27091         of 2.
27092         * tests/test-truncf2.c: New file.
27093         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
27094
27095         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
27096         * modules/truncf-tests: Update.
27097
27098 2007-10-11  Eric Blake  <ebb9@byu.net>
27099
27100         Don't claim strerror is broken on Interix.
27101         * doc/functions/strerror.texi (strerror): Known broken systems are
27102         now Solaris 8, and not Interix.
27103         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
27104         Interix on cross-compile.
27105         Reported by Martin Koeppe in
27106         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
27107
27108 2007-10-11  Bruno Haible  <bruno@clisp.org>
27109
27110         * modules/i-ring-tests: New file.
27111         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
27112         instead of assert.
27113
27114 2007-10-11  Bruno Haible  <bruno@clisp.org>
27115
27116         * modules/filenamecat-tests: New file.
27117         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
27118         * lib/filenamecat.c: Remove test code.
27119
27120 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27121
27122         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
27123
27124         * lib/strerror.c: Include <string.h> always, to test interface,
27125         and to remove the need for the dummy.
27126         Include intprops.h to compute width instead of doing it ourselves
27127         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
27128         (strerror): Define it to return NULL if there's no system strerror.
27129         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
27130         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
27131         ancient pre-strerror Unix systems well any more.  Saying "unknown
27132         system error" is enough.
27133         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
27134         simpler strerror.c implementation.
27135         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
27136         Simplify the tests to reflect the simpler strerror implementation.
27137         * modules/strerror (Depends-on): Add intprops.
27138
27139 2007-10-09  Eric Blake  <ebb9@byu.net>
27140
27141         Silence test-fpending.
27142         * modules/fpending-tests (Files): Add wrapper script.
27143         * tests/test-fpending.sh: New file.
27144
27145 2007-10-09  Bruno Haible  <bruno@clisp.org>
27146
27147         * MODULES.html.sh (func_module): Don't create a hyperlink for
27148         function names like 'printf_frexp'.
27149         (Misc): Add crc, memxor.
27150         (Characteristics of floating types): New section.
27151         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
27152         isnanf-nolibm, signbit, trunc, truncf, truncl.
27153         (Enhancements for ISO C 99 functions): New subsection Input/output.
27154         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
27155         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
27156         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
27157         (Compatibility checks for POSIX:2001 functions): Add clock-time.
27158         (Enhancements for POSIX:2001 functions): Add chdir-long.
27159         (File system functions): Add areadlink, chdir-safer, read-file.
27160         Remove cycle-check.
27161         (File system as inode set): New section.
27162         (Date and time): Add gethrxtime.
27163         (Multithreading): Add openmp.
27164         (Internationalization functions): Add localename.
27165         (Unicode string functions): Add unistr/u*-mbsnlen.
27166         (Support for maintaining and releasing projects): Add git-version-gen.
27167         (Lone files): Remove directories.
27168
27169 2007-10-08  Ben Pfaff  <blp@gnu.org>
27170
27171         * lib/xmalloca.h: Fix typo in comment.
27172
27173 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27174
27175         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
27176         when avoiding problems with integer overflow.  Use a portable test
27177         instead.
27178
27179 2007-10-08  Simon Josefsson  <simon@josefsson.org>
27180
27181         * modules/dummy (License): Change to LGPLv2+.
27182         * modules/float (License): Likewise
27183         * modules/realloc (License): Likewise
27184         * modules/stdlib (License): Likewise
27185
27186 2007-10-07  Bruno Haible  <bruno@clisp.org>
27187
27188         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
27189         * floor.c (TWO_MANT_DIG): Likewise.
27190         * ceil.c (TWO_MANT_DIG): Likewise.
27191         Reported by Ben Pfaff.
27192
27193 2007-10-07  Bruno Haible  <bruno@clisp.org>
27194
27195         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
27196         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
27197         * lib/frexp.c (FUNC): Likewise.
27198         * lib/printf-frexp.h (printf_frexp): Likewise.
27199         * lib/printf-frexpl.h (printf_frexpl): Likewise.
27200         * lib/printf-frexp.c (FUNC): Likewise.
27201         Suggested by Jim Meyering.
27202
27203 2007-10-07  Jim Meyering  <meyering@redhat.com>
27204
27205         Make xnanosleep's integer overflow test more robust.
27206         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
27207         so that gcc-4.3.0 doesn't optimize away this test for overflow.
27208
27209 2007-10-07  Bruno Haible  <bruno@clisp.org>
27210
27211         * NEWS: Mention the license change.
27212
27213         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
27214         abbreviations in the modules files.
27215
27216         Change copyright notice from GPLv2+ to GPLv3+.
27217         * README: Change copyright notice.
27218         * MODULES.html.sh: Likewise.
27219         * build-aux/bootstrap.conf: Likewise.
27220         * build-aux/config.libpath: Likewise.
27221         * build-aux/csharpcomp.sh.in: Likewise.
27222         * build-aux/csharpexec.sh.in: Likewise.
27223         * build-aux/install-reloc: Likewise.
27224         * build-aux/javacomp.sh.in: Likewise.
27225         * build-aux/javaexec.sh.in: Likewise.
27226         * build-aux/ldd.sh.in: Likewise.
27227         * build-aux/reloc-ldflags: Likewise.
27228         * build-aux/relocatable.sh.in: Likewise.
27229         * build-aux/x-to-1.in: Likewise.
27230         * check-module: Likewise.
27231         * config/srclistvars.sh: Likewise.
27232         * gnulib-tool: Likewise.
27233         * lib/acl-internal.h: Likewise.
27234         * lib/acl.c: Likewise.
27235         * lib/acl.h: Likewise.
27236         * lib/acl_entries.c: Likewise.
27237         * lib/areadlink-with-size.c: Likewise.
27238         * lib/areadlink.c: Likewise.
27239         * lib/areadlink.h: Likewise.
27240         * lib/argmatch.c: Likewise.
27241         * lib/argmatch.h: Likewise.
27242         * lib/argp-ba.c: Likewise.
27243         * lib/argp-eexst.c: Likewise.
27244         * lib/argp-fmtstream.c: Likewise.
27245         * lib/argp-fmtstream.h: Likewise.
27246         * lib/argp-fs-xinl.c: Likewise.
27247         * lib/argp-help.c: Likewise.
27248         * lib/argp-namefrob.h: Likewise.
27249         * lib/argp-parse.c: Likewise.
27250         * lib/argp-pin.c: Likewise.
27251         * lib/argp-pv.c: Likewise.
27252         * lib/argp-pvh.c: Likewise.
27253         * lib/argp-xinl.c: Likewise.
27254         * lib/argp.h: Likewise.
27255         * lib/at-func.c: Likewise.
27256         * lib/atanl.c: Likewise.
27257         * lib/backupfile.c: Likewise.
27258         * lib/backupfile.h: Likewise.
27259         * lib/basename.c: Likewise.
27260         * lib/binary-io.h: Likewise.
27261         * lib/byteswap.in.h: Likewise.
27262         * lib/c-stack.c: Likewise.
27263         * lib/c-stack.h: Likewise.
27264         * lib/c-strcasestr.c: Likewise.
27265         * lib/c-strcasestr.h: Likewise.
27266         * lib/c-strstr.c: Likewise.
27267         * lib/c-strstr.h: Likewise.
27268         * lib/c-strtod.c: Likewise.
27269         * lib/calloc.c: Likewise.
27270         * lib/canon-host.c: Likewise.
27271         * lib/canon-host.h: Likewise.
27272         * lib/canonicalize-lgpl.c: Likewise.
27273         * lib/canonicalize.c: Likewise.
27274         * lib/canonicalize.h: Likewise.
27275         * lib/ceil.c: Likewise.
27276         * lib/ceilf.c: Likewise.
27277         * lib/ceill.c: Likewise.
27278         * lib/chdir-long.c: Likewise.
27279         * lib/chdir-long.h: Likewise.
27280         * lib/chdir-safer.c: Likewise.
27281         * lib/chdir-safer.h: Likewise.
27282         * lib/chown.c: Likewise.
27283         * lib/classpath.c: Likewise.
27284         * lib/classpath.h: Likewise.
27285         * lib/clean-temp.c: Likewise.
27286         * lib/clean-temp.h: Likewise.
27287         * lib/cloexec.c: Likewise.
27288         * lib/close-stream.c: Likewise.
27289         * lib/closein.c: Likewise.
27290         * lib/closein.h: Likewise.
27291         * lib/closeout.c: Likewise.
27292         * lib/closeout.h: Likewise.
27293         * lib/concat-filename.c: Likewise.
27294         * lib/copy-file.c: Likewise.
27295         * lib/copy-file.h: Likewise.
27296         * lib/count-one-bits.h: Likewise.
27297         * lib/crc.c: Likewise.
27298         * lib/crc.h: Likewise.
27299         * lib/creat-safer.c: Likewise.
27300         * lib/csharpcomp.c: Likewise.
27301         * lib/csharpcomp.h: Likewise.
27302         * lib/csharpexec.c: Likewise.
27303         * lib/csharpexec.h: Likewise.
27304         * lib/cycle-check.c: Likewise.
27305         * lib/cycle-check.h: Likewise.
27306         * lib/diacrit.c: Likewise.
27307         * lib/diacrit.h: Likewise.
27308         * lib/diffseq.h: Likewise.
27309         * lib/dirchownmod.c: Likewise.
27310         * lib/dirent.in.h: Likewise.
27311         * lib/dirfd.c: Likewise.
27312         * lib/dirfd.h: Likewise.
27313         * lib/dirname.c: Likewise.
27314         * lib/dirname.h: Likewise.
27315         * lib/dummy.c: Likewise.
27316         * lib/dup-safer.c: Likewise.
27317         * lib/dup2.c: Likewise.
27318         * lib/eealloc.h: Likewise.
27319         * lib/error.c: Likewise.
27320         * lib/error.h: Likewise.
27321         * lib/euidaccess.c: Likewise.
27322         * lib/exclude.c: Likewise.
27323         * lib/exclude.h: Likewise.
27324         * lib/execute.c: Likewise.
27325         * lib/execute.h: Likewise.
27326         * lib/exitfail.c: Likewise.
27327         * lib/exitfail.h: Likewise.
27328         * lib/expl.c: Likewise.
27329         * lib/fatal-signal.c: Likewise.
27330         * lib/fatal-signal.h: Likewise.
27331         * lib/fbufmode.c: Likewise.
27332         * lib/fbufmode.h: Likewise.
27333         * lib/fchdir.c: Likewise.
27334         * lib/fchmodat.c: Likewise.
27335         * lib/fchownat.c: Likewise.
27336         * lib/fcntl--.h: Likewise.
27337         * lib/fcntl-safer.h: Likewise.
27338         * lib/fcntl.in.h: Likewise.
27339         * lib/fd-safer.c: Likewise.
27340         * lib/fflush.c: Likewise.
27341         * lib/file-has-acl.c: Likewise.
27342         * lib/file-set.c: Likewise.
27343         * lib/file-type.c: Likewise.
27344         * lib/file-type.h: Likewise.
27345         * lib/fileblocks.c: Likewise.
27346         * lib/filemode.c: Likewise.
27347         * lib/filemode.h: Likewise.
27348         * lib/filename.h: Likewise.
27349         * lib/filenamecat.c: Likewise.
27350         * lib/filenamecat.h: Likewise.
27351         * lib/findprog.c: Likewise.
27352         * lib/findprog.h: Likewise.
27353         * lib/float.in.h: Likewise.
27354         * lib/floor.c: Likewise.
27355         * lib/floorf.c: Likewise.
27356         * lib/floorl.c: Likewise.
27357         * lib/fopen-safer.c: Likewise.
27358         * lib/fopen.c: Likewise.
27359         * lib/fpending.c: Likewise.
27360         * lib/fpending.h: Likewise.
27361         * lib/fprintf.c: Likewise.
27362         * lib/fprintftime.h: Likewise.
27363         * lib/fpucw.h: Likewise.
27364         * lib/fpurge.c: Likewise.
27365         * lib/fpurge.h: Likewise.
27366         * lib/freadable.c: Likewise.
27367         * lib/freadable.h: Likewise.
27368         * lib/freadahead.c: Likewise.
27369         * lib/freadahead.h: Likewise.
27370         * lib/freading.c: Likewise.
27371         * lib/freading.h: Likewise.
27372         * lib/free.c: Likewise.
27373         * lib/freopen.c: Likewise.
27374         * lib/frexp.c: Likewise.
27375         * lib/frexpl.c: Likewise.
27376         * lib/fseek.c: Likewise.
27377         * lib/fseterr.c: Likewise.
27378         * lib/fseterr.h: Likewise.
27379         * lib/fstatat.c: Likewise.
27380         * lib/fstrcmp.c: Likewise.
27381         * lib/fstrcmp.h: Likewise.
27382         * lib/fsusage.c: Likewise.
27383         * lib/fsusage.h: Likewise.
27384         * lib/ftell.c: Likewise.
27385         * lib/ftello.c: Likewise.
27386         * lib/fts-cycle.c: Likewise.
27387         * lib/fts.c: Likewise.
27388         * lib/fts_.h: Likewise.
27389         * lib/full-read.c: Likewise.
27390         * lib/full-read.h: Likewise.
27391         * lib/full-write.c: Likewise.
27392         * lib/full-write.h: Likewise.
27393         * lib/fwritable.c: Likewise.
27394         * lib/fwritable.h: Likewise.
27395         * lib/fwriteerror.c: Likewise.
27396         * lib/fwriteerror.h: Likewise.
27397         * lib/fwriting.c: Likewise.
27398         * lib/fwriting.h: Likewise.
27399         * lib/gcd.c: Likewise.
27400         * lib/gcd.h: Likewise.
27401         * lib/getcwd.c: Likewise.
27402         * lib/getdate.h: Likewise.
27403         * lib/getdate.y: Likewise.
27404         * lib/getdomainname.c: Likewise.
27405         * lib/getdomainname.h: Likewise.
27406         * lib/getgroups.c: Likewise.
27407         * lib/gethostname.c: Likewise.
27408         * lib/gethrxtime.c: Likewise.
27409         * lib/gethrxtime.h: Likewise.
27410         * lib/getloadavg.c: Likewise.
27411         * lib/getndelim2.c: Likewise.
27412         * lib/getndelim2.h: Likewise.
27413         * lib/getnline.c: Likewise.
27414         * lib/getnline.h: Likewise.
27415         * lib/getopt.c: Likewise.
27416         * lib/getopt.in.h: Likewise.
27417         * lib/getopt1.c: Likewise.
27418         * lib/getopt_int.h: Likewise.
27419         * lib/getpagesize.h: Likewise.
27420         * lib/getsubopt.c: Likewise.
27421         * lib/gettime.c: Likewise.
27422         * lib/getugroups.c: Likewise.
27423         * lib/getugroups.h: Likewise.
27424         * lib/getusershell.c: Likewise.
27425         * lib/gl_anyavltree_list1.h: Likewise.
27426         * lib/gl_anyavltree_list2.h: Likewise.
27427         * lib/gl_anyhash_list1.h: Likewise.
27428         * lib/gl_anyhash_list2.h: Likewise.
27429         * lib/gl_anylinked_list1.h: Likewise.
27430         * lib/gl_anylinked_list2.h: Likewise.
27431         * lib/gl_anyrbtree_list1.h: Likewise.
27432         * lib/gl_anyrbtree_list2.h: Likewise.
27433         * lib/gl_anytree_list1.h: Likewise.
27434         * lib/gl_anytree_list2.h: Likewise.
27435         * lib/gl_anytree_oset.h: Likewise.
27436         * lib/gl_anytreehash_list1.h: Likewise.
27437         * lib/gl_anytreehash_list2.h: Likewise.
27438         * lib/gl_array_list.c: Likewise.
27439         * lib/gl_array_list.h: Likewise.
27440         * lib/gl_array_oset.c: Likewise.
27441         * lib/gl_array_oset.h: Likewise.
27442         * lib/gl_avltree_list.c: Likewise.
27443         * lib/gl_avltree_list.h: Likewise.
27444         * lib/gl_avltree_oset.c: Likewise.
27445         * lib/gl_avltree_oset.h: Likewise.
27446         * lib/gl_avltreehash_list.c: Likewise.
27447         * lib/gl_avltreehash_list.h: Likewise.
27448         * lib/gl_carray_list.c: Likewise.
27449         * lib/gl_carray_list.h: Likewise.
27450         * lib/gl_linked_list.c: Likewise.
27451         * lib/gl_linked_list.h: Likewise.
27452         * lib/gl_linkedhash_list.c: Likewise.
27453         * lib/gl_linkedhash_list.h: Likewise.
27454         * lib/gl_list.c: Likewise.
27455         * lib/gl_list.h: Likewise.
27456         * lib/gl_oset.c: Likewise.
27457         * lib/gl_oset.h: Likewise.
27458         * lib/gl_rbtree_list.c: Likewise.
27459         * lib/gl_rbtree_list.h: Likewise.
27460         * lib/gl_rbtree_oset.c: Likewise.
27461         * lib/gl_rbtree_oset.h: Likewise.
27462         * lib/gl_rbtreehash_list.c: Likewise.
27463         * lib/gl_rbtreehash_list.h: Likewise.
27464         * lib/gl_sublist.c: Likewise.
27465         * lib/gl_sublist.h: Likewise.
27466         * lib/group-member.c: Likewise.
27467         * lib/group-member.h: Likewise.
27468         * lib/hard-locale.c: Likewise.
27469         * lib/hard-locale.h: Likewise.
27470         * lib/hash-pjw.c: Likewise.
27471         * lib/hash-pjw.h: Likewise.
27472         * lib/hash-triple.c: Likewise.
27473         * lib/hash.c: Likewise.
27474         * lib/hash.h: Likewise.
27475         * lib/human.c: Likewise.
27476         * lib/human.h: Likewise.
27477         * lib/i-ring.c: Likewise.
27478         * lib/i-ring.h: Likewise.
27479         * lib/idcache.c: Likewise.
27480         * lib/imaxabs.c: Likewise.
27481         * lib/imaxdiv.c: Likewise.
27482         * lib/inet_pton.c: Likewise.
27483         * lib/inet_pton.h: Likewise.
27484         * lib/intprops.h: Likewise.
27485         * lib/inttostr.c: Likewise.
27486         * lib/inttostr.h: Likewise.
27487         * lib/inttypes.in.h: Likewise.
27488         * lib/isapipe.c: Likewise.
27489         * lib/isdir.c: Likewise.
27490         * lib/isnan.c: Likewise.
27491         * lib/isnan.h: Likewise.
27492         * lib/isnanf.c: Likewise.
27493         * lib/isnanf.h: Likewise.
27494         * lib/isnanl-nolibm.h: Likewise.
27495         * lib/isnanl.c: Likewise.
27496         * lib/isnanl.h: Likewise.
27497         * lib/javacomp.c: Likewise.
27498         * lib/javacomp.h: Likewise.
27499         * lib/javaexec.c: Likewise.
27500         * lib/javaexec.h: Likewise.
27501         * lib/javaversion.c: Likewise.
27502         * lib/javaversion.h: Likewise.
27503         * lib/javaversion.java: Likewise.
27504         * lib/lbrkprop.h: Likewise.
27505         * lib/lchmod.h: Likewise.
27506         * lib/lchown.c: Likewise.
27507         * lib/ldexpl.c: Likewise.
27508         * lib/linebreak.c: Likewise.
27509         * lib/linebreak.h: Likewise.
27510         * lib/linebuffer.c: Likewise.
27511         * lib/linebuffer.h: Likewise.
27512         * lib/locale.in.h: Likewise.
27513         * lib/logl.c: Likewise.
27514         * lib/long-options.c: Likewise.
27515         * lib/long-options.h: Likewise.
27516         * lib/lstat.c: Likewise.
27517         * lib/lstat.h: Likewise.
27518         * lib/math.in.h: Likewise.
27519         * lib/mbchar.c: Likewise.
27520         * lib/mbchar.h: Likewise.
27521         * lib/mbfile.h: Likewise.
27522         * lib/mbiter.h: Likewise.
27523         * lib/mbscasecmp.c: Likewise.
27524         * lib/mbscasestr.c: Likewise.
27525         * lib/mbschr.c: Likewise.
27526         * lib/mbscspn.c: Likewise.
27527         * lib/mbslen.c: Likewise.
27528         * lib/mbsncasecmp.c: Likewise.
27529         * lib/mbsnlen.c: Likewise.
27530         * lib/mbspbrk.c: Likewise.
27531         * lib/mbspcasecmp.c: Likewise.
27532         * lib/mbsrchr.c: Likewise.
27533         * lib/mbssep.c: Likewise.
27534         * lib/mbsspn.c: Likewise.
27535         * lib/mbsstr.c: Likewise.
27536         * lib/mbstok_r.c: Likewise.
27537         * lib/mbswidth.c: Likewise.
27538         * lib/mbswidth.h: Likewise.
27539         * lib/mbuiter.h: Likewise.
27540         * lib/memcasecmp.c: Likewise.
27541         * lib/memcasecmp.h: Likewise.
27542         * lib/memchr.c: Likewise.
27543         * lib/memcmp.c: Likewise.
27544         * lib/memcoll.c: Likewise.
27545         * lib/memcoll.h: Likewise.
27546         * lib/memcpy.c: Likewise.
27547         * lib/memrchr.c: Likewise.
27548         * lib/mkancesdirs.c: Likewise.
27549         * lib/mkdir-p.c: Likewise.
27550         * lib/mkdir-p.h: Likewise.
27551         * lib/mkdir.c: Likewise.
27552         * lib/mkdirat.c: Likewise.
27553         * lib/mkdtemp.c: Likewise.
27554         * lib/mkstemp-safer.c: Likewise.
27555         * lib/mkstemp.c: Likewise.
27556         * lib/modechange.c: Likewise.
27557         * lib/modechange.h: Likewise.
27558         * lib/mountlist.c: Likewise.
27559         * lib/mountlist.h: Likewise.
27560         * lib/mpsort.c: Likewise.
27561         * lib/nanosleep.c: Likewise.
27562         * lib/obstack.c: Likewise.
27563         * lib/obstack.h: Likewise.
27564         * lib/open-safer.c: Likewise.
27565         * lib/open.c: Likewise.
27566         * lib/openat-die.c: Likewise.
27567         * lib/openat-priv.h: Likewise.
27568         * lib/openat-proc.c: Likewise.
27569         * lib/openat.c: Likewise.
27570         * lib/openat.h: Likewise.
27571         * lib/pagealign_alloc.c: Likewise.
27572         * lib/pagealign_alloc.h: Likewise.
27573         * lib/physmem.c: Likewise.
27574         * lib/physmem.h: Likewise.
27575         * lib/pipe-safer.c: Likewise.
27576         * lib/pipe.c: Likewise.
27577         * lib/pipe.h: Likewise.
27578         * lib/posixtm.c: Likewise.
27579         * lib/posixtm.h: Likewise.
27580         * lib/posixver.c: Likewise.
27581         * lib/printf-frexp.c: Likewise.
27582         * lib/printf-frexp.h: Likewise.
27583         * lib/printf-frexpl.c: Likewise.
27584         * lib/printf-frexpl.h: Likewise.
27585         * lib/printf.c: Likewise.
27586         * lib/progname.c: Likewise.
27587         * lib/progname.h: Likewise.
27588         * lib/progreloc.c: Likewise.
27589         * lib/putenv.c: Likewise.
27590         * lib/quote.c: Likewise.
27591         * lib/quote.h: Likewise.
27592         * lib/quotearg.c: Likewise.
27593         * lib/quotearg.h: Likewise.
27594         * lib/raise.c: Likewise.
27595         * lib/readline.c: Likewise.
27596         * lib/readline.h: Likewise.
27597         * lib/readlink.c: Likewise.
27598         * lib/readtokens.c: Likewise.
27599         * lib/readtokens.h: Likewise.
27600         * lib/readtokens0.c: Likewise.
27601         * lib/readtokens0.h: Likewise.
27602         * lib/readutmp.c: Likewise.
27603         * lib/readutmp.h: Likewise.
27604         * lib/realloc.c: Likewise.
27605         * lib/relocwrapper.c: Likewise.
27606         * lib/rename-dest-slash.c: Likewise.
27607         * lib/rename.c: Likewise.
27608         * lib/rmdir.c: Likewise.
27609         * lib/rpmatch.c: Likewise.
27610         * lib/safe-read.c: Likewise.
27611         * lib/safe-read.h: Likewise.
27612         * lib/safe-write.c: Likewise.
27613         * lib/safe-write.h: Likewise.
27614         * lib/same-inode.h: Likewise.
27615         * lib/same.c: Likewise.
27616         * lib/same.h: Likewise.
27617         * lib/save-cwd.c: Likewise.
27618         * lib/save-cwd.h: Likewise.
27619         * lib/savedir.c: Likewise.
27620         * lib/savedir.h: Likewise.
27621         * lib/savewd.c: Likewise.
27622         * lib/savewd.h: Likewise.
27623         * lib/search.in.h: Likewise.
27624         * lib/setenv.c: Likewise.
27625         * lib/setenv.h: Likewise.
27626         * lib/settime.c: Likewise.
27627         * lib/sh-quote.c: Likewise.
27628         * lib/sh-quote.h: Likewise.
27629         * lib/sig2str.c: Likewise.
27630         * lib/sig2str.h: Likewise.
27631         * lib/signal.in.h: Likewise.
27632         * lib/signbitd.c: Likewise.
27633         * lib/signbitf.c: Likewise.
27634         * lib/signbitl.c: Likewise.
27635         * lib/sigprocmask.c: Likewise.
27636         * lib/sincosl.c: Likewise.
27637         * lib/sleep.c: Likewise.
27638         * lib/sprintf.c: Likewise.
27639         * lib/sqrtl.c: Likewise.
27640         * lib/stat-time.h: Likewise.
27641         * lib/stdio--.h: Likewise.
27642         * lib/stdio-safer.h: Likewise.
27643         * lib/stdlib--.h: Likewise.
27644         * lib/stdlib-safer.h: Likewise.
27645         * lib/stdlib.in.h: Likewise.
27646         * lib/stpcpy.c: Likewise.
27647         * lib/stpncpy.c: Likewise.
27648         * lib/strchrnul.c: Likewise.
27649         * lib/strcspn.c: Likewise.
27650         * lib/strerror.c: Likewise.
27651         * lib/strftime.c: Likewise.
27652         * lib/strftime.h: Likewise.
27653         * lib/striconveh.c: Likewise.
27654         * lib/striconveh.h: Likewise.
27655         * lib/striconveha.c: Likewise.
27656         * lib/striconveha.h: Likewise.
27657         * lib/stripslash.c: Likewise.
27658         * lib/strnlen1.c: Likewise.
27659         * lib/strnlen1.h: Likewise.
27660         * lib/strtod.c: Likewise.
27661         * lib/strtoimax.c: Likewise.
27662         * lib/strtok_r.c: Likewise.
27663         * lib/strtol.c: Likewise.
27664         * lib/strtoll.c: Likewise.
27665         * lib/strtoul.c: Likewise.
27666         * lib/strtoull.c: Likewise.
27667         * lib/sysexits.in.h: Likewise.
27668         * lib/tempname.c: Likewise.
27669         * lib/tempname.h: Likewise.
27670         * lib/timespec.h: Likewise.
27671         * lib/tls.c: Likewise.
27672         * lib/tls.h: Likewise.
27673         * lib/tmpdir.c: Likewise.
27674         * lib/tmpdir.h: Likewise.
27675         * lib/tmpfile-safer.c: Likewise.
27676         * lib/tmpfile.c: Likewise.
27677         * lib/trigl.c: Likewise.
27678         * lib/trigl.h: Likewise.
27679         * lib/trim.c: Likewise.
27680         * lib/trim.h: Likewise.
27681         * lib/trunc.c: Likewise.
27682         * lib/truncf.c: Likewise.
27683         * lib/truncl.c: Likewise.
27684         * lib/tsearch.c: Likewise.
27685         * lib/unicodeio.c: Likewise.
27686         * lib/unicodeio.h: Likewise.
27687         * lib/unistd--.h: Likewise.
27688         * lib/unistd-safer.h: Likewise.
27689         * lib/unistdio/ulc-fprintf.c: Likewise.
27690         * lib/unistdio/ulc-vfprintf.c: Likewise.
27691         * lib/unlinkdir.c: Likewise.
27692         * lib/unlinkdir.h: Likewise.
27693         * lib/unlocked-io.h: Likewise.
27694         * lib/unsetenv.c: Likewise.
27695         * lib/userspec.c: Likewise.
27696         * lib/utime.c: Likewise.
27697         * lib/utimecmp.c: Likewise.
27698         * lib/utimecmp.h: Likewise.
27699         * lib/utimens.c: Likewise.
27700         * lib/verify.h: Likewise.
27701         * lib/verror.c: Likewise.
27702         * lib/verror.h: Likewise.
27703         * lib/version-etc-fsf.c: Likewise.
27704         * lib/version-etc.c: Likewise.
27705         * lib/version-etc.h: Likewise.
27706         * lib/vfprintf.c: Likewise.
27707         * lib/vprintf.c: Likewise.
27708         * lib/vsprintf.c: Likewise.
27709         * lib/w32spawn.h: Likewise.
27710         * lib/wait-process.c: Likewise.
27711         * lib/wait-process.h: Likewise.
27712         * lib/wcwidth.c: Likewise.
27713         * lib/write-any-file.c: Likewise.
27714         * lib/xalloc-die.c: Likewise.
27715         * lib/xalloc.h: Likewise.
27716         * lib/xasprintf.c: Likewise.
27717         * lib/xgetcwd.c: Likewise.
27718         * lib/xgetcwd.h: Likewise.
27719         * lib/xgetdomainname.c: Likewise.
27720         * lib/xgetdomainname.h: Likewise.
27721         * lib/xgethostname.c: Likewise.
27722         * lib/xmalloc.c: Likewise.
27723         * lib/xmalloca.c: Likewise.
27724         * lib/xmalloca.h: Likewise.
27725         * lib/xmemcoll.c: Likewise.
27726         * lib/xnanosleep.c: Likewise.
27727         * lib/xreadlink.c: Likewise.
27728         * lib/xreadlink.h: Likewise.
27729         * lib/xsetenv.c: Likewise.
27730         * lib/xsetenv.h: Likewise.
27731         * lib/xstriconv.c: Likewise.
27732         * lib/xstriconv.h: Likewise.
27733         * lib/xstrndup.c: Likewise.
27734         * lib/xstrndup.h: Likewise.
27735         * lib/xstrtod.c: Likewise.
27736         * lib/xstrtod.h: Likewise.
27737         * lib/xstrtol-error.c: Likewise.
27738         * lib/xstrtol.c: Likewise.
27739         * lib/xstrtol.h: Likewise.
27740         * lib/xtime.h: Likewise.
27741         * lib/xvasprintf.c: Likewise.
27742         * lib/xvasprintf.h: Likewise.
27743         * lib/yesno.c: Likewise.
27744         * lib/yesno.h: Likewise.
27745         * posix-modules: Likewise.
27746         * tests/test-alloca-opt.c: Likewise.
27747         * tests/test-arcfour.c: Likewise.
27748         * tests/test-arctwo.c: Likewise.
27749         * tests/test-argmatch.c: Likewise.
27750         * tests/test-argp-2.sh: Likewise.
27751         * tests/test-argp.c: Likewise.
27752         * tests/test-arpa_inet.c: Likewise.
27753         * tests/test-array_list.c: Likewise.
27754         * tests/test-array_oset.c: Likewise.
27755         * tests/test-atexit.c: Likewise.
27756         * tests/test-avltree_list.c: Likewise.
27757         * tests/test-avltree_oset.c: Likewise.
27758         * tests/test-avltreehash_list.c: Likewise.
27759         * tests/test-base64.c: Likewise.
27760         * tests/test-binary-io.c: Likewise.
27761         * tests/test-byteswap.c: Likewise.
27762         * tests/test-c-ctype.c: Likewise.
27763         * tests/test-c-strcasecmp.c: Likewise.
27764         * tests/test-c-strcasestr.c: Likewise.
27765         * tests/test-c-strncasecmp.c: Likewise.
27766         * tests/test-c-strstr.c: Likewise.
27767         * tests/test-canonicalize-lgpl.c: Likewise.
27768         * tests/test-canonicalize.c: Likewise.
27769         * tests/test-carray_list.c: Likewise.
27770         * tests/test-ceilf.c: Likewise.
27771         * tests/test-ceill.c: Likewise.
27772         * tests/test-count-one-bits.c: Likewise.
27773         * tests/test-crc.c: Likewise.
27774         * tests/test-dirname.c: Likewise.
27775         * tests/test-fbufmode.c: Likewise.
27776         * tests/test-fcntl.c: Likewise.
27777         * tests/test-fflush.c: Likewise.
27778         * tests/test-floorf.c: Likewise.
27779         * tests/test-floorl.c: Likewise.
27780         * tests/test-fopen.c: Likewise.
27781         * tests/test-fprintf-posix.c: Likewise.
27782         * tests/test-fprintf-posix.h: Likewise.
27783         * tests/test-fpurge.c: Likewise.
27784         * tests/test-freadable.c: Likewise.
27785         * tests/test-freadahead.c: Likewise.
27786         * tests/test-freading.c: Likewise.
27787         * tests/test-freopen.c: Likewise.
27788         * tests/test-frexp.c: Likewise.
27789         * tests/test-frexpl.c: Likewise.
27790         * tests/test-fseek.c: Likewise.
27791         * tests/test-fseeko.c: Likewise.
27792         * tests/test-fseterr.c: Likewise.
27793         * tests/test-fstrcmp.c: Likewise.
27794         * tests/test-ftell.c: Likewise.
27795         * tests/test-ftello.c: Likewise.
27796         * tests/test-fwritable.c: Likewise.
27797         * tests/test-fwriting.c: Likewise.
27798         * tests/test-getaddrinfo.c: Likewise.
27799         * tests/test-getpass.c: Likewise.
27800         * tests/test-gettimeofday.c: Likewise.
27801         * tests/test-hmac-md5.c: Likewise.
27802         * tests/test-hmac-sha1.c: Likewise.
27803         * tests/test-iconv.c: Likewise.
27804         * tests/test-iconvme.c: Likewise.
27805         * tests/test-inttypes.c: Likewise.
27806         * tests/test-isnan.c: Likewise.
27807         * tests/test-isnanf.c: Likewise.
27808         * tests/test-isnanl-nolibm.c: Likewise.
27809         * tests/test-isnanl.c: Likewise.
27810         * tests/test-isnanl.h: Likewise.
27811         * tests/test-ldexpl.c: Likewise.
27812         * tests/test-linked_list.c: Likewise.
27813         * tests/test-linkedhash_list.c: Likewise.
27814         * tests/test-locale.c: Likewise.
27815         * tests/test-localename.c: Likewise.
27816         * tests/test-lock.c: Likewise.
27817         * tests/test-lseek.c: Likewise.
27818         * tests/test-malloca.c: Likewise.
27819         * tests/test-math.c: Likewise.
27820         * tests/test-mbscasecmp.c: Likewise.
27821         * tests/test-mbscasestr1.c: Likewise.
27822         * tests/test-mbscasestr2.c: Likewise.
27823         * tests/test-mbscasestr3.c: Likewise.
27824         * tests/test-mbscasestr4.c: Likewise.
27825         * tests/test-mbschr.c: Likewise.
27826         * tests/test-mbscspn.c: Likewise.
27827         * tests/test-mbsncasecmp.c: Likewise.
27828         * tests/test-mbspbrk.c: Likewise.
27829         * tests/test-mbspcasecmp.c: Likewise.
27830         * tests/test-mbsrchr.c: Likewise.
27831         * tests/test-mbsspn.c: Likewise.
27832         * tests/test-mbsstr1.c: Likewise.
27833         * tests/test-mbsstr2.c: Likewise.
27834         * tests/test-mbsstr3.c: Likewise.
27835         * tests/test-md5.c: Likewise.
27836         * tests/test-memmem.c: Likewise.
27837         * tests/test-netinet_in.c: Likewise.
27838         * tests/test-open.c: Likewise.
27839         * tests/test-printf-frexp.c: Likewise.
27840         * tests/test-printf-frexpl.c: Likewise.
27841         * tests/test-printf-posix.c: Likewise.
27842         * tests/test-printf-posix.h: Likewise.
27843         * tests/test-rbtree_list.c: Likewise.
27844         * tests/test-rbtree_oset.c: Likewise.
27845         * tests/test-rbtreehash_list.c: Likewise.
27846         * tests/test-read-file.c: Likewise.
27847         * tests/test-rijndael.c: Likewise.
27848         * tests/test-search.c: Likewise.
27849         * tests/test-signbit.c: Likewise.
27850         * tests/test-sleep.c: Likewise.
27851         * tests/test-snprintf-posix.c: Likewise.
27852         * tests/test-snprintf-posix.h: Likewise.
27853         * tests/test-snprintf.c: Likewise.
27854         * tests/test-sprintf-posix.c: Likewise.
27855         * tests/test-sprintf-posix.h: Likewise.
27856         * tests/test-stat-time.c: Likewise.
27857         * tests/test-stdbool.c: Likewise.
27858         * tests/test-stdint.c: Likewise.
27859         * tests/test-stdio.c: Likewise.
27860         * tests/test-stdlib.c: Likewise.
27861         * tests/test-stpncpy.c: Likewise.
27862         * tests/test-strcasestr.c: Likewise.
27863         * tests/test-striconv.c: Likewise.
27864         * tests/test-striconveh.c: Likewise.
27865         * tests/test-striconveha.c: Likewise.
27866         * tests/test-string.c: Likewise.
27867         * tests/test-sys_select.c: Likewise.
27868         * tests/test-sys_socket.c: Likewise.
27869         * tests/test-sys_stat.c: Likewise.
27870         * tests/test-sys_time.c: Likewise.
27871         * tests/test-sysexits.c: Likewise.
27872         * tests/test-time.c: Likewise.
27873         * tests/test-tls.c: Likewise.
27874         * tests/test-trunc.c: Likewise.
27875         * tests/test-truncf.c: Likewise.
27876         * tests/test-truncl.c: Likewise.
27877         * tests/test-unistd.c: Likewise.
27878         * tests/test-vasnprintf-posix.c: Likewise.
27879         * tests/test-vasnprintf-posix2.c: Likewise.
27880         * tests/test-vasnprintf.c: Likewise.
27881         * tests/test-vasprintf-posix.c: Likewise.
27882         * tests/test-vasprintf.c: Likewise.
27883         * tests/test-verify.c: Likewise.
27884         * tests/test-vfprintf-posix.c: Likewise.
27885         * tests/test-vprintf-posix.c: Likewise.
27886         * tests/test-vsnprintf-posix.c: Likewise.
27887         * tests/test-vsnprintf.c: Likewise.
27888         * tests/test-vsprintf-posix.c: Likewise.
27889         * tests/test-wchar.c: Likewise.
27890         * tests/test-wctype.c: Likewise.
27891         * tests/test-wcwidth.c: Likewise.
27892         * tests/test-xstrtol.c: Likewise.
27893         * tests/test-xvasprintf.c: Likewise.
27894         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27895         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27896         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27897         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27898         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27899         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27900         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27901         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27902         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27903         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27904         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27905         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27906         * tests/uniname/test-uninames.c: Likewise.
27907         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27908         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
27909         * tests/unistdio/test-u16-printf1.h: Likewise.
27910         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27911         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27912         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27913         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27914         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27915         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27916         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27917         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
27918         * tests/unistdio/test-u32-printf1.h: Likewise.
27919         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27920         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27921         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27922         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27923         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27924         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27925         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27926         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
27927         * tests/unistdio/test-u8-printf1.h: Likewise.
27928         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27929         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27930         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27931         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27932         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27933         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27934         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27935         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
27936         * tests/unistdio/test-ulc-printf1.h: Likewise.
27937         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27938         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27939         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27940         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27941         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27942         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27943         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27944         * tests/uniwidth/test-u16-width.c: Likewise.
27945         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27946         * tests/uniwidth/test-u32-width.c: Likewise.
27947         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27948         * tests/uniwidth/test-u8-width.c: Likewise.
27949         * tests/uniwidth/test-uc_width.c: Likewise.
27950         * config/srclist-update: Likewise.
27951         (fixlicense): Update to GPLv3+.
27952
27953         Change copyright notice from LGPLv2.1+ to LGPLv3+.
27954         * tests/test-tsearch.c: Change copyright notice.
27955
27956         Change copyright notice from LGPLv2.0+ to LGPLv3+.
27957         * lib/c-strcaseeq.h: Change copyright notice.
27958         * lib/streq.h: Likewise.
27959         * lib/uniconv.h: Likewise.
27960         * lib/uniconv/u-conv-from-enc.h: Likewise.
27961         * lib/uniconv/u-conv-to-enc.h: Likewise.
27962         * lib/uniconv/u-strconv-from-enc.h: Likewise.
27963         * lib/uniconv/u-strconv-to-enc.h: Likewise.
27964         * lib/uniconv/u16-conv-from-enc.c: Likewise.
27965         * lib/uniconv/u16-conv-to-enc.c: Likewise.
27966         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
27967         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
27968         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
27969         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
27970         * lib/uniconv/u32-conv-from-enc.c: Likewise.
27971         * lib/uniconv/u32-conv-to-enc.c: Likewise.
27972         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
27973         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
27974         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
27975         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
27976         * lib/uniconv/u8-conv-from-enc.c: Likewise.
27977         * lib/uniconv/u8-conv-to-enc.c: Likewise.
27978         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
27979         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
27980         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
27981         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
27982         * lib/uniname.h: Likewise.
27983         * lib/uniname/uniname.c: Likewise.
27984         * lib/unistdio.h: Likewise.
27985         * lib/unistdio/u-asnprintf.h: Likewise.
27986         * lib/unistdio/u-asprintf.h: Likewise.
27987         * lib/unistdio/u-printf-args.c: Likewise.
27988         * lib/unistdio/u-printf-args.h: Likewise.
27989         * lib/unistdio/u-printf-parse.h: Likewise.
27990         * lib/unistdio/u-snprintf.h: Likewise.
27991         * lib/unistdio/u-sprintf.h: Likewise.
27992         * lib/unistdio/u-vasprintf.h: Likewise.
27993         * lib/unistdio/u-vsnprintf.h: Likewise.
27994         * lib/unistdio/u-vsprintf.h: Likewise.
27995         * lib/unistdio/u16-asnprintf.c: Likewise.
27996         * lib/unistdio/u16-asprintf.c: Likewise.
27997         * lib/unistdio/u16-printf-parse.c: Likewise.
27998         * lib/unistdio/u16-snprintf.c: Likewise.
27999         * lib/unistdio/u16-sprintf.c: Likewise.
28000         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
28001         * lib/unistdio/u16-u16-asprintf.c: Likewise.
28002         * lib/unistdio/u16-u16-snprintf.c: Likewise.
28003         * lib/unistdio/u16-u16-sprintf.c: Likewise.
28004         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
28005         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
28006         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
28007         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
28008         * lib/unistdio/u16-vasnprintf.c: Likewise.
28009         * lib/unistdio/u16-vasprintf.c: Likewise.
28010         * lib/unistdio/u16-vsnprintf.c: Likewise.
28011         * lib/unistdio/u16-vsprintf.c: Likewise.
28012         * lib/unistdio/u32-asnprintf.c: Likewise.
28013         * lib/unistdio/u32-asprintf.c: Likewise.
28014         * lib/unistdio/u32-printf-parse.c: Likewise.
28015         * lib/unistdio/u32-snprintf.c: Likewise.
28016         * lib/unistdio/u32-sprintf.c: Likewise.
28017         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
28018         * lib/unistdio/u32-u32-asprintf.c: Likewise.
28019         * lib/unistdio/u32-u32-snprintf.c: Likewise.
28020         * lib/unistdio/u32-u32-sprintf.c: Likewise.
28021         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
28022         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
28023         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
28024         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
28025         * lib/unistdio/u32-vasnprintf.c: Likewise.
28026         * lib/unistdio/u32-vasprintf.c: Likewise.
28027         * lib/unistdio/u32-vsnprintf.c: Likewise.
28028         * lib/unistdio/u32-vsprintf.c: Likewise.
28029         * lib/unistdio/u8-asnprintf.c: Likewise.
28030         * lib/unistdio/u8-asprintf.c: Likewise.
28031         * lib/unistdio/u8-printf-parse.c: Likewise.
28032         * lib/unistdio/u8-snprintf.c: Likewise.
28033         * lib/unistdio/u8-sprintf.c: Likewise.
28034         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
28035         * lib/unistdio/u8-u8-asprintf.c: Likewise.
28036         * lib/unistdio/u8-u8-snprintf.c: Likewise.
28037         * lib/unistdio/u8-u8-sprintf.c: Likewise.
28038         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
28039         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
28040         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
28041         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
28042         * lib/unistdio/u8-vasnprintf.c: Likewise.
28043         * lib/unistdio/u8-vasprintf.c: Likewise.
28044         * lib/unistdio/u8-vsnprintf.c: Likewise.
28045         * lib/unistdio/u8-vsprintf.c: Likewise.
28046         * lib/unistdio/ulc-asnprintf.c: Likewise.
28047         * lib/unistdio/ulc-asprintf.c: Likewise.
28048         * lib/unistdio/ulc-printf-parse.c: Likewise.
28049         * lib/unistdio/ulc-snprintf.c: Likewise.
28050         * lib/unistdio/ulc-sprintf.c: Likewise.
28051         * lib/unistdio/ulc-vasnprintf.c: Likewise.
28052         * lib/unistdio/ulc-vasprintf.c: Likewise.
28053         * lib/unistdio/ulc-vsnprintf.c: Likewise.
28054         * lib/unistdio/ulc-vsprintf.c: Likewise.
28055         * lib/unistr.h: Likewise.
28056         * lib/unistr/u-cpy-alloc.h: Likewise.
28057         * lib/unistr/u-cpy.h: Likewise.
28058         * lib/unistr/u-endswith.h: Likewise.
28059         * lib/unistr/u-move.h: Likewise.
28060         * lib/unistr/u-set.h: Likewise.
28061         * lib/unistr/u-startswith.h: Likewise.
28062         * lib/unistr/u-stpcpy.h: Likewise.
28063         * lib/unistr/u-stpncpy.h: Likewise.
28064         * lib/unistr/u-strcat.h: Likewise.
28065         * lib/unistr/u-strcpy.h: Likewise.
28066         * lib/unistr/u-strcspn.h: Likewise.
28067         * lib/unistr/u-strdup.h: Likewise.
28068         * lib/unistr/u-strlen.h: Likewise.
28069         * lib/unistr/u-strncat.h: Likewise.
28070         * lib/unistr/u-strncpy.h: Likewise.
28071         * lib/unistr/u-strnlen.h: Likewise.
28072         * lib/unistr/u-strpbrk.h: Likewise.
28073         * lib/unistr/u-strspn.h: Likewise.
28074         * lib/unistr/u-strstr.h: Likewise.
28075         * lib/unistr/u-strtok.h: Likewise.
28076         * lib/unistr/u16-check.c: Likewise.
28077         * lib/unistr/u16-chr.c: Likewise.
28078         * lib/unistr/u16-cmp.c: Likewise.
28079         * lib/unistr/u16-cpy-alloc.c: Likewise.
28080         * lib/unistr/u16-cpy.c: Likewise.
28081         * lib/unistr/u16-endswith.c: Likewise.
28082         * lib/unistr/u16-mblen.c: Likewise.
28083         * lib/unistr/u16-mbsnlen.c: Likewise.
28084         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28085         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28086         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28087         * lib/unistr/u16-mbtouc.c: Likewise.
28088         * lib/unistr/u16-mbtoucr.c: Likewise.
28089         * lib/unistr/u16-move.c: Likewise.
28090         * lib/unistr/u16-next.c: Likewise.
28091         * lib/unistr/u16-prev.c: Likewise.
28092         * lib/unistr/u16-set.c: Likewise.
28093         * lib/unistr/u16-startswith.c: Likewise.
28094         * lib/unistr/u16-stpcpy.c: Likewise.
28095         * lib/unistr/u16-stpncpy.c: Likewise.
28096         * lib/unistr/u16-strcat.c: Likewise.
28097         * lib/unistr/u16-strchr.c: Likewise.
28098         * lib/unistr/u16-strcmp.c: Likewise.
28099         * lib/unistr/u16-strcpy.c: Likewise.
28100         * lib/unistr/u16-strcspn.c: Likewise.
28101         * lib/unistr/u16-strdup.c: Likewise.
28102         * lib/unistr/u16-strlen.c: Likewise.
28103         * lib/unistr/u16-strmblen.c: Likewise.
28104         * lib/unistr/u16-strmbtouc.c: Likewise.
28105         * lib/unistr/u16-strncat.c: Likewise.
28106         * lib/unistr/u16-strncmp.c: Likewise.
28107         * lib/unistr/u16-strncpy.c: Likewise.
28108         * lib/unistr/u16-strnlen.c: Likewise.
28109         * lib/unistr/u16-strpbrk.c: Likewise.
28110         * lib/unistr/u16-strrchr.c: Likewise.
28111         * lib/unistr/u16-strspn.c: Likewise.
28112         * lib/unistr/u16-strstr.c: Likewise.
28113         * lib/unistr/u16-strtok.c: Likewise.
28114         * lib/unistr/u16-to-u32.c: Likewise.
28115         * lib/unistr/u16-to-u8.c: Likewise.
28116         * lib/unistr/u16-uctomb-aux.c: Likewise.
28117         * lib/unistr/u16-uctomb.c: Likewise.
28118         * lib/unistr/u32-check.c: Likewise.
28119         * lib/unistr/u32-chr.c: Likewise.
28120         * lib/unistr/u32-cmp.c: Likewise.
28121         * lib/unistr/u32-cpy-alloc.c: Likewise.
28122         * lib/unistr/u32-cpy.c: Likewise.
28123         * lib/unistr/u32-endswith.c: Likewise.
28124         * lib/unistr/u32-mblen.c: Likewise.
28125         * lib/unistr/u32-mbsnlen.c: Likewise.
28126         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28127         * lib/unistr/u32-mbtouc.c: Likewise.
28128         * lib/unistr/u32-mbtoucr.c: Likewise.
28129         * lib/unistr/u32-move.c: Likewise.
28130         * lib/unistr/u32-next.c: Likewise.
28131         * lib/unistr/u32-prev.c: Likewise.
28132         * lib/unistr/u32-set.c: Likewise.
28133         * lib/unistr/u32-startswith.c: Likewise.
28134         * lib/unistr/u32-stpcpy.c: Likewise.
28135         * lib/unistr/u32-stpncpy.c: Likewise.
28136         * lib/unistr/u32-strcat.c: Likewise.
28137         * lib/unistr/u32-strchr.c: Likewise.
28138         * lib/unistr/u32-strcmp.c: Likewise.
28139         * lib/unistr/u32-strcpy.c: Likewise.
28140         * lib/unistr/u32-strcspn.c: Likewise.
28141         * lib/unistr/u32-strdup.c: Likewise.
28142         * lib/unistr/u32-strlen.c: Likewise.
28143         * lib/unistr/u32-strmblen.c: Likewise.
28144         * lib/unistr/u32-strmbtouc.c: Likewise.
28145         * lib/unistr/u32-strncat.c: Likewise.
28146         * lib/unistr/u32-strncmp.c: Likewise.
28147         * lib/unistr/u32-strncpy.c: Likewise.
28148         * lib/unistr/u32-strnlen.c: Likewise.
28149         * lib/unistr/u32-strpbrk.c: Likewise.
28150         * lib/unistr/u32-strrchr.c: Likewise.
28151         * lib/unistr/u32-strspn.c: Likewise.
28152         * lib/unistr/u32-strstr.c: Likewise.
28153         * lib/unistr/u32-strtok.c: Likewise.
28154         * lib/unistr/u32-to-u16.c: Likewise.
28155         * lib/unistr/u32-to-u8.c: Likewise.
28156         * lib/unistr/u32-uctomb.c: Likewise.
28157         * lib/unistr/u8-check.c: Likewise.
28158         * lib/unistr/u8-chr.c: Likewise.
28159         * lib/unistr/u8-cmp.c: Likewise.
28160         * lib/unistr/u8-cpy-alloc.c: Likewise.
28161         * lib/unistr/u8-cpy.c: Likewise.
28162         * lib/unistr/u8-endswith.c: Likewise.
28163         * lib/unistr/u8-mblen.c: Likewise.
28164         * lib/unistr/u8-mbsnlen.c: Likewise.
28165         * lib/unistr/u8-mbtouc-aux.c: Likewise.
28166         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28167         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28168         * lib/unistr/u8-mbtouc.c: Likewise.
28169         * lib/unistr/u8-mbtoucr.c: Likewise.
28170         * lib/unistr/u8-move.c: Likewise.
28171         * lib/unistr/u8-next.c: Likewise.
28172         * lib/unistr/u8-prev.c: Likewise.
28173         * lib/unistr/u8-set.c: Likewise.
28174         * lib/unistr/u8-startswith.c: Likewise.
28175         * lib/unistr/u8-stpcpy.c: Likewise.
28176         * lib/unistr/u8-stpncpy.c: Likewise.
28177         * lib/unistr/u8-strcat.c: Likewise.
28178         * lib/unistr/u8-strchr.c: Likewise.
28179         * lib/unistr/u8-strcmp.c: Likewise.
28180         * lib/unistr/u8-strcpy.c: Likewise.
28181         * lib/unistr/u8-strcspn.c: Likewise.
28182         * lib/unistr/u8-strdup.c: Likewise.
28183         * lib/unistr/u8-strlen.c: Likewise.
28184         * lib/unistr/u8-strmblen.c: Likewise.
28185         * lib/unistr/u8-strmbtouc.c: Likewise.
28186         * lib/unistr/u8-strncat.c: Likewise.
28187         * lib/unistr/u8-strncmp.c: Likewise.
28188         * lib/unistr/u8-strncpy.c: Likewise.
28189         * lib/unistr/u8-strnlen.c: Likewise.
28190         * lib/unistr/u8-strpbrk.c: Likewise.
28191         * lib/unistr/u8-strrchr.c: Likewise.
28192         * lib/unistr/u8-strspn.c: Likewise.
28193         * lib/unistr/u8-strstr.c: Likewise.
28194         * lib/unistr/u8-strtok.c: Likewise.
28195         * lib/unistr/u8-to-u16.c: Likewise.
28196         * lib/unistr/u8-to-u32.c: Likewise.
28197         * lib/unistr/u8-uctomb-aux.c: Likewise.
28198         * lib/unistr/u8-uctomb.c: Likewise.
28199         * lib/unitypes.h: Likewise.
28200         * lib/uniwidth.h: Likewise.
28201         * lib/uniwidth/cjk.h: Likewise.
28202         * lib/uniwidth/u16-strwidth.c: Likewise.
28203         * lib/uniwidth/u16-width.c: Likewise.
28204         * lib/uniwidth/u32-strwidth.c: Likewise.
28205         * lib/uniwidth/u32-width.c: Likewise.
28206         * lib/uniwidth/u8-strwidth.c: Likewise.
28207         * lib/uniwidth/u8-width.c: Likewise.
28208         * lib/uniwidth/width.c: Likewise.
28209
28210 2007-10-07  Bruno Haible  <bruno@clisp.org>
28211
28212         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
28213         The file is still under LGPL (see modules/inttypes).
28214
28215 2007-10-06  Bruno Haible  <bruno@clisp.org>
28216
28217         * modules/trunc (Dependencies): Add 'extensions'.
28218         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
28219         Reported by Ben Pfaff <blp@gnu.org>.
28220
28221 2007-10-06  Bruno Haible  <bruno@clisp.org>
28222
28223         * modules/freopen-tests: New file.
28224         * tests/test-freopen.c: New file.
28225
28226         * modules/fopen-tests: New file.
28227         * tests/test-fopen.c: New file.
28228
28229         * modules/fopen: New file.
28230         * lib/fopen.c: New file.
28231         * m4/fopen.m4: New file.
28232         * modules/freopen: New file.
28233         * lib/freopen.c: New file.
28234         * m4/freopen.m4: New file.
28235         * lib/stdio.in.h (fopen, freopen): New declarations.
28236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
28237         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
28238         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
28239         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
28240         * doc/functions/fopen.texi: Mention the 'fopen' module.
28241         * doc/functions/freopen.texi: Mention the 'freopen' module.
28242
28243 2007-10-06  Bruno Haible  <bruno@clisp.org>
28244
28245         * modules/open-tests: New file.
28246         * tests/test-open.c: New file.
28247
28248         * modules/open: New file.
28249         * lib/open.c: New file.
28250         * m4/open.m4: New file.
28251         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
28252         lib/open.c does.
28253         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
28254         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
28255         macros.
28256         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
28257         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
28258         REPLACE_OPEN.
28259         * doc/functions/open.texi: Mention the 'open' module.
28260
28261 2007-10-04  Bruno Haible  <bruno@clisp.org>
28262
28263         * modules/ceill-tests: New file.
28264         * tests/test-ceill.c: New file.
28265
28266         * modules/ceill: New file.
28267         * lib/ceill.c: Replace entire file.
28268         * m4/ceill.m4: New file.
28269         * lib/math.in.h (ceill): Replace declaration.
28270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
28271         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
28272         * doc/functions/ceill.texi: Mention the 'ceill' module.
28273         * modules/mathl (Files): Remove lib/ceill.c.
28274         (Depends-on): Add ceill.
28275
28276 2007-10-04  Bruno Haible  <bruno@clisp.org>
28277
28278         * modules/ceilf-tests: New file.
28279         * tests/test-ceilf.c: New file.
28280
28281         * modules/ceilf: New file.
28282         * lib/ceil.c: New file.
28283         * lib/ceilf.c: New file.
28284         * m4/ceilf.m4: New file.
28285         * lib/math.in.h (ceilf): New declaration.
28286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
28287         HAVE_DECL_CEILF.
28288         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
28289         HAVE_DECL_CEILF.
28290         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
28291
28292 2007-10-04  Bruno Haible  <bruno@clisp.org>
28293
28294         * modules/floorl-tests: New file.
28295         * tests/test-floorl.c: New file.
28296
28297         * modules/floorl: New file.
28298         * lib/floorl.c: Replace entire file.
28299         * m4/floorl.m4: New file.
28300         * lib/math.in.h (floorl): Replace declaration.
28301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
28302         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
28303         * doc/functions/floorl.texi: Mention the 'floorl' module.
28304         * modules/mathl (Files): Remove lib/floorl.c.
28305         (Depends-on): Add floorl.
28306
28307 2007-10-04  Bruno Haible  <bruno@clisp.org>
28308
28309         * modules/floorf-tests: New file.
28310         * tests/test-floorf.c: New file.
28311
28312         * modules/floorf: New file.
28313         * lib/floor.c: New file.
28314         * lib/floorf.c: New file.
28315         * m4/floorf.m4: New file.
28316         * lib/math.in.h (floorf): New declaration.
28317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
28318         HAVE_DECL_FLOORF.
28319         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
28320         HAVE_DECL_FLOORF.
28321         * doc/functions/floorf.texi: Mention the 'floorf' module.
28322
28323 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
28324             Bruno Haible  <bruno@clisp.org>
28325
28326         Advertise for the Git server instead of the CVS server.
28327         * doc/gnulib-intro.texi (Steady Development): Mention the Git
28328         repository instead of the CVS one.
28329         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
28330         about all VCS systems generically.
28331         * doc/gnulib.texi (Introduction): Capitalize `Git'.
28332
28333 2007-10-04  Bruno Haible  <bruno@clisp.org>
28334
28335         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
28336         means.
28337         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
28338
28339 2007-10-04  Bruno Haible  <bruno@clisp.org>
28340
28341         * modules/truncl-tests: New file.
28342         * tests/test-truncl.c: New file.
28343
28344         * modules/truncl: New file.
28345         * lib/truncl.c: New file.
28346         * m4/truncl.m4: New file.
28347         * lib/math.in.h (truncl): New declaration.
28348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
28349         HAVE_DECL_TRUNCL.
28350         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
28351         HAVE_DECL_TRUNCL.
28352         * doc/functions/truncl.texi: Mention the 'truncl' module.
28353
28354 2007-10-04  Bruno Haible  <bruno@clisp.org>
28355
28356         * modules/truncf-tests: New file.
28357         * tests/test-truncf.c: New file.
28358
28359         * modules/truncf: New file.
28360         * lib/trunc.c: Make paramerizable through USE_* macros.
28361         * lib/truncf.c: New file.
28362         * m4/truncf.m4: New file.
28363         * lib/math.in.h (truncf): New declaration.
28364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
28365         HAVE_DECL_TRUNCF.
28366         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
28367         HAVE_DECL_TRUNCF.
28368         * doc/functions/truncf.texi: Mention the 'truncf' module.
28369
28370 2007-10-03  Bruno Haible  <bruno@clisp.org>
28371
28372         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
28373         augmentation also for tests modules.
28374         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
28375         * modules/atexit-tests (Makefile.am): Likewise.
28376         * modules/binary-io-tests (Makefile.am): Likewise.
28377         * modules/c-strcase-tests (Makefile.am): Likewise.
28378         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
28379         * modules/canonicalize-tests (Makefile.am): Likewise.
28380         * modules/closein-tests (Makefile.am): Likewise.
28381         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28382         * modules/freadahead-tests (Makefile.am): Likewise.
28383         * modules/fseek-tests (Makefile.am): Likewise.
28384         * modules/fseeko-tests (Makefile.am): Likewise.
28385         * modules/ftell-tests (Makefile.am): Likewise.
28386         * modules/ftello-tests (Makefile.am): Likewise.
28387         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
28388         * modules/isnanl-tests (Makefile.am): Likewise.
28389         * modules/lseek-tests (Makefile.am): Likewise.
28390         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28391         * modules/mbscasestr-tests (Makefile.am): Likewise.
28392         * modules/mbschr-tests (Makefile.am): Likewise.
28393         * modules/mbscspn-tests (Makefile.am): Likewise.
28394         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28395         * modules/mbspbrk-tests (Makefile.am): Likewise.
28396         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28397         * modules/mbsrchr-tests (Makefile.am): Likewise.
28398         * modules/mbsspn-tests (Makefile.am): Likewise.
28399         * modules/mbsstr-tests (Makefile.am): Likewise.
28400         * modules/printf-posix-tests (Makefile.am): Likewise.
28401         * modules/snprintf-posix-tests (Makefile.am): Likewise.
28402         * modules/sprintf-posix-tests (Makefile.am): Likewise.
28403         * modules/tsearch-tests (Makefile.am): Likewise.
28404         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28405         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28406         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28407         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28408         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28409         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28410         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28411         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28412         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
28413         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
28414         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28415         * modules/xstrtol-tests (Makefile.am): Likewise.
28416         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28417         * modules/yesno-tests (Makefile.am): Likewise.
28418
28419 2007-10-03  Bruno Haible  <bruno@clisp.org>
28420
28421         * modules/trunc-tests: New file.
28422         * tests/test-trunc.c: New file.
28423
28424         * modules/trunc: New file.
28425         * lib/trunc.c: New file.
28426         * m4/trunc.m4: New file.
28427         * lib/math.in.h (trunc): New declaration.
28428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
28429         HAVE_DECL_TRUNC.
28430         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
28431         HAVE_DECL_TRUNC.
28432         * doc/functions/trunc.texi: Mention the 'trunc' module.
28433
28434 2007-10-03  Bruno Haible  <bruno@clisp.org>
28435
28436         * tests/test-fpending.c: New file, mostly copied
28437         from coreutils/lib/t-fpending.c.
28438         * modules/fpending-tests: New file.
28439
28440 2007-10-03  Bruno Haible  <bruno@clisp.org>
28441
28442         Port the stdio extensions to QNX (untested).
28443         * lib/fseterr.c (fseterr): Add support for QNX.
28444         * lib/fbufmode.c (fbufmode): Likewise.
28445         * lib/freadable.c (freadable): Likewise.
28446         * lib/fwritable.c (fwritable): Likewise.
28447         * lib/freading.c (freading): Likewise.
28448         * lib/fwriting.c (fwriting): Likewise.
28449         * lib/freadahead.c (freadahed): Likewise.
28450         * lib/fpurge.c (fpurge): Likewise.
28451         * lib/fseeko.c (rpl_fseeko): Likewise.
28452
28453 2007-10-03  Bruno Haible  <bruno@clisp.org>
28454             Jim Meyering  <jim@meyering.net>
28455             Eric Blake  <ebb9@byu.net>
28456
28457         * doc/relocatable.texi: Use @command instead of @program.
28458
28459 2007-10-02  Jim Meyering  <jim@meyering.net>
28460
28461         Perform one more "_.h" -> ".in.h" substitution.
28462         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
28463         instead of unistd_.h here, too.
28464
28465 2007-10-01  Bruno Haible  <bruno@clisp.org>
28466
28467         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
28468         Needed for the alloca-opt module.
28469
28470 2007-09-30  Bruno Haible  <bruno@clisp.org>
28471
28472         * lib/alloca.in.h: Renamed from lib/alloca_.h.
28473         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
28474         alloca_.h.
28475         * lib/argz.in.h: Renamed from lib/argz_.h.
28476         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
28477         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
28478         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
28479         byteswap_.h.
28480         * lib/dirent.in.h: Renamed from lib/dirent_.h.
28481         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
28482         dirent_.h.
28483         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
28484         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
28485         fcntl_.h.
28486         * lib/float.in.h: Renamed from lib/float_.h.
28487         * modules/float (Files, Makefile.am): Use float.in.h instead of
28488         float_.h.
28489         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
28490         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
28491         fnmatch_.h.
28492         * lib/getopt.in.h: Renamed from lib/getopt_.h.
28493         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
28494         getopt_.h.
28495         * lib/glob.in.h: Renamed from lib/glob_.h.
28496         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
28497         * lib/iconv.in.h: Renamed from lib/iconv_.h.
28498         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
28499         iconv_.h.
28500         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
28501         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
28502         inttypes_.h.
28503         * lib/locale.in.h: Renamed from lib/locale_.h.
28504         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
28505         locale_.h.
28506         * lib/math.in.h: Renamed from lib/math_.h.
28507         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
28508         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
28509         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
28510         of netinet_in_.h. Add dependency.
28511         * lib/poll.in.h: Renamed from lib/poll_.h.
28512         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
28513         * lib/search.in.h: Renamed from lib/search_.h.
28514         * modules/search (Files, Makefile.am): Use search.in.h instead of
28515         search_.h.
28516         * lib/signal.in.h: Renamed from lib/signal_.h.
28517         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
28518         _signal.h.
28519         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
28520         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
28521         stdbool_.h.
28522         * lib/stdint.in.h: Renamed from lib/stdint_.h.
28523         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
28524         stdint_.h.
28525         * lib/stdio.in.h: Renamed from lib/stdio_.h.
28526         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
28527         stdio_.h.
28528         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
28529         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
28530         stdlib_.h.
28531         * lib/string.in.h: Renamed from lib/string_.h.
28532         * modules/string (Files, Makefile.am): Use string.in.h instead of
28533         string_.h.
28534         * doc/gnulib-tool.texi (Initial import): Update.
28535         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
28536         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
28537         of sys_select_.h. Add dependency.
28538         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
28539         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
28540         of sys_socket_.h.
28541         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
28542         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
28543         sys_stat_.h.
28544         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
28545         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
28546         sys_time_.h.
28547         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
28548         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
28549         sysexits_.h.
28550         * lib/time.in.h: Renamed from lib/time_.h.
28551         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
28552         * lib/unistd.in.h: Renamed from lib/unistd_.h.
28553         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
28554         unistd_.h.
28555         * lib/wchar.in.h: Renamed from lib/wchar_.h.
28556         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
28557         wchar_.h.
28558         * lib/wctype.in.h: Renamed from lib/wctype_.h.
28559         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
28560         wctype_.h.
28561         * build-aux/bootstrap (slurp): Update.
28562         * lib/.cppi-disable: Update.
28563
28564 2007-09-30  Bruno Haible  <bruno@clisp.org>
28565
28566         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
28567         Needed on BeOS.
28568
28569 2007-09-30  Bruno Haible  <bruno@clisp.org>
28570
28571         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
28572
28573 2007-09-29  Bruno Haible  <bruno@clisp.org>
28574
28575         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
28576
28577 2007-09-29  Bruno Haible  <bruno@clisp.org>
28578
28579         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
28580         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
28581         * build-aux/install-reloc: Compile also areadlink.c.
28582         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
28583
28584 2007-09-29  Bruno Haible  <bruno@clisp.org>
28585
28586         * gnulib-tool (func_emit_initmacro_done): Indentation.
28587
28588 2007-09-29  Bruno Haible  <bruno@clisp.org>
28589
28590         * README: Add CVS checkout update instructions.
28591         Info from Bob Proulx <bob@proulx.com>.
28592
28593 2007-09-28  Eric Blake  <ebb9@byu.net>
28594
28595         Provide move-if-change.
28596         * build-aux/move-if-change: New file, based on best practice
28597         rather than any canonical upstream location.
28598
28599 2007-09-28  Jim Meyering  <jim@meyering.net>
28600
28601         Fix canonicalize loop-detection corner case.
28602         Do not attempt to stat the symlink values stored via seen_triple.
28603         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
28604         on linux-2.6.18, (but not 2.6.22).
28605         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
28606         triple_compare.  The former compares dev,ino,filename, while the latter
28607         would actually stat dirname(filename) when dev and ino were equal.
28608         * lib/hash-triple.c: Install <string.h>.
28609         (STREQ): Define.
28610         (triple_compare_ino_str): New function.
28611         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
28612
28613 2007-09-28  Eric Blake  <ebb9@byu.net>
28614
28615         Enforce that AC_REPLACE_FUNCS files exist.
28616         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
28617         override check for typos.
28618
28619         Fix test-closein on Solaris 10.
28620         * tests/test-closein.c (main): Don't assume stdin can be inherited
28621         closed on all systems.
28622         * tests/test-closein.sh: Likewise.
28623         Reported by Piotr Tarnowski.
28624
28625 2007-09-28  Jim Meyering  <jim@meyering.net>
28626
28627         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
28628
28629 2007-09-27  Jim Meyering  <jim@meyering.net>
28630
28631         canonicalize: Avoid a false-positive cycle failure.
28632         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
28633         Sort.  Remove cycle-check.
28634         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
28635         not cycle-check.h.
28636         (seen_triple): New function.
28637         (canonicalize_filename_mode): Use it instead of cycle-check.
28638         * tests/test-canonicalize.c: Add a test for this bug.
28639         * tests/test-canonicalize.sh: Set up and run the test.
28640
28641         New module, file-set, from coreutils.
28642         * modules/file-set: Define it.
28643         * lib/file-set.c, lib/file-set.h: Implement.
28644
28645         New module, hash-triple, from coreutils.
28646         * modules/hash-triple: Define it.
28647         * lib/hash-triple.c, lib/hash-triple.h: Implement.
28648
28649 2007-09-25  Eric Blake  <ebb9@byu.net>
28650
28651         Fix strerror on Interix.
28652         * lib/string_.h (strerror): Declare replacement.
28653         * doc/functions/strerror.texi (strerror): Document the Interix
28654         shortcoming.
28655         * modules/string (Makefile.am): Support new hooks.
28656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
28657         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
28658         gl_FUNC_STRERROR_SEPARATE.
28659         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
28660         * lib/strerror.c (rpl_strerror): Provide replacement.
28661         * modules/strerror (Depends-on): Add string.
28662         (configure.ac): Detect use of module.
28663         * tests/test-strerror.c: New file.
28664         * modules/strerror-tests: New test module.
28665         * modules/argp (Depends-on): Add strerror.
28666         * modules/error (Depends-on): Likewise.
28667         Reported by Martin Koeppe.
28668
28669 2007-09-24  Bruno Haible  <bruno@clisp.org>
28670
28671         * README: Update git instructions.
28672
28673 2007-09-24  Eric Blake  <ebb9@byu.net>
28674
28675         Revert fpending breakage from 2007-09-08.
28676         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
28677         __fpending.c.
28678
28679 2007-09-24  Jim Meyering  <jim@meyering.net>
28680
28681         filenamecat.c: Add a test.
28682         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
28683         showing how the function works when DIR is the empty string.
28684
28685 2007-09-21  Simon Josefsson  <simon@josefsson.org>
28686
28687         * tests/test-canonicalize.sh: Turn on executable bit.
28688
28689 2007-09-19  Eric Blake  <ebb9@byu.net>
28690
28691         * README: Update CVS instructions.
28692
28693 2007-09-18  Bruno Haible  <bruno@clisp.org>
28694
28695         * modules/areadlink: New file.
28696         * lib/areadlink.h (areadlink): New declaration.
28697         * lib/areadlink.c: New file, based on lib/xreadlink.c.
28698
28699 2007-09-17  Jim Meyering  <jim@meyering.net>
28700
28701         * lib/savewd.c (ESTALE) [!defined]: Define.
28702         Reported to be required on Interix by Martin Koeppe.
28703
28704 2007-09-17  Bruno Haible  <bruno@clisp.org>
28705
28706         * gnulib-tool (func_version): Use $version.
28707
28708 2007-09-16  Bruno Haible  <bruno@clisp.org>
28709
28710         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
28711         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
28712         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
28713         Reported by Greg Schafer <gschafer@zip.com.au>.
28714
28715 2007-09-15  Bruno Haible  <bruno@clisp.org>
28716
28717         * gnulib-tool (sed): Try a little harder to make bash understand the
28718         alias.
28719         Reported by Bruce Korb <bruce.korb@gmail.com>.
28720
28721 2007-09-13  Eric Blake  <ebb9@byu.net>
28722
28723         * ChangeLog: Remove conflict markers.
28724
28725 2007-09-13  Simon Josefsson  <simon@josefsson.org>
28726
28727         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
28728         Reported by Bruno Haible <bruno@clisp.org>.
28729
28730 2007-09-12  Bruno Haible  <bruno@clisp.org>
28731
28732         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
28733         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
28734         is not defined.
28735
28736 2007-09-12  Eric Blake  <ebb9@byu.net>
28737
28738         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
28739         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
28740         Autoconf definition.
28741         * modules/euidaccess (Depends-on): Add extensions, for
28742         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
28743         * modules/fnmatch (Depends-on): Likewise.
28744         * modules/getaddrinfo (Depends-on): Likewise.
28745         * modules/getdelim (Depends-on): Likewise.
28746         * modules/getline (Depends-on): Likewise.
28747         * modules/getsubopt (Depends-on): Likewise.
28748         * modules/gettext (Depends-on): Likewise.
28749         * modules/group-member (Depends-on): Likewise.
28750         * modules/mbchar (Depends-on): Likewise.
28751         * modules/memmem (Depends-on): Likewise.
28752         * modules/mempcpy (Depends-on): Likewise.
28753         * modules/memrchr (Depends-on): Likewise.
28754         * modules/pagealign_alloc (Depends-on): Likewise.
28755         * modules/readutmp (Depends-on): Likewise.
28756         * modules/stpcpy (Depends-on): Likewise.
28757         * modules/stpncpy (Depends-on): Likewise.
28758         * modules/strchrnul (Depends-on): Likewise.
28759         * modules/strndup (Depends-on): Likewise.
28760         * modules/strsep (Depends-on): Likewise.
28761         * modules/strverscmp (Depends-on): Likewise.
28762         * modules/vasprintf (Depends-on): Likewise.
28763         * modules/wcwidth (Depends-on): Likewise.
28764         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
28765         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
28766         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
28767         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
28768         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28769         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28770         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
28771         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
28772         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
28773         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28774         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28775         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28776         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28777         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28778         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
28779         * m4/readutmp.m4 (gl_READUTMP): Likewise.
28780         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28781         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28782         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28783         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28784         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28785         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28786         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28787         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
28788         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
28789         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28790         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
28791         so that lock.m4 can be used in gettext without extensions module.
28792
28793 2007-09-11  Bruno Haible  <bruno@clisp.org>
28794
28795         * m4/isc-posix.m4: Remove file.
28796         Suggested by Eric Blake.
28797
28798 2007-09-11  Eric Blake  <ebb9@byu.net>
28799
28800         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
28801
28802 2007-09-10  Bruno Haible  <bruno@clisp.org>
28803
28804         * posix-modules: Fix typo in error message.
28805         Reported by Matt <mkraai@beckman.com>.
28806
28807 2007-09-09  Bruno Haible  <bruno@clisp.org>
28808
28809         * doc/functions/getdelim.texi: Update list of platforms lacking the
28810         function.
28811         * doc/functions/getline.texi: Likewise.
28812
28813 2007-09-09  Jim Meyering  <jim@meyering.net>
28814
28815         * lib/hash.c (hash_initialize): Detect calloc failure.
28816         Reported by Bruno Haible.
28817
28818 2007-09-09  Bruno Haible  <bruno@clisp.org>
28819
28820         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
28821         malloc or realloc fails.
28822
28823 2007-09-09  Bruno Haible  <bruno@clisp.org>
28824
28825         * modules/getcwd (Depends-on): Add malloc-posix.
28826         * modules/glob (Depends-on): Likewise.
28827         * modules/putenv (Depends-on): Likewise.
28828         * modules/strdup (Depends-on): Likewise.
28829         * modules/getdelim (Depends-on): Add realloc-posix.
28830         * modules/read-file (Depends-on): Likewise.
28831
28832 2007-09-09  Bruno Haible  <bruno@clisp.org>
28833
28834         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
28835         (gl_FUNC_MALLOC_POSIX): Require it.
28836         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
28837         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
28838         * modules/realloc (Files): Add m4/malloc.m4.
28839         * modules/calloc (Files): Likewise.
28840
28841 2007-09-09  Bruno Haible  <bruno@clisp.org>
28842
28843         * modules/malloc-posix: New file.
28844         * modules/malloc (Depends-on): Add malloc-posix.
28845         * lib/malloc.c: Include errno.h.
28846         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
28847         and a POSIX-compatible malloc into a single function. Set ENOMEM
28848         when returning NULL.
28849         * m4/malloc.m4: New file.
28850         * doc/functions/malloc.texi: Mention the malloc-posix module.
28851         * lib/stdlib_.h (malloc): New declaration.
28852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28853         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
28854         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
28855         and HAVE_MALLOC_POSIX.
28856
28857 2007-09-09  Bruno Haible  <bruno@clisp.org>
28858
28859         * modules/realloc-posix: New file.
28860         * modules/realloc (Depends-on): Add realloc-posix.
28861         * lib/realloc.c: Include errno.h.
28862         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
28863         and a POSIX-compatible realloc into a single function. Set ENOMEM
28864         when returning NULL.
28865         * m4/realloc.m4: New file.
28866         * doc/functions/realloc.texi: Mention the realloc-posix module.
28867         * lib/stdlib_.h (realloc): New declaration.
28868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28869         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
28870         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
28871         and HAVE_REALLOC_POSIX.
28872
28873 2007-09-09  Bruno Haible  <bruno@clisp.org>
28874
28875         * modules/calloc-posix: New file.
28876         * modules/calloc (Depends-on): Add calloc-posix.
28877         * lib/calloc.c: Include errno.h.
28878         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
28879         and a POSIX-compatible calloc into a single function. Set ENOMEM
28880         when returning NULL.
28881         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
28882         * doc/functions/calloc.texi: Mention the calloc-posix module.
28883         * lib/stdlib_.h (calloc): New declaration.
28884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28885         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
28886         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
28887         and HAVE_CALLOC_POSIX.
28888
28889 2007-09-09  Bruno Haible  <bruno@clisp.org>
28890
28891         Allow for modules to show an arbitrary notice.
28892         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
28893         * gnulib-tool: New option --extract-notice.
28894         (func_usage): Document it.
28895         (sed_extract_prog): Update.
28896         (func_get_notice): New function.
28897         (func_modules_notice): New function.
28898         (func_import, func_create_testdir): Invoke it.
28899         Suggested by Jim Meyering.
28900
28901 2007-09-09  Bruno Haible  <bruno@clisp.org>
28902
28903         * gnulib-tool: New options --verbose, --quiet.
28904         (func_usage): Document them.
28905         (verbose): New variable.
28906         (func_execute_command): New function.
28907         (func_import): Don't show the module list and the file list if
28908         $verbose < 0.
28909         (func_create_testdir): Likewise. Use func_execute_command.
28910         (func_create_megatestdir): Use func_execute_command.
28911
28912 2007-09-08  Bruno Haible  <bruno@clisp.org>
28913
28914         * gnulib-tool (func_import): Prefer rsync over wget when available,
28915         for fetching the PO files.
28916
28917 2007-09-08  Bruno Haible  <bruno@clisp.org>
28918
28919         * posix-modules: New file. Portions copied from gnulib-tool.
28920         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
28921
28922 2007-09-08  Jim Meyering  <jim@meyering.net>
28923
28924         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
28925         * lib/fpending.h: Rename from __fpending.h.
28926         * lib/fpending.c: Rename from __fpending.c.
28927         Include "fpending.h", not "__fpending.h".
28928         * lib/__fpending.h, lib/__fpending.c: Remove files.
28929         * modules/fpending (Files): Reflect new file names.
28930         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
28931
28932 2007-09-08  Bruno Haible  <bruno@clisp.org>
28933
28934         * m4/inttypes-h.m4: Remove stub file.
28935
28936 2007-09-07  Simon Josefsson  <simon@josefsson.org>
28937
28938         * doc/headers/stdint.texi: Discuss #include_next issue.
28939
28940 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28941
28942         * build-aux/bootstrap: Remove obsolete comment about wget --help.
28943
28944 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28945
28946         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
28947         in variable name.
28948
28949 2007-09-03  Jim Meyering  <jim@meyering.net>
28950
28951         New module: git-version-gen.
28952         * modules/git-version-gen: New file.
28953
28954         Import changes from coreutils for bootstrap script.
28955
28956         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
28957
28958         bootstrap: uses rsync to download the .po files
28959         * build-aux/bootstrap (po_download_command_format): New global.
28960         (download_po_files): Use rsync.
28961         (update_po_files): Don't remove .po files after download,
28962         so future rsync runs can take advantage of the copies.
28963
28964         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
28965
28966         Solve the unnecessary-.po-file-regeneration problem once and for all.
28967         * build-aux/bootstrap (download_po_files): New function, renamed from
28968         get_translations.  Now, downloads, but doesn't update LINGUAS.
28969         (update_po_files): New function.
28970
28971         bootstrap: Ignore more.
28972         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
28973         uniwidth to e.g., lib/.gitignore.
28974         (slurp): Handle the sys_stat_.h -> sys mapping, too.
28975
28976         * build-aux/bootstrap: New setting: vc_ignore.
28977         (insert_sorted_if_absent): Create $file if absent.
28978         Adapt to new, possibly empty, list: $vc_ignore.
28979
28980         bootstrap: generate more ignorable names
28981         * build-aux/bootstrap (slurp): When generating ignorable names,
28982         also map .sin to .sed, .gperf to .c, and .y to .c.
28983
28984 2007-09-03  Jim Meyering  <jim@meyering.net>
28985
28986         * build-aux/git-version-gen: New file, from coreutils.  For details, see
28987         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
28988
28989 2007-09-02  Bruno Haible  <bruno@clisp.org>
28990
28991         Fix mis-recognition of 'mcs' on QNX 6.
28992         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
28993         output contains the string "Mono".
28994         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
28995         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
28996
28997 2007-09-01  Bruno Haible  <bruno@clisp.org>
28998
28999         Fix collision between uniwidth/* and linebreak modules.
29000         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
29001         u32_width): Remove declarations.
29002         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
29003         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
29004         streq3, streq2, streq1, streq0): Remove functions.
29005         (STREQ): Remove macro.
29006         (is_cjk_encoding): Remove function.
29007         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
29008         (uc_width, u8_width, u16_width, u32_width): Remove functions.
29009         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
29010         * NEWS: Document the change.
29011
29012 2007-09-01  Bruno Haible  <bruno@clisp.org>
29013
29014         * lib/streq.h: Add double-inclusion guard.
29015
29016 2007-09-01  Karl Berry  <karl@gnu.org>
29017
29018         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
29019
29020 2007-08-28  Jim Meyering  <jim@meyering.net>
29021
29022         Rename mreadlink_with_size to areadlink_with_size.
29023         * NEWS: Document the change.
29024         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
29025         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
29026         * lib/mreadlink.h: Rename this to...
29027         * lib/areadlink.h: ...this.
29028         * modules/mreadlink-with-size: Rename this to...
29029         * modules/areadlink-with-size: ...this.
29030         * lib/canonicalize.c: Reflect the renaming.
29031         * modules/canonicalize: Likewise.
29032
29033 2007-08-26  Bruno Haible  <bruno@clisp.org>
29034
29035         * gnulib-tool (func_import): When deciding which files to remove,
29036         consider also dangling symbolic links.
29037         Reported by Eric Blake.
29038
29039 2007-08-26  Bruno Haible  <bruno@clisp.org>
29040
29041         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
29042
29043 2007-08-23  Simon Josefsson  <simon@josefsson.org>
29044
29045         * lib/readline.c: Don't include getline.h, the prototype is now
29046         found in stdio.h.
29047
29048 2007-08-23  Jim Meyering  <jim@meyering.net>
29049
29050         Getdelim touchup.
29051         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
29052         around the funlockfile call, since funlockfile never sets errno.
29053         Don't set errno upon failed realloc.
29054
29055 2007-08-22  Eric Blake  <ebb9@byu.net>
29056
29057         Getline touchups.
29058         * lib/getdelim.c (getdelim): Revert regression that required *n to
29059         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
29060         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
29061         getdelim, rather than whether implementation is missing.
29062         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
29063         * lib/stdio_.h (getline): Also declare if replacement is
29064         required.
29065         * doc/functions/getdelim.texi: New file.
29066         * doc/functions/getline.texi: Likewise.
29067         * doc/gnulib.texi (Function Substitutes): Add new files.
29068         Reported by Bruno Haible.
29069
29070 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
29071
29072         * users.txt: Add Guile.
29073
29074 2007-08-22  Eric Blake  <ebb9@byu.net>
29075
29076         * tests/test-getdelim.c (main): Use remove, not unlink.
29077         * tests/test-getline.c (main): Likewise.
29078
29079         Move getline and getdelim into stdio.h, per POSIX 200x.
29080         * modules/getline (Files): Remove getline.h.
29081         (Depends-on): Add stdio.
29082         (configure.ac): Add module indicator.
29083         * modules/getdelim (Files): Remove getdelim.h.
29084         (Depends-on): Add stdio.
29085         (configure.ac): Add module indicator.
29086         * modules/stdio (Makefile.am): Work with new indicators.
29087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29088         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
29089         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29090         * lib/getdelim.h: Delete.
29091         * lib/getline.h: Delete.
29092         * lib/stdio_.h (getdelim, getline): Declare.
29093         * modules/getdelim-tests: New module.
29094         * modules/getline-tests: Likewise.
29095         * tests/test-getdelim.c: New file.
29096         * tests/test-getline.c: Likewise.
29097         * NEWS: Document the change.
29098         * lib/getline.c: Update choice of header.
29099         * lib/csharpcomp.c: Likewise.
29100         * lib/getpass.c: Likewise.
29101         * lib/javacomp.c: Likewise.
29102         * lib/javaversion.c: Likewise.
29103         * lib/yesno.c: Likewise.
29104         * lib/getdelim.c: Likewise.
29105         (getdelim): Set errno on failure, and avoid memory leak.
29106
29107 2007-08-19  Bruno Haible  <bruno@clisp.org>
29108
29109         * modules/closein (Depends-on): Add freadahead.
29110         * lib/closein.c: Include freadahead.h.
29111         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
29112         is zero.
29113
29114 2007-08-19  Bruno Haible  <bruno@clisp.org>
29115
29116         * modules/freadahead-tests: New file.
29117         * tests/test-freadahead.sh: New file.
29118         * tests/test-freadahead.c: New file.
29119
29120         * modules/freadahead: New file.
29121         * lib/freadahead.h: New file.
29122         * lib/freadahead.c: New file.
29123         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
29124         fbufmode, fpurge, freadable, fwritable.
29125
29126 2007-08-19  Eric Blake  <ebb9@byu.net>
29127
29128         Test yesno in combination with closein.
29129         * lib/yesno.c (yesno): Document use of stdin.
29130         * modules/yesno-tests (Files): New module.
29131         * tests/test-yesno.c (main): New file.
29132         * tests/test-yesno.sh: Likewise.
29133
29134 2007-08-19  Bruno Haible  <bruno@clisp.org>
29135
29136         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
29137         * lib/fseeko.c (rpl_fseeko): Likewise.
29138         * lib/fseterr.c (fseterr): Likewise.
29139
29140 2007-08-19  Bruno Haible  <bruno@clisp.org>
29141
29142         * tests/test-lseek.c (main): Disable a test for BeOS.
29143         * doc/functions/lseek.texi: Document the BeOS bug.
29144
29145 2007-08-19  Bruno Haible  <bruno@clisp.org>
29146             Eric Blake  <ebb9@byu.net>
29147
29148         * lib/lseek.c: Include <sys/stat.h>.
29149         (rpl_lseek): Add workaround code also for Unix platforms.
29150         Needed for BeOS.
29151         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
29152         * doc/functions/lseek.texi: Document BeOS definiency.
29153
29154 2007-08-18  Bruno Haible  <bruno@clisp.org>
29155
29156         * modules/fstrcmp-tests: New file.
29157         * tests/test-fstrcmp.c: New file.
29158
29159 2007-08-18  Bruno Haible  <bruno@clisp.org>
29160
29161         * modules/fstrcmp: New file, from GNU gettext with modifications.
29162         * lib/fstrcmp.h: New file, from GNU gettext.
29163         * lib/fstrcmp.c: New file, from GNU gettext.
29164         * MODULES.html.sh (String handling): Add fstrcmp.
29165
29166 2007-08-18  Bruno Haible  <bruno@clisp.org>
29167
29168         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
29169         'bool'.
29170         (diag, compareseq): Remove const from the ctxt argument.
29171         (USE_HEURISTIC): Undefine at the end.
29172
29173 2007-08-18  Jim Meyering  <jim@meyering.net>
29174
29175         New file: lib/idcache.h
29176         * NEWS: Mention the addition.
29177         * modules/idcache (Files): Add lib/idcache.h
29178         * lib/idcache.c: Include "idcache.h".
29179         Don't include <sys/types.h>.
29180         Add a FIXME comment.
29181         Move file-scoped "static" declarations to the top.
29182         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
29183
29184 2007-08-17  Bruno Haible  <bruno@clisp.org>
29185         and Paul Eggert  <eggert@cs.ucla.edu>
29186
29187         * MODULES.html.sh: Add diffseq.
29188         * modules/diffseq: New file.
29189         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
29190         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
29191
29192 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29193
29194         Import changes from coreutils for bootstrap script.
29195
29196         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
29197
29198         * build-aux/bootstrap (slurp): Work even in environments where
29199         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
29200         current code does not slurp files whose names start with ".", and
29201         this looks like it might be a troublesome area.
29202
29203         2007-07-11  Jim Meyering  <jim@meyering.net>
29204
29205         If there's a GPL vN copyright comment, require that N == 3.
29206
29207         2007-07-08  Jim Meyering  <jim@meyering.net>
29208
29209         Run the coreutils-specific code only if tests/Makefile.am.in exists.
29210         * build-aux/bootstrap (mam_template): Move definition out of loop.
29211
29212         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
29213
29214         * build-aux/bootstrap (symlink_to_dir): Rename function from
29215         symlink_to_gnulib.  Add a directory parameter.  Update all
29216         callers.
29217         (cp_mark_as_generated): Also check for -- and link to -- files in
29218         gl/.
29219
29220         2007-07-08  Jim Meyering  <jim@meyering.net>
29221
29222         Adapt to deeper hierarchy in gnulib.
29223         * build-aux/bootstrap (symlink_to_dir): If the destination
29224         directory doesn't exist, create it. This is required at least for
29225         "lib/uniwidth/cjk.h".
29226
29227         2007-05-15  Jim Meyering  <jim@meyering.net>
29228
29229         * build-aux/bootstrap: Now that generated Makefile.am files
29230         are no longer under version control, they must be created at
29231         bootstrap time.
29232
29233 2007-08-14  Ben Pfaff  <blp@gnu.org>
29234
29235         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
29236
29237 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
29238
29239         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
29240         given the changes below.
29241         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
29242         even on hosts that have padding bits beyond the supported 64.
29243
29244 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29245
29246         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
29247         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
29248         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
29249         depends on it.
29250         (xstrtol_error): Remove.
29251         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
29252         but with a different signature.
29253         (ATTRIBUTE_NORETURN, __attribute__): New macros.
29254         * lib/xstrtol-error.c: Include exitfail.h.
29255         (xstrtol_fatal): New function, with a different signature from the
29256         old xstrtol_error, so that the caller need not worry about passing
29257         in an exit status, or about storage management of the option argument.
29258         (xstrtol_error): Now a static function.  Redo signature to
29259         implement xstrtol_fatal.  Output the correct number of hyphens in
29260         front of the option so that the caller need not worry about
29261         storage management.
29262         (N_): New macro.
29263         (_): Remove; not used now.
29264         * modules/xstrtol: Depend on getopt.
29265         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
29266         of old STRTOL_FATAL_ERROR macro.
29267         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
29268         of test program.
29269         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
29270         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
29271
29272 2007-08-08  Eric Blake  <ebb9@byu.net>
29273
29274         * lib/xstrtol-error.c: Add missing include.
29275
29276         Move xstrtol messages into gnulib domain, when --pobase is used.
29277         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
29278         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
29279         * modules/xstrtol (Files): Distribute new file.
29280         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
29281         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
29282         * tests/test-xstrtol.c: ...into new file.
29283         * tests/test-xstrtoul.c: Also test xstrtoul.
29284         * tests/test-xstrtoimax.c: Also test xstrtoimax.
29285         * tests/test-xstrtoumax.c: Also test xstrtoumax.
29286         * tests/test-xstrtol.sh: Drive the tests.
29287         * tests/test-xstrtoimax.sh: Likewise.
29288         * tests/test-xstrtoumax.sh: Likewise.
29289         * modules/xstrtol-tests: New module.
29290         * modules/xstrtoimax-tests: Likewise.
29291         * modules/xstrtoumax-tests: Likewise.
29292
29293 2007-08-08  Jim Meyering  <jim@meyering.net>
29294
29295         New function: mfile_name_concat.
29296         * lib/filenamecat.c (mfile_name_concat): New function, just like
29297         file_name_concat, but return NULL upon failure rather than exiting
29298         with a diagnostic.
29299         * lib/filenamecat.h: Declare it.
29300
29301 2007-08-07  Bruno Haible  <bruno@clisp.org>
29302
29303         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
29304         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
29305         warning from gcc.
29306         Reported by Eric Blake.
29307
29308 2007-08-07  Simon Josefsson  <simon@josefsson.org>
29309
29310         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
29311         * modules/crypto/arcfour (License): Likewise.
29312         * modules/crypto/des-tests (License): Likewise.
29313         * modules/crypto/gc-arctwo-tests (License): Likewise.
29314         * modules/crypto/gc-des-tests (License): Likewise.
29315         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
29316         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
29317         * modules/crypto/gc-md2-tests (License): Likewise.
29318         * modules/crypto/gc-md4-tests (License): Likewise.
29319         * modules/crypto/gc-md5-tests (License): Likewise.
29320         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
29321         * modules/crypto/gc-rijndael-tests (License): Likewise.
29322         * modules/crypto/gc-sha1-tests (License): Likewise.
29323         * modules/crypto/gc-tests (License): Likewise.
29324         * modules/crypto/hmac-md5 (License): Likewise.
29325         * modules/crypto/hmac-sha1 (License): Likewise.
29326         * modules/crypto/md2-tests (License): Likewise.
29327         * modules/crypto/md4-tests (License): Likewise.
29328         * modules/crypto/md5 (License): Likewise.
29329         * modules/crypto/rijndael (License): Likewise.
29330         * modules/crypto/sha1 (License): Likewise.
29331         * modules/memxor (License): Likewise.
29332
29333 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29334         and Bruno Haible  <bruno@clisp.org>
29335
29336         * NEWS: Describe interface changes to human, xstrtol.
29337         * lib/human.h: Include <xstrtol.h>.
29338         (human_options): Return enum strtol_error, not int.  Remove
29339         bool arg; take int * instead.
29340         * lib/human.c: Don't include "gettext.h".
29341         (_): Remove; no longer used.
29342         Don't include <xstrtol.h>, since human.h does it.
29343         (human_options): Adjust to abovementioned interface changes.
29344         Do not report error to stderr; that's now the caller's
29345         responsibility.
29346         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
29347         interface change.
29348         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
29349         Str, Argument_type_string.  All uses changed.  Put " argument"
29350         in diagnostics to make them clearer.  Change wording of suffix
29351         message for clarity.
29352         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
29353         Argument_type_string.
29354         (STRTOL_FATAL_WARN): Remove; no longer used.
29355         * modules/human (Depends-on): Remove gettext-h.
29356
29357 2007-08-06  Simon Josefsson  <simon@josefsson.org>
29358
29359         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
29360
29361 2007-07-31  Bruno Haible  <bruno@clisp.org>
29362
29363         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
29364         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
29365         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
29366
29367 2007-07-31  Bruno Haible  <bruno@clisp.org>
29368
29369         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
29370         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
29371
29372 2007-07-30  Bruno Haible  <bruno@clisp.org>
29373
29374         * modules/base64 (License): Use the synonymous term "LGPLv2+".
29375         * modules/c-ctype (License): Likewise.
29376         * modules/c-strcase (License): Likewise.
29377         * modules/check-version (License): Likewise.
29378         * modules/iconv (License): Likewise.
29379         * modules/iconv_open (License): Likewise.
29380         * modules/read-file (License): Likewise.
29381         * modules/striconv (License): Likewise.
29382         * modules/strverscmp (License): Likewise.
29383         * modules/vasprintf (License): Likewise.
29384         * modules/crypto/des (License): Likewise.
29385         * modules/crypto/gc (License): Likewise.
29386         * modules/crypto/gc-arcfour (License): Likewise.
29387         * modules/crypto/gc-arctwo (License): Likewise.
29388         * modules/crypto/gc-des (License): Likewise.
29389         * modules/crypto/gc-hmac-md5 (License): Likewise.
29390         * modules/crypto/gc-hmac-sha1 (License): Likewise.
29391         * modules/crypto/gc-md2 (License): Likewise.
29392         * modules/crypto/gc-md4 (License): Likewise.
29393         * modules/crypto/gc-md5 (License): Likewise.
29394         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
29395         * modules/crypto/gc-random (License): Likewise.
29396         * modules/crypto/gc-rijndael (License): Likewise.
29397         * modules/crypto/gc-sha1 (License): Likewise.
29398         * modules/crypto/md2 (License): Likewise.
29399         * modules/crypto/md4 (License): Likewise.
29400
29401 2007-07-30  Jim Meyering  <jim@meyering.net>
29402
29403         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
29404         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
29405         it has valid stat data.  This bug would cause du not to count the
29406         sizes of inaccessible directories.
29407         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
29408         in <http://bugzilla.redhat.com/250077>.
29409
29410 2007-07-25  Peter O'Gorman  <peter@pogma.com>
29411             Bruno Haible  <bruno@clisp.org>
29412
29413         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
29414         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
29415         #include_next, gives a diagnostic about it, but reports no error in
29416         the exit code.
29417         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29418
29419 2007-07-24  Ben Pfaff  <blp@gnu.org>
29420
29421         Improve name: "count-one-bits" is better than "popcount".
29422         * MODULES.html.sh: Update name.
29423         * lib/popcount.h: Renamed lib/count-one-bits.h.
29424         (popcount): Renamed count_one_bits.
29425         (popcountl): Renamed count_one_bits_l.
29426         (popcountll): Renamed count_one_bits_ll.
29427         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
29428         * modules/popcount: Renamed module/count-one-bits.
29429         * modules/popcount-tests: Renamed module/count-one-bits-tests.
29430         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
29431
29432 2007-07-23  Ben Pfaff  <blp@gnu.org>
29433
29434         * lib/popcount.h (popcount32): Reduce size of constants, to allow
29435         better code generation, and add U to large constants to avoid
29436         warnings, in non-GCC case.
29437         Suggested by Bruno Haible.
29438
29439 2007-07-23  Ben Pfaff  <blp@gnu.org>
29440
29441         * lib/popcount.h: Use verify_true instead of if...abort.
29442         * modules/popcount: Depend on verify module.
29443         Suggested by Jim Meyering.
29444
29445 2007-07-23  Bruno Haible  <bruno@clisp.org>
29446
29447         * gnulib-tool (func_import): Create a .cvsignore file also when the
29448         directory is not yet in CVS but the toplevel directory is. When
29449         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
29450         Reported by Karl Berry.
29451
29452 2007-07-22  Ben Pfaff  <blp@gnu.org>
29453
29454         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
29455         case.
29456         Suggested by Eric Blake.
29457
29458 2007-07-22  Ben Pfaff  <blp@gnu.org>
29459
29460         New module: popcount.
29461         * MODULES.html.sh: Add popcount.
29462         * modules/popcount: New file.
29463         * modules/popcount-tests: New file.
29464         * tests/test-popcount.c: New file.
29465         * lib/popcount.h: New file.
29466         * m4/popcount.m4: New file.
29467
29468 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
29469
29470         * build-aux/announce-gen: Update to GPLv3.
29471
29472         * build-aux/config.guess: Update from config.
29473
29474 2007-07-21  Bruno Haible  <bruno@clisp.org>
29475
29476         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
29477         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
29478
29479 2007-07-20  Jim Meyering  <jim@meyering.net>
29480
29481         * check-module: Diagnose a self-dependency.
29482
29483 2007-07-19  Bruno Haible  <bruno@clisp.org>
29484
29485         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
29486         empty.
29487         Reported by Eric Blake.
29488
29489 2007-07-18  Bruno Haible  <bruno@clisp.org>
29490
29491         * gnulib-tool: New options --po-base, --po-domain.
29492         (func_usage): Document them.
29493         (pobase, po_domain): New variables.
29494         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
29495         DEFAULT_TEXT_DOMAIN.
29496         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
29497         (func_import): Consider pobase and po_domain. Create a po/ directory.
29498         (func_create_testdir): Set pobase and po_domain to empty.
29499         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
29500         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
29501
29502 2007-07-18  Bruno Haible  <bruno@clisp.org>
29503
29504         * gnulib-tool (func_get_automake_snippet): Synthesize also an
29505         EXTRA_DIST augmentation for files in build-aux/.
29506
29507 2007-07-16  Bruno Haible  <bruno@clisp.org>
29508
29509         * modules/lseek (License): Use the synonymous term "LGPLv2+".
29510         * modules/getdelim (License): Likewise.
29511
29512 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29513
29514         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
29515         * modules/d-type (License): Likewise.
29516         * modules/extensions (License): Likewise.
29517         * modules/fnmatch (License): Likewise.
29518         * modules/fseeko (License): Likewise.
29519         * modules/getaddrinfo (License): Likewise.
29520         * modules/getline (License): Likewise.
29521         * modules/getlogin_r (License): Likewise.
29522         * modules/getpass (License): Likewise.
29523         * modules/gettimeofday (License): Likewise.
29524         * modules/glob (License): Likewise.
29525         * modules/inet_ntop (License): Likewise.
29526         * modules/malloc (License): Likewise.
29527         * modules/malloca (License): Likewise.
29528         * modules/memmem (License): Likewise.
29529         * modules/mempcpy (License): Likewise.
29530         * modules/memset (License): Likewise.
29531         * modules/minmax (License): Likewise.
29532         * modules/mktime (License): Likewise.
29533         * modules/netinet_in (License): Likewise.
29534         * modules/pathmax (License): Likewise.
29535         * modules/poll (License): Likewise.
29536         * modules/regex (License): Likewise.
29537         * modules/snprintf (License): Likewise.
29538         * modules/stdbool (License): Likewise.
29539         * modules/stdint (License): Likewise.
29540         * modules/stdio (License): Likewise.
29541         * modules/strcase (License): Likewise.
29542         * modules/strcasestr (License): Likewise.
29543         * modules/strdup (License): Likewise.
29544         * modules/string (License): Likewise.
29545         * modules/strndup (License): Likewise.
29546         * modules/strnlen (License): Likewise.
29547         * modules/strpbrk (License): Likewise.
29548         * modules/strptime (License): Likewise.
29549         * modules/strsep (License): Likewise.
29550         * modules/sys_select (License): Likewise.
29551         * modules/sys_socket (License): Likewise.
29552         * modules/sys_stat (License): Likewise.
29553         * modules/sys_time (License): Likewise.
29554         * modules/time (License): Likewise.
29555         * modules/time_r (License): Likewise.
29556         * modules/timegm (License): Likewise.
29557         * modules/unistd (License): Likewise.
29558         * modules/vsnprintf (License): Likewise.
29559         * modules/wctype (License): Likewise.
29560
29561 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29562
29563         * modules/argz (License): LGPLv2+.
29564
29565 2007-07-15  Karl Berry  <karl@gnu.org>
29566
29567         * doc/gnulib.texi: revise node structure per new fdl.texi.
29568
29569 2007-07-14  Bruno Haible  <bruno@clisp.org>
29570
29571         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
29572         the output file.
29573         * lib/uniname/uninames.h: Regenerated.
29574
29575 2007-07-14  Karl Berry  <karl@gnu.org>
29576
29577         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
29578         omitting sectioning and index commands.
29579
29580 2007-07-13  Bruno Haible  <bruno@clisp.org>
29581
29582         New gnulib-tool option --more-symlinks.
29583         * gnulib-tool (func_usage): Document --more-symlinks.
29584         (do_copyrights): New variable.
29585         Recognize option --more-symlinks.
29586         (func_import): Don't add a copyright notice transform to
29587         sed_transform_lib_file if do_copyrights is empty.
29588
29589 2007-07-13  Bruno Haible  <bruno@clisp.org>
29590
29591         * lib/vasnprintf.c (decimal_point_char): Define also if
29592         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
29593         && !NEED_PRINTF_DIRECTIVE_A.
29594         Reported by Clemens Koller <clemens.koller@anagramm.de> via
29595         Gary V. Vaughan <gary@gnu.org>.
29596
29597 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
29598
29599         * lib/inttypes_.h: Undo previous change, since it was fixed
29600         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
29601
29602 2007-07-13  Bruno Haible  <bruno@clisp.org>
29603
29604         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
29605         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
29606
29607 2007-07-13  Jim Meyering  <jim@meyering.net>
29608
29609         df: Don't fail for Tru64's "file-on-file mount".
29610         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
29611         so we fall through and use statfs instead.  Details here:
29612         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
29613         Reported by Albert Chin.
29614
29615 2007-07-13  Bruno Haible  <bruno@clisp.org>
29616
29617         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
29618         * modules/configmake (License): Likewise.
29619         * modules/gettext (License): Likewise.
29620         * modules/gettext-h (License): Likewise.
29621         * modules/include_next (License): Likewise.
29622         * modules/link-warning (License): Likewise.
29623         * modules/localcharset (License): Likewise.
29624         * modules/localename (License): Likewise.
29625         * modules/lock (License): Likewise.
29626         * modules/relocatable-lib-lgpl (License): Likewise.
29627         * modules/size_max (License): Likewise.
29628         * modules/vasnprintf (License): Likewise.
29629         * modules/wchar (License): Likewise.
29630         * modules/xsize (License): Likewise.
29631
29632 2007-07-13  Bruno Haible  <bruno@clisp.org>
29633
29634         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
29635         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
29636
29637 2007-07-12  Bruno Haible  <bruno@clisp.org>
29638
29639         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
29640         in the modules files.
29641
29642 2007-07-11  Karl Berry  <karl@gnu.org>
29643
29644         * MODULES.html.sh (func_module): use
29645          sed -e '\|^'"${includefile}"'$|d'
29646          instead of /.../d, to avoid errors on $includefile's containing /.
29647
29648 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29649
29650         * gnulib-tool (func_import): Avoid duplication of --avoid
29651         statements
29652         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
29653         names to `_' in variable names.
29654
29655 2007-07-10  Eric Blake  <ebb9@byu.net>
29656
29657         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
29658         * NEWS: Document this change.
29659
29660 2007-07-08  Bruno Haible  <bruno@clisp.org>
29661
29662         Update to Unicode 5.0.
29663         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
29664         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
29665         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
29666         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
29667         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
29668         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
29669         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
29670         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
29671         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
29672         U+10A3F, U+1D242..U+1D244.
29673         (nonspacing_table_ind): Update.
29674         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
29675         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
29676
29677 2007-07-08  Bruno Haible  <bruno@clisp.org>
29678
29679         Update to Unicode 5.0.
29680         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
29681         code transform. Extend the name index field of unicode_name_to_code and
29682         unicode_code_to_name from 16 to 24 bits.
29683         * lib/uniname/uniname.c (unicode_character_name,
29684         unicode_name_character): Add the range 0x12xxx to the code transform.
29685         * lib/uniname/uninames.h: Regenerated.
29686         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
29687
29688 2007-07-07  Bruno Haible  <bruno@clisp.org>
29689
29690         * modules/wcwidth-tests: New file.
29691         * tests/test-wcwidth.c: New file.
29692
29693         Work around MacOS X wcwidth() bug.
29694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
29695         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
29696         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
29697         original wcwidth in non-UTF-8 locales.
29698         * modules/wcwidth (Depends-on): Add localcharset, streq,
29699         uniwidth/width.
29700         * doc/functions/wcwidth.texi: Update.
29701
29702 2007-07-07  Bruno Haible  <bruno@clisp.org>
29703
29704         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
29705         (wcwidth): New declaration.
29706         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
29707         macros.
29708         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
29709         here. Prepare for creating <wchar.h> unconditionally.
29710         * modules/wchar (Depends-on): Add link-warning.
29711         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
29712         REPLACE_WCWIDTH, and GL_LINK_WARNING.
29713         * lib/wcwidth.h: Remove file.
29714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
29715         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
29716         * modules/wcwidth (Files): Remove lib/wcwidth.h.
29717         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
29718         (Include): Replace wcwidth.h with <wchar.h>.
29719         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
29720         * lib/mbchar.h: Don't include wcwidth.h.
29721         * lib/mbswidth.c: Likewise.
29722         * NEWS: Mention the change.
29723
29724 2007-07-07  Bruno Haible  <bruno@clisp.org>
29725
29726         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
29727         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
29728         definition with an external declaration.
29729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
29730         defined as a function. Remove AC_C_INLINE requirement.
29731         * modules/wcwidth (Files): Add lib/wcwidth.c.
29732         (Makefile.am): Remove redundant statement.
29733
29734 2007-07-07  Bruno Haible  <bruno@clisp.org>
29735
29736         * MODULES.html.sh (Unicode string functions): Add the new modules.
29737
29738         * tests/uniwidth/test-u32-strwidth.c: New file.
29739         * modules/uniwidth/u32-strwidth-tests: New file.
29740
29741         * lib/uniwidth/u32-strwidth.c: New file.
29742         * modules/uniwidth/u32-strwidth: New file.
29743
29744         * tests/uniwidth/test-u16-strwidth.c: New file.
29745         * modules/uniwidth/u16-strwidth-tests: New file.
29746
29747         * lib/uniwidth/u16-strwidth.c: New file.
29748         * modules/uniwidth/u16-strwidth: New file.
29749
29750         * tests/uniwidth/test-u8-strwidth.c: New file.
29751         * modules/uniwidth/u8-strwidth-tests: New file.
29752
29753         * lib/uniwidth/u8-strwidth.c: New file.
29754         * modules/uniwidth/u8-strwidth: New file.
29755
29756         * tests/uniwidth/test-u32-width.c: New file.
29757         * modules/uniwidth/u32-width-tests: New file.
29758
29759         * lib/uniwidth/u32-width.c: New file.
29760         * modules/uniwidth/u32-width: New file.
29761
29762         * tests/uniwidth/test-u16-width.c: New file.
29763         * modules/uniwidth/u16-width-tests: New file.
29764
29765         * lib/uniwidth/u16-width.c: New file.
29766         * modules/uniwidth/u16-width: New file.
29767
29768         * tests/uniwidth/test-u8-width.c: New file.
29769         * modules/uniwidth/u8-width-tests: New file.
29770
29771         * lib/uniwidth/u8-width.c: New file.
29772         * modules/uniwidth/u8-width: New file.
29773
29774         * tests/uniwidth/test-uc_width.c: New file.
29775         * modules/uniwidth/width-tests: New file.
29776
29777         * lib/uniwidth/width.c: New file, from GNU libiconv.
29778         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
29779         * modules/uniwidth/width: New file.
29780
29781         * lib/uniwidth.h: New file, from GNU libiconv.
29782         * modules/uniwidth/base: New file.
29783
29784 2007-07-07  Bruno Haible  <bruno@clisp.org>
29785
29786         * lib/uniname.h: New file, from GNU gettext.
29787         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
29788         * lib/uniname/uninames.h: New file, from GNU gettext.
29789         * lib/uniname/uniname.c: New file, from GNU gettext.
29790         * tests/uniname/test-uninames.sh: New file.
29791         * tests/uniname/test-uninames.c: New file, from GNU gettext.
29792         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
29793         * modules/uniname/base: New file.
29794         * modules/uniname/uniname: New file.
29795         * modules/uniname/uniname-tests: New file.
29796         * MODULES.html.sh (Unicode string functions): Add the new modules.
29797
29798 2007-07-06  Bruno Haible  <bruno@clisp.org>
29799
29800         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
29801
29802 2007-07-06  Bruno Haible  <bruno@clisp.org>
29803
29804         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
29805         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
29806         includes <cygwin/sys_time.h> which includes <sys/select.h> which
29807         include <sys/time.h>.
29808         Reported by Eric Blake.
29809
29810 2007-07-06  Eric Blake  <ebb9@byu.net>
29811
29812         Fix testing canonicalize on cygwin.
29813         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
29814         Revert patch from 2007-06-19.
29815         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
29816         canonicalize module is also in use.
29817         * tests/test-canonicalize.c: New file.
29818         * tests/test-canonicalize.sh: Likewise.
29819         * modules/canonicalize-tests: Likewise.
29820
29821 2007-07-06  Jim Meyering  <jim@meyering.net>
29822
29823         * lib/getugroups.c (getugroups): Detect getgrent failure.
29824         Adjust comment to reflect reality: this function may return -1.
29825
29826 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29827
29828         * build-aux/bootstrap (TP_URL,get_translations): Update to use
29829         the new TP address.
29830         (usage): Fix typo
29831         (gnulib_mk): New variable.
29832
29833 2007-07-05  Jim Meyering  <jim@meyering.net>
29834
29835         Don't let endgrent clobber errno, no matter how improbable.
29836         * lib/getugroups.c (getugroups): Save and restore errno around
29837         endgrent call.
29838
29839         Close the group DB even when failing with 2^31 or more members.
29840         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
29841
29842 2007-07-04  Jim Meyering  <jim@meyering.net>
29843
29844         * lib/getugroups.h: New file.
29845         * lib/getugroups.c: Include "getugroups.h".
29846         Remove uses of "register" keyword.
29847         Move local variable, "cp", down into scope where used.
29848         Give "username" parameter the "const" attribute.
29849         * modules/getugroups (Files): Add lib/getugroups.h
29850
29851 2007-07-04  Karl Berry  <karl@gnu.org>
29852
29853         * MODULES.html.sh (func_all_modules): Complete rename of
29854         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
29855
29856 2007-07-02  Bruno Haible  <bruno@clisp.org>
29857
29858         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
29859         mode, when inttypes.h comes from gnulib.
29860         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29861
29862 2007-07-02  Simon Josefsson  <simon@josefsson.org>
29863
29864         * NEWS: Mention lgpl module name change.
29865
29866         * modules/lgpl-2.1: Renamed from lgpl.
29867
29868         * NEWS: Mention gpl module name change.
29869
29870         * modules/gpl-3.0: New file, based on gpl-2.0.
29871
29872         * modules/gpl-2.0: Renamed from gpl.
29873
29874         * modules/gpl: Fix filename, doc/gpl.texi is now found at
29875         doc/gpl-2.0.texi.
29876
29877 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
29878
29879         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
29880         #define __STDC_LIMIT_MACROS temporarily while including
29881         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
29882         Problem reported by Joel E. Denny in
29883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
29884
29885 2007-07-01  Bruno Haible  <bruno@clisp.org>
29886
29887         * lib/unistdio.h: New file.
29888         * lib/unistdio/u-asnprintf.h: New file.
29889         * lib/unistdio/u-asprintf.h: New file.
29890         * lib/unistdio/u-printf-args.c: New file.
29891         * lib/unistdio/u-printf-args.h: New file.
29892         * lib/unistdio/u-printf-parse.h: New file.
29893         * lib/unistdio/u-snprintf.h: New file.
29894         * lib/unistdio/u-sprintf.h: New file.
29895         * lib/unistdio/u-vasprintf.h: New file.
29896         * lib/unistdio/u-vsnprintf.h: New file.
29897         * lib/unistdio/u-vsprintf.h: New file.
29898         * lib/unistdio/ulc-asnprintf.c: New file.
29899         * lib/unistdio/ulc-asprintf.c: New file.
29900         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
29901         * lib/unistdio/ulc-printf-parse.c: New file.
29902         * lib/unistdio/ulc-snprintf.c: New file.
29903         * lib/unistdio/ulc-sprintf.c: New file.
29904         * lib/unistdio/ulc-vasnprintf.c: New file.
29905         * lib/unistdio/ulc-vasprintf.c: New file.
29906         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
29907         * lib/unistdio/ulc-vsnprintf.c: New file.
29908         * lib/unistdio/ulc-vsprintf.c: New file.
29909         * lib/unistdio/u8-asnprintf.c: New file.
29910         * lib/unistdio/u8-asprintf.c: New file.
29911         * lib/unistdio/u8-printf-parse.c: New file.
29912         * lib/unistdio/u8-snprintf.c: New file.
29913         * lib/unistdio/u8-sprintf.c: New file.
29914         * lib/unistdio/u8-vasnprintf.c: New file.
29915         * lib/unistdio/u8-vasprintf.c: New file.
29916         * lib/unistdio/u8-vsnprintf.c: New file.
29917         * lib/unistdio/u8-vsprintf.c: New file.
29918         * lib/unistdio/u8-u8-asnprintf.c: New file.
29919         * lib/unistdio/u8-u8-asprintf.c: New file.
29920         * lib/unistdio/u8-u8-snprintf.c: New file.
29921         * lib/unistdio/u8-u8-sprintf.c: New file.
29922         * lib/unistdio/u8-u8-vasnprintf.c: New file.
29923         * lib/unistdio/u8-u8-vasprintf.c: New file.
29924         * lib/unistdio/u8-u8-vsnprintf.c: New file.
29925         * lib/unistdio/u8-u8-vsprintf.c: New file.
29926         * lib/unistdio/u16-asnprintf.c: New file.
29927         * lib/unistdio/u16-asprintf.c: New file.
29928         * lib/unistdio/u16-printf-parse.c: New file.
29929         * lib/unistdio/u16-snprintf.c: New file.
29930         * lib/unistdio/u16-sprintf.c: New file.
29931         * lib/unistdio/u16-vasnprintf.c: New file.
29932         * lib/unistdio/u16-vasprintf.c: New file.
29933         * lib/unistdio/u16-vsnprintf.c: New file.
29934         * lib/unistdio/u16-vsprintf.c: New file.
29935         * lib/unistdio/u16-u16-asnprintf.c: New file.
29936         * lib/unistdio/u16-u16-asprintf.c: New file.
29937         * lib/unistdio/u16-u16-snprintf.c: New file.
29938         * lib/unistdio/u16-u16-sprintf.c: New file.
29939         * lib/unistdio/u16-u16-vasnprintf.c: New file.
29940         * lib/unistdio/u16-u16-vasprintf.c: New file.
29941         * lib/unistdio/u16-u16-vsnprintf.c: New file.
29942         * lib/unistdio/u16-u16-vsprintf.c: New file.
29943         * lib/unistdio/u32-asnprintf.c: New file.
29944         * lib/unistdio/u32-asprintf.c: New file.
29945         * lib/unistdio/u32-printf-parse.c: New file.
29946         * lib/unistdio/u32-snprintf.c: New file.
29947         * lib/unistdio/u32-sprintf.c: New file.
29948         * lib/unistdio/u32-vasnprintf.c: New file.
29949         * lib/unistdio/u32-vasprintf.c: New file.
29950         * lib/unistdio/u32-vsnprintf.c: New file.
29951         * lib/unistdio/u32-vsprintf.c: New file.
29952         * lib/unistdio/u32-u32-asnprintf.c: New file.
29953         * lib/unistdio/u32-u32-asprintf.c: New file.
29954         * lib/unistdio/u32-u32-snprintf.c: New file.
29955         * lib/unistdio/u32-u32-sprintf.c: New file.
29956         * lib/unistdio/u32-u32-vasnprintf.c: New file.
29957         * lib/unistdio/u32-u32-vasprintf.c: New file.
29958         * lib/unistdio/u32-u32-vsnprintf.c: New file.
29959         * lib/unistdio/u32-u32-vsprintf.c: New file.
29960         * tests/unistdio/test-ulc-asnprintf1.c: New file.
29961         * tests/unistdio/test-ulc-asnprintf1.h: New file.
29962         * tests/unistdio/test-ulc-printf1.h: New file.
29963         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
29964         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
29965         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
29966         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
29967         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
29968         * tests/unistdio/test-ulc-vasprintf1.c: New file.
29969         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
29970         * tests/unistdio/test-ulc-vsprintf1.c: New file.
29971         * tests/unistdio/test-u8-asnprintf1.c: New file.
29972         * tests/unistdio/test-u8-asnprintf1.h: New file.
29973         * tests/unistdio/test-u8-printf1.h: New file.
29974         * tests/unistdio/test-u8-vasnprintf1.c: New file.
29975         * tests/unistdio/test-u8-vasnprintf2.c: New file.
29976         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
29977         * tests/unistdio/test-u8-vasnprintf3.c: New file.
29978         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
29979         * tests/unistdio/test-u8-vasprintf1.c: New file.
29980         * tests/unistdio/test-u8-vsnprintf1.c: New file.
29981         * tests/unistdio/test-u8-vsprintf1.c: New file.
29982         * tests/unistdio/test-u16-asnprintf1.c: New file.
29983         * tests/unistdio/test-u16-asnprintf1.h: New file.
29984         * tests/unistdio/test-u16-printf1.h: New file.
29985         * tests/unistdio/test-u16-vasnprintf1.c: New file.
29986         * tests/unistdio/test-u16-vasnprintf2.c: New file.
29987         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
29988         * tests/unistdio/test-u16-vasnprintf3.c: New file.
29989         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
29990         * tests/unistdio/test-u16-vasprintf1.c: New file.
29991         * tests/unistdio/test-u16-vsnprintf1.c: New file.
29992         * tests/unistdio/test-u16-vsprintf1.c: New file.
29993         * tests/unistdio/test-u32-asnprintf1.c: New file.
29994         * tests/unistdio/test-u32-asnprintf1.h: New file.
29995         * tests/unistdio/test-u32-printf1.h: New file.
29996         * tests/unistdio/test-u32-vasnprintf1.c: New file.
29997         * tests/unistdio/test-u32-vasnprintf2.c: New file.
29998         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
29999         * tests/unistdio/test-u32-vasnprintf3.c: New file.
30000         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
30001         * tests/unistdio/test-u32-vasprintf1.c: New file.
30002         * tests/unistdio/test-u32-vsnprintf1.c: New file.
30003         * tests/unistdio/test-u32-vsprintf1.c: New file.
30004         * modules/unistdio/base: New file.
30005         * modules/unistdio/u-printf-args: New file.
30006         * modules/unistdio/ulc-asnprintf: New file.
30007         * modules/unistdio/ulc-asprintf: New file.
30008         * modules/unistdio/ulc-fprintf: New file.
30009         * modules/unistdio/ulc-printf-parse: New file.
30010         * modules/unistdio/ulc-snprintf: New file.
30011         * modules/unistdio/ulc-sprintf: New file.
30012         * modules/unistdio/ulc-vasnprintf: New file.
30013         * modules/unistdio/ulc-vasprintf: New file.
30014         * modules/unistdio/ulc-vfprintf: New file.
30015         * modules/unistdio/ulc-vsnprintf: New file.
30016         * modules/unistdio/ulc-vsprintf: New file.
30017         * modules/unistdio/u8-asnprintf: New file.
30018         * modules/unistdio/u8-asprintf: New file.
30019         * modules/unistdio/u8-printf-parse: New file.
30020         * modules/unistdio/u8-snprintf: New file.
30021         * modules/unistdio/u8-sprintf: New file.
30022         * modules/unistdio/u8-vasnprintf: New file.
30023         * modules/unistdio/u8-vasprintf: New file.
30024         * modules/unistdio/u8-vsnprintf: New file.
30025         * modules/unistdio/u8-vsprintf: New file.
30026         * modules/unistdio/u8-u8-asnprintf: New file.
30027         * modules/unistdio/u8-u8-asprintf: New file.
30028         * modules/unistdio/u8-u8-snprintf: New file.
30029         * modules/unistdio/u8-u8-sprintf: New file.
30030         * modules/unistdio/u8-u8-vasnprintf: New file.
30031         * modules/unistdio/u8-u8-vasprintf: New file.
30032         * modules/unistdio/u8-u8-vsnprintf: New file.
30033         * modules/unistdio/u8-u8-vsprintf: New file.
30034         * modules/unistdio/u16-asnprintf: New file.
30035         * modules/unistdio/u16-asprintf: New file.
30036         * modules/unistdio/u16-printf-parse: New file.
30037         * modules/unistdio/u16-snprintf: New file.
30038         * modules/unistdio/u16-sprintf: New file.
30039         * modules/unistdio/u16-vasnprintf: New file.
30040         * modules/unistdio/u16-vasprintf: New file.
30041         * modules/unistdio/u16-vsnprintf: New file.
30042         * modules/unistdio/u16-vsprintf: New file.
30043         * modules/unistdio/u16-u16-asnprintf: New file.
30044         * modules/unistdio/u16-u16-asprintf: New file.
30045         * modules/unistdio/u16-u16-snprintf: New file.
30046         * modules/unistdio/u16-u16-sprintf: New file.
30047         * modules/unistdio/u16-u16-vasnprintf: New file.
30048         * modules/unistdio/u16-u16-vasprintf: New file.
30049         * modules/unistdio/u16-u16-vsnprintf: New file.
30050         * modules/unistdio/u16-u16-vsprintf: New file.
30051         * modules/unistdio/u32-asnprintf: New file.
30052         * modules/unistdio/u32-asprintf: New file.
30053         * modules/unistdio/u32-printf-parse: New file.
30054         * modules/unistdio/u32-snprintf: New file.
30055         * modules/unistdio/u32-sprintf: New file.
30056         * modules/unistdio/u32-vasnprintf: New file.
30057         * modules/unistdio/u32-vasprintf: New file.
30058         * modules/unistdio/u32-vsnprintf: New file.
30059         * modules/unistdio/u32-vsprintf: New file.
30060         * modules/unistdio/u32-u32-asnprintf: New file.
30061         * modules/unistdio/u32-u32-asprintf: New file.
30062         * modules/unistdio/u32-u32-snprintf: New file.
30063         * modules/unistdio/u32-u32-sprintf: New file.
30064         * modules/unistdio/u32-u32-vasnprintf: New file.
30065         * modules/unistdio/u32-u32-vasprintf: New file.
30066         * modules/unistdio/u32-u32-vsnprintf: New file.
30067         * modules/unistdio/u32-u32-vsprintf: New file.
30068         * modules/unistdio/ulc-asnprintf-tests: New file.
30069         * modules/unistdio/ulc-vasnprintf-tests: New file.
30070         * modules/unistdio/ulc-vasprintf-tests: New file.
30071         * modules/unistdio/ulc-vsnprintf-tests: New file.
30072         * modules/unistdio/ulc-vsprintf-tests: New file.
30073         * modules/unistdio/u8-asnprintf-tests: New file.
30074         * modules/unistdio/u8-vasnprintf-tests: New file.
30075         * modules/unistdio/u8-vasprintf-tests: New file.
30076         * modules/unistdio/u8-vsnprintf-tests: New file.
30077         * modules/unistdio/u8-vsprintf-tests: New file.
30078         * modules/unistdio/u16-asnprintf-tests: New file.
30079         * modules/unistdio/u16-vasnprintf-tests: New file.
30080         * modules/unistdio/u16-vasprintf-tests: New file.
30081         * modules/unistdio/u16-vsnprintf-tests: New file.
30082         * modules/unistdio/u16-vsprintf-tests: New file.
30083         * modules/unistdio/u32-asnprintf-tests: New file.
30084         * modules/unistdio/u32-vasnprintf-tests: New file.
30085         * modules/unistdio/u32-vasprintf-tests: New file.
30086         * modules/unistdio/u32-vsnprintf-tests: New file.
30087         * modules/unistdio/u32-vsprintf-tests: New file.
30088         * MODULES.html.sh (Unicode string functions): Add the new modules.
30089
30090 2007-07-01  Bruno Haible  <bruno@clisp.org>
30091
30092         * lib/sprintf.c (sprintf): Limit the available length estimation,
30093         to avoid address wraparound.
30094         * lib/vsprintf.c (vsprintf): Likewise.
30095         * modules/sprintf-posix (Dependencies): Add stdint.
30096         * modules/vsprintf-posix (Dependencies): Likewise.
30097
30098 2007-07-01  Bruno Haible  <bruno@clisp.org>
30099
30100         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
30101         Windows PATH as well. Conservative double-quoting. Comments.
30102
30103 2007-07-01  Bruno Haible  <bruno@clisp.org>
30104             Eric Blake  <ebb9@byu.net>
30105             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30106
30107         * gnulib-tool (self_abspathname): Fix algorithm to cope with
30108         empty components in $PATH, denoting '.'.
30109
30110 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30111
30112         * gnulib-tool: Fix indentation.
30113         (func_create_megatestdir): Likewise.
30114         Report by Bruno Haible.
30115
30116 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30117
30118         Sync from Automake.
30119         * build-aux/gnupload: Fix shell portability issues with for loops.
30120         Report by Karl Berry.
30121
30122 2007-06-29  Simon Josefsson  <simon@josefsson.org>
30123
30124         * build-aux/maint.mk (POURL): Use translationproject.org.
30125
30126 2007-06-27  Simon Josefsson  <simon@josefsson.org>
30127             Bruno Haible  <bruno@clisp.org>
30128
30129         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
30130         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
30131         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
30132         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
30133         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
30134
30135 2007-06-27  Bruno Haible  <bruno@clisp.org>
30136
30137         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
30138         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
30139
30140 2007-06-26  Karl Berry  <karl@gnu.org>
30141
30142         * MODULES.html.sh: remove xreadlink-with-size.
30143
30144 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30145
30146         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
30147         method that I hope also handles the double-include problem noted
30148         by Bruno Haible in
30149         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
30150
30151 2007-06-23  Bruno Haible  <bruno@clisp.org>
30152
30153         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30154         Don't let the 'mostlyclean' target fail if the last subdirectory could
30155         not be removed.
30156         Reported by Karl Berry.
30157
30158 2007-06-23  Bruno Haible  <bruno@clisp.org>
30159
30160         * gnulib-tool (echo): Add a speedier workaround for ksh.
30161         * tests/test-echo.sh: Likewise.
30162
30163 2007-06-23  Bruno Haible  <bruno@clisp.org>
30164
30165         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
30166         * tests/test-echo.sh: Likewise.
30167
30168 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30169
30170         * gnulib-tool (IFS): Initialize early, so we don't set it to
30171         empty later.
30172         (self_abspathname): Rewrite algorithm to set it, reindent.
30173         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
30174         (func_create_megatestdir): Merge some sed scripts.
30175
30176 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30177
30178         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
30179         exposed by Sun Studio 11 cc on Solaris 8.
30180
30181 2007-06-22  Bruno Haible  <bruno@clisp.org>
30182
30183         * gnulib-tool (echo): Ensure the echo primitive does not interpret
30184         backslashes.
30185         * tests/test-echo.sh: New file.
30186
30187 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30188
30189         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
30190         simplify `sed_replace_build_aux' scripts, they are portable but
30191         echoing them with `echo' is not.
30192         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
30193
30194 2007-06-21  Karl Berry  <karl@gnu.org>
30195
30196         * config/srclist.txt: guess we can't handle the licenses via
30197         srclist at the moment.
30198
30199 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30200
30201         * MODULES.html.sh: Add include_next.
30202         * modules/include_next: New file.
30203
30204 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30205
30206         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
30207         INCLUDE_NEXT.
30208         (gl_CHECK_NEXT_HEADERS): New macro.
30209         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
30210         the obsolescent gl_ABSOLUTE_HEADER.
30211         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
30212         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
30213         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
30214         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30215         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30216         * m4/math_h.m4 (gl_MATH_H): Likewise.
30217         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30218         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30219         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30220         * m4/stdint.m4 (gl_STDINT_H): Likewise.
30221         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30222         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30223         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30224         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30225         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30226         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30227         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30228         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30229         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
30230         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30231         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30232         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30233         * m4/inttypes.m4 (gl_INTTYPES_H): Define
30234         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
30235         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
30236         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
30237         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
30238         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
30239         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
30240         * lib/float_.h: Likewise.
30241         * lib/inttypes_.h: Likewise.
30242         * lib/math_.h: Likewise.
30243         * lib/search_.h: Likewise.
30244         * lib/signal_.h: Likewise.
30245         * lib/stdint_.h: Likewise.
30246         * lib/stdio_.h: Likewise.
30247         * lib/stdlib_.h: Likewise.
30248         * lib/string_.h: Likewise.
30249         * lib/sys_stat_.h: Likewise.
30250         * lib/sys_time_.h: Likewise.
30251         * lib/time_.h: Likewise.
30252         * lib/unistd_.h: Likewise.
30253         * lib/wchar_.h: Likewise.
30254         * lib/wctype_.h: Likewise.
30255         * lib/dirent_.h: Likewise.
30256         * lib/iconv_.h: Likewise.
30257         * lib/locale_.h: Likewise.
30258         * lib/netinet_in_.h: Likewise.
30259         * lib/sys_select_.h: Likewise.
30260         * lib/sys_socket_.h: Likewise.
30261         * lib/sysexits_.h: Likewise.
30262         * modules/fcntl (Depends-on): Depend on include_next, not
30263         absolute_header.
30264         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
30265         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
30266         * modules/fchdir: Likewise.
30267         * modules/float: Likewise.
30268         * modules/iconv_open: Likewise.
30269         * modules/inttypes: Likewise.
30270         * modules/locale: Likewise.
30271         * modules/math: Likewise.
30272         * modules/netinet_in: Likewise.
30273         * modules/search: Likewise.
30274         * modules/signal: Likewise.
30275         * modules/stdint: Likewise.
30276         * modules/stdio: Likewise.
30277         * modules/stdlib: Likewise.
30278         * modules/string: Likewise.
30279         * modules/sys_select: Likewise.
30280         * modules/sys_socket: Likewise.
30281         * modules/sys_stat: Likewise.
30282         * modules/sys_time: Likewise.
30283         * modules/sysexits: Likewise.
30284         * modules/time: Likewise.
30285         * modules/unistd: Likewise.
30286         * modules/wchar: Likewise.
30287         * modules/wctype: Likewise.
30288         * modules/sys_stat: Change maintainer to "all".
30289         * modules/unistd: Likewise.
30290
30291 2007-06-20  Karl Berry  <karl@gnu.org>
30292
30293         * config/srclist.txt: track www changes in license files.
30294
30295 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
30296
30297         * build-aux/bootstrap: Remove stray dot.
30298         Make sure build_aux settings are honored when linking
30299         gnulib_extra_files.
30300
30301 2007-06-19  Eric Blake  <ebb9@byu.net>
30302
30303         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
30304         Allow compilation on cygwin.
30305
30306 2007-06-19  Jim Meyering  <jim@meyering.net>
30307
30308         xreadlink-with-size: Remove module.  No longer used.
30309         Ex-callers now use xreadlink or mreadlink-with-size.
30310         * modules/xreadlink-with-size: Remove module.
30311         * lib/xreadlink-with-size.c: Remove file.
30312         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
30313         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
30314         just before the function definition *is* accurate.
30315
30316         Eliminate one way canonicalize_filename_mode could exit.
30317         * lib/canonicalize.c (canonicalize_filename_mode):
30318         Use mreadlink_with_size, not xreadlink_with_size.
30319
30320 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
30321
30322         Detect porting problems to FreeBSD/arm, which has time_t wider than
30323         long int.  Original problem reported for GNU diff by Xin Li in
30324         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
30325         * modules/getdate (Depends-on): Add intprops, verify.
30326         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
30327         is an integer type no wider than long int.
30328
30329 2007-06-18  Jim Meyering  <jim@meyering.net>
30330
30331         New module: mreadlink-with-size.
30332         * MODULES.html.sh: Add mreadlink-with-size.
30333         * modules/mreadlink-with-size: New module
30334         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
30335         not xreadlink-with-size.
30336         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
30337
30338 2007-06-16  Bruno Haible  <bruno@clisp.org>
30339
30340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
30341         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
30342         Reported by Gary V. Vaughan <gary@gnu.org>.
30343
30344 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30345
30346         Revamp lchown so that it lives in unistd.h where it belongs.
30347         * lib/lchown.h: Remove.
30348         * lib/dirchownmod.c: Don't include lib/lchown.h.
30349         * lib/fchownat.c: Likewise.
30350         * lib/openat.c: Likewise.
30351         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
30352         does not follow symlinks.
30353         (EOPNOTSUPP): Define if not defined.
30354         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
30355         is defined to 0.
30356         (lchown): New decl.
30357         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
30358         Do not check for lchown decl.
30359         Set REPLACE_LCHOWN.
30360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
30361         REPLACE_LCHOWN.
30362         * modules/chown: Make it clear it follows symlinks.
30363         * modules/lchown: Make it clear it doesn't follow symlinks.
30364         (Files): Remove lib/lchown.h
30365         (Depends-on): Add unistd.
30366         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
30367         (Include): Include <unistd.h>, not "lchown.h".
30368         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
30369         REPLACE_LCHOWN.
30370
30371 2007-06-15  Jim Meyering  <jim@meyering.net>
30372
30373         Change license (GPL to LGPL) of fsusage and dependents.
30374         * modules/fsusage (License): Change to LGPL.
30375         * modules/full-read (License): Likewise.
30376         * modules/full-write (License): Likewise.
30377         * modules/safe-read (License): Likewise.
30378         * modules/safe-write (License): Likewise.
30379
30380 2007-06-14  Ben Pfaff  <blp@gnu.org>
30381
30382         Missing part of allocsa -> malloca transition.
30383         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
30384         gl_MALLOCA.
30385
30386 2007-06-12  Bruno Haible  <bruno@clisp.org>
30387
30388         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
30389         to ia64, x86_64, i386.
30390         Reported by Eric Blake.
30391
30392 2007-06-12  Bruno Haible  <bruno@clisp.org>
30393
30394         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
30395         cross-compiling to x86_64.
30396
30397 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
30398
30399         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
30400         glitch reported by Ralf Wildenhues in
30401         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
30402
30403         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
30404         Vin Shelton.
30405
30406 2007-06-11  Bruno Haible  <bruno@clisp.org>
30407
30408         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
30409         replacement string.
30410         Reported by Eric Blake.
30411
30412 2007-06-10  Bruno Haible  <bruno@clisp.org>
30413
30414         Prepare vasnprintf code for use with Unicode strings.
30415         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
30416         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
30417         TYPE_U32_STRING.
30418         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
30419         a_u32_string variants.
30420         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30421         * lib/printf-args.c: Don't include config.h and the specification
30422         header if PRINTF_FETCHARGS is already defined.
30423         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30424         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
30425         TYPE_U16_STRING, TYPE_U32_STRING.
30426         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
30427         u16_directive, u16_directives, u32_directive, u32_directives): New
30428         types.
30429         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
30430         New declarations.
30431         * lib/printf-parse.c: Don't include config.h and the specification
30432         header if PRINTF_PARSE is already defined. Eliminate the set of
30433         parameters for WIDE_CHAR_VERSION; the user of this file must provide
30434         them now. Include c-ctype.h.
30435         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
30436         directive and CHAR_T_ONLY_ASCII.
30437         * lib/vasnprintf.c: Don't include config.h and the specification header
30438         if VASNPRINTF is already defined.
30439         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
30440         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
30441         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
30442         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
30443         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
30444         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
30445         code accordingly.
30446         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
30447         pad_ourselves also in this case, with the 'c' and 's' directives, and
30448         with a different notion of "width".
30449         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
30450
30451 2007-06-10  Bruno Haible  <bruno@clisp.org>
30452
30453         * modules/unistr/u32-mbsnlen: New file.
30454         * lib/unistr/u32-mbsnlen.c: New file.
30455
30456         * modules/unistr/u16-mbsnlen: New file.
30457         * lib/unistr/u16-mbsnlen.c: New file.
30458
30459         * modules/unistr/u8-mbsnlen: New file.
30460         * lib/unistr/u8-mbsnlen.c: New file.
30461
30462         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
30463         declarations.
30464
30465 2007-06-10  Bruno Haible  <bruno@clisp.org>
30466
30467         * lib/string_.h (mbsnlen): New declaration.
30468         * lib/mbsnlen.c: New file.
30469         * m4/mbsnlen.m4: New file.
30470         * modules/mbsnlen: New file.
30471         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
30472         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
30473         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
30474
30475 2007-06-10  Bruno Haible  <bruno@clisp.org>
30476
30477         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
30478
30479 2007-06-10  Bruno Haible  <bruno@clisp.org>
30480
30481         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
30482         * lib/mbuiter.h: Likewise.
30483
30484 2007-06-10  Bruno Haible  <bruno@clisp.org>
30485
30486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
30487         declaration.
30488
30489 2007-06-10  Karl Berry  <karl@gnu.org>
30490
30491         * config/srclist.txt: remove gettext entries, Bruno prefers
30492         to update individually.
30493
30494 2007-06-10  Bruno Haible  <bruno@clisp.org>
30495
30496         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
30497         'maxlen'. Ensure only length + width bytes are allocated, not
30498         length + 1 + width.
30499
30500 2007-06-09  Bruno Haible  <bruno@clisp.org>
30501
30502         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
30503         (CHAR_T): Remove macro.
30504         (VASNPRINTF): Update.
30505
30506 2007-06-09  Bruno Haible  <bruno@clisp.org>
30507
30508         * MODULES.html.sh (Unicode string functions): Add the new modules.
30509
30510         * modules/uniconv/u32-conv-to-enc: New file.
30511         * lib/uniconv/u32-conv-to-enc.c: New file.
30512         * modules/uniconv/u32-conv-to-enc-tests: New file.
30513         * tests/uniconv/test-u32-conv-to-enc.c: New file.
30514
30515         * modules/uniconv/u16-conv-to-enc: New file.
30516         * lib/uniconv/u16-conv-to-enc.c: New file.
30517         * lib/uniconv/u-conv-to-enc.h: New file.
30518         * modules/uniconv/u16-conv-to-enc-tests: New file.
30519         * tests/uniconv/test-u16-conv-to-enc.c: New file.
30520
30521         * modules/uniconv/u8-conv-to-enc: New file.
30522         * lib/uniconv/u8-conv-to-enc.c: New file.
30523         * modules/uniconv/u8-conv-to-enc-tests: New file.
30524         * tests/uniconv/test-u8-conv-to-enc.c: New file.
30525
30526         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30527         u32_conv_to_encoding): New declarations.
30528
30529 2007-06-09  Bruno Haible  <bruno@clisp.org>
30530
30531         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
30532
30533 2007-06-09  Bruno Haible  <bruno@clisp.org>
30534
30535         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
30536         * modules/malloca: Renamed from modules/allocsa, updated.
30537         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
30538         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
30539         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
30540         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
30541         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
30542         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
30543         * modules/xmalloca: Renamed from modules/xallocsa, updated.
30544         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
30545         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
30546         * modules/c-strcasestr (Depends-on): Update.
30547         * lib/c-strcasestr.c: Update.
30548         * modules/c-strstr (Depends-on): Update.
30549         * lib/c-strstr.c: Update.
30550         * modules/canonicalize-lgpl (Depends-on): Update.
30551         * lib/canonicalize-lgpl.c: Update.
30552         * modules/clean-temp (Depends-on): Update.
30553         * lib/clean-temp.c: Update.
30554         * modules/csharpcomp (Depends-on): Update.
30555         * lib/csharpcomp.c: Update.
30556         * modules/csharpexec (Depends-on): Update.
30557         * lib/csharpexec.c: Update.
30558         * modules/javacomp (Depends-on): Update.
30559         * lib/javacomp.c: Update.
30560         * modules/javaexec (Depends-on): Update.
30561         * lib/javaexec.c: Update.
30562         * modules/mbscasestr (Depends-on): Update.
30563         * lib/mbscasestr.c: Update.
30564         * modules/mbsstr (Depends-on): Update.
30565         * lib/mbsstr.c: Update.
30566         * modules/setenv (Depends-on): Update.
30567         * lib/setenv.c: Update.
30568         * modules/strcasestr (Depends-on): Update.
30569         * lib/strcasestr.c: Update.
30570         * modules/striconveha (Depends-on): Update.
30571         * lib/striconveha.c: Update.
30572         * modules/relocatable-prog-wrapper (Files): Update.
30573         * lib/relocwrapper.c: Update.
30574         * build-aux/install-reloc: Update.
30575         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
30576
30577 2007-06-08  Bruno Haible  <bruno@clisp.org>
30578
30579         Port to uClibc.
30580         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
30581         * lib/fpurge.c (fpurge): Likewise.
30582         * lib/freading.c (freading): Likewise.
30583         * lib/fseeko.c (rpl_fseeko): Likewise.
30584         * lib/fseterr.c (fseterr): Likewise.
30585         * lib/fwriting.c (fwriting): Likewise.
30586         * tests/test-fflush.c (main): Avoid a failure on uClibc.
30587
30588 2007-06-08  Bruno Haible  <bruno@clisp.org>
30589
30590         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
30591         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
30592         * modules/gettext (Files): Add m4/intlmacosx.m4.
30593
30594 2007-06-07  Bruno Haible  <bruno@clisp.org>
30595
30596         * modules/localename-tests: New file.
30597         * tests/test-localename.c: New file.
30598
30599         New module 'localename'.
30600         * lib/localename.h: New file.
30601         * lib/localename.c: New file, from GNU gettext.
30602         * m4/localename.m4: New file.
30603         * modules/localename: New file.
30604
30605 2007-06-07  Bruno Haible  <bruno@clisp.org>
30606
30607         Work around the lack of <wchar.h> on some builds of uClibc.
30608         * doc/headers/wchar.texi: Update.
30609         * lib/wchar_.h: Include <wchar.h> only if it exists.
30610         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
30611         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
30612         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
30613         doesn't exist.
30614         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
30615         * modules/mbfile (Depends-on): Add wchar.
30616         * modules/mbiter (Depends-on): Likewise.
30617         * modules/mbuiter (Depends-on): Likewise.
30618         Reported by Simon Josefsson.
30619
30620 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30621
30622         Work around problem reported by Steven M. Schweda in
30623         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
30624         Tru64 5.1B with the Compaq compiler environment installed declares
30625         an 'isblank' function but does not define it in the C library.
30626         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
30627         * lib/regex_internal.h (isblank): Likewise.
30628         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
30629         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30630
30631 2007-06-05  Bruno Haible  <bruno@clisp.org>
30632
30633         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
30634         ia64.
30635         * modules/printf-safe: New file.
30636         * modules/fprintf-posix (Depends-on): Add printf-safe.
30637         * modules/printf-posix (Depends-on): Likewise.
30638         * modules/snprintf-posix (Depends-on): Likewise.
30639         * modules/sprintf-posix (Depends-on): Likewise.
30640         * modules/vasnprintf-posix (Depends-on): Likewise.
30641         * modules/vasprintf-posix (Depends-on): Likewise.
30642         * modules/vfprintf-posix (Depends-on): Likewise.
30643         * modules/vprintf-posix (Depends-on): Likewise.
30644         * modules/vsnprintf-posix (Depends-on): Likewise.
30645         * modules/vsprintf-posix (Depends-on): Likewise.
30646         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30647         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
30648         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
30649         "no" on i386, x86_64, ia64.
30650         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
30651         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30652         on i386, x86_64, ia64.
30653         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
30654         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30655         on i386, x86_64, ia64.
30656         * tests/test-vasnprintf-posix.c: Include float.h.
30657         (LDBL80_WORDS): New macro.
30658         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30659         on i386, x86_64, ia64.
30660         * tests/test-vasprintf-posix.c: Include float.h.
30661         (LDBL80_WORDS): New macro.
30662         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30663         on i386, x86_64, ia64.
30664         * tests/test-snprintf-posix.c: Include float.h.
30665         * tests/test-sprintf-posix.c: Likewise.
30666         * tests/test-vsnprintf-posix.c: Likewise.
30667         * tests/test-vsprintf-posix.c: Likewise.
30668
30669 2007-06-05  Bruno Haible  <bruno@clisp.org>
30670
30671         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
30672         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
30673         non-IEEE numbers on i386, x86_64, ia64.
30674         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
30675         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
30676         * tests/test-isnanl.h: Include float.h.
30677         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
30678
30679 2007-06-05  Bruno Haible  <bruno@clisp.org>
30680
30681         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
30682         also the %a / %A. Handle the %a / %A code before this extra handling.
30683
30684 2007-06-05  Bruno Haible  <bruno@clisp.org>
30685
30686         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
30687         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
30688
30689 2007-06-05  Bruno Haible  <bruno@clisp.org>
30690
30691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
30692         typo in variable name.
30693
30694 2007-06-05  Eric Blake  <ebb9@byu.net>
30695
30696         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
30697         Reported by Simon Josefsson.
30698
30699 2007-06-04  Bruno Haible  <bruno@clisp.org>
30700
30701         Avoid test failures on some PowerPC platforms.
30702         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
30703         Define differently for PowerPC.
30704         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
30705         Reported by Gary V. Vaughan <gary@gnu.org>.
30706
30707 2007-06-02  Bruno Haible  <bruno@clisp.org>
30708
30709         Fix test-stdint failure on FreeBSD/ia64.
30710         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
30711         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
30712         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
30713         * doc/headers/stdint.texi: Update.
30714
30715 2007-06-01  Bruno Haible  <bruno@clisp.org>
30716
30717         * tests/test-binary-io.c (main): Pass a third argument to open().
30718         Reported by Gary V. Vaughan <gary@gnu.org>.
30719
30720 2007-06-01  Bruno Haible  <bruno@clisp.org>
30721
30722         * doc/functions/frexpl.texi: Update for mingw.
30723
30724 2007-06-01  Bruno Haible  <bruno@clisp.org>
30725
30726         * tests/test-lseek.c (main): Disable test of errno for invalid third
30727         argument.
30728         * doc/functions/lseek.texi: Update.
30729         Reported by Gary V. Vaughan <gary@gnu.org>.
30730
30731 2007-05-28  Bruno Haible  <bruno@clisp.org>
30732
30733         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
30734
30735 2007-05-31  Eric Blake  <ebb9@byu.net>
30736
30737         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
30738         cross compiling.
30739
30740 2007-05-30  Eric Blake  <ebb9@byu.net>
30741         and Bruno Haible  <bruno@clisp.org>
30742
30743         Work around mingw test failures exposed by m4-1.4.9b.
30744         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
30745         * tests/test-unistd.c: Disable uid_t and git_t tests for the
30746         moment.
30747
30748 2007-05-30  Bruno Haible  <bruno@clisp.org>
30749
30750         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
30751         assuming that they are closed. Needed on HP-UX 11.
30752
30753 2007-05-29  Bruno Haible  <bruno@clisp.org>
30754
30755         Fix a problem with #include_next.
30756         * lib/dirent_.h: Split the double-inclusion guard.
30757         * lib/fcntl_.h: Likewise.
30758         * lib/float_.h: Likewise.
30759         * lib/iconv_.h: Likewise.
30760         * lib/inttypes_.h: Likewise.
30761         * lib/locale_.h: Likewise.
30762         * lib/math_.h: Likewise.
30763         * lib/netinet_in_.h: Likewise.
30764         * lib/search_.h: Likewise.
30765         * lib/signal_.h: Likewise.
30766         * lib/stdint_.h: Likewise.
30767         * lib/stdio_.h: Likewise.
30768         * lib/stdlib_.h: Likewise.
30769         * lib/string_.h: Likewise.
30770         * lib/sys_select_.h: Likewise.
30771         * lib/sys_socket_.h: Likewise.
30772         * lib/sys_stat_.h: Likewise.
30773         * lib/sys_time_.h: Likewise.
30774         * lib/sysexits_.h: Likewise.
30775         * lib/time_.h: Likewise.
30776         * lib/unistd_.h: Likewise.
30777         * lib/wchar_.h: Likewise.
30778         * lib/wctype_.h: Likewise.
30779
30780 2007-05-29  Bruno Haible  <bruno@clisp.org>
30781
30782         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
30783         for the moment.
30784
30785 2007-05-29  Bruno Haible  <bruno@clisp.org>
30786
30787         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
30788         invocation.
30789         Reported by Eric Blake.
30790
30791 2007-05-29  Bruno Haible  <bruno@clisp.org>
30792
30793         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
30794         compiling case.
30795
30796 2007-05-29  Eric Blake  <ebb9@byu.net>
30797             Bruno Haible  <bruno@clisp.org>
30798
30799         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
30800         cross compiles.
30801
30802 2007-05-28  Eric Blake  <ebb9@byu.net>
30803
30804         * modules/closein-tests (test_closein_LDADD): Support test on
30805         cygwin with libtool.
30806
30807 2007-05-28  Bruno Haible  <bruno@clisp.org>
30808
30809         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
30810         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30811         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30812         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30813         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30814         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30815         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30816         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30817         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30818
30819 2007-05-28  Eric Blake  <ebb9@byu.net>
30820
30821         Unconditionally include <config.h> in unit tests.
30822         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
30823         * tests/test-allocsa.c, tests/test-arcfour.c,
30824         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
30825         tests/test-array_list.c, tests/test-array_oset.c,
30826         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
30827         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
30828         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
30829         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
30830         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
30831         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
30832         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
30833         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
30834         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
30835         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
30836         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
30837         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
30838         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
30839         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
30840         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
30841         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
30842         test-md5.c, test-memmem.c, test-printf-posix.c,
30843         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
30844         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
30845         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
30846         test-strcasestr.c, test-striconv.c, test-striconveh.c,
30847         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
30848         test-vasnprintf-posix2.c, test-vasnprintf.c,
30849         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
30850         test-vfprintf-posix.c, test-vprintf-posix.c,
30851         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
30852         test-xvasprintf.c: Likewise.
30853
30854 2007-05-28  Bruno Haible  <bruno@clisp.org>
30855
30856         * gnulib-tool (func_import): Remember the --with-tests command-line
30857         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
30858         Reported by Eric Blake.
30859
30860 2007-05-28  Bruno Haible  <bruno@clisp.org>
30861
30862         * modules/ftell-tests: New file.
30863         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
30864         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
30865
30866         * lib/ftell.c: New file.
30867         * modules/ftell: New file.
30868         * m4/ftell.m4: New file.
30869         * doc/functions/ftell.texi: Update.
30870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
30871         REPLACE_FTELL.
30872         * lib/stdio_.h (rpl_ftell): New declaration.
30873         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
30874         REPLACE_FTELL.
30875
30876 2007-05-28  Eric Blake  <ebb9@byu.net>
30877
30878         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
30879
30880 2007-05-28  Bruno Haible  <bruno@clisp.org>
30881
30882         * modules/fseek-tests: New file.
30883         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
30884         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
30885
30886         * lib/fseek.c: New file.
30887         * modules/fseek: New file.
30888         * m4/fseek.m4: New file.
30889         * doc/functions/fseek.texi: Update.
30890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
30891         REPLACE_FSEEK.
30892         * lib/stdio_.h (rpl_fseek): New declaration.
30893         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
30894         REPLACE_FSEEK.
30895
30896 2007-05-28  Bruno Haible  <bruno@clisp.org>
30897
30898         * lib/stdio_.h (fflush): More comments.
30899
30900 2007-05-28  Bruno Haible  <bruno@clisp.org>
30901
30902         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
30903         runtime test.
30904
30905 2007-05-28  Eric Blake  <ebb9@byu.net>
30906
30907         Improve lseek module.
30908         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
30909         * lib/unistd_.h (lseek): Scale back link warning message.
30910         * tests/test-lseek.c: Beef up test.
30911         * tests/test-lseek.sh: Exercise more facets of lseek.
30912         Reported by Bruno Haible.
30913
30914 2007-05-28  Bruno Haible  <bruno@clisp.org>
30915
30916         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
30917         to define.
30918
30919 2007-05-27  Bruno Haible  <bruno@clisp.org>
30920
30921         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
30922
30923 2007-05-27  Bruno Haible  <bruno@clisp.org>
30924
30925         * modules/openmp: New file.
30926         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
30927         Noah Misch.
30928
30929 2007-05-26  Bruno Haible  <bruno@clisp.org>
30930
30931         * modules/chdir-long (Depends-on): Add fchdir.
30932         * modules/chdir-safer (Depends-on): Likewise.
30933         * modules/fts (Depends-on): Likewise.
30934         * modules/fts-lgpl (Depends-on): Likewise.
30935         * modules/openat (Depends-on): Likewise.
30936         * modules/savewd (Depends-on): Likewise.
30937
30938 2007-05-24  Eric Blake  <ebb9@byu.net>
30939
30940         Fix lseek on mingw.
30941         * modules/lseek: New module.
30942         * m4/lseek.m4: New file.
30943         * lib/lseek.c: New file.
30944         * modules/lseek-tests: New file.
30945         * tests/test-lseek.c: New file.
30946         * tests/test-lseek.sh: New file.
30947         * MODULES.html.sh: Document lseek module.
30948         * modules/fflush (Depends-on): Add lseek, fseeko.
30949         * modules/fseeko (Depends-on): Likewise.
30950         * modules/ftello (Depends-on): Likewise.
30951         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
30952         broken.
30953         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
30954         broken.
30955         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
30956         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
30957         * lib/ftello.c (rpl_ftello): Likewise.
30958         * tests/test-fseeko.c (main): Test this.
30959         * tests/test-fseeko.sh: Likewise.
30960         * tests/test-ftello.c (main): Likewise.
30961         * tests/test-ftello.sh: Likewise.
30962         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
30963         implies replacing fseek.
30964         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
30965         HAVE_FTELLO.
30966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
30967         * modules/unistd (Makefile.am): Likewise.
30968         * lib/unistd_.h (lseek): Declare a replacement.
30969         * doc/functions/lseek.texi (lseek): Document this fix.
30970         * doc/functions/fseek.texi (fseek): Likewise.
30971         * doc/functions/ftell.texi (ftell): Likewise.
30972
30973 2007-05-24  Bruno Haible  <bruno@clisp.org>
30974
30975         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
30976         in the printed representation of a NaN.
30977         * tests/test-vasprintf-posix.c (test_function): Likewise.
30978         * tests/test-snprintf-posix.h (test_function): Likewise.
30979         * tests/test-sprintf-posix.h (test_function): Likewise.
30980         Reported by Eric Blake.
30981
30982 2007-05-23  Eric Blake  <ebb9@byu.net>
30983
30984         Fix fseeko/ftello on cygwin 1.5.24.
30985         * doc/functions/fseeko.texi (fseeko): Document the fix.
30986         * doc/functions/ftello.texi (ftello): Document the fix.
30987         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
30988         * doc/functions/stdout.text (stdout): New file.
30989         * doc/functions/stderr.text (stderr): New file.
30990         * doc/gnulib.texi (Function Substitutes): Use new files.
30991         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
30992         prior to 1.7.0.
30993         * tests/test-ftello.c (main): Likewise for ftello.
30994         * tests/test-fseeko.sh: New file.
30995         * tests/test-ftello.sh: New file.
30996         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
30997         with seekable stdin.
30998         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
30999         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
31000         (gl_REPLACE_FSEEKO): New macro.
31001         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
31002         * modules/fseeko (Files): Distribute fseeko.c.
31003         * modules/ftello (Files): Distribute ftello.c.
31004         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
31005         mode.
31006         * lib/ftello.c (rpl_ftello): New file.
31007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
31008         fseeko, ftello.
31009         (gl_STDIN_LARGE_OFFSET): New macro.
31010         * modules/stdio (Makefile.am): Perform the replacement.
31011         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
31012
31013 2007-05-23  Bruno Haible  <bruno@clisp.org>
31014
31015         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
31016         GNULIB_POSIXCHECK is defined.
31017
31018 2007-05-21  Bruno Haible  <bruno@clisp.org>
31019
31020         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
31021         Check also the output for NaN arguments. When cross-compiling, guess
31022         no on IRIX.
31023         * lib/vasnprintf.c: Update comments.
31024         * tests/test-vasnprintf-posix.c (strisnan): New function.
31025         (test_function): Use it.
31026         * tests/test-vasprintf-posix.c (strisnan): New function.
31027         (test_function): Use it.
31028         * tests/test-snprintf-posix.h (strisnan): New function.
31029         (test_function): Use it.
31030         * tests/test-sprintf-posix.h (strisnan): New function.
31031         (test_function): Use it.
31032         Reported by Eric Blake.
31033
31034 2007-05-20  Bruno Haible  <bruno@clisp.org>
31035
31036         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
31037         numbers that fails on BeOS.
31038         * doc/functions/frexpl.texi: Update.
31039
31040 2007-05-20  Jim Meyering  <jim@meyering.net>
31041
31042         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
31043         forced upon us by glibc-2.6.
31044
31045 2007-05-20  Bruno Haible  <bruno@clisp.org>
31046
31047         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
31048         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
31049         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
31050         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
31051         NEED_PRINTF_INFINITE.
31052         (is_infinitel): New function.
31053         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
31054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
31055         gl_PREREQ_VASNPRINTF_INFINITE.
31056         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
31057         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31058         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
31059         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
31060         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
31061         gl_PREREQ_VASNPRINTF_INFINITE.
31062         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31063         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31064         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31065         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31066         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31067         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31068         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31069         * doc/functions/fprintf.texi: Update.
31070         * doc/functions/printf.texi: Update.
31071         * doc/functions/snprintf.texi: Update.
31072         * doc/functions/sprintf.texi: Update.
31073         * doc/functions/vfprintf.texi: Update.
31074         * doc/functions/vprintf.texi: Update.
31075         * doc/functions/vsnprintf.texi: Update.
31076         * doc/functions/vsprintf.texi: Update.
31077
31078 2007-05-20  Bruno Haible  <bruno@clisp.org>
31079
31080         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
31081         was not found in libc.
31082         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31083
31084 2007-05-20  Bruno Haible  <bruno@clisp.org>
31085
31086         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
31087         printed as "-nan" instead of "nan".
31088         * tests/test-vasprintf-posix.c (test_function): Likewise.
31089         * tests/test-snprintf-posix.h (test_function): Likewise.
31090         * tests/test-sprintf-posix.h (test_function): Likewise.
31091         Needed for HP-UX 11.
31092
31093 2007-05-20  Jim Meyering  <jim@meyering.net>
31094
31095         Fix buggy test for the fchownat-deref bug.
31096         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
31097         symlink required for the run-test.  Without it, this test would
31098         always declare that fchownat doesn't work, and client code would
31099         unnecessarily use the replacement function with fixed libc.
31100         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
31101         Reported by Greg Schafer.
31102
31103 2007-05-19  Bruno Haible  <bruno@clisp.org>
31104
31105         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
31106         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
31107         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
31108         Needed for IRIX 6.5 and Solaris 2.5.1.
31109
31110 2007-05-19  Bruno Haible  <bruno@clisp.org>
31111
31112         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
31113         (test_function): Skip tests involving -0.0 on platforms where
31114         -0.0 = 0.0.
31115         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
31116         (test_function): Skip tests involving -0.0 on platforms where
31117         -0.0 = 0.0.
31118         * tests/test-snprintf-posix.h (have_minus_zero): New function.
31119         (test_function): Skip tests involving -0.0 on platforms where
31120         -0.0 = 0.0.
31121         * tests/test-sprintf-posix.h (have_minus_zero): New function.
31122         (test_function): Skip tests involving -0.0 on platforms where
31123         -0.0 = 0.0.
31124         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
31125         tests.
31126         * tests/test-printf-posix.h (test_function): Likewise.
31127         * tests/test-printf-posix.output: Remove all -0.0 related results.
31128         Needed for IRIX 6.5.
31129
31130 2007-05-19  Bruno Haible  <bruno@clisp.org>
31131
31132         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
31133         printed as "nan0x7fffffff" instead of "nan".
31134         * tests/test-vasprintf-posix.c (test_function): Likewise.
31135         * tests/test-snprintf-posix.h (test_function): Likewise.
31136         * tests/test-sprintf-posix.h (test_function): Likewise.
31137         * tests/test-fprintf-posix.h (NaN): Remove macro.
31138         (test_function): Remove all NaN related tests.
31139         * tests/test-printf-posix.h (NaN): Remove macro.
31140         (test_function): Remove all NaN related tests.
31141         * tests/test-printf-posix.output: Remove all NaN related results.
31142         Needed for IRIX 6.5.
31143
31144 2007-05-19  Bruno Haible  <bruno@clisp.org>
31145
31146         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
31147         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31148
31149 2007-05-19  Bruno Haible  <bruno@clisp.org>
31150
31151         * lib/float_.h: New file.
31152         * m4/float_h.m4: New file.
31153         * modules/float: New file.
31154         * modules/isnanl (Dependencies): Add float.
31155         * modules/isnanl-nolibm (Dependencies): Likewise.
31156         * modules/mathl (Dependencies): Likewise.
31157         * modules/printf-frexpl (Dependencies): Likewise.
31158         * modules/signbit (Dependencies): Likewise.
31159         * modules/vasnprintf (Dependencies): Likewise.
31160         * doc/headers/float.texi: Update.
31161
31162 2007-05-19  Jim Meyering  <jim@meyering.net>
31163
31164         * lib/utimens.c (gl_futimens): Rename from futimens,
31165         now that glibc-2.6 declares futimens.
31166         * lib/utimens.h: Likewise.
31167
31168 2007-05-19  Bruno Haible  <bruno@clisp.org>
31169
31170         Avoid test failures on mingw.
31171         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
31172         * tests/test-printf-posix.sh: Likewise.
31173         * tests/test-vfprintf-posix.sh: Likewise.
31174         * tests/test-vprintf-posix.sh: Likewise.
31175
31176 2007-05-19  Bruno Haible  <bruno@clisp.org>
31177
31178         Fix *printf result for NaN, Inf, -0.0 on mingw.
31179         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
31180         * lib/vasnprintf.c: Include math.h and isnan.h.
31181         (is_infinite_or_zero): New function.
31182         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
31183         values in the %f, %F, %e, %E, %g, %G directives.
31184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
31185         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31186         gl_PRINTF_INFINITE and test its result. Invoke
31187         gl_PREREQ_VASNPRINTF_INFINITE.
31188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31189         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31190         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31191         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31192         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31194         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31195         * doc/functions/fprintf.texi: Update.
31196         * doc/functions/printf.texi: Update.
31197         * doc/functions/snprintf.texi: Update.
31198         * doc/functions/sprintf.texi: Update.
31199         * doc/functions/vfprintf.texi: Update.
31200         * doc/functions/vprintf.texi: Update.
31201         * doc/functions/vsnprintf.texi: Update.
31202         * doc/functions/vsprintf.texi: Update.
31203
31204 2007-05-19  Bruno Haible  <bruno@clisp.org>
31205
31206         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
31207         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
31208         Instead of multiplying with 10^k, set extra_zeroes to k.
31209         (scale10_round_long_double): Remove function.
31210
31211 2007-05-18  Bruno Haible  <bruno@clisp.org>
31212
31213         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
31214         introduced on 2007-05-06.
31215
31216 2007-05-18  Bruno Haible  <bruno@clisp.org>
31217
31218         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
31219         %g directives.
31220         * tests/test-vasprintf-posix.c (test_function): Likewise.
31221         * tests/test-snprintf-posix.h (test_function): Likewise.
31222         * tests/test-sprintf-posix.h (test_function): Likewise.
31223
31224 2007-05-18  Bruno Haible  <bruno@clisp.org>
31225
31226         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
31227         (strmatch): New function.
31228         (test_function): Test the %f directive on numbers of various exponents.
31229         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
31230         (strmatch): New function.
31231         (test_function): Test the %f directive on numbers of various exponents.
31232         * tests/test-snprintf-posix.h (strmatch): New function.
31233         (test_function): Test the %f directive on numbers of various exponents.
31234         * tests/test-sprintf-posix.h (strmatch): New function.
31235         (test_function): Test the %f directive on numbers of various exponents.
31236         * tests/test-snprintf-posix.c (SIZEOF): New macro.
31237         * tests/test-sprintf-posix.c (SIZEOF): New macro.
31238         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
31239         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
31240
31241 2007-05-18  Bruno Haible  <bruno@clisp.org>
31242
31243         Add support for 'long double' number output.
31244         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
31245         * lib/vasnprintf.c: Include math.h and float+.h.
31246         (mp_limb_t): New type.
31247         (GMP_LIMB_BITS): New macro.
31248         (mp_twolimb_t): New type.
31249         (GMP_TWOLIMB_BITS): New macro.
31250         (mpn_t): New type.
31251         (multiply, divide, convert_to_decimal, decode_long_double,
31252         scale10_round_long_double, scale10_round_decimal_long_double,
31253         floorlog10l): New functions.
31254         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
31255         for the %f, %F, %e, %E, %g, %G directives.
31256         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
31257         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31258         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
31259         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
31260         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31261         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31262         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31263         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31264         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31265         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31266         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31267         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
31268         * modules/snprintf-posix (Depends-on): Likewise.
31269         * modules/sprintf-posix (Depends-on): Likewise.
31270         * modules/vasnprintf-posix (Depends-on): Likewise.
31271         * modules/vasprintf-posix (Depends-on): Likewise.
31272         * modules/vfprintf-posix (Depends-on): Likewise.
31273         * modules/vsnprintf-posix (Depends-on): Likewise.
31274         * modules/vsprintf-posix (Depends-on): Likewise.
31275         * modules/vasnprintf (Files): Add lib/float+.h.
31276         * doc/functions/fprintf.texi: Update.
31277         * doc/functions/printf.texi: Update.
31278         * doc/functions/snprintf.texi: Update.
31279         * doc/functions/sprintf.texi: Update.
31280         * doc/functions/vfprintf.texi: Update.
31281         * doc/functions/vprintf.texi: Update.
31282         * doc/functions/vsnprintf.texi: Update.
31283         * doc/functions/vsprintf.texi: Update.
31284
31285 2007-05-18  Bruno Haible  <bruno@clisp.org>
31286
31287         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
31288
31289 2007-05-18  Bruno Haible  <bruno@clisp.org>
31290
31291         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
31292         for printing 64-bit integers. Needed for mingw.
31293
31294 2007-05-18  Bruno Haible  <bruno@clisp.org>
31295
31296         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
31297         gl_FUNC_FREXPL_WORKS.
31298         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
31299
31300 2007-05-18  Bruno Haible  <bruno@clisp.org>
31301
31302         * modules/frexpl-nolibm-tests: New file.
31303
31304         * modules/frexpl-nolibm: New file.
31305         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
31306
31307 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31308
31309         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
31310         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
31311         GCC 4.2, which otherwise issues a lot of warnings.
31312         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
31313         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
31314         Likewise.
31315         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
31316         * modules/iconv_open (iconv.h): Likewise.
31317         * modules/locale (locale.h): Likewise.
31318         * modules/netinet_in (netinet/in.h): Likewise.
31319         * modules/sys_select (sys_select.h): Likewise.
31320         * modules/sys_socket (sys/socket.h): Likewise.
31321         * modules/sys_stat (sys/stat.h): Likewise.
31322         * modules/sysexits (sysexits.h): Likewise.
31323         * modules/unistd (unistd.h): Likewise.
31324
31325 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31326
31327         * modules/closein-tests (Makefile.am): Distribute
31328         `test-closein.sh'.
31329
31330 2007-05-17  Bruno Haible  <bruno@clisp.org>
31331
31332         * tests/test-printf-posix.output: Renamed from
31333         tests/test-fprintf-posix.out.
31334         * modules/fprintf-posix-tests: Update.
31335         * modules/printf-posix-tests: Update.
31336         * modules/vfprintf-posix-tests: Update.
31337         * modules/vprintf-posix-tests: Update.
31338         * tests/test-fprintf-posix.sh: Update.
31339         * tests/test-printf-posix.sh: Update.
31340         * tests/test-vfprintf-posix.sh: Update.
31341         * tests/test-vprintf-posix.sh: Update.
31342         Reported by Ralf Wildenhues.
31343
31344 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31345
31346         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
31347         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
31348         GCC 4.2, which otherwise issues a lot of warnings.
31349         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
31350         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
31351         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
31352         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
31353         it should no longer be needed.
31354         * lib/string_.h: Likewise.
31355         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
31356         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
31357         * modules/inttypes (inttypes.h): Likewise.
31358         * modules/math (math.h): Likewise.
31359         * modules/search (search.h): Likewise.
31360         * modules/signal (signal.h): Likewise.
31361         * modules/stdint (stdint.h): Likewise.
31362         * modules/stdio (stdio.h): Likewise.
31363         * modules/stdlib (stdlib.h): Likewise.
31364         * modules/string (string.h): Likewise.
31365         * modules/sys_time (sys/time.h): Likewise.
31366         * modules/time (time.h): Likewise.
31367         * modules/wchar (wchar.h): Likewise.
31368         * modules/wctype (wtype.h): Likewise.
31369
31370 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31371
31372         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
31373
31374 2007-05-13  Bruno Haible  <bruno@clisp.org>
31375
31376         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
31377         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31378         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
31379         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
31380         (gl_PREREQ_STRTOK_R): Don't require it here.
31381
31382 2007-05-13  Bruno Haible  <bruno@clisp.org>
31383
31384         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
31385         when used in C++ mode.
31386
31387 2007-05-12  Bruno Haible  <bruno@clisp.org>
31388
31389         * lib/linebuffer.h: Tweak doc.
31390         * lib/linebuffer.c: Likewise.
31391
31392 2007-05-12  James Youngman  <jay@gnu.org>
31393
31394         * lib/linebuffer.c (readlinebuffer_delim): New function,
31395         like readlinebuffer, but use a caller-specified delimiter.
31396         (readlinebuffer): Just call readlinebuffer_delim with '\n'
31397         as the delimiter.
31398         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
31399
31400 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31401
31402         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
31403         * modules/openat (Files): Remove openat-die.c.
31404         (Depends-on): Add openat-die.
31405         * modules/openat-die: New module.
31406
31407 2007-05-06  Bruno Haible  <bruno@clisp.org>
31408
31409         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
31410         Update with info about Cygwin.
31411         * doc/functions/fprintf.texi: Update.
31412         * doc/functions/printf.texi: Update.
31413         * doc/functions/snprintf.texi: Update.
31414         * doc/functions/sprintf.texi: Update.
31415         * doc/functions/vfprintf.texi: Update.
31416         * doc/functions/vprintf.texi: Update.
31417         * doc/functions/vsnprintf.texi: Update.
31418         * doc/functions/vsprintf.texi: Update.
31419         Reported by Eric Blake.
31420
31421 2007-05-06  Bruno Haible  <bruno@clisp.org>
31422
31423         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
31424         padding ourselves for the floating-point directives.
31425         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
31426         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
31427         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31428         gl_PRINTF_FLAG_ZERO and test its result. Invoke
31429         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
31430         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31431         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31432         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31433         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31434         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31435         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31436         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31437         * tests/test-snprintf-posix.h (test_function): Also check the width
31438         and some flags in the %f directive.
31439         * tests/test-sprintf-posix.h (test_function): Likewise.
31440         * tests/test-vasnprintf-posix.c (test_function): Likewise.
31441         * tests/test-vasprintf-posix.c (test_function): Likewise.
31442         * doc/functions/fprintf.texi: Update.
31443         * doc/functions/printf.texi: Update.
31444         * doc/functions/snprintf.texi: Update.
31445         * doc/functions/sprintf.texi: Update.
31446         * doc/functions/vfprintf.texi: Update.
31447         * doc/functions/vprintf.texi: Update.
31448         * doc/functions/vsnprintf.texi: Update.
31449         * doc/functions/vsprintf.texi: Update.
31450
31451 2007-05-06  Bruno Haible  <bruno@clisp.org>
31452
31453         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
31454         pass the ' flag character to sprintf or snprintf.
31455         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
31456         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
31457         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31458         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
31459         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
31460         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31461         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31462         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31463         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31464         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31466         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31467         * tests/test-snprintf-posix.h (test_function): Also check the grouping
31468         flag.
31469         * tests/test-sprintf-posix.h (test_function): Likewise.
31470         * tests/test-vasnprintf-posix.c (test_function): Likewise.
31471         * tests/test-vasprintf-posix.c (test_function): Likewise.
31472         * doc/functions/fprintf.texi: Update.
31473         * doc/functions/printf.texi: Update.
31474         * doc/functions/snprintf.texi: Update.
31475         * doc/functions/sprintf.texi: Update.
31476         * doc/functions/vfprintf.texi: Update.
31477         * doc/functions/vprintf.texi: Update.
31478         * doc/functions/vsnprintf.texi: Update.
31479         * doc/functions/vsprintf.texi: Update.
31480
31481 2007-05-01  Bruno Haible  <bruno@clisp.org>
31482
31483         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
31484
31485 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
31486
31487         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
31488         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
31489
31490 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
31491
31492         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
31493         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
31494         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
31495
31496 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
31497
31498         * lib/argp-help.c (struct hol_entry): New member `ord'.
31499         (HOL_ENTRY_PTRCMP): Use ord for comparison
31500         (hol_sort): Initialize ord.
31501
31502 2007-05-01  Bruno Haible  <bruno@clisp.org>
31503
31504         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
31505         Reported by Eric Blake.
31506         * doc/gnulib.texi (Function Substitutes): Update.
31507
31508 2007-05-01  Bruno Haible  <bruno@clisp.org>
31509
31510         * doc/functions.texi: Remove file, now redundant through
31511         doc/functions/*.texi.
31512
31513 2007-05-01  Bruno Haible  <bruno@clisp.org>
31514
31515         * modules/argp (Depends-on): Add sleep.
31516
31517 2007-05-01  Bruno Haible  <bruno@clisp.org>
31518
31519         * modules/sleep-tests: New file.
31520         * tests/test-sleep.c: New file.
31521
31522         * modules/sleep: New file.
31523         * lib/sleep.c: New file.
31524         * m4/sleep.m4: New file.
31525         * lib/unistd_.h (sleep): New declaration.
31526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
31527         HAVE_SLEEP.
31528         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
31529         * doc/functions/sleep.texi: Document the sleep module.
31530
31531 2007-05-01  Bruno Haible  <bruno@clisp.org>
31532
31533         * lib/sigprocmask.h: Remove file.
31534         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
31535         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
31536         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
31537         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
31538         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
31539         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
31540         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
31541         HAVE_SIGSET_T as a shell variable.
31542         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
31543         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
31544         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
31545         (Depends-on): Add signal. Remove verify.
31546         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
31547         (Include): Mention <signal.h> instead of sigprocmask.h.
31548         * NEWS: Mention the change.
31549         * lib/fatal-signal.c: Don't include sigprocmask.h.
31550
31551 2007-05-01  Bruno Haible  <bruno@clisp.org>
31552
31553         * modules/signal: New file.
31554         * lib/signal_.h: New file.
31555         * m4/signal_h.m4: New file.
31556
31557 2007-05-01  Bruno Haible  <bruno@clisp.org>
31558
31559         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
31560         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
31561         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
31562         HAVE_WCTYPE_CTMP_BUG into wctype.h.
31563
31564 2007-05-01  Bruno Haible  <bruno@clisp.org>
31565
31566         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
31567         configure time.
31568         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
31569         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
31570         * modules/sys_stat (Makefile.am): Substitute their values into
31571         sys/stat.h.
31572
31573 2007-05-01  Bruno Haible  <bruno@clisp.org>
31574
31575         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
31576         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
31577         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
31578
31579 2007-05-01  Bruno Haible  <bruno@clisp.org>
31580
31581         * doc/header/assert.texi: Undo last change: don't mention the gnulib
31582         'assert' module here.
31583
31584 2007-05-01  Bruno Haible  <bruno@clisp.org>
31585
31586         * doc/functions/*.texi: New files.
31587         * doc/functions/google-ranking.txt: New file.
31588         * doc/gnulib.texi (Function Substitutes): New chapter.
31589         (ctime, inet_ntoa): Remove sections.
31590         * doc/ctime.texi: Remove file.
31591         * doc/inet_ntoa.texi: Remove file.
31592         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
31593         dependencies.
31594         (%.info): New rule, specifying a --reference-limit.
31595
31596 2007-05-01  Bruno Haible  <bruno@clisp.org>
31597
31598         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
31599
31600 2007-05-01  Bruno Haible  <bruno@clisp.org>
31601
31602         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
31603         the portability of 'mkdir' to mingw systems.
31604
31605 2007-05-01  Bruno Haible  <bruno@clisp.org>
31606
31607         * doc/headers/google-ranking.txt: New file.
31608
31609 2007-04-30  Eric Blake  <ebb9@byu.net>
31610
31611         Prefer fseeko to fseek.
31612         * modules/getpass (Depends-on): Add fseeko.
31613         * lib/getpass.c (getpass): Use fseeko, not fseek.
31614
31615 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
31616
31617         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
31618         assumes the sorting is stable, while most qsort implementations
31619         are not.  Use argument addresses to ensure they never compare as
31620         equal.
31621
31622         * tests/test-argp-2.sh (usage-indent test): Fix output
31623         (func_compare): Restore diff options
31624         * tests/test-argp.c: Restore #include "progname.h"
31625
31626 2007-04-29  Bruno Haible  <bruno@clisp.org>
31627
31628         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
31629         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31630         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
31631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31632         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
31633         (configure.ac): Define CHECK_SNPRINTF_POSIX.
31634         (TESTS, check_PROGRAMS): Add test-snprintf.
31635         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
31636         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
31637         (TESTS, check_PROGRAMS): Add test-vsnprintf.
31638         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
31639         assertions that fail on HP-UX, OSF/1, or IRIX.
31640         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
31641
31642 2007-04-29  Bruno Haible  <bruno@clisp.org>
31643
31644         * MODULES.html.sh (posix_functions): Remove 'contents'.
31645
31646 2007-04-29  Karl Berry  <karl@gnu.org>
31647
31648         * config/srclist.txt (gendocs_template_min): new entry.
31649
31650 2007-04-29  Bruno Haible  <bruno@clisp.org>
31651
31652         Work around fpurge bug on BSD systems.
31653         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
31654         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
31655         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
31656         fpurge to rpl_fpurge if the system already has this function.
31657         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
31658         the case where the system already has this function. Correct invariants
31659         on BSD systems.
31660         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
31661         BSD systems.
31662
31663 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31664
31665         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
31666         proposed by Sven Verdoolaege.
31667
31668         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
31669         options.
31670         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
31671         (usage and help tests): Update
31672
31673 2007-04-29  Bruno Haible  <bruno@clisp.org>
31674
31675         * tests/test-fflush.c (main): Use a file of size 17, not 10.
31676         Print more information in case of failure. Disable a test on BeOS.
31677
31678 2007-04-29  Bruno Haible  <bruno@clisp.org>
31679
31680         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
31681         This helps debugging on systems on which no gdb is available.
31682
31683 2007-04-29  Bruno Haible  <bruno@clisp.org>
31684
31685         * lib/freading.h: Improve comments.
31686         * lib/fwriting.h: Likewise.
31687         * tests/test-freading.c (main): Don't check freading immediately after
31688         repositioning. Needed for glibc.
31689
31690 2007-04-29  Bruno Haible  <bruno@clisp.org>
31691
31692         * lib/freading.c (freading): Trivial simplification.
31693
31694 2007-04-28  Bruno Haible  <bruno@clisp.org>
31695
31696         * tests/test-fwriting.c (main): Also test the interaction between
31697         fflush and fwriting.
31698         * modules/fwriting-tests (Depends-on): Add fflush.
31699
31700         * tests/test-freading.c (main): Also test the interaction between
31701         fflush and freading.
31702         * modules/freading-tests (Depends-on): Add fflush.
31703
31704 2007-04-28  Bruno Haible  <bruno@clisp.org>
31705
31706         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
31707         fseeko and ftello.
31708         Suggested by Eric Blake.
31709
31710 2007-04-28  Jim Meyering  <jim@meyering.net>
31711
31712         Avoid false-negative in gl_STDINT_H's C99 conformance test.
31713         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
31714         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
31715
31716 2007-04-27  Eric Blake  <ebb9@byu.net>
31717
31718         * doc/headers/assert.texi (assert.h): Document assert module use.
31719
31720 2007-04-27  Bruno Haible  <bruno@clisp.org>
31721
31722         * doc/headers/*.texi: New files.
31723         * doc/gnulib.texi (Header File Substitutes): New chapter.
31724         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
31725         dependencies.
31726         (standards.info ,standards.html, standards.dvi): Update dependencies.
31727         (mostlyclean, clean): New targets.
31728
31729 2007-04-27  Bruno Haible  <bruno@clisp.org>
31730
31731         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
31732         * modules/sysexits (Files, Makefile.am): Update.
31733
31734         * lib/sys_socket_.h: Renamed from lib/socket_.h.
31735         * modules/sys_socket (Files, Makefile.am): Update.
31736
31737         * lib/sys_stat_.h: Renamed from lib/stat_.h.
31738         * modules/sys_stat (Files, Makefile.am): Update.
31739
31740 2007-04-27  Eric Blake  <ebb9@byu.net>
31741
31742         * lib/freading.h: Improve comments.
31743         * lib/fwriting.h: Likewise.
31744         * lib/fflush.c: Likewise.
31745
31746         Fix closein for mingw.
31747         * modules/closein-tests: Add tests for closein.
31748         * tests/test-closein.c: New file.
31749         * tests/test-closein.sh: Likewise.
31750         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
31751         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
31752
31753 2007-04-27  Bruno Haible  <bruno@clisp.org>
31754
31755         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
31756         version is < 6.
31757         * lib/math_.h [__DECC]: Likewise.
31758         * lib/stdio_.h [__DECC]: Likewise.
31759         * lib/stdlib_.h [__DECC]: Likewise.
31760         * lib/string_.h [__DECC]: Likewise.
31761         * lib/time_.h [__DECC]: Likewise.
31762         * lib/wchar_.h [__DECC]: Likewise.
31763         * lib/wctype_.h [__DECC]: Likewise.
31764
31765 2007-04-27  Bruno Haible  <bruno@clisp.org>
31766
31767         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
31768
31769 2007-04-27  Bruno Haible  <bruno@clisp.org>
31770
31771         * lib/fflush.c: Add comments.
31772         * modules/fpurge-tests (Depends-on): Add fflush.
31773         * modules/freadable-tests (Depends-on): Likewise.
31774         * modules/fwritable-tests (Depends-on): Likewise.
31775
31776 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
31777
31778         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
31779         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
31780         Report by Bruno Haible <bruno@clisp.org>.
31781
31782 2007-04-26  Eric Blake  <ebb9@byu.net>
31783
31784         Fix fflush on mingw.
31785         * modules/fflush (Depends-on): Add freading.
31786         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
31787         but unread data.
31788
31789 2007-04-26  Eric Blake  <ebb9@byu.net>
31790         and Bruno Haible  <bruno@clisp.org>
31791
31792         Implement freading and fwriting.
31793         * lib/freading.c: New file.
31794         * lib/freading.h: Likewise.
31795         * m4/freading.m4: Likewise.
31796         * modules/freading: Likewise.
31797         * modules/freading-tests: Likewise.
31798         * tests/test-freading.c: Likewise.
31799         * lib/fwriting.c: New file.
31800         * lib/fwriting.h: Likewise.
31801         * m4/fwriting.m4: Likewise.
31802         * modules/fwriting: Likewise.
31803         * modules/fwriting-tests: Likewise.
31804         * tests/test-fwriting.c: Likewise.
31805         * MODULES.html.sh (File stream based Input/Output): Mention them.
31806
31807 2007-04-26  Bruno Haible  <bruno@clisp.org>
31808
31809         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
31810         'long' when we assume it.
31811         Suggested by Eric Blake.
31812
31813 2007-04-26  Bruno Haible  <bruno@clisp.org>
31814
31815         Ensure fseeko, ftello are declared on glibc systems.
31816         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
31817         * modules/fseeko (configure.ac-early): Likewise.
31818         * modules/ftello (configure.ac-early): Likewise.
31819         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
31820         AC_FUNC_FSEEKO for this.
31821         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
31822         (gl_CHECK_FSEEKO): Remove macro.
31823
31824 2007-04-26  Bruno Haible  <bruno@clisp.org>
31825
31826         * tests/test-fflush.c (main): Also check the ftell result after
31827         fflush and fseek/fseeko.
31828         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
31829         file descriptor position cache in the stream.
31830         * lib/fseeko.c (rpl_fseeko): Likewise.
31831
31832 2007-04-26  Bruno Haible  <bruno@clisp.org>
31833
31834         * modules/fflush-tests (Depends-on): Add fseeko.
31835
31836 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
31837             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31838
31839         * lib/argz_.h: ensure error_t definition is obtained in same
31840         mechanism system argz.h would have.
31841         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
31842         argz facilities are known bad.  Err on the side of caution if
31843         cross-compiling.
31844
31845 2007-04-25  Eric Blake  <ebb9@byu.net>
31846
31847         * lib/fpurge.c (includes): Use stdlib.h for free.
31848         * tests/test-fflush.c (main): Also test fflush-fseeko.
31849
31850 2007-04-25  Bruno Haible  <bruno@clisp.org>
31851
31852         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
31853         * lib/fseeko.c: New file.
31854         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
31855         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
31856         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
31857         gl_FUNC_FSEEKO.
31858         (gl_FUNC_FSEEKO): Invoke it.
31859         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
31860         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
31861         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
31862
31863 2007-04-25  Bruno Haible  <bruno@clisp.org>
31864
31865         * modules/fflush (Depends-on): Add ftello.
31866
31867 2007-04-25  Bruno Haible  <bruno@clisp.org>
31868
31869         * modules/ftello-tests: New file.
31870         * tests/test-ftello.c: New file.
31871
31872         * modules/ftello: New file.
31873         * m4/ftello.m4: New file.
31874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
31875         HAVE_FTELLO.
31876         * lib/stdio_.h (ftello): New declaration.
31877         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
31878         HAVE_FTELLO.
31879
31880 2007-04-25  Bruno Haible  <bruno@clisp.org>
31881
31882         * modules/fseeko-tests: New file.
31883         * tests/test-fseeko.c: New file.
31884
31885         * modules/fseeko: New file.
31886         * m4/fseeko.m4: New file.
31887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
31888         HAVE_FSEEKO.
31889         * lib/stdio_.h (fseeko): New declaration.
31890         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
31891         HAVE_FSEEKO.
31892
31893 2007-04-25  Bruno Haible  <bruno@clisp.org>
31894
31895         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
31896
31897 2007-04-25  Bruno Haible  <bruno@clisp.org>
31898
31899         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
31900         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
31901         * tests/test-unistd.c: Likewise.
31902         * tests/test-fcntl.c: Likewise.
31903
31904 2007-04-23  Eric Blake  <ebb9@byu.net>
31905
31906         * lib/fflush.c: Fix missing include.
31907         Reported by Bruno Haible.
31908
31909 2007-04-23  Bruno Haible  <bruno@clisp.org>
31910
31911         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
31912         Reported by Eric Blake.
31913
31914 2007-04-23  Bruno Haible  <bruno@clisp.org>
31915
31916         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
31917
31918 2007-04-23  Bruno Haible  <bruno@clisp.org>
31919
31920         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
31921
31922 2007-04-23  Bruno Haible  <bruno@clisp.org>
31923
31924         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
31925         Needed on HP-UX 11.
31926
31927 2007-04-16  Eric Blake  <ebb9@byu.net>
31928
31929         Make fflush rely on fpurge.
31930         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
31931         open coding all variants.
31932         * modules/fflush (Depends-on): Add fpurge and unistd.
31933         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
31934         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
31935
31936         Fix --with-tests compilation on cygwin.
31937         * modules/argmatch-tests (Makefile.am): List gnulib library first
31938         in LDADD.
31939         * modules/argp-tests (Makefile.am): Likewise.
31940         * modules/array-list-tests (Makefile.am): Likewise.
31941         * modules/array-oset-tests (Makefile.am): Likewise.
31942         * modules/avltree-list-tests (Makefile.am): Likewise.
31943         * modules/avltree-oset-tests (Makefile.am): Likewise.
31944         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31945         * modules/carray-list-tests (Makefile.am): Likewise.
31946         * modules/dirname-tests (Makefile.am): Likewise.
31947         * modules/frexp-tests (Makefile.am): Likewise.
31948         * modules/isnanl-tests (Makefile.am): Likewise.
31949         * modules/linked-list-tests (Makefile.am): Likewise.
31950         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31951         * modules/lock-tests (Makefile.am): Likewise.
31952         * modules/rbtree-list-tests (Makefile.am): Likewise.
31953         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31954         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31955         * modules/tls-tests (Makefile.am): Likewise.
31956         * modules/tsearch-tests (Makefile.am): Likewise.
31957         * modules/xvasprintf-tests (Makefile.am): Likewise.
31958
31959         Fix fpurge for cygwin.
31960         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
31961         value.
31962         * modules/fpurge-tests (Depends-on): Clean up trash.
31963
31964 2007-04-16  Simon Josefsson  <simon@josefsson.org>
31965
31966         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
31967
31968         * m4/autobuild.m4: Re-indent.
31969
31970 2007-04-13  Bruno Haible  <bruno@clisp.org>
31971
31972         * modules/fpurge-tests: New file.
31973         * tests/test-fpurge.c: New file.
31974
31975         * modules/fpurge: New file.
31976         * lib/fpurge.h: New file.
31977         * lib/fpurge.c: New file.
31978         * m4/fpurge.m4: New file.
31979
31980 2007-04-13  Bruno Haible  <bruno@clisp.org>
31981
31982         * modules/fbufmode-tests: New file.
31983         * tests/test-fbufmode.c: New file.
31984
31985         * modules/fbufmode: New file.
31986         * lib/fbufmode.h: New file.
31987         * lib/fbufmode.c: New file.
31988         * m4/fbufmode.m4: New file.
31989
31990 2007-04-13  Bruno Haible  <bruno@clisp.org>
31991
31992         * modules/fwritable-tests: New file.
31993         * tests/test-fwritable.c: New file.
31994
31995         * modules/fwritable: New file.
31996         * lib/fwritable.h: New file.
31997         * lib/fwritable.c: New file.
31998         * m4/fwritable.m4: New file.
31999
32000 2007-04-13  Bruno Haible  <bruno@clisp.org>
32001
32002         * modules/freadable-tests: New file.
32003         * tests/test-freadable.c: New file.
32004
32005         * modules/freadable: New file.
32006         * lib/freadable.h: New file.
32007         * lib/freadable.c: New file.
32008         * m4/freadable.m4: New file.
32009
32010 2007-04-13  Bruno Haible  <bruno@clisp.org>
32011
32012         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
32013         MOSTLYCLEANFILES.
32014
32015 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
32016
32017         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
32018         gzip bootstrap.conf to avoid dragging in i18n machinery.
32019         (gnulib_tool_option): Use it.
32020
32021 2007-04-13  Bruno Haible  <bruno@clisp.org>
32022
32023         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
32024         %F directives.
32025         * tests/test-vasprintf-posix.c (test_function): Likewise.
32026         * tests/test-snprintf-posix.h (test_function): Likewise.
32027         * tests/test-sprintf-posix.h (test_function): Likewise.
32028         * tests/test-fprintf-posix.h (test_function): Likewise.
32029         * tests/test-printf-posix.h (test_function): Likewise.
32030         * tests/test-fprintf-posix.out: Likewise.
32031
32032 2007-04-13  Bruno Haible  <bruno@clisp.org>
32033
32034         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
32035         * modules/tls-tests (configure.ac): Likewise.
32036         Reported by Arto C. Nirkko <anirkko@insel.ch>.
32037
32038 2007-04-13  Bruno Haible  <bruno@clisp.org>
32039
32040         * lib/tls.c (glthread_tls_get): Fix return type.
32041         Patch by Arto C. Nirkko <anirkko@insel.ch>.
32042
32043 2007-04-12  Eric Blake  <ebb9@byu.net>
32044
32045         * modules/gettime (Depends-on): Remove gettime.
32046         Reported by Dmitry V. Levin.
32047
32048 2007-04-12  Bruno Haible  <bruno@clisp.org>
32049
32050         * modules/fflush (Include): Mention <stdio.h>.
32051         * modules/strtoimax (Include): Mention <inttypes.h>.
32052         * modules/strtoumax (Include): Likewise.
32053
32054 2007-04-12  Eric Blake  <ebb9@byu.net>
32055
32056         * .cvsignore: New file.
32057         * .gitignore: Likewise.
32058
32059 2007-04-12  Bruno Haible  <bruno@clisp.org>
32060
32061         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
32062         not before, since $(LDADD) often contains libgnu.a.
32063         * modules/striconv-tests (test_striconv_LDADD): Likewise.
32064         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
32065         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
32066         Needed on Cygwin.
32067
32068 2007-04-12  Eric Blake  <ebb9@byu.net>
32069
32070         Work around glibc's failure to flush stdin on fclose.
32071         * lib/closein.c (close_stdin): Flush stdin before closing.
32072
32073         Work around glibc's failure to reset seekable stdin on exit.
32074         * modules/closein: New module.
32075         * lib/closein.c: New file.
32076         * lib/closein.h: Likewise.
32077         * m4/closein.m4: Likewise.
32078         * MODULES.html.sh (File stream based Input/Output): Document it.
32079
32080 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32081
32082         * gnulib-tool: Rename generated 'autobuild' script to
32083         'do-autobuild' in --create-megatestdir output.
32084
32085         * doc/gnulib.texi (Build robot for gnulib): Fix.
32086
32087 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32088
32089         * modules/sysexits (Depends-on): Add absolute-header.
32090
32091 2007-04-12  Eric Blake  <ebb9@byu.net>
32092
32093         No need to preserve errno on success.
32094         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
32095         Reported by Bruno Haible.
32096
32097 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32098
32099         * MODULES.html.sh (Support for maintaining and releasing
32100         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
32101
32102 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32103
32104         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
32105
32106 2007-04-12  Simon Josefsson  <simon@josefsson.org>
32107
32108         * modules/autobuild: New module.
32109
32110         * m4/autobuild.m4: New file.
32111
32112 2007-04-11  Bruno Haible  <bruno@clisp.org>
32113
32114         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
32115         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
32116         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
32117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
32118         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32119         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32120         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32121         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32122         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32123         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32124         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
32125         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32126         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32127         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
32128         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32129         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32130         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
32131         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32132         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32133         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
32134         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32135         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32136         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
32137         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32138         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32139         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
32140         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
32141         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
32142         Reported by Eric Blake.
32143
32144 2007-04-11  Bruno Haible  <bruno@clisp.org>
32145
32146         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
32147
32148 2007-04-10  Bruno Haible  <bruno@clisp.org>
32149
32150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
32151         for NaN and Infinity. Needed on FreeBSD 6.1.
32152         * tests/test-vasnprintf-posix.c (test_function): Undo last change
32153         regarding results for "%010a" of Infinity and NaN.
32154         * tests/test-vasprintf-posix.c (test_function): Likewise.
32155         * tests/test-snprintf-posix.h (test_function): Likewise.
32156         * tests/test-sprintf-posix.h (test_function): Likewise.
32157         * tests/test-fprintf-posix.h (test_function): Likewise.
32158         * tests/test-printf-posix.h (test_function): Likewise.
32159         * tests/test-fprintf-posix.out: Likewise.
32160
32161 2007-04-10  Bruno Haible  <bruno@clisp.org>
32162
32163         * modules/locale-tests: New file.
32164         * tests/test-locale.c: New file.
32165
32166         * modules/locale: New file.
32167         * lib/locale_.h: New file.
32168         * m4/locale_h.m4: New file.
32169
32170 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
32171             Bruno Haible  <bruno@clisp.org>
32172
32173         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
32174         be determined, test for availability of the copysignf, copysign,
32175         copysignl functions.
32176         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
32177         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
32178         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
32179
32180 2007-04-09  Eric Blake  <ebb9@byu.net>
32181
32182         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
32183         * modules/stdio (Makefile.am): Support fflush.
32184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32185         * modules/fflush: New file.
32186         * lib/fflush.c: Likewise.
32187         * m4/fflush.m4: Likewise.
32188         * modules/fflush-tests: New test.
32189         * tests/test-fflush.c: Likewise.
32190         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
32191
32192 2007-04-06  Bruno Haible  <bruno@clisp.org>
32193
32194         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
32195         (VASNPRINTF): Use signbit for faster determination whether to print a
32196         minus sign.
32197         * modules/vasnprintf (Files): Remove lib/float+.h.
32198         * modules/fprintf-posix (Depends-on): Add signbit.
32199         * modules/snprintf-posix (Depends-on): Likewise.
32200         * modules/sprintf-posix (Depends-on): Likewise.
32201         * modules/vasnprintf-posix (Depends-on): Likewise.
32202         * modules/vasprintf-posix (Depends-on): Likewise.
32203         * modules/vfprintf-posix (Depends-on): Likewise.
32204         * modules/vsnprintf-posix (Depends-on): Likewise.
32205         * modules/vsprintf-posix (Depends-on): Likewise.
32206
32207 2007-04-06  Bruno Haible  <bruno@clisp.org>
32208
32209         * tests/test-frexp.c (main): Test also the sign bit of zero results.
32210         * tests/test-frexpl.c (main): Likewise.
32211         * tests/test-ldexpl.c (main): Likewise.
32212         * modules/frexp-tests (Depends-on): Add signbit.
32213         * modules/frexpl-tests (Depdends-on): Likewise.
32214         * modules/ldexpl-tests (Depdends-on): Likewise.
32215
32216 2007-04-06  Bruno Haible  <bruno@clisp.org>
32217
32218         * modules/signbit-tests: New file.
32219         * tests/test-signbit.c: New file.
32220
32221         * modules/signbit: New file.
32222         * lib/signbitf.c: New file.
32223         * lib/signbitd.c: New file.
32224         * lib/signbitl.c: New file.
32225         * m4/signbit.m4: New file.
32226         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
32227         (signbit): New macro.
32228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
32229         REPLACE_SIGNBIT.
32230         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
32231         REPLACE_FREXPL into math.h.
32232
32233 2007-04-06  Bruno Haible  <bruno@clisp.org>
32234
32235         * modules/isnanf-nolibm-tests: New file.
32236         * tests/test-isnanf.c: New file.
32237
32238         * modules/isnanf-nolibm: New file.
32239         * lib/isnanf.h: New file.
32240         * lib/isnanf.c: New file.
32241         * lib/isnan.c: Consider the USE_FLOAT macro.
32242         * m4/isnanf.m4: New file.
32243
32244 2007-04-06  Bruno Haible  <bruno@clisp.org>
32245
32246         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
32247         (Link): New section.
32248
32249         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
32250
32251 2007-04-06  Bruno Haible  <bruno@clisp.org>
32252
32253         Assume the 'long double' type.
32254         * m4/longdouble.m4: Remove file.
32255         * config/srclist.txt: Don't mention longdouble.m4.
32256         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
32257         * lib/float+.h: Likewise.
32258         * lib/frexp.c: Likewise.
32259         * lib/printf-args.h: Likewise.
32260         * lib/printf-args.c: Likewise.
32261         * lib/printf-frexp.c: Likewise.
32262         * lib/printf-parse.c: Likewise.
32263         * lib/vasnprintf.c: Likewise.
32264         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
32265         * m4/intl.m4: Likewise.
32266         * m4/isnanl.m4: Likewise.
32267         * m4/printf.m4: Likewise.
32268         * m4/printf-frexpl.m4: Likewise.
32269         * m4/vasnprintf.m4: Likewise.
32270         * modules/allocsa (Files): Remove m4/longdouble.m4.
32271         * modules/gettext (Files): Likewise.
32272         * modules/relocatable-prog-wrapper (Files): Likewise.
32273         * modules/vasnprintf (Files): Likewise.
32274         * modules/isnanl (Files): Likewise.
32275         (Include): Simplify.
32276         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
32277         (Include): Simplify.
32278         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
32279         (Include): Simplify.
32280         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
32281         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32282         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
32283         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32284         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32285         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32286         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
32287         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32288         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32289         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32290         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
32291         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32292         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
32293         * tests/test-isnanl.c: Likewise.
32294         * tests/test-snprintf-posix.h: Likewise.
32295         * tests/test-sprintf-posix.h: Likewise.
32296         * tests/test-vasnprintf-posix.c: Likewise.
32297         * tests/test-vasnprintf-posix2.c: Likewise.
32298         * tests/test-vasprintf-posix.c: Likewise.
32299
32300 2007-04-06  Bruno Haible  <bruno@clisp.org>
32301
32302         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
32303         * lib/math_.h [__DECC]: Include the overridden include file through
32304         #include_next, outside the double-inclusion guard.
32305         * lib/stdio_.h [__DECC]: Likewise.
32306         * lib/stdlib_.h [__DECC]: Likewise.
32307         * lib/string_.h [__DECC]: Likewise.
32308         * lib/time_.h [__DECC]: Likewise.
32309         * lib/wchar_.h [__DECC]: Likewise.
32310         * lib/wctype_.h [__DECC]: Likewise.
32311         * lib/inttypes_.h [__DECC]: Likewise.
32312         Reported by Albert Chin <china@thewrittenword.com> in
32313         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
32314
32315 2007-04-04  Eric Blake  <ebb9@byu.net>
32316
32317         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
32318         1.5.x.
32319
32320 2007-04-04  Bruno Haible  <bruno@clisp.org>
32321
32322         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
32323         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
32324
32325 2007-04-04  Bruno Haible  <bruno@clisp.org>
32326
32327         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
32328         results for "%010a" of Infinity and NaN.
32329         * tests/test-vasprintf-posix.c (test_function): Likewise.
32330         * tests/test-snprintf-posix.h (test_function): Likewise.
32331         * tests/test-sprintf-posix.h (test_function): Likewise.
32332         * tests/test-fprintf-posix.h (test_function): Remove these tests.
32333         * tests/test-printf-posix.h (test_function): Likewise.
32334         * tests/test-fprintf-posix.out: Update.
32335         Needed for FreeBSD 6.1.
32336
32337 2007-04-04  Bruno Haible  <bruno@clisp.org>
32338
32339         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
32340         directly used by the gnulib modules nor by gnulib-tool.
32341
32342 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
32343
32344         * DEPENDENCIES: Give overall description of version dependency
32345         desirability.  Use more-typical names for apps.
32346         Add shell, coreutils, diffutils, grep, tar, gzip.
32347
32348 2007-04-04  Simon Josefsson  <simon@josefsson.org>
32349
32350         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
32351
32352 2007-04-04  Karl Berry  <karl@gnu.org>
32353
32354         * MODULES.html.sh (func_module): missing '.
32355
32356 2007-04-03  Bruno Haible  <bruno@clisp.org>
32357
32358         * modules/argmatch-tests (Makefile.am): New variable
32359         test_argmatch_LDADD.
32360         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
32361         * modules/array-list-tests (Makefile.am): New variable
32362         test_array_list_LDADD.
32363         * modules/array-oset-tests (Makefile.am): New variable
32364         test_array_oset_LDADD.
32365         * modules/avltree-list-tests (Makefile.am): New variable
32366         test_avltree_list_LDADD.
32367         * modules/avltree-oset-tests (Makefile.am): New variable
32368         test_avltree_oset_LDADD.
32369         * modules/avltreehash-list-tests (Makefile.am): New variable
32370         test_avltreehash_list_LDADD.
32371         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
32372         test_canonicalize_lgpl_LDADD.
32373         * modules/carray-list-tests (Makefile.am): New variable
32374         test_carray_list_LDADD.
32375         * modules/dirname-tests (Makefile.am): New variable
32376         test_dirname_LDADD.
32377         * modules/linked-list-tests (Makefile.am): New variable
32378         test_linked_list_LDADD.
32379         * modules/linkedhash-list-tests (Makefile.am): New variable
32380         test_linkedhash_list_LDADD.
32381         * modules/rbtree-list-tests (Makefile.am): New variable
32382         test_rbtree_list_LDADD.
32383         * modules/rbtree-oset-tests (Makefile.am): New variable
32384         test_rbtree_oset_LDADD.
32385         * modules/rbtreehash-list-tests (Makefile.am): New variable
32386         test_rbtreehash_list_LDADD.
32387         * modules/xvasprintf-tests (Makefile.am): New variable
32388         test_xvasprintf_LDADD.
32389         Reported by Eric Blake.
32390
32391 2007-04-03  Eric Blake  <ebb9@byu.net>
32392
32393         * DEPENDENCIES: Weaken m4 requirements.
32394
32395 2007-04-03  Bruno Haible  <bruno@clisp.org>
32396
32397         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
32398         * modules/isnanl-tests (configure.ac): Likewise.
32399
32400 2007-04-03  Ben Pfaff  <blp@gnu.org>
32401
32402         * modules/iconv_open: Add $(srcdir)/ to source directory
32403         references in Makefile fragments that call gperf, to fix VPATH
32404         builds.
32405
32406 2007-04-03  Bruno Haible  <bruno@clisp.org>
32407
32408         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
32409         * lib/ldexpl.c: Undo last change.
32410
32411 2007-04-03  Bruno Haible  <bruno@clisp.org>
32412
32413         * modules/printf-frexpl (Depends-on): Undo last change.
32414         (Files): Add m4/ldexpl.m4.
32415
32416 2007-04-03  Bruno Haible  <bruno@clisp.org>
32417
32418         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
32419         * modules/isnanl (Link): New section.
32420
32421         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
32422         * modules/frexp (Link): New section.
32423
32424         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
32425         * modules/frexpl (Link): New section.
32426
32427         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
32428         * modules/ldexpl (Link): New section.
32429
32430 2007-04-03  Bruno Haible  <bruno@clisp.org>
32431
32432         * modules/TEMPLATE-EXTENDED: New file.
32433         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
32434
32435 2007-04-03  Bruno Haible  <bruno@clisp.org>
32436
32437         * DEPENDENCIES: New file.
32438         Suggested by Simon Josefsson.
32439
32440 2007-04-03  Bruno Haible  <bruno@clisp.org>
32441
32442         * doc/gnulib.texi: Escape @.
32443
32444 2007-04-03  James Youngman  <jay@gnu.org>
32445         and Paul Eggert  <eggert@cs.ucla.edu>
32446
32447         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
32448         birthtime on all systems that have birthtime, not just those which
32449         use st_birthtimensec rather than st_birthtim.  Putting zero in
32450         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
32451         that the birth time is not available for files on an NFS mount.
32452
32453 2007-04-03  Simon Josefsson  <simon@josefsson.org>
32454
32455         * modules/memxor: Move back from crypto/, suggested by Bruno.
32456         * modules/crypto/hmac-sha1: Fix memxor dependency.
32457
32458         * modules/crypto/gc: Moved from ../.
32459
32460 2007-04-02  Eric Blake  <ebb9@byu.net>
32461
32462         * lib/ldexpl.c (includes): Avoid libm.
32463
32464         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
32465
32466 2007-04-02  Bruno Haible  <bruno@clisp.org>
32467
32468         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
32469         on IRIX.
32470
32471 2007-04-02  Bruno Haible  <bruno@clisp.org>
32472
32473         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
32474         x86 or x86_64 platforms running MacOS X.
32475         Reported by Ryan Schmidt <@ryandesign.com>.
32476
32477 2007-04-02  Bruno Haible  <bruno@clisp.org>
32478
32479         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
32480         i386.
32481
32482 2007-04-01  Simon Josefsson  <simon@josefsson.org>
32483
32484         * modules/crypto/arcfour: Moved from ../.
32485         * modules/crypto/arcfour-tests: Moved from ../.
32486         * modules/crypto/arctwo: Moved from ../.
32487         * modules/crypto/arctwo-tests: Moved from ../.
32488         * modules/crypto/des: Moved from ../.
32489         * modules/crypto/des-tests: Moved from ../.
32490         * modules/crypto/gc-arcfour: Moved from ../.
32491         * modules/crypto/gc-arcfour-tests: Moved from ../.
32492         * modules/crypto/gc-arctwo: Moved from ../.
32493         * modules/crypto/gc-arctwo-tests: Moved from ../.
32494         * modules/crypto/gc-des: Moved from ../.
32495         * modules/crypto/gc-des-tests: Moved from ../.
32496         * modules/crypto/gc-hmac-md5: Moved from ../.
32497         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
32498         * modules/crypto/gc-hmac-sha1: Moved from ../.
32499         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
32500         * modules/crypto/gc-md2: Moved from ../.
32501         * modules/crypto/gc-md2-tests: Moved from ../.
32502         * modules/crypto/gc-md4: Moved from ../.
32503         * modules/crypto/gc-md4-tests: Moved from ../.
32504         * modules/crypto/gc-md5: Moved from ../.
32505         * modules/crypto/gc-md5-tests: Moved from ../.
32506         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
32507         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
32508         * modules/crypto/gc-random: Moved from ../.
32509         * modules/crypto/gc-rijndael: Moved from ../.
32510         * modules/crypto/gc-rijndael-tests: Moved from ../.
32511         * modules/crypto/gc-sha1: Moved from ../.
32512         * modules/crypto/gc-sha1-tests: Moved from ../.
32513         * modules/crypto/gc-tests: Moved from ../.
32514         * modules/crypto/hmac-md5: Moved from ../.
32515         * modules/crypto/hmac-md5-tests: Moved from ../.
32516         * modules/crypto/hmac-sha1: Moved from ../.
32517         * modules/crypto/hmac-sha1-tests: Moved from ../.
32518         * modules/crypto/md2: Moved from ../.
32519         * modules/crypto/md2-tests: Moved from ../.
32520         * modules/crypto/md4: Moved from ../.
32521         * modules/crypto/md4-tests: Moved from ../.
32522         * modules/crypto/md5: Moved from ../.
32523         * modules/crypto/md5-tests: Moved from ../.
32524         * modules/crypto/memxor: Moved from ../.
32525         * modules/crypto/rijndael: Moved from ../.
32526         * modules/crypto/rijndael-tests: Moved from ../.
32527         * modules/crypto/sha1: Moved from ../.
32528
32529 2007-03-30  James Youngman  <jay@gnu.org>
32530
32531         * tests/test-stat-time.c (prepare_test): use chmod() rather than
32532         rename() to change the ctime of a file (because ctime is unaffected
32533         by rename on jfs2 on AIX 5.1).
32534         (main): Start by doing cleanup, in case a previous run failed leaving
32535         test files behind.
32536
32537 2007-03-31  Bruno Haible  <bruno@clisp.org>
32538
32539         Support old proprietary implementations of iconv.
32540         * modules/iconv_open: New file.
32541         * lib/iconv_.h: New file.
32542         * m4/iconv_h.m4: New file.
32543         * lib/iconv_open.c: New file.
32544         * lib/iconv_open-aix.gperf: New file.
32545         * lib/iconv_open-hpux.gperf: New file.
32546         * lib/iconv_open-irix.gperf: New file.
32547         * lib/iconv_open-osf.gperf: New file.
32548         * m4/iconv_open.m4: New file.
32549         * modules/linebreak (Depends-on): Add iconv_open.
32550         * modules/striconv (Depends-on): Likewise.
32551         * modules/striconveh (Depends-on): Likewise.
32552         * modules/unicodeio (Depends-on): Likewise.
32553         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
32554         (iconv_t)(-1).
32555         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
32556         conversion if cd is (iconv_t)(-1).
32557         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
32558         is not possible.
32559
32560 2007-03-31  Bruno Haible  <bruno@clisp.org>
32561
32562         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32563         work on Solaris either. Protect also second use of "autodetect_jp".
32564
32565 2007-03-31  Bruno Haible  <bruno@clisp.org>
32566
32567         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
32568         the function is not present.
32569
32570 2007-03-31  Bruno Haible  <bruno@clisp.org>
32571
32572         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
32573         the function is not present.
32574
32575 2007-03-31  Bruno Haible  <bruno@clisp.org>
32576
32577         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
32578         a bug in HP-UX iconv_open().
32579
32580 2007-03-31  Bruno Haible  <bruno@clisp.org>
32581
32582         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
32583         (Mathematics <math.h>): New section, add fpieee.
32584         (Input/output <stdio.h>): Add fseterr.
32585         (Mathematics <math.h>): New section, add printf-frexp.
32586         (Container data structures): Add sublist.
32587         (Core language properties): Add fpucw, inline.
32588         (Functions for greatest-width integer types <inttypes.h>): Add
32589         imaxabs, imaxdiv, inttypes.
32590         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
32591         isnanl-nolibm, ldexp.
32592         (Mathematics <math.h>): New section, add printf-frexpl.
32593         (Support for systems lacking POSIX:2001): Add fprintf-posix,
32594         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
32595         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
32596         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
32597         (Unicode string functions): Add unistr/u*-mbtoucr.
32598         (Java): Add javacomp-script, javaexec-script.
32599         (C#): Add csharpcomp-script, csharpexec-script.
32600         (Support for building libraries and executables): Add havelib,
32601         relocatable-*.
32602         (Support for maintaining and releasing projects): Renamed from
32603         'Support for maintaining and release projects'. Add announce-gen.
32604
32605 2007-03-31  Bruno Haible  <bruno@clisp.org>
32606
32607         * README: Talk primarily about git.
32608         (git and CVS): Renamed from CVS.
32609         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
32610         gnulib is available through git.
32611         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
32612
32613 2007-03-30  Bruno Haible  <bruno@clisp.org>
32614
32615         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
32616         * lib/poll_.h: Likewise.
32617         * lib/stat_.h: Likewise.
32618         * lib/sys_time_.h: Likewise.
32619         * lib/sysexit_.h: Likewise.
32620         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
32621         * lib/stdbool_.h: Likewise.
32622         * lib/byteswap_.h: Add double-inclusion guard.
32623
32624 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
32625
32626         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
32627
32628 2007-03-30  Karl Berry  <karl@gnu.org>
32629
32630         * config/srclist-update: double space after USA in the license
32631         substitution, since that's how it's usually (?) written.
32632
32633 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32634
32635         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
32636         reported by Bruno Haible.
32637
32638 2007-03-29  Bruno Haible  <bruno@clisp.org>
32639
32640         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
32641         a bug in AIX iconv().
32642
32643 2007-03-29  Bruno Haible  <bruno@clisp.org>
32644
32645         * modules/ldexpl-tests: New file.
32646         * tests/test-ldexpl.c: New file.
32647
32648 2007-03-29  Bruno Haible  <bruno@clisp.org>
32649
32650         * lib/ldexpl.c: Include fpucw.h.
32651         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
32652         multiplication.
32653         * modules/ldexpl (Depends-on): Add fpucw.
32654
32655 2007-03-29  Bruno Haible  <bruno@clisp.org>
32656
32657         * modules/ldexpl: New file.
32658         * m4/ldexpl.m4: New file.
32659         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
32660         set.
32661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
32662         REPLACE_LDEXPL.
32663         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
32664         REPLACE_LDEXPL.
32665         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32666         gl_FUNC_LDEXPL_WORKS.
32667         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
32668         * modules/mathl (Files): Remove lib/ldexpl.c.
32669         (Depends-on): Add ldexpl.
32670
32671 2007-03-29  Bruno Haible  <bruno@clisp.org>
32672
32673         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
32674
32675 2007-03-29  Bruno Haible  <bruno@clisp.org>
32676
32677         * tests/test-striconveh.c (main): Don't assume that a direct conversion
32678         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
32679         and possibly also HP-UX.
32680         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32681         work on AIX, IRIX, HP-UX, OSF/1.
32682         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32683         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32684         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32685         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32686         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
32687         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32688
32689 2007-03-29  Bruno Haible  <bruno@clisp.org>
32690
32691         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
32692
32693 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32694
32695         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
32696         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
32697
32698 2007-03-29  Eric Blake  <ebb9@byu.net>
32699
32700         * lib/acl-internal.h: Remove redundant include.
32701         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
32702         Cygwin when a file is locked.
32703
32704 2007-03-29  Bruno Haible  <bruno@clisp.org>
32705
32706         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
32707         file.
32708         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
32709
32710 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32711
32712         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
32713         try to remove a parent directory if the child couldn't be removed
32714         (except for the first rmdir, which could fail because the child
32715         doesn't exist).  Problem reported by Jeff Blaine in
32716         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
32717
32718 2007-03-28  Bruno Haible  <bruno@clisp.org>
32719
32720         * lib/striconveh.c (utf8conv_carefully): New function.
32721         (mem_cd_iconveh_internal): Invoke it.
32722
32723 2007-03-28  Bruno Haible  <bruno@clisp.org>
32724
32725         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
32726         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
32727         input.
32728         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
32729         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
32730         unistr/u8-uctomb.
32731
32732 2007-03-28  Bruno Haible  <bruno@clisp.org>
32733
32734         * modules/unistr/u8-mbtoucr: New file.
32735         * lib/unistr/u8-mbtoucr.c: New file.
32736         * modules/unistr/u16-mbtoucr: New file.
32737         * lib/unistr/u16-mbtoucr.c: New file.
32738         * modules/unistr/u16-mbtoucr: New file.
32739         * lib/unistr/u16-mbtoucr.c: New file.
32740         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
32741
32742 2007-03-27  Simon Josefsson  <simon@josefsson.org>
32743             Bruno Haible  <bruno@clisp.org>
32744
32745         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
32746         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
32747         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
32748
32749         * m4/stdio_h.m4: Add stubs for vasprintf too.
32750
32751         * modules/stdio: Support vasprintf in sed command.
32752
32753         * modules/vasprintf: Depend on stdio for prototypes.  Remove
32754         vasprintf.h.  Add stdio module indicator.
32755
32756         * lib/stdio_.h: Declare asprintf and vasprintf, based on
32757         vasprintf.h.
32758
32759         * lib/vasprintf.h: File removed.
32760
32761         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
32762         * lib/vasprintf.c: Ditto.
32763         * lib/xvasprintf.c: Ditto.
32764         * tests/test-vasprintf-posix.c: Ditto.
32765         * tests/test-vasprintf.c: Ditto.
32766
32767 2007-03-27  Bruno Haible  <bruno@clisp.org>
32768
32769         Make vasnprintf multithread-safe.
32770         * lib/vasnprintf.c (decimal_point_char): New function.
32771         (VASNPRINTF): Use it.
32772         Suggested by Simon Josefsson.
32773
32774 2007-03-27  Eric Blake  <ebb9@byu.net>
32775
32776         Support sub-second birthtime on cygwin.
32777         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
32778         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
32779         (get_stat_birthtime): Also work with st_birthtim.
32780
32781 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32782
32783         * lib/stat-time.h (USE_BIRTHTIME): Remove.
32784         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
32785         (get_stat_birthtime_ns): Do not try to use "spare" fields.
32786         (get_stat_birthtime_ns): Simplify compile-time tests.
32787         (get_stat_birthtime): Change the API to look like
32788         get_stat_mtime etc., except return a negative tv_nsec on error.
32789         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
32790         Don't check for "spare" fields.
32791         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
32792         or for struct stat.st_birthtime, as these tests aren't used.
32793         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
32794
32795 2007-03-27  Bruno Haible  <bruno@clisp.org>
32796
32797         * lib/stat-time.h: Include <sys/stat.h>.
32798
32799 2007-03-27  James Youngman  <jay@gnu.org>
32800
32801         * lib/stat-time.h (get_stat_birthtime): New function for
32802           retrieving st_birthtime as provided by UFS2 (hence *BSD).
32803         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
32804           and its variants.
32805         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
32806         * modules/stat-time-test: New file.
32807         * tests/test-stat-time.c: New test, devised by Bruno Haible.
32808
32809 2007-03-26  Bruno Haible  <bruno@clisp.org>
32810
32811         Better support of signalling NaNs.
32812         * lib/atanl.c: Include isnanl.h.
32813         (atanl): Perform test for NaN at the beginning of the function and
32814         through a call to isnanl.
32815         * lib/cosl.c: Include isnanl.h.
32816         (cosl): Perform test for NaN at the beginning of the function and
32817         through a call to isnanl.
32818         * lib/ldexpl.c: Include isnanl.h.
32819         (ldexpl): Perform test for NaN through a call to isnanl.
32820         * lib/logl.c: Include isnanl.h.
32821         (logl): Perform test for NaN at the beginning of the function and
32822         through a call to isnanl.
32823         * lib/sinl.c: Include isnanl.h.
32824         (sinl): Perform test for NaN at the beginning of the function and
32825         through a call to isnanl.
32826         * lib/sqrtl.c: Include isnanl.h.
32827         (sqrtl): Perform test for NaN at the beginning of the function and
32828         through a call to isnanl.
32829         * lib/tanl.c: Include isnanl.h.
32830         (tanl): Perform test for NaN at the beginning of the function and
32831         through a call to isnanl.
32832         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
32833         * modules/mathl (Depends-on): Add isnanl.
32834
32835 2007-03-26  Eric Blake  <ebb9@byu.net>
32836
32837         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
32838         regression in logic sense of previous patch.
32839
32840 2007-03-26  Bruno Haible  <bruno@clisp.org>
32841
32842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
32843         unportable shell command "if ! ...".
32844         Reported by Ralf Wildenhues.
32845
32846 2007-03-25  Bruno Haible  <bruno@clisp.org>
32847
32848         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
32849         <sysexits.h> file, and only add EX_CONFIG.
32850         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
32851         absolute file name and whether it is sufficient. Substitute also
32852         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
32853         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
32854         ABSOLUTE_SYSEXITS_H into sysexits.h.
32855
32856 2007-03-25  Bruno Haible  <bruno@clisp.org>
32857
32858         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
32859         hints is NULL.
32860
32861 2007-03-25  Bruno Haible  <bruno@clisp.org>
32862
32863         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
32864         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
32865
32866 2007-03-25  Bruno Haible  <bruno@clisp.org>
32867
32868         * lib/vasnprintf.c: Include langinfo.h.
32869         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
32870         multithread-safe.
32871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
32872         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
32873         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32874         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32875         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32876         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32877         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32878         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
32879         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32880         Reported by Simon Josefsson.
32881
32882 2007-03-25  Bruno Haible  <bruno@clisp.org>
32883
32884         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
32885         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
32886         * modules/vasnprintf (Depends-on): Add stdint.
32887
32888 2007-03-25  Bruno Haible  <bruno@clisp.org>
32889
32890         * modules/fpieee: New file.
32891         * m4/fpieee.m4: New file.
32892         * modules/isnan-nolibm (Depends-on): Add fpieee.
32893         * modules/isnanl-nolibm (Depends-on): Add fpieee.
32894         * modules/isnanl (Depends-on): Add fpieee.
32895
32896 2007-03-25  Bruno Haible  <bruno@clisp.org>
32897
32898         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
32899
32900 2007-03-25  Bruno Haible  <bruno@clisp.org>
32901
32902         Avoid test failures on IRIX 6.5.
32903         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
32904         (main): Use it.
32905         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
32906         macros.
32907         (main): Use them.
32908
32909 2007-03-25  Bruno Haible  <bruno@clisp.org>
32910
32911         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
32912         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
32913         exists but doesn't work.
32914         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
32915         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
32916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
32917         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
32918
32919 2007-03-25  Bruno Haible  <bruno@clisp.org>
32920
32921         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
32922         returns inf. Needed on IRIX 6.5.
32923
32924 2007-03-25  Bruno Haible  <bruno@clisp.org>
32925
32926         * tests/test-frexpl.c: Include isnanl-nolibm.h.
32927         (main): Use isnanl instead of x != x idiom.
32928         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
32929
32930         * tests/test-frexp.c: Include isnan.h.
32931         (main): Use isnan instead of x != x idiom.
32932         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
32933
32934 2007-03-25  Bruno Haible  <bruno@clisp.org>
32935
32936         * tests/test-frexp.c (NaN): New function/macro.
32937         (main): Use it instead of 0.0 / 0.0.
32938         * tests/test-isnan.c (NaN): New function/macro.
32939         (main): Use it instead of 0.0 / 0.0.
32940         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
32941         (test_function): Use it instead of 0.0 / 0.0.
32942         * tests/test-vasprintf-posix.c (NaN): New function/macro.
32943         (test_function): Use it instead of 0.0 / 0.0.
32944         * tests/test-snprintf-posix.h (NaN): New function/macro.
32945         (test_function): Use it instead of 0.0 / 0.0.
32946         * tests/test-sprintf-posix.h (NaN): New function/macro.
32947         (test_function): Use it instead of 0.0 / 0.0.
32948         * tests/test-fprintf-posix.h (NaN): New function/macro.
32949         (test_function): Use it instead of 0.0 / 0.0.
32950         * tests/test-printf-posix.h (NaN): New function/macro.
32951         (test_function): Use it instead of 0.0 / 0.0.
32952
32953         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
32954
32955 2007-03-25  Bruno Haible  <bruno@clisp.org>
32956
32957         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
32958
32959 2007-03-25  Bruno Haible  <bruno@clisp.org>
32960
32961         * lib/regexec.c (merge_state_with_log): Make static.
32962
32963 2007-03-25  Bruno Haible  <bruno@clisp.org>
32964
32965         * lib/trigl.c (kernel_rem_pio2): Make static.
32966
32967 2007-03-25  Bruno Haible  <bruno@clisp.org>
32968
32969         * lib/sincosl.c (sincosl_table): Make static.
32970
32971 2007-03-25  Bruno Haible  <bruno@clisp.org>
32972
32973         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
32974         if the compiler does not support C99.
32975
32976 2007-03-25  Bruno Haible  <bruno@clisp.org>
32977
32978         * modules/time (Makefile.am): Ensure all rule action lines start with a
32979         tab.
32980
32981 2007-03-24  Bruno Haible  <bruno@clisp.org>
32982
32983         * modules/tsearch-tests: New file.
32984         * tests/test-tsearch.sh: New file.
32985         * tests/test-tsearch.c: New file, mostly copied from glibc.
32986
32987         * modules/search-tests: New file.
32988         * tests/test-search.c: New file.
32989
32990         * modules/search: New file.
32991         * lib/search_.h: New file, incorporating lib/tsearch.h.
32992         * m4/search_h.m4: New file.
32993         * lib/tsearch.h: Remove file.
32994         * lib/tsearch.c: Include search.h instead of tsearch.h.
32995         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
32996         HAVE_TSEARCH.
32997         * modules/tsearch (Files): Remove lib/tsearch.h.
32998         (Depends-on): Add search.
32999         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
33000         (Include): Change tsearch.h into search.h.
33001
33002 2007-03-24  Bruno Haible  <bruno@clisp.org>
33003
33004         * modules/fpucw: New file.
33005         * lib/fpucw.h: New file.
33006         * lib/frexp.c: Include fpucw.h.
33007         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
33008         (FUNC): Use them.
33009         * lib/printf-frexp.c: Include fpucw.h.
33010         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
33011         (FUNC): Use them.
33012         * lib/vasnprintf.c: Include fpucw.h.
33013         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
33014         'long double' calculations.
33015         * tests/test-frexpl.c: Include fpucw.h.
33016         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
33017         * tests/test-printf-frexpl.c: Include fpucw.h.
33018         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
33019         * modules/frexpl (Depends-on): Add fpucw.
33020         * modules/printf-frexpl (Depends-on): Likewise.
33021         * modules/fprintf-posix (Depends-on): Likewise.
33022         * modules/snprintf-posix (Depends-on): Likewise.
33023         * modules/sprintf-posix (Depends-on): Likewise.
33024         * modules/vasnprintf-posix (Depends-on): Likewise.
33025         * modules/vasprintf-posix (Depends-on): Likewise.
33026         * modules/vfprintf-posix (Depends-on): Likewise.
33027         * modules/vsnprintf-posix (Depends-on): Likewise.
33028         * modules/vsprintf-posix (Depends-on): Likewise.
33029         * modules/frexpl-tests (Depends-on): Likewise.
33030         * modules/printf-frexpl-tests (Depends-on): Likewise.
33031
33032 2007-03-24  Bruno Haible  <bruno@clisp.org>
33033
33034         * lib/float+.h: New file.
33035         * lib/isnan.c: Include float+.h.
33036         (SIZE): New macro.
33037         (FUNC): Compare only SIZE bytes of the value.
33038         * lib/vasnprintf.c: Include float+.h.
33039         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
33040         SIZEOF_LDBL or SIZEOF_DBL bytes.
33041         * modules/isnan-nolibm (Files): Add lib/float+.h.
33042         * modules/isnanl-nolibm (Files): Add lib/float+.h.
33043         * modules/isnanl (Files): Add lib/float+.h.
33044         * modules/vasnprintf (Files): Add lib/float+.h.
33045
33046 2007-03-24  Bruno Haible  <bruno@clisp.org>
33047
33048         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
33049         include isnanl-nolibm.h.
33050
33051 2007-03-24  Bruno Haible  <bruno@clisp.org>
33052
33053         * tests/test-read-file.c (main): Don't produce spurious output for
33054         expected situations. Make the test fail if it encountered unexpected
33055         results.
33056
33057 2007-03-24  Bruno Haible  <bruno@clisp.org>
33058
33059         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
33060         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
33061
33062 2007-03-24  Bruno Haible  <bruno@clisp.org>
33063
33064         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
33065
33066 2007-03-24  Bruno Haible  <bruno@clisp.org>
33067
33068         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
33069         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
33070
33071         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
33072         * modules/utf8-ucs4: Turn into a symbolic link to module
33073         unistr/u8-mbtouc.
33074
33075         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
33076         utf8-ucs4-unsafe.
33077         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
33078         unistr/u8-mbtouc-unsafe.
33079
33080         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
33081         * modules/utf16-ucs4: Turn into a symbolic link to module
33082         unistr/u16-mbtouc.
33083
33084         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
33085         utf16-ucs4-unsafe.
33086         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
33087         unistr/u16-mbtouc-unsafe.
33088
33089         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
33090         * modules/ucs4-utf8: Turn into a symbolic link to module
33091         unistr/u8-ubtomb.
33092
33093         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
33094         * modules/ucs4-utf16: Turn into a symbolic link to module
33095         unistr/u16-ubtomb.
33096
33097 2007-03-24  Bruno Haible  <bruno@clisp.org>
33098
33099         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
33100         Enable the function only if HAVE_INLINE.
33101         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
33102         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
33103         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
33104         Enable the function only if HAVE_INLINE.
33105         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
33106         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
33107         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
33108         Enable the function only if HAVE_INLINE.
33109         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
33110         Enable the function only if HAVE_INLINE.
33111         * modules/utf8-ucs4: Update.
33112         * modules/utf8-ucs4-unsafe: Update.
33113         * modules/utf16-ucs4: Update.
33114         * modules/utf16-ucs4-unsafe: Update.
33115         * modules/ucs4-utf8: Update.
33116         * modules/ucs4-utf16: Update.
33117
33118 2007-03-24  Bruno Haible  <bruno@clisp.org>
33119
33120         * lib/utf8-ucs4.h: Remove file.
33121         * lib/utf8-ucs4-unsafe.h: Remove file.
33122         * lib/utf16-ucs4.h: Remove file.
33123         * lib/utf16-ucs4-unsafe.h: Remove file.
33124         * lib/ucs4-utf8.h: Remove file.
33125         * lib/ucs4-utf16.h: Remove file.
33126         * lib/unistr.h: Include their previous contents.
33127         * m4/utf-ucs4.m4: Remove file.
33128         * m4/ucs4-utf.m4: Remove file.
33129         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
33130         (Depends-on): Add unistr/base.
33131         (configure.ac): Remove gl_UTF_UCS4.
33132         (Makefile.am): Update.
33133         (Include): Change to unistr.h.
33134         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
33135         (Depends-on): Add unistr/base.
33136         (configure.ac): Remove gl_UTF_UCS4.
33137         (Makefile.am): Update.
33138         (Include): Change to unistr.h.
33139         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
33140         (Depends-on): Add unistr/base.
33141         (configure.ac): Remove gl_UTF_UCS4.
33142         (Makefile.am): Update.
33143         (Include): Change to unistr.h.
33144         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
33145         (Depends-on): Add unistr/base.
33146         (configure.ac): Remove gl_UTF_UCS4.
33147         (Makefile.am): Update.
33148         (Include): Change to unistr.h.
33149         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
33150         (Depends-on): Add unistr/base.
33151         (configure.ac): Remove gl_UCS4_UTF.
33152         (Makefile.am): Update.
33153         (Include): Change to unistr.h.
33154         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
33155         (Depends-on): Add unistr/base.
33156         (configure.ac): Remove gl_UCS4_UTF.
33157         (Makefile.am): Update.
33158         (Include): Change to unistr.h.
33159         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
33160         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
33161         utf8-ucs4-unsafe.h.
33162         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
33163         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
33164         utf16-ucs4-unsafe.h.
33165         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
33166         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
33167         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
33168         * lib/unistr/u8-strchr.c: Likewise.
33169         * lib/unistr/u8-strrchr.c: Likewise.
33170         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
33171         * lib/unistr/u16-strchr.c: Likewise.
33172         * lib/unistr/u16-strrchr.c: Likewise.
33173         * lib/striconveh.c: Update.
33174         * lib/linebreak.c: Update.
33175
33176 2007-03-24  Bruno Haible  <bruno@clisp.org>
33177
33178         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
33179         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
33180
33181 2007-03-22  Bruno Haible  <bruno@clisp.org>
33182
33183         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
33184
33185 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
33186
33187         * MODULES.html.sh (File system functions): New module write-any-file.
33188         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
33189         * m4/write-any-file.m4: New files.
33190
33191 2007-03-23  Eric Blake  <ebb9@byu.net>
33192
33193         * gnulib-tool: Rearrange space-tab sequences, since some editors
33194         like to eat them.
33195
33196 2007-03-23  Eric Blake  <ebb9@byu.net>
33197
33198         * lib/version-etc.c (version_etc_va): Update license wording to
33199         be more concise.  Recommended by Richard Stallman.
33200
33201 2007-03-22  Bruno Haible  <bruno@clisp.org>
33202
33203         * lib/poll.c (MSG_PEEK): New fallback definition.
33204
33205 2007-03-22  Bruno Haible  <bruno@clisp.org>
33206
33207         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
33208         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
33209         (main): Update.
33210         Fixes a compilation error on BeOS.
33211
33212 2007-03-22  Bruno Haible  <bruno@clisp.org>
33213
33214         * modules/frexpl-tests: New file.
33215         * tests/test-frexpl.c: New file.
33216
33217         * modules/frexpl: New file.
33218         * m4/frexpl.m4: New file.
33219         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
33220         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
33221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
33222         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
33223         (Depends-on): Add frexpl. Remove isnanl-nolibm.
33224         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
33225
33226 2007-03-22  Bruno Haible  <bruno@clisp.org>
33227
33228         * lib/frexpl.c: Share code with lib/frexp.c.
33229         * modules/mathl (Files): Add lib/frexp.c.
33230         (Depends-on): Add isnanl-nolibm.
33231
33232 2007-03-22  Bruno Haible  <bruno@clisp.org>
33233
33234         * modules/printf-frexp (Files): Add m4/frexp.m4.
33235         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
33236         only if the found frexp function actually works.
33237
33238 2007-03-22  Bruno Haible  <bruno@clisp.org>
33239
33240         * lib/frexp.c: Remove older implementation that uses divisions.
33241
33242 2007-03-21  Bruno Haible  <bruno@clisp.org>
33243
33244         * modules/frexp-tests: New file.
33245         * tests/test-frexp.c: New file.
33246
33247         * modules/frexp: New file.
33248         * lib/frexp.c: New file.
33249         * m4/frexp.m4: New file.
33250         * lib/math_.h (frexp): New declaration.
33251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
33252         REPLACE_FREXP.
33253         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
33254
33255 2007-03-21  Bruno Haible  <bruno@clisp.org>
33256
33257         * modules/isnanl-tests: New file.
33258         * tests/test-isnanl.c: New file.
33259
33260         * modules/isnanl: New file.
33261         * lib/isnanl.h: New file.
33262         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
33263         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
33264         gl_FUNC_ISNANL_WORKS.
33265         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
33266         New macros.
33267
33268 2007-03-21  Bruno Haible  <bruno@clisp.org>
33269
33270         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
33271         lib/isnanl.h.
33272         (Include): Update.
33273         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
33274         * lib/vasnprintf.c: Update.
33275         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
33276         tests/test-isnanl.h, remove tests/test-isnanl.c.
33277         (Makefile.am): Update.
33278         * tests/test-isnanl-nolibm.c: New file.
33279         * tests/test-isnanl.h: New file.
33280         * tests/test-isnanl.c: Remove file.
33281
33282 2007-03-21  Jim Meyering  <jim@meyering.net>
33283
33284         When trying to open ".", treat ESTALE like EACCES.
33285         * lib/savewd.c (savewd_save): Resort to forking not just upon
33286         failure with EACCES, but also when errno is ESTALE.
33287
33288 2007-03-20  Bruno Haible  <bruno@clisp.org>
33289
33290         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
33291         Needed on AIX 5.1. Reported by Matthew Woehlke.
33292
33293 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33294
33295         Suggestions by Bruno Haible:
33296         * lib/acl-internal.h: Include "gettext.h" rather than rolling
33297         our own.
33298         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
33299         * modules/acl (Depends-on): Add gettext.
33300
33301 2007-03-19  Bruno Haible  <bruno@clisp.org>
33302
33303         * modules/iconvme: Remove file.
33304         * lib/iconvme.h: Remove file.
33305         * lib/iconvme.c: Remove file.
33306         * m4/iconvme.m4: Remove file.
33307
33308 2007-03-19  Bruno Haible  <bruno@clisp.org>
33309
33310         * doc/relocatable-maint.texi: Break long shell script line.
33311         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33312
33313 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33314
33315         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
33316         handle file_has_acl.
33317         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
33318         * lib/acl.c: Move header inclusions and related macro defns into
33319         lib/acl-internal.h.
33320         (S_ISLNK): Remove defn, since that's now done for us.
33321         (file_has_acl): Move to lib/file-has-acl.c.
33322         Call acl_trivial if available.  This is the crucial part of the fix.
33323         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
33324         shared within the library.  Rewrite a bit, partly to make it compatible
33325         with the GNU coding style.
33326         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
33327         Remove unnecessary double-quotes.
33328         Don't test for acl_to_text; the build will catch that.
33329         Replace acl_entries if it doesn't exist and it is needed.
33330         Check for -lsec and acl_trivial (as used on Solaris 10).
33331         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
33332         lib/file-has-acl.c.
33333         (Depends-on): Add sys_stat, for S_ISLNK.
33334
33335 2007-03-19  Ben Pfaff  <blp@gnu.org>
33336
33337         * doc/gnulib.texi: Fix typos.
33338         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33339
33340 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33341
33342         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
33343         If size is zero here, buf must be zero.
33344
33345 2007-03-19  Simon Josefsson  <simon@josefsson.org>
33346
33347         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
33348         <bruno@clisp.org>.
33349
33350 2007-03-18  Bruno Haible  <bruno@clisp.org>
33351
33352         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
33353         Suggested by Eric Blake.
33354
33355 2007-03-18  Ben Pfaff  <blp@gnu.org>
33356
33357         * doc/relocatable.texi: Recommend using as prefix a directory
33358         that does not exist and will never be created.  Based on
33359         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
33360         and others.
33361
33362 2007-03-17  Bruno Haible  <bruno@clisp.org>
33363
33364         * lib/fchownat.c: Include lchown.h.
33365
33366 2007-03-17  Bruno Haible  <bruno@clisp.org>
33367
33368         Fix endless loop when the given allocated size was > INT_MAX.
33369         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
33370         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
33371         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
33372         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
33373         * lib/sprintf.c (sprintf): Likewise.
33374
33375 2007-03-17  Bruno Haible  <bruno@clisp.org>
33376
33377         * tests/test-argp-2.sh (func_compare): Output a context diff.
33378
33379 2007-03-17  Bruno Haible  <bruno@clisp.org>
33380
33381         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
33382         locale's decimal-point character.
33383
33384 2007-03-17  Bruno Haible  <bruno@clisp.org>
33385
33386         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
33387         before comparing it. Needed because on some platforms (e.g. x86) a
33388         'long double' occupies less bytes than sizeof (long double).
33389
33390 2007-03-17  Bruno Haible  <bruno@clisp.org>
33391
33392         * tests/test-crc.c (main): Make printf statements 64-bit clean.
33393         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
33394         * tests/test-getaddrinfo.c (simple): Likewise.
33395         * tests/test-read-file.c (main): Likewise.
33396
33397 2007-03-17  Bruno Haible  <bruno@clisp.org>
33398
33399         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
33400
33401 2007-03-17  Bruno Haible  <bruno@clisp.org>
33402
33403         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
33404         unused variable.
33405
33406 2007-03-17  Bruno Haible  <bruno@clisp.org>
33407
33408         * tests/test-c-strcasecmp.c: Include c-strcase.h.
33409         * tests/test-c-strncasecmp.c: Likewise.
33410
33411 2007-03-17  Bruno Haible  <bruno@clisp.org>
33412
33413         * modules/stdlib (Depends-on): Add unistd.
33414         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
33415         Needed for MacOS X 10.3.
33416
33417 2007-03-17  Bruno Haible  <bruno@clisp.org>
33418
33419         * lib/unistr/u-strdup.h: Include <stdlib.h>.
33420
33421 2007-03-17  Bruno Haible  <bruno@clisp.org>
33422
33423         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
33424
33425 2007-03-17  Bruno Haible  <bruno@clisp.org>
33426
33427         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
33428         to reflect files copied from gnulib (with or without modifications).
33429         Suggested by Jim Meyering.
33430
33431 2007-03-17  Eric Blake  <ebb9@byu.net>
33432
33433         * NEWS: Document stdlib change from 2007-02-18.
33434
33435 2007-03-17  Jim Meyering  <jim@meyering.net>
33436
33437         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
33438         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
33439         someone uses a name containing shell meta-characters.
33440         Reported by Alfred M. Szmidt.
33441
33442         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
33443
33444 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
33445
33446         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
33447         and copy gettext configuration files only if configure.ac contains
33448         a use of AM_GNU_GETTEXT_VERSION.
33449
33450 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
33451
33452         * build-aux/bootstrap (gnulib_name): New variable.
33453         (gnulib_tool_options): Use it.
33454
33455 2007-03-13  Simon Josefsson  <simon@josefsson.org>
33456
33457         * tests/test-des.c: Use new namespace.
33458
33459 2007-03-15  Bruno Haible  <bruno@clisp.org>
33460
33461         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
33462         Reported by James Youngman <jay@gnu.org>.
33463
33464 2007-03-15  Bruno Haible  <bruno@clisp.org>
33465
33466         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
33467         declared prototype. Needed with cc on OSF/1 5.1.
33468
33469 2007-03-15  Bruno Haible  <bruno@clisp.org>
33470
33471         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
33472         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
33473         (struct gl_list_implementation): Add dispose_fn argument to the
33474         'create_empty', 'create' methods.
33475         (struct gl_list_impl_base): Add field 'dispose_fn'.
33476         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
33477         argument.
33478         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
33479         dispose_fn argument.
33480         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
33481         dispose_fn on the dropped values.
33482         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
33483         dispose_fn argument.
33484         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
33485         dropped values.
33486         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
33487         (gl_tree_remove_node): Call dispose_fn on the dropped value.
33488         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
33489         (gl_tree_remove_node): Call dispose_fn on the dropped value.
33490         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
33491         argument.
33492         (gl_tree_list_free): Call dispose_fn on the dropped values.
33493         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
33494         the dropped values.
33495         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
33496         Add dispose_fn argument.
33497         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
33498         Call dispose_fn on the dropped values.
33499         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
33500         Add dispose_fn argument.
33501         (gl_sublist_create): Initialize the 'dispose_fn' field.
33502         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
33503         * tests/test-array_list.c (main): Update.
33504         * tests/test-carray_list.c (main): Update.
33505         * tests/test-avltree_list.c (main): Update.
33506         * tests/test-rbtree_list.c (main): Update.
33507         * tests/test-avltreehash_list.c (main): Update.
33508         * tests/test-rbtreehash_list.c (main): Update.
33509         * tests/test-linked_list.c (main): Update.
33510         * tests/test-linkedhash_list.c (main): Update.
33511         * tests/test-array_oset.c (main): Update.
33512
33513 2007-03-15  Bruno Haible  <bruno@clisp.org>
33514
33515         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
33516         (gl_oset_create_empty): Add dispose_fn argument.
33517         (struct gl_oset_implementation): Add dispose_fn argument to
33518         'create_empty' method.
33519         (struct gl_oset_impl_base): Add dispose_fn field.
33520         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
33521         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
33522         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
33523         values.
33524         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
33525         (gl_tree_oset_free): Call dispose_fn on the dropped values.
33526         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33527         dropped value.
33528         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33529         dropped value.
33530         * tests/test-array_oset.c (main): Update.
33531         * tests/test-avltree_oset.c (main): Update.
33532         * tests/test-rbtree_oset.c (main): Update.
33533         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
33534
33535 2007-03-13  Bruno Haible  <bruno@clisp.org>
33536
33537         * tests/test-stdbool.c (i): Update after last patch.
33538
33539 2007-03-12  Bruno Haible  <bruno@clisp.org>
33540
33541         * lib/quotearg.c: Include <wctype.h> early, before the definition of
33542         the iswprint macro. Needed on Solaris 2.5.1.
33543
33544 2007-03-12  Bruno Haible  <bruno@clisp.org>
33545
33546         * tests/test-printf-frexp.c (main): Declare x as volatile.
33547
33548 2007-03-12  Simon Josefsson  <simon@josefsson.org>
33549
33550         * doc/gnulib.texi (Build robot for gnulib): New section.
33551
33552 2007-03-12  Jim Meyering  <jim@meyering.net>
33553
33554         * build-aux/bootstrap: New file.
33555         * build-aux/bootstrap.conf: New file, from coreutils.
33556
33557 2007-03-11  Bruno Haible  <bruno@clisp.org>
33558
33559         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
33560
33561 2007-03-12  Simon Josefsson  <simon@josefsson.org>
33562
33563         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
33564         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
33565         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
33566
33567 2007-03-11  Bruno Haible  <bruno@clisp.org>
33568
33569         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
33570         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
33571
33572 2007-03-11  Bruno Haible  <bruno@clisp.org>
33573
33574         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
33575         formula. Needed for SunPRO C 5.0.
33576
33577 2007-03-11  Bruno Haible  <bruno@clisp.org>
33578
33579         * modules/long-options (Depends-on): Add getopt.
33580
33581 2007-03-11  Bruno Haible  <bruno@clisp.org>
33582
33583         * modules/modechange (Depends-on): Add stdbool.
33584
33585 2007-03-11  Bruno Haible  <bruno@clisp.org>
33586
33587         * modules/i-ring (Depends-on): Add stdbool.
33588
33589 2007-03-11  Bruno Haible  <bruno@clisp.org>
33590
33591         * modules/gc-des (Depends-on): Add stdbool.
33592
33593 2007-03-11  Bruno Haible  <bruno@clisp.org>
33594
33595         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
33596
33597 2007-03-11  Bruno Haible  <bruno@clisp.org>
33598
33599         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
33600
33601 2007-03-11  Bruno Haible  <bruno@clisp.org>
33602
33603         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
33604
33605 2007-03-11  Bruno Haible  <bruno@clisp.org>
33606
33607         * lib/vasnprintf.c (sprintf): Undefine.
33608
33609 2007-03-11  Bruno Haible  <bruno@clisp.org>
33610
33611         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
33612         initializers in SunPRO C and Compaq C compilers.
33613
33614 2007-03-11  Bruno Haible  <bruno@clisp.org>
33615
33616         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
33617         decrementing code ANSI C compliant.
33618
33619 2007-03-11  Bruno Haible  <bruno@clisp.org>
33620
33621         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
33622         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
33623
33624 2007-03-11  Bruno Haible  <bruno@clisp.org>
33625
33626         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
33627         <stdbool.h> substitute doesn't pass.
33628
33629 2007-03-11  Bruno Haible  <bruno@clisp.org>
33630
33631         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
33632
33633 2007-03-11  Bruno Haible  <bruno@clisp.org>
33634
33635         * gnulib-tool (func_create_megatestdir): Create also an autobuild
33636         script, for submission to autobuild.josefsson.org.
33637
33638 2007-03-10  Bruno Haible  <bruno@clisp.org>
33639
33640         * modules/canonicalize-lgpl-tests: New file.
33641         * tests/test-canonicalize-lgpl.sh: New file.
33642         * tests/test-canonicalize-lgpl.c: New file.
33643
33644         * modules/c-strcase-tests: New file.
33645         * tests/test-c-strcase.sh: New file.
33646         * tests/test-c-strcasecmp.c: New file.
33647         * tests/test-c-strncasecmp.c: New file.
33648
33649         * modules/atexit-tests: New file.
33650         * tests/test-atexit.sh: New file.
33651         * tests/test-atexit.c: New file.
33652
33653 2007-03-10  Bruno Haible  <bruno@clisp.org>
33654
33655         * tests/test-binary-io.sh: Use temporary filenames that are not so
33656         likely to clash with those of other tests (in a parallel make).
33657         * tests/test-binary-io.c: Likewise.
33658
33659 2007-03-10  Bruno Haible  <bruno@clisp.org>
33660
33661         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
33662         fallback; use #error instead.
33663         Suggested by Simon Josefsson.
33664
33665 2007-03-10  Bruno Haible  <bruno@clisp.org>
33666
33667         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
33668         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
33669         first and the last.
33670
33671 2007-03-10  Bruno Haible  <bruno@clisp.org>
33672
33673         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
33674
33675 2007-03-10  Bruno Haible  <bruno@clisp.org>
33676
33677         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
33678         "make distcheck".
33679         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
33680         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
33681         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
33682
33683 2007-03-10  Bruno Haible  <bruno@clisp.org>
33684
33685         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
33686         variable.
33687         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
33688         variable.
33689
33690 2007-03-09  Eric Blake  <ebb9@byu.net>
33691         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
33692
33693         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
33694         types are not being provided by gnulib.
33695         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
33696         types are supported.
33697
33698 2007-03-10  Bruno Haible  <bruno@clisp.org>
33699
33700         * lib/stdio_.h (__attribute__): New macro.
33701         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
33702         vsprintf): Specify __attribute__ __format__ for GCC.
33703         Suggested by Eric Blake.
33704
33705 2007-03-09  Bruno Haible  <bruno@clisp.org>
33706
33707         * modules/printf-posix-tests: New file.
33708         * tests/test-printf-posix.sh: New file.
33709         * tests/test-printf-posix.c: New file.
33710
33711         * modules/printf-posix: New file.
33712         * lib/printf.c: New file.
33713         * m4/printf-posix-rpl.m4: New file.
33714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
33715         REPLACE_PRINTF.
33716         * lib/stdio_.h (printf): New declaration.
33717         (format, __format__, ____printf____, ____scanf____, ____strftime____,
33718         ____strfmon____): New macros.
33719         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
33720         REPLACE_PRINTF.
33721
33722 2007-03-09  Bruno Haible  <bruno@clisp.org>
33723
33724         * tests/test-vasnprintf-posix2.sh: New file.
33725         * tests/test-vasnprintf-posix2.c: New file.
33726         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
33727         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33728         (Makefile.am): Activate test-vasnprintf-posix2.sh.
33729
33730         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
33731         a locale dependent decimal point, rather than always '.'.
33732
33733 2007-03-09  Eric Blake  <ebb9@byu.net>
33734
33735         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
33736         spite of platforms like Tandem/NSK that define it to -1.
33737
33738 2007-03-08  Bruno Haible  <bruno@clisp.org>
33739
33740         * modules/vprintf-posix-tests: New file.
33741         * tests/test-vprintf-posix.sh: New file.
33742         * tests/test-vprintf-posix.c: New file.
33743         * tests/test-printf-posix.h: New file.
33744
33745         * modules/vprintf-posix: New file.
33746         * lib/vprintf.c: New file.
33747         * m4/vprintf-posix.m4: New file.
33748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
33749         REPLACE_VPRINTF.
33750         * lib/stdio_.h (vprintf): New declaration.
33751         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
33752         REPLACE_VPRINTF.
33753
33754 2007-03-08  Bruno Haible  <bruno@clisp.org>
33755
33756         * modules/fprintf-posix-tests: New file.
33757         * tests/test-fprintf-posix.sh: New file.
33758         * tests/test-fprintf-posix.c: New file.
33759
33760         * modules/fprintf-posix: New file.
33761         * lib/fprintf.c: New file.
33762         * m4/fprintf-posix.m4: New file.
33763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
33764         REPLACE_FPRINTF.
33765         * lib/stdio_.h (fprintf): New declaration.
33766         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
33767         REPLACE_FPRINTF.
33768
33769 2007-03-08  Bruno Haible  <bruno@clisp.org>
33770
33771         * modules/vfprintf-posix-tests: New file.
33772         * tests/test-vfprintf-posix.sh: New file.
33773         * tests/test-vfprintf-posix.c: New file.
33774         * tests/test-fprintf-posix.h: New file.
33775         * tests/test-fprintf-posix.out: New file.
33776
33777         * modules/vfprintf-posix: New file.
33778         * lib/vfprintf.c: New file.
33779         * m4/vfprintf-posix.m4: New file.
33780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
33781         REPLACE_VFPRINTF.
33782         * lib/stdio_.h (vfprintf): New declaration.
33783         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
33784         REPLACE_VFPRINTF.
33785
33786 2007-03-08  Bruno Haible  <bruno@clisp.org>
33787
33788         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
33789
33790 2007-03-08  Bruno Haible  <bruno@clisp.org>
33791
33792         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
33793         instead of 'expr' invocations.
33794         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33795         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33796         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33797         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33798         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33799         Suggested by Paul Eggert.
33800
33801 2007-03-08  Bruno Haible  <bruno@clisp.org>
33802
33803         * modules/fseterr-tests: New file.
33804         * tests/test-fseterr.c: New file.
33805
33806         * modules/fseterr: New file.
33807         * lib/fseterr.h: New file.
33808         * lib/fseterr.c: New file.
33809
33810 2007-03-08  Bruno Haible  <bruno@clisp.org>
33811
33812         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
33813         * lib/getopt_.h: Likewise.
33814         * lib/mbswidth.h: Likewise.
33815         * lib/setenv.h: Likewise.
33816         * lib/vasnprintf.h: Likewise.
33817         * lib/vasprintf.h: Likewise.
33818         * lib/verror.h: Likewise.
33819         * lib/xsetenv.h: Likewise.
33820         * lib/xvasprintf.h: Likewise.
33821
33822 2007-03-08  Jim Meyering  <jim@meyering.net>
33823
33824         * users.txt: Add parted.
33825
33826         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
33827
33828 2007-03-07  Bruno Haible  <bruno@clisp.org>
33829
33830         * m4/printf.m4: Make the shell script snippets copy&pastable.
33831
33832 2007-03-02  Bruno Haible  <bruno@clisp.org>
33833
33834         * lib/netinet_in_.h: New file.
33835         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
33836         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
33837         * modules/netinet_in (Files): Add lib/netinet_in_.h.
33838         (Depends-on): Add absolute-header.
33839         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
33840         into netinet/in.h.
33841
33842 2007-03-03  Bruno Haible  <bruno@clisp.org>
33843
33844         * lib/sys_select_.h: New file.
33845         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
33846         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
33847         * modules/sys_select (Files): Add lib/sys_select_.h.
33848         (Depends-on): Add absolute-header.
33849         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
33850         into sys/select.h.
33851
33852 2007-03-02  Bruno Haible  <bruno@clisp.org>
33853
33854         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
33855         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
33856         values.
33857         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
33858         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
33859         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
33860         * modules/sys_socket (Depends-on): Add absolute-header.
33861         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
33862         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
33863         (Include): Remove requirement of inclusion of <sys/types.h>.
33864
33865 2007-03-02  Bruno Haible  <bruno@clisp.org>
33866
33867         * lib/byteswap_.h (bswap_32): Fix formula.
33868
33869 2007-03-06  Bruno Haible  <bruno@clisp.org>
33870
33871         * modules/sprintf-posix-tests: New file.
33872         * tests/test-sprintf-posix.c: New file.
33873
33874         * modules/sprintf-posix: New file.
33875         * lib/sprintf.c: New file.
33876         * m4/sprintf-posix.m4: New file.
33877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
33878         REPLACE_SPRINTF.
33879         * lib/stdio_.h (sprintf): New declaration.
33880         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
33881         REPLACE_SPRINTF.
33882
33883 2007-03-06  Bruno Haible  <bruno@clisp.org>
33884
33885         * modules/vsprintf-posix-tests: New file.
33886         * tests/test-vsprintf-posix.c: New file.
33887         * tests/test-sprintf-posix.h: New file.
33888
33889         * modules/vsprintf-posix: New file.
33890         * lib/vsprintf.c: New file.
33891         * m4/vsprintf-posix.m4: New file.
33892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
33893         REPLACE_VSPRINTF.
33894         * lib/stdio_.h (vsprintf): New declaration.
33895         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
33896         REPLACE_VSPRINTF.
33897
33898 2007-03-06  Bruno Haible  <bruno@clisp.org>
33899
33900         * modules/vsnprintf (Depend-on): Remove minmax.
33901
33902 2007-03-06  Bruno Haible  <bruno@clisp.org>
33903
33904         * modules/snprintf-posix-tests: New file.
33905         * tests/test-snprintf-posix.c: New file.
33906
33907         * modules/snprintf-posix: New file.
33908         * m4/snprintf-posix.m4: New file.
33909         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
33910         gl_FUNC_SNPRINTF.
33911         (gl_FUNC_SNPRINTF): Invoke it.
33912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
33913         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
33914         is set.
33915         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
33916
33917 2007-03-06  Bruno Haible  <bruno@clisp.org>
33918
33919         * modules/vsnprintf-posix-tests: New file.
33920         * tests/test-vsnprintf-posix.c: New file.
33921         * tests/test-snprintf-posix.h: New file.
33922
33923         * modules/vsnprintf-posix: New file.
33924         * m4/vsnprintf-posix.m4: New file.
33925         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
33926         gl_FUNC_VSNPRINTF.
33927         (gl_FUNC_VSNPRINTF): Invoke it.
33928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
33929         * lib/stdio_.h (vsnprintf): Define as a replacement if
33930         REPLACE_VSNPRINTF is set.
33931         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
33932
33933 2007-03-06  Bruno Haible  <bruno@clisp.org>
33934
33935         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
33936         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
33937
33938 2007-03-06  Bruno Haible  <bruno@clisp.org>
33939
33940         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
33941         (asinl): Declare also if HAVE_DECL_ASINL is set.
33942         (atanl): Declare also if HAVE_DECL_ATANL is set.
33943         (ceill): Declare also if HAVE_DECL_CEILL is set.
33944         (cosl): Declare also if HAVE_DECL_COSL is set.
33945         (expl): Declare also if HAVE_DECL_EXPL is set.
33946         (floorl): Declare also if HAVE_DECL_FLOORL is set.
33947         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
33948         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
33949         (logl): Declare also if HAVE_DECL_LOGL is set.
33950         (sinl): Declare also if HAVE_DECL_SINL is set.
33951         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
33952         (tanl): Declare also if HAVE_DECL_TANL is set.
33953         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
33954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
33955         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
33956         declaration of frexpl, ldexpl.
33957         * modules/printf-frexpl (Depends-on): Add math.
33958         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
33959
33960 2007-03-05  Bruno Haible  <bruno@clisp.org>
33961
33962         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
33963         frexpl and ldexpl are declared.
33964         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
33965
33966 2007-03-05  Bruno Haible  <bruno@clisp.org>
33967
33968         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
33969         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
33970
33971 2007-03-05  Bruno Haible  <bruno@clisp.org>
33972
33973         * lib/stdio_.h: Include <stddef.h>.
33974
33975 2007-03-05  Bruno Haible  <bruno@clisp.org>
33976
33977         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
33978
33979 2007-03-05  Bruno Haible  <bruno@clisp.org>
33980
33981         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
33982         NetBSD 4, from Ralf Wildenhues.
33983
33984 2007-03-04  Bruno Haible  <bruno@clisp.org>
33985
33986         * lib/vasprintf.h: Update #if logic for the case when the functions
33987         exist but are overridden.
33988
33989 2007-03-04  Bruno Haible  <bruno@clisp.org>
33990
33991         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
33992         implementations: glibc-2.4 and MacOS X 10.3.
33993         * tests/test-vasnprintf-posix.c (test_function): Test also the case
33994         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
33995         * tests/test-vasprintf-posix.c (test_function): Likewise.
33996
33997 2007-03-04  Bruno Haible  <bruno@clisp.org>
33998
33999         * modules/vasprintf-posix-tests: New file.
34000         * tests/test-vasprintf-posix.c: New file.
34001
34002         * modules/vasprintf-posix: New file.
34003         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
34004         defined.
34005         * m4/vasprintf-posix.m4: New file.
34006         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
34007         gl_FUNC_VASPRINTF.
34008         (gl_FUNC_VASPRINTF): Invoke it.
34009         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
34010         here.
34011         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
34012
34013 2007-03-04  Bruno Haible  <bruno@clisp.org>
34014
34015         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
34016         REPLACE_GETTIMEOFDAY.
34017         * modules/sys_time (Makefile.am): Likewise.
34018         * m4/sys_time_h.m4: Likewise.
34019         * m4/gettimeofday.m4: Likewise.
34020
34021 2007-03-04  Bruno Haible  <bruno@clisp.org>
34022
34023         * modules/vasnprintf-posix-tests: New file.
34024         * tests/test-vasnprintf-posix.c: New file.
34025
34026         * modules/vasnprintf-posix: New file.
34027         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
34028         printf-frexpl.h.
34029         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
34030         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
34031         REPLACE_VASNPRINTF is defined.
34032         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
34033         gl_FUNC_VASNPRINTF.
34034         (gl_FUNC_VASNPRINTF): Invoke it.
34035         * m4/vasnprintf-posix.m4: New file.
34036         * m4/printf.m4: New file.
34037
34038 2007-03-04  Bruno Haible  <bruno@clisp.org>
34039
34040         Compile progreloc.c only if --enable-relocatable is specified.
34041         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
34042         if --enable-relocatable was specified.
34043         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
34044         lib_SOURCES.
34045
34046 2007-03-04  Jim Meyering  <jim@meyering.net>
34047
34048         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
34049         Use it consistently, rather than enumerating errno constants.
34050
34051 2007-03-04  Bruno Haible  <bruno@clisp.org>
34052
34053         * modules/xvasprintf-tests: New file.
34054         * tests/test-xvasprintf.c: New file.
34055
34056         * modules/vasprintf-tests: New file.
34057         * tests/test-vasprintf.c: New file.
34058
34059         * modules/vasnprintf-tests: New file.
34060         * tests/test-vasnprintf.c: New file.
34061
34062         * modules/vsnprintf-tests: New file.
34063         * tests/test-vsnprintf.c: New file.
34064
34065         * modules/snprintf-tests: New file.
34066         * tests/test-snprintf.c: New file.
34067
34068 2007-03-04  Bruno Haible  <bruno@clisp.org>
34069
34070         Compile relocatable.c only if --enable-relocatable is specified.
34071         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
34072         gl_RELOCATABLE_LIBRARY.
34073         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
34074         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
34075         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
34076         gl_RELOCATABLE_LIBRARY.
34077         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
34078         (Makefile.am): Remove lib_SOURCES.
34079         * modules/relocatable-lib-lgpl (configure.ac): Invoke
34080         gl_RELOCATABLE_LIBRARY.
34081         (Makefile.am): Remove lib_SOURCES.
34082         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
34083         always.
34084         * modules/relocatable-prog-wrapper (configure.ac): Invoke
34085         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
34086
34087 2007-03-04  Bruno Haible  <bruno@clisp.org>
34088
34089         * modules/argmatch-tests: New file.
34090         * tests/test-argmatch.c: New file.
34091
34092         * tests/test-allocsa.c (main): Halve the number of loop runs.
34093
34094         * modules/alloca-opt-tests: New file.
34095         * tests/test-alloca-opt.c: New file.
34096
34097 2007-03-04  Jim Meyering  <jim@meyering.net>
34098
34099         Work around difference between Linux ACLs and Solaris 10 ZFS.
34100         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
34101         for EINVAL.
34102
34103 2007-03-03  Bruno Haible  <bruno@clisp.org>
34104
34105         * modules/relocatable-prog (Depends-on): Add back progreloc's
34106         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
34107
34108 2007-03-03  Bruno Haible  <bruno@clisp.org>
34109
34110         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
34111         * modules/relocatable-lib: New file.
34112
34113 2007-03-03  Bruno Haible  <bruno@clisp.org>
34114
34115         * modules/relocatable-prog: Renamed from modules/relocatable.
34116         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
34117
34118 2007-03-03  Bruno Haible  <bruno@clisp.org>
34119
34120         * modules/relocatable-script (Files): Add doc/relocatable.texi,
34121         m4/relocatable-lib.m4.
34122         (Depends-on): Remove 'relocatable'.
34123         (configure.ac): Add gl_RELOCATABLE_NOP.
34124
34125 2007-03-03  Bruno Haible  <bruno@clisp.org>
34126
34127         * modules/relocatable-prog-wrapper: New file.
34128         * modules/relocatable (Depends-on): Add it. Remove all other
34129         dependencies except progname.
34130         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
34131
34132         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
34133         (gl_FUNC_STRERROR): Nop.
34134         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
34135
34136         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
34137         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
34138
34139         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
34140         (gl_FUNC_READLINK): Update.
34141
34142         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
34143
34144 2007-03-03  Bruno Haible  <bruno@clisp.org>
34145
34146         * lib/xreadlink.c: Include <unistd.h> unconditionally.
34147         * modules/xreadlink (Depends-on): Add unistd.
34148         * modules/xreadlink-with-size (Depends-on): Likewise.
34149
34150 2007-03-03  Bruno Haible  <bruno@clisp.org>
34151
34152         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
34153         extracted from gt_FUNC_SETENV.
34154         (gt_FUNC_SETENV): Remove macro.
34155         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
34156         remove gt_FUNC_SETENV.
34157
34158 2007-03-03  Bruno Haible  <bruno@clisp.org>
34159
34160         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
34161         ENABLE_RELOCATABLE here.
34162         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
34163
34164 2007-03-03  Bruno Haible  <bruno@clisp.org>
34165
34166         * modules/rbtreehash-list-tests (Depends-on): Add progname.
34167         * tests/test-rbtreehash_list.c: Include progname.h.
34168         (main): Call set_program_name.
34169
34170         * modules/rbtree-oset-tests (Depends-on): Add progname.
34171         * tests/test-rbtree_oset.c: Include progname.h.
34172         (main): Call set_program_name.
34173
34174         * modules/rbtree-list-tests (Depends-on): Add progname.
34175         * tests/test-rbtree_list.c: Include progname.h.
34176         (main): Call set_program_name.
34177
34178         * modules/linked-list-tests (Depends-on): Add progname.
34179         * tests/test-linked_list.c: Include progname.h.
34180         (main): Call set_program_name.
34181
34182 2007-03-03  Bruno Haible  <bruno@clisp.org>
34183
34184         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
34185         All uses of __restrict changed to _Restrict_.
34186         * lib/glob_.h (__restrict): Remove macro.
34187
34188 2007-03-02  Bruno Haible  <bruno@clisp.org>
34189
34190         * modules/gettext (configure.ac): Require gettext infrastructure
34191         from version 0.16.1.
34192
34193 2007-03-02  Bruno Haible  <bruno@clisp.org>
34194
34195         * modules/linkedhash-list-tests (Depends-on): Add progname.
34196         * tests/test-linkedhash_list.c: Include progname.h.
34197         (main): Call set_program_name.
34198
34199         * modules/carray-list-tests (Depends-on): Add progname.
34200         * tests/test-carray_list.c: Include progname.h.
34201         (main): Call set_program_name.
34202
34203         * modules/avltreehash-list-tests (Depends-on): Add progname.
34204         * tests/test-avltreehash_list.c: Include progname.h.
34205         (main): Call set_program_name.
34206
34207         * modules/avltree-oset-tests (Depends-on): Add progname.
34208         * tests/test-avltree_oset.c: Include progname.h.
34209         (main): Call set_program_name.
34210
34211         * modules/avltree-list-tests (Depends-on): Add progname.
34212         * tests/test-avltree_list.c: Include progname.h.
34213         (main): Call set_program_name.
34214
34215         * modules/array-oset-tests (Depends-on): Add progname.
34216         * tests/test-array_oset.c: Include progname.h.
34217         (main): Call set_program_name.
34218
34219         * modules/array-list-tests (Depends-on): Add progname.
34220         * tests/test-array_list.c: Include progname.h.
34221         (main): Call set_program_name.
34222
34223         * modules/argp-tests (Depends-on): Add progname.
34224         * tests/test-argp.c: Include argp.h first. Include progname.h.
34225         (main): Call set_program_name.
34226
34227 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
34228
34229         * doc/gnulib-tool.texi (Initial import): Reword description of
34230         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
34231         limited effect even if defined after the first system include.
34232
34233 2007-03-01  Bruno Haible  <bruno@clisp.org>
34234
34235         * build-aux/config.libpath: Update to libtool-1.5.22.
34236         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34237
34238 2007-03-01  Bruno Haible  <bruno@clisp.org>
34239
34240         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
34241         foo_CFLAGS.
34242         Reported by Ralf Wildenhues.
34243
34244 2007-03-01  Bruno Haible  <bruno@clisp.org>
34245
34246         * build-aux/install-reloc: Remove object files left over by some
34247         compilers.
34248         Reported by Ralf Wildenhues.
34249
34250 2007-03-01  Bruno Haible  <bruno@clisp.org>
34251
34252         * build-aux/install-reloc: Break long lines.
34253
34254 2007-03-01  Bruno Haible  <bruno@clisp.org>
34255
34256         * doc/relocatable.texi: Document that it may not work on OpenBSD.
34257         Reported by Ralf Wildenhues.
34258
34259 2007-03-01  Bruno Haible  <bruno@clisp.org>
34260
34261         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
34262         include ordering constraints.
34263
34264 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
34265
34266         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
34267         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
34268         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
34269         as another example.
34270         * lib/time_.h: Fix misspelling.
34271         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
34272         Require gl_HEADER_TIME_H_DEFAULTS.
34273         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
34274         * m4/time_r.m4 (gl_TIME_R): Likewise.
34275         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
34276
34277 2007-03-01  Bruno Haible  <bruno@clisp.org>
34278
34279         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
34280         * m4/utimens.m4 (gl_UTIMENS): Likewise.
34281
34282 2007-03-01  Jim Meyering  <jim@meyering.net>
34283
34284         * modules/xreadlink (Maintainer): Add my name.
34285         * modules/xreadlink-with-size (Depends-on): Alphabetize.
34286
34287 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
34288             Bruno Haible  <bruno@clisp.org>
34289
34290         * build-aux/install-reloc: Compile also c-ctype.c.
34291         * build-aux/relocatable.sh.in: New file.
34292         * doc/relocatable.texi: New file.
34293         * doc/relocatable-maint.texi: New file.
34294         * doc/gnulib.texi: Include relocatable-maint.texi.
34295         * lib/progreloc.c: Include unistd.h unconditionally.
34296         * lib/relocwrapper.c: Include unistd.h unconditionally.
34297         Include c-ctype.h.
34298         (add_dotbin): Use c_tolower.
34299         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
34300         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
34301         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
34302         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
34303         to m4/relocatable-lib.m4.
34304         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
34305         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
34306         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
34307         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
34308         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
34309         * modules/relocatable: New file.
34310         * modules/relocatable-lib: New file.
34311         * modules/relocatable-script: New file.
34312
34313 2007-02-28  Bruno Haible  <bruno@clisp.org>
34314
34315         Import --enable-relocatable infrastructure.
34316         * build-aux/config.libpath: New file, from GNU gettext.
34317         * build-aux/install-reloc: New file, from GNU gettext.
34318         * build-aux/reloc-ldflags: New file, from GNU gettext.
34319         * lib/relocatable.h: New file, from GNU gettext.
34320         * lib/relocatable.c: New file, from GNU gettext.
34321         * lib/relocwrapper.c: New file, from GNU gettext.
34322         * m4/relocatable.m4: New file, from GNU gettext.
34323
34324 2007-02-28  Bruno Haible  <bruno@clisp.org>
34325
34326         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
34327
34328         * modules/xreadlink: New file, from GNU gettext with modifications.
34329         * lib/xreadlink.c: New file, from GNU gettext.
34330         * lib/xreadlink.h: Add comments.
34331         (xreadlink): New declaration.
34332
34333         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
34334         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
34335         lib/xreadlink-with-size.c.
34336         (configure.ac): Remove gl_XREADLINK invocation.
34337         (Makefile.am): Augment lib_SOURCES.
34338         * m4/xreadlink.m4: Remove file.
34339         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
34340         (xreadlink_with_size): Renamed from xreadink.
34341         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
34342         * modules/canonicalize (Depends-on): Replace xreadlink with
34343         xreadlink-with-size.
34344         * lib/canonicalize.c (canonicalize_filename_mode): Update.
34345
34346 2007-02-25  Jim Meyering  <jim@meyering.net>
34347
34348         * build-aux/announce-gen: When complaining about excess arguments,
34349         list them.
34350
34351 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34352
34353         * README: Document signed integer overflow situation more
34354         accurately.
34355
34356 2007-02-25  Bruno Haible  <bruno@clisp.org>
34357
34358         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
34359         'a' or 'A' conversion.
34360
34361 2007-02-25  Bruno Haible  <bruno@clisp.org>
34362
34363         * modules/filename: Renamed from modules/pathname.
34364         (Files): Replace lib/pathname.h with lib/filename.h. Replace
34365         lib/concatpath.c with lib/concat-filename.c.
34366         (Makefile.am): Update.
34367         (Include): Replace pathname.h with filename.h.
34368         * lib/filename.h: Renamed from lib/pathname.h.
34369         (concatenated_filename): Renamed from concatenated_pathname.
34370         * lib/concat-filename.c: Renamed from lib/concatpath.c.
34371         (concatenated_filename): Renamed from concatenated_pathname.
34372         * lib/findprog.c: Include filename.h instead of pathname.h.
34373         (find_in_path): Update.
34374         * lib/javacomp.c: Include filename.h instead of pathname.h.
34375         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34376         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34377         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34378         is_oldgcj_14_13_usable, is_javac_usable): Update.
34379         * lib/javaexec.c: Include filename.h instead of pathname.h.
34380         (execute_java_class): Update.
34381         * modules/findprog: Update.
34382         * modules/javacomp: Update.
34383         * modules/javaexec: Update.
34384         * MODULES.html.sh (File system functions): Add 'filename', remove
34385         'pathname'.
34386
34387 2007-02-25  Bruno Haible  <bruno@clisp.org>
34388
34389         * modules/printf-frexpl-tests: New file.
34390         * tests/test-printf-frexpl.c: New file.
34391
34392         * modules/printf-frexpl: New file.
34393         * lib/printf-frexpl.h: New file.
34394         * lib/printf-frexpl.c: New file.
34395         * m4/printf-frexpl.m4: New file.
34396
34397 2007-02-25  Bruno Haible  <bruno@clisp.org>
34398
34399         * modules/printf-frexp-tests: New file.
34400         * tests/test-printf-frexp.c: New file.
34401
34402         * modules/printf-frexp: New file.
34403         * lib/printf-frexp.h: New file.
34404         * lib/printf-frexp.c: New file.
34405         * m4/printf-frexp.m4: New file.
34406
34407 2007-02-25  Bruno Haible  <bruno@clisp.org>
34408
34409         Assume automake >= 1.10 for the tests.
34410         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
34411         * modules/arctwo-tests: Likewise.
34412         * modules/argp-tests: Likewise.
34413         * modules/avltree-list-tests: Likewise.
34414         * modules/avltree-oset-tests: Likewise.
34415         * modules/avltreehash-list-tests: Likewise.
34416         * modules/carray-list-tests: Likewise.
34417         * modules/crc-tests: Likewise.
34418         * modules/des-tests: Likewise.
34419         * modules/gc-arcfour-tests: Likewise.
34420         * modules/gc-arctwo-tests: Likewise.
34421         * modules/gc-des-tests: Likewise.
34422         * modules/gc-hmac-md5-tests: Likewise.
34423         * modules/gc-hmac-sha1-tests: Likewise.
34424         * modules/gc-md2-tests: Likewise.
34425         * modules/gc-md4-tests: Likewise.
34426         * modules/gc-md5-tests: Likewise.
34427         * modules/gc-pbkdf2-sha1-tests: Likewise.
34428         * modules/gc-rijndael-tests: Likewise.
34429         * modules/gc-sha1-tests: Likewise.
34430         * modules/gc-tests: Likewise.
34431         * modules/getaddrinfo-tests: Likewise.
34432         * modules/hmac-md5-tests: Likewise.
34433         * modules/hmac-sha1-tests: Likewise.
34434         * modules/linked-list-tests: Likewise.
34435         * modules/linkedhash-list-tests: Likewise.
34436         * modules/lock-tests: Likewise.
34437         * modules/md2-tests: Likewise.
34438         * modules/md4-tests: Likewise.
34439         * modules/md5-tests: Likewise.
34440         * modules/rbtree-list-tests: Likewise.
34441         * modules/rbtree-oset-tests: Likewise.
34442         * modules/rbtreehash-list-tests: Likewise.
34443         * modules/read-file-tests: Likewise.
34444         * modules/rijndael-tests: Likewise.
34445         * modules/stdint-tests: Likewise.
34446         * modules/tls-tests: Likewise.
34447
34448 2007-02-24  Bruno Haible  <bruno@clisp.org>
34449
34450         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
34451         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
34452         function; instead check whether isnan with a double argument links.
34453         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
34454         function; instead check whether isnan with a 'long double' argument
34455         links.
34456         Reported by Eric Blake <ebb9@byu.net>.
34457
34458 2007-02-24  Bruno Haible  <bruno@clisp.org>
34459
34460         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
34461         defined.
34462         * lib/isnanl.c: Remove all code. Just include isnan.c.
34463         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
34464
34465 2007-02-25  Jim Meyering  <jim@meyering.net>
34466
34467         Avoid conflicting types for 'unsetenv' on FreeBSD.
34468         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
34469         conflicting with FreeBSD's (5.0 and 6.1) function declaration
34470         in stdlib.h.
34471
34472 2007-02-24  Bruno Haible  <bruno@clisp.org>
34473
34474         * modules/isnanl-nolibm-tests: New file.
34475         * tests/test-isnanl.c: New file.
34476
34477         * modules/isnanl-nolibm: New file.
34478         * lib/isnanl.h: New file.
34479         * lib/isnanl.c: New file.
34480         * m4/isnanl.m4: New file.
34481
34482 2007-02-24  Bruno Haible  <bruno@clisp.org>
34483
34484         * modules/isnan-nolibm-tests: New file.
34485         * tests/test-isnan.c: New file.
34486
34487         * modules/isnan-nolibm: New file.
34488         * lib/isnan.h: New file.
34489         * lib/isnan.c: New file.
34490         * m4/isnan.m4: New file.
34491
34492 2007-02-24  Bruno Haible  <bruno@clisp.org>
34493
34494         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
34495         assume that an exponent fits in 20 bits.
34496
34497 2007-02-24  Jim Meyering  <jim@meyering.net>
34498
34499         * m4/regex.m4: Update the description of the configure-time option,
34500         --without-included-regex, to state accurately what the defaults are,
34501         and perhaps to give people an idea why using this option is risky.
34502
34503 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
34504
34505         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
34506         loops on small arguments.  This attempts to avoid the problem
34507         Bruno Haible reported for AIX 4.3.2 in
34508         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
34509
34510 2007-02-23  Bruno Haible  <bruno@clisp.org>
34511
34512         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
34513         Needed for help2man.
34514
34515 2007-02-23  Karl Berry  <karl@gnu.org>
34516
34517         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
34518         exists, foo.h should be cvs-ignored, not committed.
34519
34520 2007-02-23  Eric Blake  <ebb9@byu.net>
34521
34522         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
34523         * lib/stat-time.h (includes): Likewise.
34524         * lib/utimecmp.c (includes): Likewise.
34525         * lib/utimens.h (includes): Likewise.
34526         * lib/getdate.y (includes): Also include "timespec.h" for use
34527         internal to the module.
34528         * modules/utimens (Depends-on): Revert yesterday's patch.
34529         * modules/nanosleep (Depends-on): Add missing dependency.
34530
34531 2007-02-22  Bruno Haible  <bruno@clisp.org>
34532
34533         * lib/glob.c: Don't include getlogin_r.h.
34534
34535 2007-02-22  Jim Meyering  <jim@meyering.net>
34536
34537         * modules/utimens (Depends-on): Add timespec, required for
34538         utimens.h's inclusion of timespec.h.
34539
34540 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
34541
34542         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
34543         long unreadable paths in GNU/Linux.  Problem reported by Andreas
34544         Schwab in
34545         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
34546         I'll try to think of a better way to fix the Solaris problem.
34547
34548         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
34549         like glibc; on Solaris 10, it fails with errno == EINVAL.
34550         POSIX says the behavior is unspecified if the first argument is NULL,
34551         so play it safe and never pass NULL to the system getcwd.
34552
34553 2007-02-21  Jim Meyering  <jim@meyering.net>
34554
34555         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
34556         of gettimeofday.  It would conflict with the one now always
34557         provided via sys_time_.h.  Reported by Matthew Woehlke, as
34558         an IRIX 6.5 build failure.
34559
34560 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34561
34562         Minor fixups to port to Solaris 10 with Sun C 5.8.
34563         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
34564         * modules/getcwd (Depends-on): Add dirfd.
34565         * lib/putenv.c (putenv): #undef it.
34566         (rpl_putenv): New decl.
34567         (malloc, free): Include <stdlib.h> rather than prototyping separately.
34568
34569 2007-02-20  Bruno Haible  <bruno@clisp.org>
34570
34571         * modules/stdio-tests: New file.
34572         * tests/test-stdio.c: New file.
34573
34574         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
34575         (Depends-on): Add stdio.
34576         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34577         (Include): Use <stdio.h> instead of vsnprintf.h.
34578         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34579         HAVE_DECL_VSNPRINTF.
34580         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
34581
34582         * modules/snprintf (Files): Remove lib/snprintf.h.
34583         (Depends-on): Add stdio.
34584         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34585         (Include): Use <stdio.h> instead of snprintf.h.
34586         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34587         HAVE_DECL_SNPRINTF.
34588         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
34589         * lib/getaddrinfo.c: Likewise.
34590
34591         * modules/stdio: New file.
34592         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
34593         * lib/snprintf.h: Remove file.
34594         * lib/vsnprintf.h: Remove file.
34595         * lib/.cppi-disable: Remove snprintf.h.
34596         * m4/stdio_h.m4: New file.
34597         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
34598
34599 2007-02-20  Jim Meyering  <jim@meyering.net>
34600
34601         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
34602         used by e.g., mingw.  From Bruno Haible.
34603
34604 2007-02-19  Bruno Haible  <bruno@clisp.org>
34605
34606         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
34607         warnings.
34608         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34609
34610 2007-02-19  Bruno Haible  <bruno@clisp.org>
34611
34612         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
34613         from mingw users.
34614
34615 2007-02-19  Bruno Haible  <bruno@clisp.org>
34616
34617         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
34618         warnings.
34619         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
34620
34621 2007-02-19  Jim Meyering  <jim@meyering.net>
34622
34623         Don't use FD after a successful "fdopendir (fd)".
34624         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
34625         Reset it by calling dirfd on the just-obtained DIR*.
34626
34627         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
34628         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
34629
34630 2007-02-18  Bruno Haible  <bruno@clisp.org>
34631
34632         * lib/readlink.c: Include <unistd.h>.
34633         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
34634         HAVE_READLINK.
34635         * modules/readlink (Depends-on): Add unistd.
34636         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34637         (Include): Add <unistd.h>.
34638
34639         * lib/getlogin_r.h: Remove file.
34640         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
34641         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
34642         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
34643         HAVE_DECL_GETLOGIN_R.
34644         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
34645         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34646         (Include): Use <unistd.h> instead of getlogin_r.h.
34647
34648         * lib/getcwd.h: Remove file.
34649         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
34650         * lib/xgetcwd.c: Likewise.
34651         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
34652         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
34653         * modules/getcwd (Files): Remove lib/getcwd.h.
34654         (Depends-on): Add unistd.
34655         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34656         (Include): Use <unistd.h> instad of getcwd.h.
34657
34658         * lib/ftruncate.c: Include <unistd.h> first.
34659         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
34660         Set HAVE_FTRUNCATE.
34661         * modules/ftruncate (Depends-on): Add unistd.
34662         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34663
34664         * lib/fchdir.c: Include <unistd.h> first.
34665         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
34666         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
34667         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
34668         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34669         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
34670
34671         * lib/dup2.c: Include <unistd.h> first.
34672         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
34673         HAVE_DUP2.
34674         * modules/dup2 (Depends-on): Add unistd.
34675         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34676
34677         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
34678         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
34679         REPLACE_CHOWN. Don't define chown as a macro here.
34680         * modules/chown (Depends-on): Add unistd.
34681         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34682
34683         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
34684         Add definition for GL_LINK_WARNING.
34685         (chown, dup2): New declarations.
34686         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
34687         link warning.
34688         (ftruncate): New declaration.
34689         (getcwd): New declaration, taken from old getcwd.h.
34690         (getlogin_r): New declaration, taken from old getlogin_r.h.
34691         (readlink): New declaration.
34692         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
34693         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
34694         (gl_PREREQ_UNISTD): Remove macro.
34695         (gl_UNISTD_MODULE_INDICATOR): New macro.
34696         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
34697         many new variables. Don't set UNISTD_H.
34698         * modules/unistd (Description): Change.
34699         (Depends-on): Add link-warning.
34700         (configure.ac): Update.
34701         (Makefile.am): Create unistd.h always. Substitute many new variables
34702         into it.
34703
34704 2007-02-18  Bruno Haible  <bruno@clisp.org>
34705
34706         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
34707         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
34708         HAVE_GETSUBOPT.
34709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
34710         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
34711         * lib/getsubopt.h: Remove file.
34712         * modules/getsubopt (Files): Remove lib/getsubopt.h.
34713         (Depends-on): Add stdlib.
34714         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34715         (Includes): Use <stdlib.h> instead of getsubopt.h.
34716         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
34717         Set HAVE_GETSUBOPT.
34718         * lib/getsubopt.c: Don't include getsubopt.h.
34719
34720 2007-02-18  Bruno Haible  <bruno@clisp.org>
34721
34722         * modules/fchdir (Depends-on): Add dup2.
34723
34724 2007-02-18  Bruno Haible  <bruno@clisp.org>
34725
34726         * lib/stdlib_.h: Handle glibc's special invocation convention
34727         specially.
34728
34729 2007-02-18  Bruno Haible  <bruno@clisp.org>
34730
34731         * modules/stdlib-tests: New file.
34732         * tests/test-stdlib.c: New file.
34733
34734         * modules/mkstemp (Files): Remove lib/mkstemp.h.
34735         (Depends-on): Add stdlib.
34736         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34737         (Includes): Use <stdlib.h> instead of mkstemp.h.
34738         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34739         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
34740         * lib/mkstemp.c: Don't include mkstemp.h.
34741         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
34742         * lib/stdlib--.h: Don't include mkstemp.h.
34743
34744         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
34745         (Depends-on): Add stdlib.
34746         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34747         (Includes): Use <stdlib.h> instead of mkdtemp.h.
34748         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34749         HAVE_MKDTEMP.
34750         * lib/mkdtemp.c: Don't include mkdtemp.h.
34751         * lib/clean-temp.c: Don't include mkdtemp.h.
34752
34753         * modules/exit (Files): Remove lib/exit.h.
34754         (Depends-on): Add stdlib.
34755         (Makefile.am): Remove lib_SOURCES.
34756         (Include): Use <stdlib.h> instead of exit.h.
34757         * lib/argmatch.c: Don't include exit.h.
34758         * lib/execute.c: Likewise.
34759         * lib/pagealign_alloc.c: Likewise.
34760         * lib/pipe.c: Likewise.
34761         * lib/wait-process.c: Likewise.
34762         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
34763         * lib/exitfail.c: Likewise.
34764         * lib/savewd.c: Likewise.
34765         * lib/xsetenv.c: Likewise.
34766
34767         * modules/stdlib: New file.
34768         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
34769         and extra comments about mkstemp().
34770         * lib/exit.h: Remove file.
34771         * lib/mkdtemp.h: Remove file.
34772         * lib/mkstemp.h: Remove file.
34773         * m4/stdlib_h.m4: New file.
34774         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
34775
34776 2007-02-18  Bruno Haible  <bruno@clisp.org>
34777
34778         * modules/math-tests: New file.
34779         * tests/test-math.c: New file.
34780
34781         * modules/math: New file.
34782         * modules/mathl (Files): Remove lib/mathl.h.
34783         (Depends-on): Add math.
34784         (Makefile.am): Don't mention mathl.h.
34785         (Include): Use <math.h> instead of mathl.h.
34786         * lib/math_.h: New file.
34787         * lib/mathl.h: Remove file.
34788         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
34789         mathl.h.
34790         * lib/asinl.c: Likewise.
34791         * lib/atanl.c: Likewise.
34792         * lib/ceill.c: Likewise.
34793         * lib/cosl.c: Likewise.
34794         * lib/expl.c: Likewise.
34795         * lib/floorl.c: Likewise.
34796         * lib/frexpl.c: Likewise.
34797         * lib/ldexpl.c: Likewise.
34798         * lib/logl.c: Likewise.
34799         * lib/sincosl.c: Likewise.
34800         * lib/sinl.c: Likewise.
34801         * lib/sqrtl.c: Likewise.
34802         * lib/tanl.c: Likewise.
34803         * lib/trigl.c: Likewise.
34804         * m4/math_h.m4: New file.
34805         * MODULES.html.sh (Mathematics): Add math.
34806
34807 2007-02-17  Bruno Haible  <bruno@clisp.org>
34808
34809         * modules/wctype-tests: New file.
34810         * tests/test-wctype.c: New file.
34811
34812         * modules/wchar-tests: New file.
34813         * tests/test-wchar.c: New file.
34814
34815         * modules/unistd-tests: New file.
34816         * tests/test-unistd.c: New file.
34817
34818         * modules/time-tests: New file.
34819         * tests/test-time.c: New file.
34820
34821         * modules/sysexits-tests: New file.
34822         * tests/test-sysexits.c: New file.
34823
34824         * modules/sys_time-tests: New file.
34825         * tests/test-sys_time.c: New file.
34826
34827         * modules/sys_stat-tests: New file.
34828         * tests/test-sys_stat.c: New file.
34829
34830         * modules/sys_socket-tests: New file.
34831         * tests/test-sys_socket.c: New file.
34832
34833         * modules/sys_select-tests: New file.
34834         * tests/test-sys_select.c: New file.
34835
34836         * modules/string-tests: New file.
34837         * tests/test-string.c: New file.
34838
34839         * modules/stdbool-tests: New file.
34840         * tests/test-stdbool.c: New file.
34841
34842         * modules/netinet_in-tests: New file.
34843         * tests/test-netinet_in.c: New file.
34844
34845         * modules/inttypes-tests: New file.
34846         * tests/test-inttypes.c: New file.
34847
34848         * modules/fcntl-tests: New file.
34849         * tests/test-fcntl.c: New file.
34850
34851         * modules/byteswap-tests: New file.
34852         * tests/test-byteswap.c: New file.
34853
34854         * modules/arpa_inet-tests: New file.
34855         * tests/test-arpa_inet.c: New file.
34856
34857 2007-02-17  Bruno Haible  <bruno@clisp.org>
34858
34859         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
34860         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
34861         if the corresponding module is not enabled. Emit link warnings if
34862         the function is used nevertheless.
34863         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
34864         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
34865         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
34866         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
34867         * modules/inttypes (Depends-on): Add link-warning.
34868         (Makefile.am): Copy the contents of build-aux/link-warning.h into
34869         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
34870         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
34871         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
34872         * modules/imaxdiv (configure.ac): Likewise.
34873         * modules/strtoimax (configure.ac): Likewise.
34874         * modules/strtoumax (configure.ac): Likewise.
34875
34876 2007-02-17  Bruno Haible  <bruno@clisp.org>
34877
34878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
34879         gl_STRING_MODULE_INDICATOR_DEFAULTS.
34880         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
34881         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
34882
34883 2007-02-17  Bruno Haible  <bruno@clisp.org>
34884
34885         * modules/link-warning: New file.
34886         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
34887         * lib/string_.h (GL_LINK_WARNING): Remove definition.
34888         * modules/string (Depends-on): Add link-warning.
34889         (Makefile.am): Copy the contents of build-aux/link-warning.h into
34890         string.h.
34891         * MODULES.html.sh (Support for building libraries and executables): Add
34892         link-warning.
34893
34894 2007-02-17  Bruno Haible  <bruno@clisp.org>
34895
34896         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
34897         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
34898         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
34899         long lines.
34900
34901 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
34902             Bruno Haible  <bruno@clisp.org>
34903
34904         * modules/tmpfile: New file.
34905         * lib/tmpfile.c: New file.
34906         * m4/tmpfile.m4: New file.
34907         * MODULES.html.sh (func_all_modules): New section "Input/output".
34908
34909 2007-02-15  Bruno Haible  <bruno@clisp.org>
34910
34911         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
34912         (supports_delete_on_close): New function.
34913         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
34914
34915 2007-02-14  Bruno Haible  <bruno@clisp.org>
34916
34917         * modules/mbspcasecmp-tests: New file.
34918         * tests/test-mbspcasecmp.sh: New file.
34919         * tests/test-mbspcasecmp.c: New file.
34920
34921         New module mbspcasecmp.
34922         * modules/mbspcasecmp: New file.
34923         * lib/mbspcasecmp.c: New file.
34924         * lib/string_.h (strncasecmp): Change warning message.
34925         (mbspcasecmp): New declaration.
34926         * m4/mbspcasecmp.m4: New file.
34927         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34928         GNULIB_MBSPCASECMP.
34929         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
34930         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
34931
34932 2007-02-14  Bruno Haible  <bruno@clisp.org>
34933
34934         * modules/mbsncasecmp-tests: New file.
34935         * tests/test-mbsncasecmp.sh: New file.
34936         * tests/test-mbsncasecmp.c: New file.
34937
34938         New module mbsncasecmp.
34939         * modules/mbsncasecmp: New file.
34940         * lib/mbsncasecmp.c: New file.
34941         * lib/string_.h (mbsncasecmp): New declaration.
34942         * m4/mbsncasecmp.m4: New file.
34943         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34944         GNULIB_MBSNCASECMP.
34945         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
34946         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
34947
34948 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34949
34950         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
34951         Verify that it doesn't overlap with our flags.
34952         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
34953         do not have the desired effect in multibyte locales; instead, use
34954         mbscasecmp.
34955         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
34956         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
34957         we don't require GNU fnmatch ourselves (if our users require it, they
34958         should do so explicitly).
34959
34960         Fix regex code so it doesn't rely on strcasecmp.
34961         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
34962         Otherwise, include gnulib's langinfo.h.
34963         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
34964         undesirable behavior in non-C locales.  Instead, rely on localecharset.
34965         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
34966         * modules/regex (FILES): Remove m4/codeset.m4.
34967         (Depends-on): Add localcharset.  Remove strcase.
34968
34969 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34970
34971         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
34972         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
34973
34974 2007-02-13  Bruno Haible  <bruno@clisp.org>
34975
34976         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
34977         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34978
34979 2007-02-12  Bruno Haible  <bruno@clisp.org>
34980
34981         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
34982         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
34983         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
34984         time warning rather than a link error.
34985
34986 2007-02-12  Bruno Haible  <bruno@clisp.org>
34987
34988         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
34989         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34990         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34991
34992 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34993
34994         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
34995         args, not 2.
34996
34997 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34998
34999         New module 'time', so that apps can include <time.h> as per
35000         POSIX and GNU instead of separate include files like time_r.h
35001         and timegm.h.  This implementation tries out a simpler approach
35002         for replacing decls in standard include files (as compared to
35003         the string module), somewhat as an experiment.
35004
35005         * config/srclist.txt: Comment out mktime.c for now.
35006         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
35007         since it doesn't apply any more.  Use generic wording instead.
35008         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
35009         'time'.
35010         * lib/time_.h, m4/time_h.m4, modules/time: New files.
35011         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
35012         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
35013         Don't include <sys/types.h>; no longer needed since we assume C89.
35014         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
35015         * lib/strftime.c: Likewise.
35016         * lib/time_r.c: Likewise.
35017         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
35018         * lib/nanosleep.c: Include <time.h> first, to check interface.
35019         * lib/strptime.c: Likewise.
35020         * lib/time_r.c: Likewise.
35021         * lib/timegm.c: Likewise.
35022         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
35023         needed.
35024         * lib/timegm.c: Don't include timegm.h; no longer needed.
35025         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
35026         time.h now handles any problems in that area.
35027         (struct timespec, nanosleep): Remove; time.h now arranges for these.
35028         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
35029         that time.h defines struct timespec.
35030         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
35031         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
35032         handles that.
35033         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
35034         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
35035         needed.  Set REPLACE_LOCALTIME.
35036         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
35037         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
35038         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
35039         nanosleep; time_h.m4 now does that.  Don't require
35040         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
35041         module handles this now.
35042         * modules/getdate (Depends-on): Remove timespec.  Add time.
35043         * modules/nanosleep (Depends-on): Likewise.
35044         * modules/stat-time (Depends-on): Likewise.
35045         * modules/nanosleep (Include): Include time.h, not timespec.h.
35046         * modules/strptime (Files): Remove lib/strptime.h.
35047         (Depends-on): Add extensions, time.
35048         (Include): Include time.h, not strptime.h.
35049         * modules/time_r (Files): Remove lib/time_r.h.
35050         (Depends-on): Add time.
35051         (Include): Include time.h, not time_r.h.
35052         * modules/timegm: Likewise.
35053         * modules/timespec (Description): Now does timespec-related decls
35054         of our own, instead of struct timespec itself.
35055         (Depends-on): Add time; remove extensions.
35056         (Maintainer): Add self.
35057         * modules/utimecmp (Depends-on): Add time; remove timespec.
35058         * modules/utimens (Depends-on): Likewise.
35059         * modules/xnanosleep (Depends-on): Likewise.
35060
35061 2007-02-11  Bruno Haible  <bruno@clisp.org>
35062
35063         * lib/c-strstr.c: Include allocsa.h.
35064         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35065         * lib/c-strcasestr.c: Include allocsa.h.
35066         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35067         * lib/strcasestr.c: Include allocsa.h.
35068         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
35069         * lib/mbsstr.c: Include allocsa.h.
35070         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
35071         allocsa/freesa instead of malloc/free.
35072         * lib/mbscasestr.c: Include allocsa.h.
35073         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
35074         allocsa/freesa instead of malloc/free.
35075         * modules/c-strstr (Depends-on): Add allocsa.
35076         * modules/c-strcasestr (Depends-on): Likewise.
35077         * modules/strcasestr (Depends-on): Likewise.
35078         * modules/mbsstr (Depends-on): Likewise.
35079         * modules/mbscasestr (Depends-on): Likewise.
35080
35081 2007-02-11  Bruno Haible  <bruno@clisp.org>
35082
35083         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
35084
35085         * modules/mbsspn-tests: New file.
35086         * tests/test-mbsspn.sh: New file.
35087         * tests/test-mbsspn.c: New file.
35088
35089 2007-02-11  Bruno Haible  <bruno@clisp.org>
35090
35091         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
35092
35093         * modules/mbspbrk-tests: New file.
35094         * tests/test-mbspbrk.sh: New file.
35095         * tests/test-mbspbrk.c: New file.
35096
35097 2007-02-11  Bruno Haible  <bruno@clisp.org>
35098
35099         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
35100         unneeded cast.
35101
35102         * modules/mbscspn-tests: New file.
35103         * tests/test-mbscspn.sh: New file.
35104         * tests/test-mbscspn.c: New file.
35105
35106 2007-02-11  Bruno Haible  <bruno@clisp.org>
35107
35108         * modules/mbscasecmp-tests: New file.
35109         * tests/test-mbscasecmp.sh: New file.
35110         * tests/test-mbscasecmp.c: New file.
35111
35112 2007-02-11  Bruno Haible  <bruno@clisp.org>
35113
35114         Ensure O(n) worst-case complexity of mbscasestr.
35115         * lib/mbscasestr.c: Include stdbool.h.
35116         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
35117         functions.
35118         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
35119         the bookkeeping indicates that it's worth it.
35120         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
35121
35122         * modules/mbscasestr-tests: New file.
35123         * tests/test-mbscasestr1.c: New file.
35124         * tests/test-mbscasestr2.sh: New file.
35125         * tests/test-mbscasestr2.c: New file.
35126         * tests/test-mbscasestr3.sh: New file.
35127         * tests/test-mbscasestr3.c: New file.
35128         * tests/test-mbscasestr4.sh: New file.
35129         * tests/test-mbscasestr4.c: New file.
35130         * m4/locale-tr.m4: New file.
35131
35132 2007-02-11  Bruno Haible  <bruno@clisp.org>
35133
35134         Ensure O(n) worst-case complexity of mbsstr.
35135         * lib/mbsstr.c: Include stdbool.h.
35136         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
35137         functions.
35138         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
35139         bookkeeping indicates that it's worth it.
35140         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
35141
35142         * modules/mbsstr-tests: New file.
35143         * tests/test-mbsstr1.c: New file.
35144         * tests/test-mbsstr2.sh: New file.
35145         * tests/test-mbsstr2.c: New file.
35146         * tests/test-mbsstr3.sh: New file.
35147         * tests/test-mbsstr3.c: New file.
35148         * m4/locale-fr.m4: New file.
35149
35150 2007-02-11  Bruno Haible  <bruno@clisp.org>
35151
35152         * lib/mbsrchr.c (mbsrchr): Fix bug.
35153
35154         * modules/mbsrchr-tests: New file.
35155         * tests/test-mbsrchr.sh: New file.
35156         * tests/test-mbsrchr.c: New file.
35157
35158 2007-02-11  Bruno Haible  <bruno@clisp.org>
35159
35160         * lib/mbschr.c (mbschr): Fix bug.
35161
35162         * modules/mbschr-tests: New file.
35163         * tests/test-mbschr.sh: New file.
35164         * tests/test-mbschr.c: New file.
35165         * m4/locale-zh.m4: New file.
35166
35167 2007-02-11  Bruno Haible  <bruno@clisp.org>
35168
35169         Support for copying multibyte string iterators.
35170         * lib/mbiter.h: Include <string.h>.
35171         (mbiter_multi_copy): New function.
35172         (mbi_copy): New macro.
35173         * lib/mbuiter.h: Include <string.h>.
35174         (mbuiter_multi_copy): New function.
35175         (mbui_copy): New macro.
35176
35177 2007-02-11  Bruno Haible  <bruno@clisp.org>
35178
35179         New module mbslen.
35180         * modules/mbslen: New file.
35181         * lib/mbslen.c: New file.
35182         * lib/string_.h (mbslen): New declaration.
35183         * m4/mbslen.m4: New file.
35184         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35185         GNULIB_MBSLEN.
35186         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
35187         * MODULES.html.sh (Internationalization functions): Add mbslen.
35188
35189 2007-02-11  Bruno Haible  <bruno@clisp.org>
35190
35191         Ensure O(n) worst-case complexity of strcasestr substitute.
35192         * lib/strcasestr.c: Include stdbool.h.
35193         (knuth_morris_pratt): New function.
35194         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
35195         bookkeeping indicates that it's worth it.
35196         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
35197
35198         * modules/strcasestr-tests: New file.
35199         * tests/test-strcasestr.c: New file.
35200
35201 2007-02-11  Bruno Haible  <bruno@clisp.org>
35202
35203         Ensure O(n) worst-case complexity of c_strcasestr.
35204         * lib/c-strcasestr.c: Include stdbool.h, string.h.
35205         (knuth_morris_pratt): New function.
35206         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
35207         the bookkeeping indicates that it's worth it.
35208         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
35209
35210         * modules/c-strcasestr-tests: New file.
35211         * tests/test-c-strcasestr.c: New file.
35212
35213 2007-02-11  Bruno Haible  <bruno@clisp.org>
35214
35215         Ensure O(n) worst-case complexity of c_strstr.
35216         * lib/c-strstr.c: Include stdbool.h, string.h.
35217         (knuth_morris_pratt): New function.
35218         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
35219         bookkeeping indicates that it's worth it.
35220         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
35221
35222         * lib/c-strstr.c: Complete rewrite for maintainability.
35223
35224         * modules/c-strstr-tests: New file.
35225         * tests/test-c-strstr.c: New file.
35226
35227 2007-02-11  Bruno Haible  <bruno@clisp.org>
35228
35229         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
35230         5.2.1 and earlier, whereby \055 was treated just like the range
35231         delimiter '-'.
35232         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
35233
35234 2007-02-08  Bruno Haible  <bruno@clisp.org>
35235
35236         * modules/regex (Depends-on): Add stdbool.
35237         Reported by Dalibor Topic <robilad@kaffe.org>.
35238
35239 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
35240
35241         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
35242         Prefer returning from main to exiting from it.
35243         Remove unnecessary parens after sizeof.
35244
35245 2007-02-05  Bruno Haible  <bruno@clisp.org>
35246
35247         New module mbssep.
35248         * modules/mbssep: New file.
35249         * lib/mbssep.c: New file.
35250         * lib/string_.h (strsep): Add a conditional link warning.
35251         (mbssep): New declaration.
35252         * m4/mbssep.m4: New file.
35253         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35254         GNULIB_MBSSEP.
35255         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
35256         * MODULES.html.sh (Internationalization functions): Add mbssep.
35257
35258 2007-02-05  Bruno Haible  <bruno@clisp.org>
35259
35260         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
35261         Optimize search in case of 1 delimiter.
35262
35263 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
35264
35265         * lib/acl.h: Include sys/types.h before sys/acl.h.
35266
35267 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
35268
35269         Merge upstream fix for glibc bugzilla #3957:
35270
35271         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
35272
35273         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
35274         bit for RE_HAT_LISTS_NOT_NEWLINE.
35275         (build_charclass_op): Remove bogus comment.
35276
35277 2007-02-05  Simon Josefsson  <simon@josefsson.org>
35278
35279         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
35280
35281 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35282
35283         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
35284         * lib/memmem.c [!defined _LIBC]: Include config.h.
35285
35286 2007-02-04  Bruno Haible  <bruno@clisp.org>
35287
35288         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
35289         warning message.
35290
35291 2007-02-04  Bruno Haible  <bruno@clisp.org>
35292
35293         New module mbstok_r.
35294         * modules/mbstok_r: New file.
35295         * lib/mbstok_r.c: New file.
35296         * lib/string_.h (strtok_r): Change argument names to match the
35297         comments. Add a conditional link warning.
35298         (mbstok_r): New declaration.
35299         * m4/mbstok_r.m4: New file.
35300         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35301         GNULIB_MBSTOK_R.
35302         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
35303         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
35304
35305 2007-02-04  Bruno Haible  <bruno@clisp.org>
35306
35307         New module mbsspn.
35308         * modules/mbsspn: New file.
35309         * lib/mbsspn.c: New file.
35310         * lib/string_.h (strspn): Add a conditional link warning.
35311         (mbsspn): New declaration.
35312         * m4/mbsspn.m4: New file.
35313         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35314         GNULIB_MBSSPN.
35315         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
35316         * MODULES.html.sh (Internationalization functions): Add mbsspn.
35317
35318 2007-02-04  Bruno Haible  <bruno@clisp.org>
35319
35320         New module mbspbrk.
35321         * modules/mbspbrk: New file.
35322         * lib/mbspbrk.c: New file.
35323         * lib/string_.h (strpbrk): Add a conditional link warning.
35324         (mbspbrk): New declaration.
35325         * m4/mbspbrk.m4: New file.
35326         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35327         GNULIB_MBSPBRK.
35328         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
35329         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
35330
35331 2007-02-04  Bruno Haible  <bruno@clisp.org>
35332
35333         New module mbscspn.
35334         * modules/mbscspn: New file.
35335         * lib/mbscspn.c: New file.
35336         * lib/string_.h (strcspn): Add a conditional link warning.
35337         (mbscspn): New declaration.
35338         * m4/mbscspn.m4: New file.
35339         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35340         GNULIB_MBSCSPN.
35341         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
35342         * MODULES.html.sh (Internationalization functions): Add mbscspn.
35343
35344 2007-02-04  Bruno Haible  <bruno@clisp.org>
35345
35346         New module mbscasestr, reduced goal of strcasestr.
35347         * modules/mbscasestr: New file.
35348         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
35349         (mbscasestr): Renamed from strcasestr.
35350         * lib/strcasestr.c: Don't include mbuiter.h.
35351         (strcasestr): Remove support for multibyte locales.
35352         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
35353         Change the conditional link warning.
35354         (mbscasestr): New declaration.
35355         * m4/mbscasestr.m4: New file.
35356         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
35357         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
35358         REPLACE_STRCASESTR.
35359         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
35360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35361         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35362         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
35363         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
35364         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35365         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
35366         (Depends-on): Remove mbuiter.
35367         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
35368
35369 2007-02-04  Bruno Haible  <bruno@clisp.org>
35370
35371         Simplify handling of strncasecmp.
35372         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
35373         the conditional link warning.
35374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35375         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
35376         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
35377         * modules/strcase (configure.ac): Don't invoke
35378         gl_STRING_MODULE_INDICATOR.
35379         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
35380
35381 2007-02-04  Bruno Haible  <bruno@clisp.org>
35382
35383         New module mbscasecmp, reduced goal of strcasecmp.
35384         * modules/mbscasecmp: New file.
35385         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
35386         (mbscasecmp): Renamed from strcasecmp.
35387         * lib/strcasecmp.c: Don't include mbuiter.h.
35388         (strcasecmp): Remove support for multibyte locales.
35389         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
35390         Change the conditional link warning.
35391         (mbscasecmp): New declaration.
35392         * m4/mbscasecmp.m4: New file.
35393         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
35394         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
35395         REPLACE_STRCASECMP.
35396         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
35397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35398         GNULIB_MBSCASECMP.
35399         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
35400         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
35401         * modules/strcase (Files): Remove m4/mbrtowc.m4.
35402         (Depends-on): Remove mbuiter.
35403         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
35404
35405 2007-02-04  Bruno Haible  <bruno@clisp.org>
35406
35407         New module mbsstr. Remove module strstr.
35408         * modules/mbsstr: New file.
35409         * modules/strstr: Remove file.
35410         * lib/mbsstr.c: Renamed from lib/strstr.c.
35411         (mbsstr): Renamed from strstr.
35412         * lib/string_.h (strstr): Remove declaration. Change the conditional
35413         link warning.
35414         (mbsstr): New declaration.
35415         * m4/mbsstr.m4: New file.
35416         * m4/strstr.m4: Remove file.
35417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35418         REPLACE_STRSTR.
35419         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
35420         Don't initialize GNULIB_STRSTR.
35421         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
35422         substitute GNULIB_STRSTR and REPLACE_STRSTR.
35423         * MODULES.html.sh (Internationalization functions): Add mbsstr.
35424         (Support for systems lacking ANSI C 89): Remove strstr.
35425
35426 2007-02-04  Bruno Haible  <bruno@clisp.org>
35427
35428         New module mbsrchr.
35429         * modules/mbsrchr: New file.
35430         * lib/mbsrchr.c: New file.
35431         * lib/string_.h (strrchr): Add a conditional link warning.
35432         (mbsrchr): New declaration.
35433         * m4/mbsrchr.m4: New file.
35434         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35435         GNULIB_MBSRCHR.
35436         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
35437         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
35438
35439 2007-02-04  Bruno Haible  <bruno@clisp.org>
35440
35441         New module mbschr.
35442         * modules/mbschr: New file.
35443         * lib/mbschr.c: New file.
35444         * lib/string_.h (strchr): Add a conditional link warning.
35445         (mbschr): New declaration.
35446         * m4/mbschr.m4: New file.
35447         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35448         GNULIB_MBSCHR.
35449         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
35450         * MODULES.html.sh (Internationalization functions): Add mbschr.
35451
35452 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35453
35454         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
35455
35456         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
35457
35458 2007-02-04  Bruno Haible  <bruno@clisp.org>
35459
35460         New module description section 'configure.ac-early'.
35461         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
35462         (func_get_autoconf_early_snippet): New function.
35463         (func_import, func_create_testdir): Use it. Remove special cases for
35464         modules 'extensions' and 'lock'.
35465         * modules/extensions (configure.ac-early): Require
35466         gl_USE_SYSTEM_EXTENSIONS.
35467         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
35468
35469 2007-02-04  Bruno Haible  <bruno@clisp.org>
35470
35471         Make use of gcj-4.3's -fsource and -ftarget option.
35472         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
35473         and if so try the options -fsource and -ftarget.
35474         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
35475         source_version, ftarget_option, target_version arguments.
35476         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
35477         (is_envjavac_oldgcj_14_14_usable): Renamed from
35478         is_envjavac_gcj_14_14_usable.
35479         (is_envjavac_oldgcj_14_13_usable): Renamed from
35480         is_envjavac_gcj_14_13_usable.
35481         (is_gcj_present): Update.
35482         (is_gcj_43, is_gcj43_usable): New functions.
35483         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
35484         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
35485         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
35486         try the options -fsource and -ftarget.
35487
35488 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35489
35490         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
35491         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
35492         larger value.
35493
35494 2007-02-03  Jim Meyering  <jim@meyering.net>
35495
35496         Give tools a better chance to allocate space for very large buffers.
35497         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
35498
35499         Make pwd and readlink work also when run with an unreadable parent dir
35500         on systems with openat support.
35501         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
35502         provided getcwd function, even when we have openat support.
35503         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
35504
35505 2007-02-02  Bruno Haible  <bruno@clisp.org>
35506
35507         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
35508         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
35509         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
35510         portability problems if one of these functions is only used on specific
35511         platforms.
35512         Reported by Paul Eggert.
35513
35514 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
35515
35516         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
35517         is causing more trouble than it's curing.
35518         * lib/regex_internal.h (__mempcpy): Remove.
35519         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
35520         (and make the code a tad smaller to boot).
35521         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
35522
35523 2007-02-02  Jim Meyering  <jim@meyering.net>
35524
35525         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
35526         section, not in the Makefile.am: one.
35527
35528 2007-02-02  Eric Blake  <ebb9@byu.net>
35529
35530         * lib/strchrnul.c: Always include config.h first.
35531
35532         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
35533         gnulib strstr is not necessary here.
35534
35535 2007-02-02  Simon Josefsson  <simon@josefsson.org>
35536
35537         * m4/socklen.m4: Fix typo.
35538
35539 2007-02-02  Eric Blake  <ebb9@byu.net>
35540
35541         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
35542         * modules/netinet_in (Makefile.am): Likewise.
35543
35544 2007-02-01  Bruno Haible  <bruno@clisp.org>
35545
35546         * lib/string_.h (GL_LINK_WARNING): New macro.
35547         (strcasecmp, strstr, strcasestr): If provided by the system,
35548         conditionally define as a macro that leads to a warning instead of to
35549         an error.
35550         (strncasecmp): Conditionally define as a macro that leads to a warning.
35551
35552 2007-02-01  Karl Berry  <karl@gnu.org>
35553
35554         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
35555
35556 2007-02-01  Bruno Haible  <bruno@clisp.org>
35557
35558         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
35559         renamings.
35560
35561 2007-02-01  Eric Blake  <ebb9@byu.net>
35562
35563         * modules/regex (Depends-on): Revert dependence on mempcpy.
35564         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
35565         module's definition of mempcpy.
35566         Reported by Paul Eggert.
35567
35568 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
35569
35570         * lib/string_.h: If the gnulib module XYZ is not present, undefine
35571         the symbol XYZ before redefining it.  This fixes a problem with
35572         programs that don't use XYZ, when compiled on systems that define
35573         XYZ to something else.
35574
35575 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35576
35577         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
35578         occurs when "mkdir -m foo" creates a setgid directory that is (1)
35579         writeable to group or other and (2) is intended to have a special
35580         mode bit that is set or cleared.  In such a case, the directory
35581         should be neither group- nor other-writeable until the special
35582         mode bits are right.
35583
35584 2007-01-31  Eric Blake  <ebb9@byu.net>
35585
35586         * modules/mountlist (Depends-on): Add strstr.
35587
35588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
35589         bug.
35590         * modules/string (Makefile.am): Remove redundant replacement.
35591         * modules/regex (Depends-on): Add mempcpy.
35592
35593 2007-01-31  Bruno Haible  <bruno@clisp.org>
35594
35595         New module description field 'Link'.
35596         * gnulib-tool (func_usage): Document --extract-link-directive.
35597         (sed_extract_prog): Recognize 'Link' directive.
35598         (func_get_link_directive): New function.
35599         (func_import): Show summary of link directives.
35600         Handle --extract-link-directive option.
35601         * modules/acl (Link): New section.
35602         * modules/clock-time (Link): New section.
35603         * modules/euidaccess (Link): New section.
35604         * modules/gettext (Link): New section.
35605         * modules/iconv (Link): New section.
35606         * modules/lock (Link): New section.
35607         * modules/nanosleep (Link): New section.
35608         * modules/readline (Link): New section.
35609
35610 2007-01-27  Bruno Haible  <bruno@clisp.org>
35611
35612         Enforce the use of gnulib modules for unportable <string.h> functions.
35613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
35614         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
35615         (gl_HEADER_STRING_H_BODY): Require it.
35616         * lib/string_.h: If the gnulib module XYZ is not present, redefine
35617         the symbol XYZ to one that gives a link error.
35618         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
35619         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
35620         * modules/mempcpy (configure.ac): Likewise.
35621         * modules/memrchr (configure.ac): Likewise.
35622         * modules/stpcpy (configure.ac): Likewise.
35623         * modules/stpncpy (configure.ac): Likewise.
35624         * modules/strcase (configure.ac): Likewise.
35625         * modules/strcasestr (configure.ac): Likewise.
35626         * modules/strchrnul (configure.ac): Likewise.
35627         * modules/strdup (configure.ac): Likewise.
35628         * modules/strndup (configure.ac): Likewise.
35629         * modules/strnlen (configure.ac): Likewise.
35630         * modules/strpbrk (configure.ac): Likewise.
35631         * modules/strsep (configure.ac): Likewise.
35632         * modules/strstr (configure.ac): Likewise.
35633         * modules/strtok_r (configure.ac): Likewise.
35634
35635 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
35636
35637         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
35638
35639 2007-01-30  Jim Meyering  <jim@meyering.net>
35640
35641         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
35642
35643 2007-01-29  Bruno Haible  <bruno@clisp.org>
35644
35645         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
35646         * lib/execute.c: Likewise.
35647         * lib/pipe.c: Likewise.
35648         * lib/printf-args.h: Likewise.
35649         * lib/printf-args.c: Likewise.
35650         * lib/printf-parse.c: Likewise.
35651         * lib/vasnprintf.c: Likewise.
35652
35653 2007-01-29  Eric Blake  <ebb9@byu.net>
35654
35655         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
35656         declaration.
35657
35658 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35659
35660         * lib/strptime.h (strptime): Use 'restrict' for args where
35661         POSIX requires this.
35662         * lib/strptime.c (strptime): Likewise.
35663         Change license notice from LGPL to GPL, since gnulib-tool will
35664         change this as needed.
35665         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
35666         defined.
35667         Include "strptime.h" first, to check interface.
35668         Do not #undef _LIBC and _NL_CURRENT.
35669         Do not include <stdlib.h>; no longer needed.
35670         Include "time_r.h" and declare ptime_locale_status
35671         only if _LIBC is not defined.
35672         (__P): Remove unused macro.
35673         (match_string): Bring back glibc version, but use it only if _LIBC
35674         is defined.
35675         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
35676         Remove unnecessary assertion and abort() call.
35677         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
35678         * m4/strptime.m4: Fix serial number comment.
35679         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
35680         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
35681         (Depends-on): Add time_r.
35682
35683 2007-01-29  Bruno Haible  <bruno@clisp.org>
35684
35685         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35686         strptime.
35687         * modules/strptime (Depends-on): Add stdbool.
35688         * lib/strptime.h: Include <time.h> always. Add comments.
35689
35690 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35691
35692         * modules/strptime: New file.
35693         * lib/strptime.h: New file.
35694         * lib/strptime.c: New file.
35695         * m4/strptime.m4: New file.
35696
35697 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
35698
35699         * MODULES.html.sh: New module mpsort.
35700         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
35701
35702         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
35703         a circularity problem with HP-UX ia64 reported by Bob Proulx in
35704         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
35705         All uses changed.
35706         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
35707         All uses changed.
35708         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
35709         to _Restrict_.
35710         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
35711         the parameter matches the prototype.
35712
35713 2007-01-28  Jim Meyering  <jim@meyering.net>
35714
35715         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
35716         sys/time.h here, reverting that part of the previous patch:
35717         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
35718
35719 2007-01-28  Bruno Haible  <bruno@clisp.org>
35720
35721         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
35722         value of $(SYS_TIME_H).
35723         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
35724         remove it conditionally, too. [added by Jim Meyering]
35725         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
35726         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
35727         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
35728         GETTIMEOFDAY_REPLACEMENT to 1.
35729
35730 2007-01-28  Bruno Haible  <bruno@clisp.org>
35731
35732         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
35733         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
35734         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
35735         Set UNISTD_H instead of UNISTD_H2.
35736         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
35737
35738 2007-01-28  Bruno Haible  <bruno@clisp.org>
35739
35740         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
35741         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
35742
35743 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35744
35745         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
35746         (func_create_testdir): Ensure C locale for `grep' and `tr'
35747         character ranges.
35748         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
35749         ACLOCAL_AMFLAGS parsing state machine.
35750
35751 2007-01-27  Bruno Haible  <bruno@clisp.org>
35752
35753         * modules/unistr/base: Update.
35754
35755 2007-01-27  Bruno Haible  <bruno@clisp.org>
35756
35757         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
35758         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
35759         * modules/unistr/u32-mbtouc-unsafe: Renamed from
35760         modules/unistr/u32-mbtouc.
35761         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
35762         * lib/unistr.h: Update.
35763         * lib/linebreak.c: Update.
35764         * modules/unistr/u32-mbtouc: Renamed from
35765         modules/unistr/u32-mbtouc-safe.
35766         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
35767         * lib/unistr.h: Update.
35768         * lib/unistr/u32-to-u8.c: Update.
35769         * lib/unistr/u32-to-u16.c: Update.
35770
35771 2007-01-27  Bruno Haible  <bruno@clisp.org>
35772
35773         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
35774         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
35775         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
35776         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
35777         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
35778         * modules/unistr/u16-mbtouc-unsafe: Renamed from
35779         modules/unistr/u16-mbtouc.
35780         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
35781         * lib/unistr.h: Update.
35782         * lib/linebreak.c: Update.
35783         * modules/linebreak: Update.
35784         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
35785         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
35786         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
35787         * modules/unistr/u16-mbtouc: Renamed from
35788         modules/unistr/u16-mbtouc-safe.
35789         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
35790         * lib/unistr.h: Update.
35791         * lib/unistr/u16-to-u8.c: Update.
35792         * modules/unistr/u16-to-u8: Update.
35793         * lib/unistr/u16-to-u32.c: Update.
35794         * modules/unistr/u16-to-u32: Update.
35795
35796 2007-01-27  Bruno Haible  <bruno@clisp.org>
35797
35798         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
35799         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
35800         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
35801         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
35802         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
35803         * modules/unistr/u8-mbtouc-unsafe: Renamed from
35804         modules/unistr/u8-mbtouc.
35805         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
35806         * lib/unistr.h: Update.
35807         * lib/striconveh.c: Update.
35808         * modules/striconveh: Update.
35809         * lib/linebreak.c: Update.
35810         * modules/linebreak: Update.
35811         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
35812         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
35813         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
35814         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
35815         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
35816         * lib/unistr.h: Update.
35817         * lib/striconveh.c: Update.
35818         * modules/striconveh: Update.
35819         * lib/unistr/u8-to-u16.c: Update.
35820         * modules/unistr/u8-to-u16: Update.
35821         * lib/unistr/u8-to-u32.c: Update.
35822         * modules/unistr/u8-to-u32: Update.
35823
35824 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35825
35826         Sync from Libtool.
35827         * lib/argz.c: Do not include strings.h nor memory.h, include
35828         string.h unconditionally.  Patch by Simon Josefsson.
35829
35830 2007-01-27  Bruno Haible  <bruno@clisp.org>
35831
35832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
35833         from gl_HEADER_STRING_H_BODY.
35834         (gl_HEADER_STRING_H_BODY): Require it.
35835         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
35836         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35837         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35838         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35839         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35840         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
35841         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35842         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35843         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
35844         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35845         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35846         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
35847         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35848         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35849         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35850
35851 2007-01-27  Bruno Haible  <bruno@clisp.org>
35852
35853         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
35854         check_PROGRAMS into noinst_PROGRAMS.
35855         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
35856         check_PROGRAMS in this case.
35857         (func_import): Set for_test to false.
35858         (func_create_testdir): Set for_test to true.
35859
35860 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35861             Bruno Haible  <bruno@clisp.org>
35862
35863         * modules/strcasestr (Files): Remove lib/strcasestr.h.
35864         (Depends-on): Add string.
35865         (Includes): Use <string.h> instead of strcasestr.h.
35866         * modules/string (Makefile.am): Also substitute the value of
35867         REPLACE_STRCASESTR.
35868         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
35869         assume strcasestr is declared in <string.h> not <strings.h>. Also
35870         set REPLACE_STRCASESTR.
35871         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
35872         REPLACE_STRCASESTR.
35873         * lib/strcasestr.h: Remove file.
35874         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
35875         * lib/string_.h (strcasestr): New declaration.
35876
35877 2007-01-27  Bruno Haible  <bruno@clisp.org>
35878
35879         * lib/string_.h: Use 'extern'.
35880
35881 2007-01-27  Jim Meyering  <jim@meyering.net>
35882
35883         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
35884         of set-but-not-used local, "q".
35885
35886         * lib/mempcpy.c: Include <config.h> before <string.h>.
35887         This fixes a compilation error on HP-UX, due to the system's
35888         "restrict"-using mempcpy prototype.
35889
35890 2007-01-26  Bruno Haible  <bruno@clisp.org>
35891
35892         Small optimization.
35893         * lib/javacomp.c: Include c-strstr.h.
35894          (is_envjavac_gcj): Use c_strstr instead of strstr.
35895         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
35896
35897 2007-01-26  Bruno Haible  <bruno@clisp.org>
35898
35899         * MODULES.html.sh (Unicode string functions): Add the new modules.
35900
35901         * modules/uniconv/u32-strconv-to-locale: New file.
35902         * lib/uniconv/u32-strconv-to-locale.c: New file.
35903
35904         * modules/uniconv/u16-strconv-to-locale: New file.
35905         * lib/uniconv/u16-strconv-to-locale.c: New file.
35906
35907         * modules/uniconv/u8-strconv-to-locale: New file.
35908         * lib/uniconv/u8-strconv-to-locale.c: New file.
35909
35910         * modules/uniconv/u32-strconv-from-locale: New file.
35911         * lib/uniconv/u32-strconv-from-locale.c: New file.
35912
35913         * modules/uniconv/u16-strconv-from-locale: New file.
35914         * lib/uniconv/u16-strconv-from-locale.c: New file.
35915
35916         * modules/uniconv/u8-strconv-from-locale: New file.
35917         * lib/uniconv/u8-strconv-from-locale.c: New file.
35918
35919         * modules/uniconv/u32-strconv-to-enc: New file.
35920         * lib/uniconv/u32-strconv-to-enc.c: New file.
35921         * modules/uniconv/u32-strconv-to-enc-tests: New file.
35922         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
35923
35924         * modules/uniconv/u16-strconv-to-enc: New file.
35925         * lib/uniconv/u16-strconv-to-enc.c: New file.
35926         * lib/uniconv/u-strconv-to-enc.h: New file.
35927         * modules/uniconv/u16-strconv-to-enc-tests: New file.
35928         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
35929
35930         * modules/uniconv/u8-strconv-to-enc: New file.
35931         * lib/uniconv/u8-strconv-to-enc.c: New file.
35932         * modules/uniconv/u8-strconv-to-enc-tests: New file.
35933         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
35934
35935         * modules/uniconv/u32-strconv-from-enc: New file.
35936         * lib/uniconv/u32-strconv-from-enc.c: New file.
35937         * modules/uniconv/u32-strconv-from-enc-tests: New file.
35938         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
35939
35940         * modules/uniconv/u16-strconv-from-enc: New file.
35941         * lib/uniconv/u16-strconv-from-enc.c: New file.
35942         * modules/uniconv/u16-strconv-from-enc-tests: New file.
35943         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
35944
35945         * modules/uniconv/u8-strconv-from-enc: New file.
35946         * lib/uniconv/u8-strconv-from-enc.c: New file.
35947         * lib/uniconv/u-strconv-from-enc.h: New file.
35948         * modules/uniconv/u8-strconv-from-enc-tests: New file.
35949         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
35950
35951         * modules/uniconv/u32-conv-from-enc: New file.
35952         * lib/uniconv/u32-conv-from-enc.c: New file.
35953         * modules/uniconv/u32-conv-from-enc-tests: New file.
35954         * tests/uniconv/test-u32-conv-from-enc.c: New file.
35955
35956         * modules/uniconv/u16-conv-from-enc: New file.
35957         * lib/uniconv/u16-conv-from-enc.c: New file.
35958         * lib/uniconv/u-conv-from-enc.h: New file.
35959         * modules/uniconv/u16-conv-from-enc-tests: New file.
35960         * tests/uniconv/test-u16-conv-from-enc.c: New file.
35961
35962         * modules/uniconv/u8-conv-from-enc: New file.
35963         * lib/uniconv/u8-conv-from-enc.c: New file.
35964         * modules/uniconv/u8-conv-from-enc-tests: New file.
35965         * tests/uniconv/test-u8-conv-from-enc.c: New file.
35966
35967         * modules/uniconv/base: New file.
35968         * lib/uniconv.h: New file.
35969
35970 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
35971
35972         * doc/gnulib-tool.texi (Initial import): Update to match current
35973         behavior with strdup module.
35974         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
35975         * lib/memmem.h: Remove; all uses removed.  This is now done
35976         by <string.h>.
35977         * lib/mempcpy.h: Likewise.
35978         * lib/memrchr.h: Likewise.
35979         * lib/stpcpy.h: Likewise.
35980         * lib/stpncpy.h: Likewise.
35981         * lib/strcase.h: Likewise.
35982         * lib/strchrnul.h: Likewise.
35983         * lib/strdup.h: Likewise.
35984         * lib/strndup.h: Likewise.
35985         * lib/strnlen.h: Likewise.
35986         * lib/strpbrk.h: Likewise.
35987         * lib/strsep.h: Likewise.
35988         * lib/strstr.h: Likewise.
35989         * lib/strtok_r.h: Likewise.
35990         * lib/string_.h: New file.
35991         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
35992         Rely on <string.h> instead.
35993         * lib/canon-host.c: Likewise.
35994         * lib/chdir-long.c: Likewise.
35995         * lib/concatpath.c: Likewise.
35996         * lib/exclude.c: Likewise.
35997         * lib/fchdir.c: Likewise.
35998         * lib/getaddrinfo.c: Likewise.
35999         * lib/getcwd.c: Likewise.
36000         * lib/getsubopt.c: Likewise.
36001         * lib/glob.c: Likewise.
36002         * lib/hard-locale.c: Likewise.
36003         * lib/iconvme.c: Likewise.
36004         * lib/javacomp.c: Likewise.
36005         * lib/mempcpy.c: Likewise.
36006         * lib/memrchr.c: Likewise.
36007         * lib/regex_internal.h: Likewise.
36008         * lib/stpncpy.c: Likewise.
36009         * lib/strcasecmp.c: Likewise.
36010         * lib/strchrnul.c: Likewise.
36011         * lib/strdup.c: Likewise.
36012         * lib/striconv.c: Likewise.
36013         * lib/striconveh.c: Likewise.
36014         * lib/striconveha.c: Likewise.
36015         * lib/strncasecmp.c: Likewise.
36016         * lib/strndup.c: Likewise.
36017         * lib/strnlen.c: Likewise.
36018         * lib/strsep.c: Likewise.
36019         * lib/strstr.c: Likewise.
36020         * lib/strtok_r.c: Likewise.
36021         * lib/userspec.c: Likewise.
36022         * lib/w32spawn.h: Likewise.
36023         * lib/xstrndup.c: Likewise.
36024         * lib/mountlist.c (strstr): Remove decl.
36025         * m4/string_h.m4: New file.
36026         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
36027         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
36028         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
36029         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
36030         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
36031         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
36032         Set REPLACE_STRCASECMP if necessary.
36033         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
36034         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
36035         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
36036         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
36037         HAVE_DECL_STRDUP if necessary.
36038         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
36039         since gl_FUNC_STRNDUP does that now.
36040         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
36041         Check for decl here...
36042         (gl_PREREQ_STRNLEN): ... not here.
36043         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
36044         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
36045         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
36046         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
36047         necessary.
36048         * modules/string: New file.
36049         * modules/memmem (Files): Remove special-purpose include file.
36050         (Depends-on): Add string.
36051         (Include): Include <string.h>, not the removed file.
36052         * modules/mempcpy: Likewise.
36053         * modules/memrchr: Likewise.
36054         * modules/stpcpy: Likewise.
36055         * modules/stpncpy: Likewise.
36056         * modules/strcase: Likewise.
36057         * modules/strchrnul: Likewise.
36058         * modules/strdup: Likewise.
36059         * modules/strndup: Likewise.
36060         * modules/strnlen: Likewise.
36061         * modules/strpbrk: Likewise.
36062         * modules/strsep: Likewise.
36063         * modules/strstr: Likewise.
36064         * modules/strtok_r: Likewise.
36065         * tests/test-dirname.c: Don't include "strdup.h", since
36066         <string.h> now suffices.
36067         * tests/test-memmem.c: Don't include "memmem.h", since
36068         <string.h> now suffices.
36069
36070 2007-01-25  Bruno Haible  <bruno@clisp.org>
36071
36072         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
36073         *resultp is 0.
36074
36075         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
36076         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
36077         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
36078         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
36079
36080         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
36081         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
36082         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
36083         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
36084         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
36085         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
36086
36087 2007-01-24  Bruno Haible  <bruno@clisp.org>
36088
36089         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
36090         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
36091         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
36092         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
36093         gl_FUNC_FTS_CORE.
36094         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
36095         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
36096         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36097         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
36098         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
36099         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
36100         gl_FUNC_FCHOWNAT.
36101         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
36102         gl_FUNC_STRFTIME.
36103         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
36104         Reported by Ralf Wildenhues.
36105
36106 2007-01-24  Bruno Haible  <bruno@clisp.org>
36107
36108         Drop AC_REQUIRE calls that are redundant with the module dependencies.
36109         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
36110         gl_GETADDRINFO.
36111         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
36112         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
36113         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
36114
36115 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
36116
36117         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
36118         Don't use 'exit'; just return from 'main'.
36119         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
36120
36121         * lib/fnmatch_.h: Readjust white space and comments to match
36122         glibc, to avoid spurious diffs.
36123
36124 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36125
36126         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
36127         2004-12-01 change by Jakub Jelinek, since this code won't compile
36128         if !LIBC.  Problem reported by Bob Proulx.
36129
36130 2007-01-23  Bruno Haible  <bruno@clisp.org>
36131
36132         * lib/striconveh.c: Include c-strcaseeq.h.
36133         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
36134         * modules/striconveh (Depends-on): Add c-strcaseeq.
36135
36136 2007-01-23  Bruno Haible  <bruno@clisp.org>
36137
36138         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
36139
36140         * modules/c-strcaseeq: New file.
36141         * lib/c-strcaseeq.h: New file.
36142
36143         * modules/streq: New file.
36144         * lib/streq.h: New file.
36145
36146 2007-01-23  Bruno Haible  <bruno@clisp.org>
36147
36148         * modules/striconveha-tests: New file.
36149         * tests/test-striconveha.c: New file.
36150
36151         * lib/striconveha.h: Include <stdbool.h>.
36152         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
36153         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
36154         (mem_iconveha_notranslit): Renamed from mem_iconveha.
36155         (mem_iconveha): New function.
36156         (str_iconveha_notranslit): Renamed from str_iconveha.
36157         (str_iconveha): New function.
36158         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
36159         c-strcase.
36160
36161 2007-01-23  Bruno Haible  <bruno@clisp.org>
36162
36163         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
36164         encodings without forgiving before trying any encoding with handler.
36165         (str_iconveha): Try all encodings without forgiving before trying any
36166         encoding with handler.
36167
36168 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36169
36170         Import the following changes from libc.
36171
36172         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
36173
36174         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
36175
36176         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
36177
36178         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
36179         normal_bracket label.
36180
36181         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
36182
36183         [BZ #361]
36184         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
36185         to normal_bracket after fetching the next character.
36186
36187 2007-01-22  Bruno Haible  <bruno@clisp.org>
36188
36189         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
36190         argument.
36191         * lib/striconveh.c (iconv_carefully_1): New function.
36192         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
36193         argument.
36194         (str_cd_iconveh): Update.
36195         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
36196         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
36197         * tests/test-striconveh.c (MAGIC): New macro.
36198         (new_offsets): New function.
36199         (main): Test call with and without offsets.
36200
36201 2007-01-22  Bruno Haible  <bruno@clisp.org>
36202
36203         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
36204         * modules/sys_select (Makefile.am): Likewise.
36205         * modules/sys_socket (Makefile.am): Likewise.
36206         * modules/sys_time (Makefile.am): Likewise.
36207
36208 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36209
36210         * modules/gettimeofday (License): Change from GPL to LGPL, since
36211         gettimeofday is a library function.
36212
36213 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36214
36215         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
36216
36217 2007-01-21  Bruno Haible  <bruno@clisp.org>
36218
36219         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
36220
36221 2007-01-21  Bruno Haible  <bruno@clisp.org>
36222
36223         * modules/striconveha: New file.
36224         * lib/striconveha.h: New file.
36225         * lib/striconveha.c: New file.
36226         * MODULES.html.sh (Internationalization functions): Add striconveha.
36227         * lib/striconv.c (str_iconv): Optimize the case of an empty input
36228         string.
36229         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
36230
36231 2007-01-21  Bruno Haible  <bruno@clisp.org>
36232
36233         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
36234         * lib/striconveh.c (str_iconveh): Likewise.
36235
36236 2007-01-21  Bruno Haible  <bruno@clisp.org>
36237
36238         * lib/striconveh.h (mem_iconveh): New declaration.
36239         * lib/striconveh.c (mem_iconveh): New function.
36240         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
36241
36242 2007-01-21  Bruno Haible  <bruno@clisp.org>
36243
36244         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
36245
36246         * lib/striconveh.h (mem_cd_iconveh): Change specification.
36247         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
36248         original result buffer.
36249         (str_cd_iconveh): Update.
36250         * tests/test-striconveh.c (main): Update.
36251
36252         * lib/striconv.h (mem_cd_iconv): Change specification.
36253         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
36254         result buffer.
36255         (str_cd_iconv): Update.
36256         * tests/test-striconv.c (main): Update.
36257
36258 2007-01-21  Bruno Haible  <bruno@clisp.org>
36259
36260         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
36261
36262 2007-01-20  Jim Meyering  <jim@meyering.net>
36263
36264         * lib/userspec.c (parse_with_separator): If a user or group string
36265         starts with "+", skip the corresponding name-to-ID look-up, since
36266         such a look-up must fail: user and group names may not include "+".
36267
36268 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
36269
36270         * lib/poll.c: Include sys/time.h and time.h unconditionally,
36271         since we now assume the sys_time module.
36272         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
36273         check for sys/time.h; no longer needed.
36274         * modules/poll (Depends-on): Depend on sys_time.
36275
36276 2007-01-18  Bruno Haible  <bruno@clisp.org>
36277
36278         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
36279         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36280
36281         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
36282         gettimeofday.
36283
36284         * tests/test-gettimeofday.c: Include <time.h>.
36285         (dummy): Remove variable.
36286
36287         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
36288         gl_HEADER_SYS_TIME_H.
36289         (gl_HEADER_SYS_TIME_H): New macro.
36290
36291         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
36292         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36293         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
36294         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
36295         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36296         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
36297         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
36298         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36299         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
36300         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
36301         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36302
36303         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
36304         last change; it caused a compilation error when cross-compiling to
36305         Cygwin.
36306
36307 2007-01-18  Jim Meyering  <jim@meyering.net>
36308
36309         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
36310         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
36311         than the race-prone "test -d sys || mkdir sys".
36312         (configure.ac): Use AC_PROG_MKDIR_P.
36313         * modules/sys_select: Likewise.
36314         * modules/sys_socket: Likewise.
36315         * modules/sys_time: Likewise.
36316
36317 2007-01-18  Eric Blake  <ebb9@byu.net>
36318
36319         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
36320         replace gettimeofday.
36321         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
36322         name, to avoid infinite recursion.
36323
36324 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
36325
36326         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
36327         module sys_time.
36328         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
36329         assume timespec.h defines struct timeval.
36330         * lib/settime.c: Likewise.
36331         * lib/utimens.c: Likewise.
36332         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
36333         since we now assume the gettimeofday module.
36334         * lib/tempname.c (__gen_tempname): Likewise.
36335         * lib/gettimeofday.h: Remove.
36336         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
36337         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
36338         Include <time.h>, for 'time()'.
36339         (localtime_buffer_addr): Also use this workaround if
36340         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
36341         to simplify the uses.  All uses changed.
36342         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
36343         that #undef is inside {}, and 'const' follows type name consistently.
36344         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
36345         (gettimeofday): Do not use the maximum possible value for
36346         tv->tv_usec, since that might break usages other than ls.c.
36347         Instead, we'll leave ls.c alone.  This undoes today's patch
36348         by Bruno.  Add a compile-time warning for 1s-clock resolution;
36349         we've never observed the problem but might as well keep the
36350         canary.
36351         * lib/nanosleep.c: Include timespec.h first, for interface check.
36352         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
36353         now assume the sys_time module.
36354         * lib/tempname.c: Likewise.
36355         * lib/timespec.h: Likewise.
36356         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
36357         needed.
36358         * lib/strftime.c: Likewise.
36359         * lib/timespec.h: Likewise.
36360         * lib/posixtm.c: Include posixtm.h first, for interface check.
36361         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
36362         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
36363         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
36364         * lib/sys_time_.h: New file.
36365         * lib/timespec.h (struct timespec): Use long int, not long.
36366         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
36367         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
36368         Remove obsolescent call to AC_HEADER_TIME.
36369         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
36370         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36371         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36372         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
36373         Likewise.
36374         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
36375         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
36376         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
36377         into the sys_time module.  Check for gettimeofday just once.
36378         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
36379         for gettimeofday signature to just check the signature.  Merely
36380         compile it, since linking doesn't test signature.  Improve test for
36381         whether gettimeofday.o is actually needed.
36382         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
36383         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
36384         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
36385         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36386         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
36387         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
36388         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
36389         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
36390         than worrying about sys/time.h.
36391         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36392         Don't bother worrying about TIME_WITH_SYS_TIME.
36393         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36394         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
36395         * m4/sys_time_h.m4: New file.
36396         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
36397         Don't include sys/time.h.  Return from main rather than exiting.
36398         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
36399         all uses changed.
36400         * modules/gethrxtime (Depends-on): Add sys_time.
36401         * modules/gettime (Depends-on): Likewise.
36402         * modules/gettimeofday (Depends-on): Likewise.
36403         * modules/nanosleep (Depends-on): Likewise.
36404         * modules/settime (Depends-on): Likewise.
36405         * modules/tempname (Depends-on): Likewise.
36406         * modules/utimens (Depends-on): Likewise.
36407         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
36408         (Include:) Change back to <sys/time.h>.
36409         (Maintainer:) Add self.
36410         * modules/sys_time: New file.
36411         * modules/tempname (Depends-on): Add gettimeofday.
36412         * tests/test-gettimeofday.c: Include <sys/time.h>
36413         rather than gettimeofday.h.
36414
36415 2007-01-17  Bruno Haible  <bruno@clisp.org>
36416
36417         * gnulib-tool (func_get_license): Revert last patch. Instead, let
36418         the license default to GPL.
36419         (func_create_testdir): Don't complain if a module is LGPL and its
36420         tests module depends on GPLed modules.
36421
36422 2007-01-17  Bruno Haible  <bruno@clisp.org>
36423
36424         * lib/gettimeofday.c (gettimeofday): Add code for the case
36425         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
36426         maximum possible value for tv->tv_usec, rather than the minimum one.
36427
36428 2005-10-08  Martin Lambers  <marlam@marlam.de>
36429 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36430 2007-01-16  Bruno Haible  <bruno@clisp.org>
36431
36432         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
36433         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
36434         gl_FUNC_GETTIMEOFDAY.
36435         (Include): Add gettimeofday.h.
36436         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
36437         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
36438         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
36439         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
36440         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
36441         * lib/gettimeofday.h: New file.
36442         * lib/gettimeofday.c: Include <sys/timeb.h>.
36443         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
36444         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36445         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
36446         fall back on time().
36447
36448         * tests/test-gettimeofday.c: New file.
36449         * modules/gettimeofday-tests: New file.
36450
36451 2007-01-16  Eric Blake  <ebb9@byu.net>
36452
36453         * modules/fnmatch (Depends-on): Depend on wchar.
36454         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
36455         * m4/fnmatch.m4: Likewise.
36456         * modules/mbchar (Makefile.am): Assume <wchar.h>.
36457         * m4/mbchar.m4: Likewise.
36458         * modules/mbswidth (Depends-on): Depend on wchar.
36459         * lib/mbswidth.c: Assume <wchar.h>.
36460         * m4/mbswidth.m4: Likewise.
36461         * modules/quotearg (Depends-on): Depend on wchar.
36462         * lib/quotearg.c: Assume <wchar.h>.
36463         * m4/quotearg.m4: Likewise.
36464         * modules/regex (Depends-on): Depend on wchar.
36465         * lib/regex_internal.h: Assume <wchar.h>.
36466         * m4/regex.m4: Likewise.
36467         * modules/stdint (Depends-on): Depend on wchar.
36468         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
36469         * m4/stdint.m4: Likewise.
36470         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
36471         * modules/strftime (Depends-on): Depend on wchar.
36472         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
36473         * modules/strtol (Depends-on): Depend on wchar.
36474         * lib/strtol.c: Assume <wchar.h>.
36475         * modules/wcwidth (Depends-on): Depend on wchar.
36476         * lib/wcwidth.h: Assume <wchar.h>.
36477         * m4/wcwidth.m4: Likewise.
36478
36479 2007-01-16  Bruno Haible  <bruno@clisp.org>
36480
36481         * modules/csharpexec-script: New, created from...
36482         * modules/csharpexec: ... this.
36483
36484 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
36485
36486         * modules/javaexec-script: New, created from...
36487         * modules/javaexec: ... this.
36488
36489 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36490
36491         * modules/poll (Dependencies): Add sys_select.
36492
36493 2007-01-15  Jim Meyering  <jim@meyering.net>
36494
36495         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
36496         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
36497         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
36498         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
36499
36500 2007-01-15  Bruno Haible  <bruno@clisp.org>
36501
36502         * modules/striconveh: New file.
36503         * lib/striconveh.h: New file.
36504         * lib/striconveh.c: New file.
36505         * MODULES.html.sh (Internationalization functions): Add striconveh.
36506
36507         * modules/striconveh-tests: New file.
36508         * tests/test-striconveh.c: New file.
36509
36510 2007-01-15  Bruno Haible  <bruno@clisp.org>
36511
36512         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
36513         not from GNU libiconv or GNU libc.
36514
36515 2007-01-15  Bruno Haible  <bruno@clisp.org>
36516
36517         * doc/gnulib-intro.texi (Copyright): Explain the different license
36518         terms for module descriptions, autoconf macros, tests, documentation.
36519
36520 2007-01-14  Bruno Haible  <bruno@clisp.org>
36521
36522         * modules/striconv-tests: New file.
36523         * tests/test-striconv.c: New file.
36524
36525 2007-01-14  Bruno Haible  <bruno@clisp.org>
36526
36527         * modules/iconv-tests: New file.
36528         * tests/test-iconv.c: New file.
36529
36530 2007-01-14  Bruno Haible  <bruno@clisp.org>
36531
36532         * gnulib-tool (func_get_license): For test modules, use the license of
36533         the main module.
36534
36535 2007-01-14  Bruno Haible  <bruno@clisp.org>
36536
36537         * modules/iconv (Include): Clarify that <iconv.h> can only be included
36538         if iconv is found to exist.
36539
36540 2007-01-14  Bruno Haible  <bruno@clisp.org>
36541
36542         * modules/c-ctype-tests: New file.
36543         * tests/test-c-ctype.c: New file.
36544
36545 2007-01-14  Bruno Haible  <bruno@clisp.org>
36546
36547         * modules/binary-io-tests: New file.
36548         * tests/test-binary-io.sh: New file.
36549         * tests/test-binary-io.c: New file.
36550
36551 2007-01-14  Bruno Haible  <bruno@clisp.org>
36552
36553         * modules/array-oset-tests: New file.
36554         * tests/test-array_oset.c: New file.
36555
36556 2007-01-14  Bruno Haible  <bruno@clisp.org>
36557
36558         * modules/array-list-tests: New file.
36559         * tests/test-array_list.c: New file.
36560
36561 2007-01-14  Bruno Haible  <bruno@clisp.org>
36562
36563         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
36564         and make.
36565         Reported by Simon Josefsson in
36566         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
36567
36568 2007-01-14  Bruno Haible  <bruno@clisp.org>
36569
36570         * modules/allocsa-tests: New file.
36571         * tests/test-allocsa.c: New file.
36572
36573 2007-01-14  Bruno Haible  <bruno@clisp.org>
36574
36575         * modules/fchdir (Depends-on): Add absolute-header.
36576         * modules/unistd (Depends-on): Likewise.
36577
36578 2006-12-30  Bruno Haible  <bruno@clisp.org>
36579
36580         * modules/fchdir: New file.
36581         * modules/unistd (Files): Add lib/unistd_.h.
36582         (Makefile.am): Generate unistd.h from unistd_.h.
36583         * lib/fchdir.c: New file.
36584         * lib/dirent_.h: New file.
36585         * lib/unistd_.h: New file.
36586         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
36587         * m4/fchdir.m4: New file.
36588         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
36589         (gl_HEADER_UNISTD): Invoke it.
36590         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
36591         function.
36592         * lib/backupfile.c (opendir, closedir): Undefine.
36593         * lib/chown.c (open, close): Undefine.
36594         * lib/clean-temp.c (open, close): Undefine.
36595         * lib/copy-file.c (open, close): Undefine.
36596         * lib/execute.c (open, close): Undefine.
36597         * lib/fsusage.c (open, close): Undefine.
36598         * lib/gc-gnulib.c (open, close): Undefine.
36599         * lib/getcwd.c (opendir, closedir): Undefine.
36600         * lib/glob.c (opendir, closedir): Undefine.
36601         * lib/javacomp.c (open, close): Undefine.
36602         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
36603         * lib/openat-proc.c (open, close): Undefine.
36604         * lib/pagealign_alloc.c (open, close): Undefine.
36605         * lib/pipe.c (open, close): Undefine.
36606         * lib/progreloc.c (open, close): Undefine.
36607         * lib/savedir.c (opendir, closedir): Undefine.
36608         * lib/utime.c (open, close): Undefine.
36609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
36610
36611 2007-01-10  Bruno Haible  <bruno@clisp.org>
36612
36613         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
36614
36615 2007-01-12  Eric Blake  <ebb9@byu.net>
36616
36617         Provide a robust <wchar.h>.  Further simplifications are now
36618         possible in other modules, but not included here.
36619         * modules/wchar: New module.
36620         * m4/wchar.m4: New file.
36621         * lib/wchar_.h: Likewise.
36622         * modules/mbchar (Depends-on): Depend on wchar, as the first use
36623         of the new module.
36624         * MODULES.html.sh (Extended multibyte and wide character utilities):
36625         New section.
36626
36627 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36628
36629         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
36630         to a reasonable default for memory allocation.
36631         (xreadlink): Don't allocate a huge buffer, to work around a buggy
36632         file system that reports garbage st_size values for symlinks.
36633         Problem reported by Liyang Hu.
36634
36635 2007-01-11  Simon Josefsson  <simon@josefsson.org>
36636
36637         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
36638         Emacs .#* auto-save files).
36639
36640 2007-01-11  Bruno Haible  <bruno@clisp.org>
36641
36642         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
36643         directory.
36644
36645 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36646
36647         Use @...@ consistently in lib/wctype_.h.
36648         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
36649         on it being set to 1 or 0.
36650         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
36651         go back to AC_SUBSTing it.
36652         * modules/wctype (Makefile.am): Undo previous change.
36653
36654 2007-01-10  Eric Blake  <ebb9@byu.net>
36655
36656         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
36657         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
36658         * modules/wctype (Makefile.am): Likewise.
36659         Reported by Chris McGuire.
36660
36661 2007-01-10  Jim Meyering  <jim@meyering.net>
36662
36663         fts.c: a small readability/maintainability improvement
36664         * lib/fts.c (fts_read): Make this code slightly more readable and
36665         maintainable by hoisting the "sp->fts_cur = p" assignments to
36666         immediately follow the statements that set P.  Derived from
36667         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
36668
36669 2007-01-10  Eric Blake  <ebb9@byu.net>
36670
36671         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
36672         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
36673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36674         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36675         Reported by Chris McGuire.
36676
36677 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36678
36679         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
36680         in sed script.
36681
36682 2007-01-09  Bruno Haible  <bruno@clisp.org>
36683
36684         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
36685         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
36686         variables.
36687         (func_module): Use them.
36688
36689 2007-01-09  Bruno Haible  <bruno@clisp.org>
36690
36691         * modules/unistr/base: New file.
36692         * lib/unistr.h: New file.
36693
36694         * modules/unistr/u8-to-u16: New file.
36695         * lib/unistr/u8-to-u16.c: New file.
36696
36697         * modules/unistr/u8-to-u32: New file.
36698         * lib/unistr/u8-to-u32.c: New file.
36699
36700         * modules/unistr/u16-to-u8: New file.
36701         * lib/unistr/u16-to-u8.c: New file.
36702
36703         * modules/unistr/u16-to-u32: New file.
36704         * lib/unistr/u16-to-u32.c: New file.
36705
36706         * modules/unistr/u32-to-u8: New file.
36707         * lib/unistr/u32-to-u8.c: New file.
36708
36709         * modules/unistr/u32-to-u16: New file.
36710         * lib/unistr/u32-to-u16.c: New file.
36711
36712         * modules/unistr/u8-check: New file.
36713         * modules/unistr/u16-check: New file.
36714         * modules/unistr/u32-check: New file.
36715         * lib/unistr/u8-check.c: New file.
36716         * lib/unistr/u16-check.c: New file.
36717         * lib/unistr/u32-check.c: New file.
36718
36719         * modules/unistr/u8-chr: New file.
36720         * modules/unistr/u16-chr: New file.
36721         * modules/unistr/u32-chr: New file.
36722         * lib/unistr/u8-chr.c: New file.
36723         * lib/unistr/u16-chr.c: New file.
36724         * lib/unistr/u32-chr.c: New file.
36725
36726         * modules/unistr/u8-cmp: New file.
36727         * modules/unistr/u16-cmp: New file.
36728         * modules/unistr/u32-cmp: New file.
36729         * lib/unistr/u8-cmp.c: New file.
36730         * lib/unistr/u16-cmp.c: New file.
36731         * lib/unistr/u32-cmp.c: New file.
36732
36733         * modules/unistr/u8-cpy: New file.
36734         * modules/unistr/u16-cpy: New file.
36735         * modules/unistr/u32-cpy: New file.
36736         * lib/unistr/u8-cpy.c: New file.
36737         * lib/unistr/u16-cpy.c: New file.
36738         * lib/unistr/u32-cpy.c: New file.
36739         * lib/unistr/u-cpy.h: New file.
36740
36741         * modules/unistr/u8-cpy-alloc: New file.
36742         * modules/unistr/u16-cpy-alloc: New file.
36743         * modules/unistr/u32-cpy-alloc: New file.
36744         * lib/unistr/u8-cpy-alloc.c: New file.
36745         * lib/unistr/u16-cpy-alloc.c: New file.
36746         * lib/unistr/u32-cpy-alloc.c: New file.
36747         * lib/unistr/u-cpy-alloc.h: New file.
36748
36749         * modules/unistr/u8-endswith: New file.
36750         * modules/unistr/u16-endswith: New file.
36751         * modules/unistr/u32-endswith: New file.
36752         * lib/unistr/u8-endswith.c: New file.
36753         * lib/unistr/u16-endswith.c: New file.
36754         * lib/unistr/u32-endswith.c: New file.
36755         * lib/unistr/u-endswith.h: New file.
36756
36757         * modules/unistr/u8-mblen: New file.
36758         * modules/unistr/u16-mblen: New file.
36759         * modules/unistr/u32-mblen: New file.
36760         * lib/unistr/u8-mblen.c: New file.
36761         * lib/unistr/u16-mblen.c: New file.
36762         * lib/unistr/u32-mblen.c: New file.
36763
36764         * modules/unistr/u8-mbtouc: New file.
36765         * modules/unistr/u16-mbtouc: New file.
36766         * modules/unistr/u32-mbtouc: New file.
36767         * lib/unistr/u8-mbtouc.c: New file.
36768         * lib/unistr/u16-mbtouc.c: New file.
36769         * lib/unistr/u32-mbtouc.c: New file.
36770
36771         * modules/unistr/u8-mbtouc-safe: New file.
36772         * modules/unistr/u16-mbtouc-safe: New file.
36773         * modules/unistr/u32-mbtouc-safe: New file.
36774         * lib/unistr/u8-mbtouc-safe.c: New file.
36775         * lib/unistr/u16-mbtouc-safe.c: New file.
36776         * lib/unistr/u32-mbtouc-safe.c: New file.
36777
36778         * modules/unistr/u8-move: New file.
36779         * modules/unistr/u16-move: New file.
36780         * modules/unistr/u32-move: New file.
36781         * lib/unistr/u8-move.c: New file.
36782         * lib/unistr/u16-move.c: New file.
36783         * lib/unistr/u32-move.c: New file.
36784         * lib/unistr/u-move.h: New file.
36785
36786         * modules/unistr/u8-next: New file.
36787         * modules/unistr/u16-next: New file.
36788         * modules/unistr/u32-next: New file.
36789         * lib/unistr/u8-next.c: New file.
36790         * lib/unistr/u16-next.c: New file.
36791         * lib/unistr/u32-next.c: New file.
36792
36793         * modules/unistr/u8-prev: New file.
36794         * modules/unistr/u16-prev: New file.
36795         * modules/unistr/u32-prev: New file.
36796         * lib/unistr/u8-prev.c: New file.
36797         * lib/unistr/u16-prev.c: New file.
36798         * lib/unistr/u32-prev.c: New file.
36799
36800         * modules/unistr/u8-set: New file.
36801         * modules/unistr/u16-set: New file.
36802         * modules/unistr/u32-set: New file.
36803         * lib/unistr/u8-set.c: New file.
36804         * lib/unistr/u16-set.c: New file.
36805         * lib/unistr/u32-set.c: New file.
36806         * lib/unistr/u-set.h: New file.
36807
36808         * modules/unistr/u8-startswith: New file.
36809         * modules/unistr/u16-startswith: New file.
36810         * modules/unistr/u32-startswith: New file.
36811         * lib/unistr/u8-startswith.c: New file.
36812         * lib/unistr/u16-startswith.c: New file.
36813         * lib/unistr/u32-startswith.c: New file.
36814         * lib/unistr/u-startswith.h: New file.
36815
36816         * modules/unistr/u8-stpcpy: New file.
36817         * modules/unistr/u16-stpcpy: New file.
36818         * modules/unistr/u32-stpcpy: New file.
36819         * lib/unistr/u8-stpcpy.c: New file.
36820         * lib/unistr/u16-stpcpy.c: New file.
36821         * lib/unistr/u32-stpcpy.c: New file.
36822         * lib/unistr/u-stpcpy.h: New file.
36823
36824         * modules/unistr/u8-stpncpy: New file.
36825         * modules/unistr/u16-stpncpy: New file.
36826         * modules/unistr/u32-stpncpy: New file.
36827         * lib/unistr/u8-stpncpy.c: New file.
36828         * lib/unistr/u16-stpncpy.c: New file.
36829         * lib/unistr/u32-stpncpy.c: New file.
36830         * lib/unistr/u-stpncpy.h: New file.
36831
36832         * modules/unistr/u8-strcat: New file.
36833         * modules/unistr/u16-strcat: New file.
36834         * modules/unistr/u32-strcat: New file.
36835         * lib/unistr/u8-strcat.c: New file.
36836         * lib/unistr/u16-strcat.c: New file.
36837         * lib/unistr/u32-strcat.c: New file.
36838         * lib/unistr/u-strcat.h: New file.
36839
36840         * modules/unistr/u8-strchr: New file.
36841         * modules/unistr/u16-strchr: New file.
36842         * modules/unistr/u32-strchr: New file.
36843         * lib/unistr/u8-strchr.c: New file.
36844         * lib/unistr/u16-strchr.c: New file.
36845         * lib/unistr/u32-strchr.c: New file.
36846
36847         * modules/unistr/u8-strcmp: New file.
36848         * modules/unistr/u16-strcmp: New file.
36849         * modules/unistr/u32-strcmp: New file.
36850         * lib/unistr/u8-strcmp.c: New file.
36851         * lib/unistr/u16-strcmp.c: New file.
36852         * lib/unistr/u32-strcmp.c: New file.
36853
36854         * modules/unistr/u8-strcpy: New file.
36855         * modules/unistr/u16-strcpy: New file.
36856         * modules/unistr/u32-strcpy: New file.
36857         * lib/unistr/u8-strcpy.c: New file.
36858         * lib/unistr/u16-strcpy.c: New file.
36859         * lib/unistr/u32-strcpy.c: New file.
36860         * lib/unistr/u-strcpy.h: New file.
36861
36862         * modules/unistr/u8-strcspn: New file.
36863         * modules/unistr/u16-strcspn: New file.
36864         * modules/unistr/u32-strcspn: New file.
36865         * lib/unistr/u8-strcspn.c: New file.
36866         * lib/unistr/u16-strcspn.c: New file.
36867         * lib/unistr/u32-strcspn.c: New file.
36868         * lib/unistr/u-strcspn.h: New file.
36869
36870         * modules/unistr/u8-strdup: New file.
36871         * modules/unistr/u16-strdup: New file.
36872         * modules/unistr/u32-strdup: New file.
36873         * lib/unistr/u8-strdup.c: New file.
36874         * lib/unistr/u16-strdup.c: New file.
36875         * lib/unistr/u32-strdup.c: New file.
36876         * lib/unistr/u-strdup.h: New file.
36877
36878         * modules/unistr/u8-strlen: New file.
36879         * modules/unistr/u16-strlen: New file.
36880         * modules/unistr/u32-strlen: New file.
36881         * lib/unistr/u8-strlen.c: New file.
36882         * lib/unistr/u16-strlen.c: New file.
36883         * lib/unistr/u32-strlen.c: New file.
36884         * lib/unistr/u-strlen.h: New file.
36885
36886         * modules/unistr/u8-strmblen: New file.
36887         * modules/unistr/u16-strmblen: New file.
36888         * modules/unistr/u32-strmblen: New file.
36889         * lib/unistr/u8-strmblen.c: New file.
36890         * lib/unistr/u16-strmblen.c: New file.
36891         * lib/unistr/u32-strmblen.c: New file.
36892
36893         * modules/unistr/u8-strmbtouc: New file.
36894         * modules/unistr/u16-strmbtouc: New file.
36895         * modules/unistr/u32-strmbtouc: New file.
36896         * lib/unistr/u8-strmbtouc.c: New file.
36897         * lib/unistr/u16-strmbtouc.c: New file.
36898         * lib/unistr/u32-strmbtouc.c: New file.
36899
36900         * modules/unistr/u8-strncat: New file.
36901         * modules/unistr/u16-strncat: New file.
36902         * modules/unistr/u32-strncat: New file.
36903         * lib/unistr/u8-strncat.c: New file.
36904         * lib/unistr/u16-strncat.c: New file.
36905         * lib/unistr/u32-strncat.c: New file.
36906         * lib/unistr/u-strncat.h: New file.
36907
36908         * modules/unistr/u8-strncmp: New file.
36909         * modules/unistr/u16-strncmp: New file.
36910         * modules/unistr/u32-strncmp: New file.
36911         * lib/unistr/u8-strncmp.c: New file.
36912         * lib/unistr/u16-strncmp.c: New file.
36913         * lib/unistr/u32-strncmp.c: New file.
36914
36915         * modules/unistr/u8-strncpy: New file.
36916         * modules/unistr/u16-strncpy: New file.
36917         * modules/unistr/u32-strncpy: New file.
36918         * lib/unistr/u8-strncpy.c: New file.
36919         * lib/unistr/u16-strncpy.c: New file.
36920         * lib/unistr/u32-strncpy.c: New file.
36921         * lib/unistr/u-strncpy.h: New file.
36922
36923         * modules/unistr/u8-strnlen: New file.
36924         * modules/unistr/u16-strnlen: New file.
36925         * modules/unistr/u32-strnlen: New file.
36926         * lib/unistr/u8-strnlen.c: New file.
36927         * lib/unistr/u16-strnlen.c: New file.
36928         * lib/unistr/u32-strnlen.c: New file.
36929         * lib/unistr/u-strnlen.h: New file.
36930
36931         * modules/unistr/u8-strpbrk: New file.
36932         * modules/unistr/u16-strpbrk: New file.
36933         * modules/unistr/u32-strpbrk: New file.
36934         * lib/unistr/u8-strpbrk.c: New file.
36935         * lib/unistr/u16-strpbrk.c: New file.
36936         * lib/unistr/u32-strpbrk.c: New file.
36937         * lib/unistr/u-strpbrk.h: New file.
36938
36939         * modules/unistr/u8-strrchr: New file.
36940         * modules/unistr/u16-strrchr: New file.
36941         * modules/unistr/u32-strrchr: New file.
36942         * lib/unistr/u8-strrchr.c: New file.
36943         * lib/unistr/u16-strrchr.c: New file.
36944         * lib/unistr/u32-strrchr.c: New file.
36945
36946         * modules/unistr/u8-strspn: New file.
36947         * modules/unistr/u16-strspn: New file.
36948         * modules/unistr/u32-strspn: New file.
36949         * lib/unistr/u8-strspn.c: New file.
36950         * lib/unistr/u16-strspn.c: New file.
36951         * lib/unistr/u32-strspn.c: New file.
36952         * lib/unistr/u-strspn.h: New file.
36953
36954         * modules/unistr/u8-strstr: New file.
36955         * modules/unistr/u16-strstr: New file.
36956         * modules/unistr/u32-strstr: New file.
36957         * lib/unistr/u8-strstr.c: New file.
36958         * lib/unistr/u16-strstr.c: New file.
36959         * lib/unistr/u32-strstr.c: New file.
36960         * lib/unistr/u-strstr.h: New file.
36961
36962         * modules/unistr/u8-strtok: New file.
36963         * modules/unistr/u16-strtok: New file.
36964         * modules/unistr/u32-strtok: New file.
36965         * lib/unistr/u8-strtok.c: New file.
36966         * lib/unistr/u16-strtok.c: New file.
36967         * lib/unistr/u32-strtok.c: New file.
36968         * lib/unistr/u-strtok.h: New file.
36969
36970         * modules/unistr/u8-uctomb: New file.
36971         * modules/unistr/u16-uctomb: New file.
36972         * modules/unistr/u32-uctomb: New file.
36973         * lib/unistr/u8-uctomb.c: New file.
36974         * lib/unistr/u16-uctomb.c: New file.
36975         * lib/unistr/u32-uctomb.c: New file.
36976
36977         * MODULES.html.sh (Unicode string functions): Add the new modules.
36978
36979 2007-01-08  Bruno Haible  <bruno@clisp.org>
36980
36981         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
36982         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
36983         subdirectories.
36984
36985 2007-01-08  Karl Berry  <karl@gnu.org>
36986
36987         * doc/error.texi: mention that main() fns must set program_name
36988         when progname is used.
36989
36990 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
36991
36992         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
36993         WCTYPE_H is empty, for the benefit of builds from non-distclean
36994         directories.  Problem reported by Eric Blake in
36995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
36996
36997 2007-01-08  Bruno Haible  <bruno@clisp.org>
36998
36999         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
37000         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
37001         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
37002         PROVIDE_CANONICALIZE_FILENAME_MODE.
37003         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
37004
37005 2007-01-08  Bruno Haible  <bruno@clisp.org>
37006
37007         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
37008         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
37009         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
37010         * lib/fts.c: Likewise.
37011         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
37012
37013 2006-12-25  Bruno Haible  <bruno@clisp.org>
37014
37015         * modules/utf8-ucs4-safe: New file.
37016         * lib/utf8-ucs4-safe.h: New file.
37017         * lib/unistr/utf8-ucs4-safe.c: New file.
37018
37019         * modules/utf16-ucs4-safe: New file.
37020         * lib/utf16-ucs4-safe.h: New file.
37021         * lib/unistr/utf16-ucs4-safe.c: New file.
37022
37023         * MODULES.html.sh (Unicode string functions): Add the new modules.
37024
37025 2007-01-08  Bruno Haible  <bruno@clisp.org>
37026
37027         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
37028         (Depends-on): Add unitypes.
37029         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
37030         (u8_mbtouc_aux): Move out to separate file.
37031         (u8_mbtouc): Use ucs4_t, uint8_t types.
37032         * lib/unistr/utf8-ucs4.c: New file.
37033
37034         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
37035         (Depends-on): Add unitypes.
37036         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
37037         (u16_mbtouc_aux): Move out to separate file.
37038         (u16_mbtouc): Use ucs4_t, uint16_t types.
37039         * lib/unistr/utf16-ucs4.c: New file.
37040
37041         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
37042         (Depends-on): Add unitypes.
37043         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
37044         (u8_uctomb_aux): Move out to separate file.
37045         (u8_uctomb): Use ucs4_t, uint8_t types.
37046         * lib/unistr/ucs4-utf8.c: New file.
37047
37048         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
37049         (Depends-on): Add unitypes.
37050         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
37051         (u16_uctomb_aux): Move out to separate file.
37052         (u16_uctomb): Use ucs4_t, uint16_t types.
37053         * lib/unistr/ucs4-utf16.c: New file.
37054
37055 2006-12-25  Bruno Haible  <bruno@clisp.org>
37056
37057         * modules/unitypes: New file.
37058         * lib/unitypes.h: New file.
37059         * MODULES.html.sh (func_all_modules): New section "Unicode string
37060         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
37061         this section. Add unitypes.
37062
37063 2007-01-08  Bruno Haible  <bruno@clisp.org>
37064
37065         Avoid variable names that conflict with those from libtool.
37066         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
37067         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
37068         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
37069         library_names_spec to acl_library_names_spec, hardcode_* to
37070         acl_hardcode_*.
37071         Reported by Ralf Wildenhues.
37072
37073 2007-01-08  Bruno Haible  <bruno@clisp.org>
37074
37075         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
37076         definition.
37077         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
37078         definition.
37079         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
37080         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
37081         definition.
37082         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
37083         definition.
37084         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
37085         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
37086         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
37087         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
37088         definition.
37089         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
37090         definition.
37091         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
37092         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
37093         GC_USE_<algorithm>.
37094         * lib/gc-libgcrypt.c: Likewise.
37095         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
37096         * modules/gc-arctwo (configure.ac): Likewise.
37097         * modules/gc-des (configure.ac): Likewise.
37098         * modules/gc-hmac-md5 (configure.ac): Likewise.
37099         * modules/gc-hmac-sha1 (configure.ac): Likewise.
37100         * modules/gc-md2 (configure.ac): Likewise.
37101         * modules/gc-md4 (configure.ac): Likewise.
37102         * modules/gc-md5 (configure.ac): Likewise.
37103         * modules/gc-random (configure.ac): Likewise.
37104         * modules/gc-rijndael (configure.ac): Likewise.
37105         * modules/gc-sha1 (configure.ac): Likewise.
37106
37107 2007-01-08  Bruno Haible  <bruno@clisp.org>
37108
37109         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
37110         macro definition.
37111         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
37112         definition.
37113         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
37114         definition.
37115         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
37116         * modules/fcntl-safer (configure.ac): Likewise.
37117         * modules/fopen-safer (configure.ac): Likewise.
37118         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
37119         GNULIB_FWRITEERROR macro definition.
37120
37121 2007-01-08  Bruno Haible  <bruno@clisp.org>
37122
37123         * m4/gnulib-common.m4: New file.
37124         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
37125         (func_get_filelist): Add m4/gnulib-common.m4.
37126
37127 2007-01-08  Bruno Haible  <bruno@clisp.org>
37128
37129         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
37130         command.
37131
37132 2007-01-08  Jim Meyering  <jim@meyering.net>
37133
37134         Use a more robust test for a "can't happen" condition.
37135         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
37136         narrowed the st_size value.  Presuming the "can't happen" condition
37137         is true, that narrowing could conceivably convert an invalid st_size
37138         value into a valid one.  Instead, use a change based on Matthew
37139         Woehlke's original patch.
37140
37141         Slight readability improvement: use an assert-like macro
37142         in place of literal "abort ()" uses.
37143         * lib/fts.c (fts_assert): Define.
37144         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
37145         Use this macro instead of a bare 'abort'.
37146
37147 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
37148
37149         Don't worry about using IRIX 5.3's wctype.h broken definitions;
37150         simply work around them.
37151         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
37152         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
37153         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
37154         declaring.
37155         Don't bother to define as macros, since the standard doesn't require it.
37156         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
37157         longer worry about IRIX 5.3.
37158         (HAVE_WCTYPE_CTMP_BUG): Remove.
37159
37160 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
37161
37162         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
37163         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
37164         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37165         Problems reported by Georg Schwarz for IRIX 5.3.
37166
37167         * gnulib-tool (autoconf_minversion): Take the maximum version number
37168         found, not the minimum.  Problem reported by James Youngman.
37169
37170 2007-01-03  Karl Berry  <karl@gnu.org>
37171
37172         * doc/error.texi: new file, explaining interaction with progname.
37173         * doc/gnulib.texi: include it.  Update copyright.
37174
37175 2007-01-03  Simon Josefsson  <simon@josefsson.org>
37176
37177         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
37178         AC_CANONICAL_HOST, to improve autobuild outputs.
37179
37180 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
37181             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37182
37183         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
37184         sockets, server sockets, and other file descriptors.  Count errors
37185         to compute the return value.  Reorder the code a bit to be easier
37186         to follow.  Don't set event bits that were not requested (except
37187         POLLERR and POLLHUP).
37188
37189 2007-01-01  Bruno Haible  <bruno@clisp.org>
37190
37191         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
37192
37193 2007-01-03  Jim Meyering  <jim@meyering.net>
37194
37195         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
37196
37197 2007-01-02  Bruno Haible  <bruno@clisp.org>
37198
37199         * modules/settime (Include): Require timespec.h.
37200         * modules/nanosleep (Include): Likewise.
37201
37202 2007-01-01  Bruno Haible  <bruno@clisp.org>
37203
37204         * gnulib-tool (func_emit_copyright_notice): Bump year.
37205         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
37206
37207 2007-01-01  Bruno Haible  <bruno@clisp.org>
37208
37209         Improve support for OpenBSD.
37210         * build-aux/config.rpath (libname_spec): Export.
37211         (library_names_spec): New variable. Export.
37212         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
37213         library_names_spec from the config.rpath output. Locate shared library
37214         through the name pattern in library_names_spec.
37215
37216 2007-01-01  Eric Blake  <ebb9@byu.net>
37217
37218         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
37219
37220 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
37221
37222         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
37223         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
37224         assume the C locale, and avoid an "eval" that could cause trouble.
37225         Problem with SORT reported by Bob Proulx.
37226
37227         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
37228         Define.  Trivial patch from Henning Nielsen Lund, originally
37229         sent to bug-grep@gnu.org today.
37230
37231 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37232
37233         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
37234         struct stat.  Problem reported by Henning Nielsen Lund.
37235         * lib/acl.c: Include acl.h first, to check interface.  Don't
37236         bother to include sys/types.h and sys/stat.h again.
37237
37238 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
37239
37240         Import the following change from libc; problem reported by
37241         Sven Verdoolaege.
37242
37243         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
37244
37245         [BZ #1373]
37246         * lib/argp.h: Remove __NTH for __argp_usage inline function.
37247
37248 2006-12-28  Jim Meyering  <jim@meyering.net>
37249
37250         * build-aux/announce-gen: Do not assume that the package
37251         builds any of tar.gz, tar.bz2, and .xdelta files.
37252         Suggestion from Simon Josefsson.
37253
37254 2006-12-28  Simon Josefsson  <simon@josefsson.org>
37255
37256         * modules/announce-gen: New file.
37257
37258 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
37259
37260         * lib/mbchar.h: Just include <wctype.h>; the wctype module
37261         handles its gotchas now.
37262         * lib/mbswidth.c: Likewise.
37263         * lib/wcwidth.h: Likewise.
37264         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
37265         and iswcntrl; the wctype module does this stuff now.
37266         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37267         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37268         * modules/mbchar (Depends-on): Add wctype.
37269         * modules/mbswidth (Depends-on): Likewise.
37270         * modules/wcwidth (Depends-on): Likewise.
37271
37272 2006-12-27  Eric Blake  <ebb9@byu.net>
37273
37274         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
37275         module uses more than what <wctype.h> is required to provide.
37276
37277 2006-12-26  Eric Blake  <ebb9@byu.net>
37278
37279         * gnulib-tool (sed_extract_prog): Avoid space-tab.
37280
37281 2006-12-26  Eric Blake  <ebb9@byu.net>
37282
37283         * modules/absolute-header: New module.
37284         * modules/fcntl (Depends-on): Depend on it.
37285         * modules/inttypes (Depends-on): Likewise.
37286         * modules/stdint (Depends-on): Likewise.
37287         * modules/sys_stat (Depends-on): Likewise.
37288         * modules/wctype (Depends-on): Likewise.
37289         * MODULES.html.sh (Support for building libraries and
37290         executables): Document it.
37291
37292 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37293
37294         * gnulib-tool (SED): Remove, undoing previous change.
37295         The problem was that it broke coreutils on Solaris, because
37296         "sed --posix" leaked into a makefile.
37297         (sed): New alias, if 'alias' and GNU sed.
37298
37299 2006-12-24  Jim Meyering  <jim@meyering.net>
37300
37301         Work around an fchownat bug in glibc-2.4:
37302         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
37303         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
37304         in spite of the -P option.
37305         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
37306         New macros.
37307         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
37308         * modules/openat (Files): Add lib/fchownat.c.
37309         * lib/openat.c (fchownat): Don't define here.  Move to...
37310         * lib/fchownat.c: ...this new file.
37311
37312 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
37313
37314         Fix bug reported by Bruno Haible in
37315         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
37316         where quotearg.c didn't compile on Mac OS X 10.2 because it
37317         lacks <wchar.h> and wint_t.
37318         * lib/wctype_.h (__wctype_wint_t): New type.
37319         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
37320         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
37321         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
37322         Arg is now of type __wctype_wint_t, not wint_t.
37323         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
37324         substitute HAVE_WINT_T.
37325         * modules/wctype (Files): Add m4/wint_t.m4.
37326         (wctype.h): Substitute HAVE_WINT_T.
37327
37328 2006-12-23  Bruno Haible  <bruno@clisp.org>
37329
37330         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
37331
37332 2006-12-23  Bruno Haible  <bruno@clisp.org>
37333
37334         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
37335         S_ISLNK.
37336         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
37337         mingw.
37338
37339 2006-12-22  Bruno Haible  <bruno@clisp.org>
37340
37341         * lib/copy-file.c: Include acl.h.
37342         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
37343         Close the file descriptors only after being done with copy_acl.
37344         * modules/copy-file (Depends-on): Add acl.
37345
37346 2006-12-22  Bruno Haible  <bruno@clisp.org>
37347
37348         * gnulib-tool (SED): New variable.
37349         Use $SED instead of sed everywhere.
37350
37351 2006-12-22  Bruno Haible  <bruno@clisp.org>
37352
37353         * modules/no-c++: New file.
37354         * m4/no-c++.m4: New file.
37355         * MODULES.html.sh (Support for building libraries and executables):
37356         Add no-c++.
37357
37358 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
37359
37360         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
37361         Include <limits.h>, and use its INT_MAX to rewrite the
37362         j loop so that it does not overflow 'int'.  Problem reported by
37363         Ralf Wildenhues in
37364         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
37365         Play it safe by shifting left by 1 rather than multiplying by 2,
37366         as GCC is less likely to optimize this away when the value
37367         is signed (when it assumes overflow leads to undefined behavior).
37368         Also, don't assume time_t uses two's complement.
37369
37370 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
37371
37372         * MODULES.html.sh: New module wctype.
37373         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
37374         * lib/fnmatch.c: Don't bother to include <wchar.h> before
37375         <wctype.h>, since the new wctype module should fix this.
37376         * lib/quotearg.c: Include <wctype.h> unconditionally, since
37377         the wctype module should arrange for it.
37378         * lib/regex_internal.h: Likewise.
37379         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
37380         since the wctype module should handle this now.
37381         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
37382         * modules/fnmatch (Depends-on): Add wctype.
37383         * modules/quotearg (Depends-on): Likewise.
37384         * modules/regex (Depends-on): Likewise.
37385
37386 2006-12-19  Bruno Haible  <bruno@clisp.org>
37387
37388         * lib/strdup.h [C++]: Wrap definitions in extern "C".
37389         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
37390
37391 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37392
37393         * modules/savewd (Depends-on): Fix dependency on fcntl.
37394
37395 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37396
37397         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
37398         conforms to C99, rather than relying on the user's environment
37399         setting of STDINT_H.
37400
37401 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37402         and Eric Blake  <ebb9@byu.net>
37403
37404         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
37405         This is more consistent with the other defines here.
37406         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
37407         Port to z/OS.  Problem reported by Paul Gilmartin.
37408         Change local vars to use gl_ prefix rather than ac_.
37409         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
37410         with other defines.
37411         * modules/double-slash-root: New module.
37412         * modules/dirname (Files): Remove m4/double-slash-root.m4.
37413         (Depends-on): Add double-slash-root.
37414         * MODULES.html.sh (File system functions): Mention new module.
37415
37416 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
37417
37418         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
37419         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
37420         This is for the benefit of gzip, which doesn't do i18n.
37421
37422 2006-12-12  Jim Meyering  <jim@meyering.net>
37423
37424         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
37425         Reported by Andreas Schwab <schwab@suse.de>.
37426
37427 2006-12-12  Bruno Haible  <bruno@clisp.org>
37428
37429         Merge these changes.
37430         2006-09-05  Bruno Haible  <bruno@clisp.org>
37431         * lib/iconvme.c (iconv_string): No need to save and restore errno when
37432         iconv_alloc succeeded.
37433         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
37434         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
37435         test for " && dest " at the end - dest is always != NULL there. Call
37436         iconv with 4xNULL arguments initially, to reset the state. Call iconv
37437         with 2xNULL arguments, also to flush the state storage. Handle the
37438         IRIX iconv behaviour. Realloc the final result, to throw away unused
37439         memory.
37440
37441 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
37442
37443         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
37444         and fchmodat unconditionally, since glibc 2.4 has them.
37445         Problem reported by Arkadiusz Miskiewicz.
37446
37447 2006-12-10  Bruno Haible  <bruno@clisp.org>
37448
37449         * gnulib-tool (func_import): Show the include files only for those
37450         modules that are copied and specified.
37451         Reported by Karl Berry.
37452
37453 2006-12-08  Jim Meyering  <jim@meyering.net>
37454
37455         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
37456         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
37457
37458         * build-aux/announce-gen: Add two new options, both optional:
37459         --bootstrap-tools=TOOL_LIST
37460               a comma-separated list of tools, e.g.,
37461               autoconf,automake,bison,gnulib
37462         --gnulib-snapshot-date=DATE
37463               if gnulib is in the bootstrap tool list,
37464               then report this as the snapshot date.
37465               If not specified, use the current date/time.
37466               If you specify a date here, be sure it's UTC.
37467
37468 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37469
37470         * tests/test-argp-2.sh: Fix test to match actual output.
37471         (func_compare): Fix sed script to be portable.
37472
37473 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
37474
37475         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
37476         workaround for this case.  It is not autoconfigured now; offhand
37477         it's hard to see how to autoconfigure it.
37478
37479 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
37480
37481         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
37482         a directory that is about to be chowned.  Such a directory's
37483         initial file permissions should permit the owner only and this
37484         should not be changed until after the chown, since the group and
37485         other bits would be incorrect if they granted permission before
37486         the chown.
37487
37488         Fix porting problem for iswctype reported by Georg Schwarz in:
37489         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
37490         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
37491         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
37492         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
37493         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37494
37495 2006-12-03  Jim Meyering  <jim@meyering.net>
37496
37497         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
37498         p->fts_statp may not yet be defined.
37499         (fts_read): Instead, set it in the caller, once p->fts_statp is
37500         sure to be defined, and corresponds to a top-level directory.
37501         This bug made du -x fail.  Here's the coreutils test case:
37502         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
37503         Reported by Mike Frysinger.
37504
37505 2006-12-01  Jim Meyering  <jim@meyering.net>
37506
37507         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
37508         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
37509         Reported by Simon Josefsson.
37510
37511 2006-11-30  Jim Meyering  <jim@meyering.net>
37512
37513         * m4/warning.m4: Use the all-permissive copyright notice
37514         recommended by RMS (rather than LGPL).
37515         * m4/vararrays.m4: Likewise.
37516         * m4/flexmember.m4: Likewise.
37517
37518 2006-11-29  Bruno Haible  <bruno@clisp.org>
37519
37520         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37521         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
37522         using +=.
37523         Reported by Simon Josefsson <simon@josefsson.org>.
37524
37525 2006-11-28  James Youngman <jay@gnu.org>
37526
37527         * README: Advise users that they might find the bug-gnulib@gnu.org
37528         and autotools-announce@gnu.org mailing lists useful.
37529
37530 2006-11-28  Bruno Haible  <bruno@clisp.org>
37531
37532         * m4/ptrdiff_max.m4: Remove file.
37533
37534 2006-11-21  Bruno Haible  <bruno@clisp.org>
37535
37536         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
37537         _AC_COMPUTE_INT.
37538         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37539         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
37540         _AC_COMPUTE_INT.
37541         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37542         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
37543         _AC_COMPUTE_INT.
37544         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37545
37546 2006-11-28  Jim Meyering  <jim@meyering.net>
37547
37548         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
37549         warning from "gcc -Wshadow" about shadowing the builtin.
37550
37551 2006-11-27  Bruno Haible  <bruno@clisp.org>
37552
37553         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
37554         _AC_COMPUTE_INT.
37555         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37556
37557 2006-11-27  Bruno Haible  <bruno@clisp.org>
37558             Paul Eggert  <eggert@cs.ucla.edu>
37559
37560         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
37561
37562 2006-11-26  Bruno Haible  <bruno@clisp.org>
37563
37564         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37565         noinst_LTLIBRARIES.
37566
37567 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
37568             Bruno Haible  <bruno@clisp.org>
37569
37570         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
37571         if compiling with "gcc -ansi".
37572
37573 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
37574
37575         Fix some incompatibilities with gcc -ansi -pedantic.
37576         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
37577         if compiling pedantically with GCC, unless it's C99 or later.
37578         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
37579         it mishandles gcc -ansi -pedantic as well.
37580         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
37581         if gcc -pedantic.
37582         * lib/regexec.c (check_node_accept_bytes): Don't use auto
37583         initializers for struct if -pedantic, unless it's C99 or later.
37584
37585 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
37586
37587         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
37588         Don't close an fd more than once. Identical atimes indicate
37589         success, not failure.
37590
37591 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
37592
37593         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
37594
37595 2006-11-23  Jim Meyering  <jim@meyering.net>
37596
37597         * build-aux/announce-gen: New file.  From coreutils.
37598
37599 2006-11-22  Jim Meyering  <jim@meyering.net>
37600
37601         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
37602         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
37603         (fts_read): Use a temporary to narrow the overused st_size member
37604         before using it in a switch statement.  Reported by Matthew Woehlke.
37605
37606         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
37607         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37608
37609 2006-11-20  Bruno Haible  <bruno@clisp.org>
37610
37611         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
37612         changequote instead of pairs of brackets.
37613         Reported by Andreas Schwab <schwab@suse.de>.
37614
37615 2006-11-21  Jim Meyering  <jim@meyering.net>
37616
37617         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
37618         so as to remain compatible with older compilers.
37619         Patch from Michael Deutschmann.
37620
37621 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
37622
37623         * MODULES.html.sh (File system functions): Add openat.
37624
37625         * lib/openat.h (rpl_fstatat): New macro, if
37626         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
37627         (fstatat): Define to rpl_fstatat under the same conditions,
37628         unless COMPILING_FSTATAT.
37629         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
37630         seems to have the bug.
37631         * lib/fstatat.c: New file.
37632         * modules/openat (Files): Add it.
37633
37634 2006-11-20  Bruno Haible  <bruno@clisp.org>
37635
37636         * Makefile: New file.
37637
37638 2006-11-20  Jim Meyering  <jim@meyering.net>
37639
37640         The beginnings of syntax-related checks for gnulib.
37641         * lib/Makefile: New file.
37642         * lib/t-idcache: New script.  Ensure that the two halves of
37643         idcache.c stay in sync.
37644
37645         * lib/idcache.c: Adjust comments in user- and group- portions to
37646         be more accurate, and to be consistent with one another.
37647
37648 2006-11-20  Jim Meyering  <jim@meyering.net>
37649
37650         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
37651         continue using the flexible array member (thus, this module performs
37652         half as many malloc calls), with the addition that...
37653         (getgroup, getuser): Consistently record a non-match via an empty
37654         "name" string, and map an empty string match to a NULL return value.
37655         * modules/idcache (Depends-on): Re-add flexmember.
37656
37657         * lib/idcache.c (getuser): Remove all uses of the register keyword.
37658         (getuidbyname, getgroup, getgidbyname): Likewise.
37659
37660         Use cleaner syntax: NULL rather than 0.
37661         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
37662
37663 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
37664
37665         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
37666         It mishandled the case where the group was missing.
37667         Problem reported by Greg Schafer.
37668         * modules/idcache: Likewise.
37669
37670 2006-11-18  Jim Meyering  <jim@meyering.net>
37671
37672         * check-module (%exempt_header): Add exception for some
37673         conditionally-included headers.
37674
37675         * modules/i-ring (Depends-on): Add verify.
37676         (License): Change to LGPL.
37677
37678 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37679
37680         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
37681         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
37682         and inttostr.h.  Use snprintf rather than uinttostr, so that
37683         LGPLed code doesn't depend on GPLed.
37684
37685 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
37686
37687         * modules/inline (License): Change from GPL to LGPL.
37688
37689 2006-11-17  Jim Meyering  <jim@meyering.net>
37690
37691         * modules/d-type (License): Switch to LGPL.
37692
37693 2006-11-15  Bruno Haible  <bruno@clisp.org>
37694
37695         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
37696
37697 2006-11-15  Eric Blake  <ebb9@byu.net>
37698
37699         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
37700         the module dependency.
37701
37702 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37703             Bruno Haible  <bruno@clisp.org>
37704
37705         * gnulib-tool (func_create_testdir): Add license consistency check.
37706
37707 2006-11-15  Eric Blake  <ebb9@byu.net>
37708
37709         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
37710         random "(cached)" in configure output.
37711
37712 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37713
37714         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
37715         test for conforming inttypes.h is both announced and cached.
37716
37717         * MODULES.html.sh (seen_modules, seen_files): New variables.
37718         (func_module): Rewrite to use a few less gnulib-tool and sed
37719         invocations.  Avoid a couple of quadratic algorithms for ...
37720         (missed_modules, missed_files): ... these, with ...
37721         (func_append, func_tmpdir): ... these new functions, from
37722         gnulib-tool.  Analogously, install traps for cleanup.
37723
37724         * tests/test-gc.c (main): Remove unused variables.
37725         * tests/test-read-file.c: Include stdlib.h, for 'free'.
37726
37727 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
37728
37729         * modules/inttostr (License): Change to LGPL.
37730
37731 2006-11-14  Eric Blake  <ebb9@byu.net>
37732
37733         * modules/tempname (License): Change to LGPL.
37734
37735 2006-11-14  Eric Blake  <ebb9@byu.net>
37736
37737         * doc/functions.texi (Function Portability): *printf functions on
37738         Cygwin now understand all POSIX size specifiers.
37739
37740 2006-11-14  Bruno Haible  <bruno@clisp.org>
37741
37742         * modules/c-ctype (License): Change to LGPL.
37743
37744 2006-11-12  Bruno Haible  <bruno@clisp.org>
37745
37746         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37747         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
37748         for GNOME libraries, for which the include files are installed in
37749         subdirectories of $prefix/include.
37750
37751 2006-11-12  Bruno Haible  <bruno@clisp.org>
37752
37753         * m4/lib-link.m4: Require at least autoconf-2.54.
37754         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
37755         name to underscores for the --with option.
37756
37757 2006-11-13  Bruno Haible  <bruno@clisp.org>
37758
37759         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
37760         the tests directory.
37761         Reported by Ralf Wildenhues.
37762
37763 2006-11-13  Bruno Haible  <bruno@clisp.org>
37764
37765         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
37766         (func_emit_initmacro_end): Undo the override here.
37767         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
37768         Works around the famous automake error in coreutils.
37769
37770 2006-11-13  Eric Blake  <ebb9@byu.net>
37771
37772         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
37773         element, not its node.
37774
37775 2006-11-12  Bruno Haible  <bruno@clisp.org>
37776
37777         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
37778         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
37779
37780 2006-11-12  Bruno Haible  <bruno@clisp.org>
37781
37782         * gnulib-tool: New option --local-symlink.
37783         (func_usage): Document it.
37784         (lsymbolic): New variable.
37785         (func_import, func_create_testdir): If --symlink was not specified,
37786         test whether --local-symlink was specified and the file comes from
37787         the local_gnulib_dir.
37788
37789 2006-11-12  Bruno Haible  <bruno@clisp.org>
37790
37791         * gnulib-tool (func_ln): New function.
37792         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
37793
37794 2006-11-12  Bruno Haible  <bruno@clisp.org>
37795
37796         Finish support for source files in subdirectories.
37797         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
37798         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
37799         AUTOMAKE_OPTIONS.
37800         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
37801
37802 2006-11-12  Bruno Haible  <bruno@clisp.org>
37803
37804         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37805         EXTRA_lib_SOURCES augmentation.
37806         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
37807
37808 2006-11-12  Jim Meyering  <jim@meyering.net>
37809
37810         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
37811         file descriptors.  This also averts a failure on systems with
37812         native openat support when a traversed directory lacks "x" access.
37813         * lib/fts_.h: Include "i-ring.h"
37814         (struct FTS) [fts_fd_ring]: New member.
37815         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
37816         (FCHDIR): Add parentheses.
37817         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
37818         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
37819         When descending, rather than simply closing the previous
37820         fts_cwd_fd value, push that file descriptor onto the ring.
37821         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
37822         (fts_open): Initialize the new fd_ring member.
37823         (fts_close): Clear the ring.
37824         (fts_safe_changedir): When possible, use our new fd_ring to skip
37825         the diropen and fstat and dev/ino comparison that would normally
37826         accompany a virtual `chdir ("..")'.
37827
37828         * modules/fts (Depends-on): Add i-ring.
37829         * modules/i-ring: New module.
37830         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
37831         * m4/i-ring.m4: New file.
37832
37833 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37834
37835         * gnulib-tool (func_create_testdir): Fix replacement of
37836         `build-aux' in configure.ac.  Run autotools in gltests
37837         subdirectory.
37838         (func_create_testdir, func_create_megatestdir, test): There is
37839         no need for '--force' in most autotool invocations in a new
37840         tree.  Actually fail the whole test if any of the tools, or the
37841         configure or make stages fail.
37842
37843         Sync from Automake.
37844         * build-aux/gnupload: Revert last change.  Add pointer to upload
37845         instructions of the GNU Maintenance Instructions.
37846         Suggestion by Karl Berry.
37847
37848 2006-11-10  Jim Meyering  <jim@meyering.net>
37849
37850         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
37851
37852 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37853
37854         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
37855         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
37856         (bind_textdomain_codeset) [! ENABLE_NLS]:
37857         Evaluate all the arguments.  That way, callers get compatible behavior
37858         if the arguments have side effects.  Also, it avoids some GCC
37859         diagnostics in some cases; Joel E. Denny reported problems when Bison
37860         was configured with --enable-gcc-warnigs.
37861
37862 2006-11-10  Jim Meyering  <jim@meyering.net>
37863
37864         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
37865         relevant options in CFLAGS (like -O, -fno-inline) are taken into
37866         account.
37867
37868 2006-11-10  Jim Meyering  <jim@meyering.net>
37869
37870         * modules/inline: New file/module.
37871         * modules/xalloc (Files): Remove m4/inline.m4.
37872         (Depends-on): Add inline, instead.
37873         * modules/oset: Likewise.
37874         * modules/list: Likewise.
37875
37876 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37877
37878         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
37879         Problem reported by Matthew Woehlke.
37880
37881 2006-11-09  Bruno Haible  <bruno@clisp.org>
37882
37883         * lib/tempname.c (gen_tempname): Remove variant that invokes
37884         __gen_tempname.
37885         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
37886         __gen_tempname.
37887
37888 2006-11-08  Bruno Haible  <bruno@clisp.org>
37889
37890         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
37891         to 'yes' instead of 'cross-compiling'.
37892
37893 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37894
37895         * lib/quotearg.h (quotearg_free): New decl.
37896         * lib/quotearg.c (quotearg_free): New function.
37897         (slot0, nslots, slotvec0, slotvec):
37898         Now file-scope so that quotearg_free can get at them.
37899
37900 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37901
37902         Sync from Automake.
37903         * build-aux/gnupload: Add missing 'gnu' to example URL.
37904         Report by Karl Berry.
37905
37906 2006-11-08  Bruno Haible  <bruno@clisp.org>
37907
37908         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
37909         Suggested by Paul Eggert.
37910
37911 2006-11-08  Jim Meyering  <jim@meyering.net>
37912
37913         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
37914         It's already included if !_LIBC.
37915         (fts_safe_changedir): Add a comment.
37916
37917 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37918
37919         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
37920         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
37921         Matthew Woehlke.
37922
37923         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
37924         definitions up, to avoid colliding with change below.
37925         (static_inline) [HAVE_INLINE]: New macro.
37926         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37927         Provide extern decls when !HAVE_INLINE.  Do not define unless
37928         static_inline is defined, either by us or by xmalloc.c.  Use
37929         static_inline rather than static inline.
37930         (XCALLOC): Optimize sizeof(T) = 1 case.
37931         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
37932
37933 2006-11-07  Bruno Haible  <bruno@clisp.org>
37934
37935         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
37936         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
37937         AC_C_INLINE.
37938         * modules/xalloc (Files): Add m4/inline.m4.
37939
37940 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37941
37942         * README: Fix typo.
37943         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
37944         (Miscellanous Notes): ...from this.
37945
37946 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37947
37948         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
37949         Mention that offsetof should be used instead of sizeof.
37950         From Bruno Haible.
37951
37952 2006-11-07  Bruno Haible  <bruno@clisp.org>
37953
37954         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
37955
37956 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37957
37958         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37959         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
37960         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37961         (gl_tree_add_before, gl_tree_add_after):
37962         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
37963         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
37964         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37965         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
37966         (gl_linked_add_after, gl_linked_add_at): Likewise.
37967         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
37968         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37969         (gl_tree_add_before, gl_tree_add_after): Likewise.
37970         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
37971         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
37972         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37973
37974 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37975
37976         * lib/gl_oset.h: Use C comment style, not C++ comment style.
37977
37978 2006-11-06  Bruno Haible  <bruno@clisp.org>
37979
37980         * m4/inline.m4: New file.
37981         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
37982         * modules/list (Files): Add m4/inline.m4.
37983         * modules/oset (Files): Likewise.
37984
37985 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37986
37987         * lib/idcache.c: Include <stddef.h>, for offsetof.
37988         (struct userid.name): Change from char * to a flexible array member.
37989         All uses changed.
37990         * modules/idcache (Depends-on): Add flexmember.
37991
37992         * MODULES.html.sh (Core language properties): New module flexmember.
37993         * modules/flexmember, m4/flexmember.m4: New files.
37994
37995         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
37996         inline functions that are identical with the old xnmalloc_inline,
37997         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
37998         that we can avoid some unnecessary integer multiplications and
37999         divisions in the common case where the element size is known at
38000         compile time.
38001         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
38002         needed.
38003         (xnboundedmalloc): Remove.
38004         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
38005         arguments, for consistency with rest of this header.
38006         (xcharalloc): Rewrite using XNMALLOC.
38007         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
38008         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
38009         versions have been moved to lib/xalloc.h and renamed to be the
38010         non-*_inline versions.
38011         (xmalloc, xrealloc): Implement without reference to the xnmalloc
38012         and xnrealloc functions, since those functions are now inline and
38013         now call us.
38014         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
38015         renaming described above.
38016         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
38017         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
38018         captures the dependency in AC_C_INLINE.
38019
38020         New module canonicalize-lgpl, proposed by Charles Wilson in
38021         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
38022         with a few small changes afterwards.
38023         * MODULES.html.sh (File system functions): New module
38024         canonicalize-lgpl.
38025         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
38026         and canonicalize_file_name.
38027         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
38028         * modules/canonicalize-lgpl: New files.
38029
38030 2006-11-05  Bruno Haible  <bruno@clisp.org>
38031
38032         * gnulib-tool (func_import, func_create_testdir): Create directories
38033         also for files in subdirectories of lib/.
38034
38035 2006-11-05  Bruno Haible  <bruno@clisp.org>
38036
38037         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
38038         ANSI C compliant.
38039
38040 2006-11-03  Bruno Haible  <bruno@clisp.org>
38041
38042         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
38043         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
38044         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
38045         (xnboundedmalloc): New inline function.
38046         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
38047         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
38048         xmalloc.
38049         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
38050         xmalloc.
38051         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
38052         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
38053         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
38054         xmalloc.
38055         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
38056         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
38057         xmalloc.
38058         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
38059         gl_tree_add_after): Use XMALLOC instead of xmalloc.
38060         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
38061         xmalloc.
38062         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
38063         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
38064         gl_tree_add_after): Use XMALLOC instead of xmalloc.
38065         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
38066         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
38067         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
38068         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
38069
38070 2006-11-03  Bruno Haible  <bruno@clisp.org>
38071
38072         * lib/c-ctype.h [C++]: Define functions without name mangling.
38073         * lib/fwriteerror.h [C++]: Likewise.
38074         * lib/gcd.h [C++]: Likewise.
38075         * lib/linebreak.h [C++]: Likewise.
38076
38077 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
38078
38079         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
38080         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
38081         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
38082         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
38083         Check for functions and headers just once.
38084         Check for declaration of canonicalize_file_name.
38085         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
38086
38087 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
38088
38089         * gnulib-tool (func_import): Fix typo in actioncmd.
38090
38091 2006-11-02  Bruno Haible  <bruno@clisp.org>
38092
38093         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
38094         newline sequence in the Makefile.am snippet as a space, like "make"
38095         does.
38096         Reported by Roger Persson <perrog@gmail.com>.
38097
38098 2006-11-01  Bruno Haible  <bruno@clisp.org>
38099
38100         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
38101         already declared in <string.h>.
38102         * lib/strcase.h (strncasecmp): Don't declare it if yes.
38103
38104 2006-11-01  Bruno Haible  <bruno@clisp.org>
38105
38106         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
38107         * lib/strcase.h: Include <string.h>.
38108         (strcasecmp): Define to rpl_strcasecmp here.
38109
38110 2006-11-01  Bruno Haible  <bruno@clisp.org>
38111
38112         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
38113
38114 2006-11-01  Eric Blake  <ebb9@byu.net>
38115
38116         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
38117
38118         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
38119
38120 2006-10-29  Bruno Haible  <bruno@clisp.org>
38121
38122         Make it compile in C++ mode.
38123         * lib/full-write.c (full_rw): Add a cast.
38124
38125 2006-11-01  Bruno Haible  <bruno@clisp.org>
38126
38127         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
38128         be POSIX compliant.
38129         Reported by Roger Persson <perrog@gmail.com>.
38130
38131 2006-11-01  Eric Blake  <ebb9@byu.net>
38132
38133         * lib/getopt_.h: Fix comments.
38134
38135 2006-10-31  Eric Blake  <ebb9@byu.net>
38136
38137         * modules/tmpdir (Depends-on): Add sys_stat.
38138         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
38139         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
38140         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
38141         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
38142         tempname.
38143
38144 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
38145
38146         Avoid some C++ diagnostics reported by Bruno Haible.
38147         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
38148         xmalloc.
38149         (quotearg_alloc): Use xcharalloc rather than xmalloc.
38150         (struct slotvec): Move to top level.
38151         (quotearg_n_options): Rewrite to avoid xmalloc.
38152         * lib/xalloc.h (xcharalloc): New function.
38153         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
38154         [defined __cplusplus]: Add function template that provides result
38155         type propagation.  This part of the change is from Bruno Haible.
38156
38157 2006-10-29  Bruno Haible  <bruno@clisp.org>
38158
38159         Make it compile in C++ mode.
38160         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
38161         * lib/strnlen1.c (strnlen1): Cast memchr result.
38162         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
38163         * lib/clean-temp.c (string_equals, string_hash): Add casts.
38164         (create_temp_dir): Rename local variable 'template'.
38165         (compile_csharp_using_sscli): Add cast.
38166         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
38167         * lib/findprog.c (find_in_path): Likewise.
38168         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
38169         * lib/wait-process.c (register_slave_subprocess): Likewise.
38170
38171 2006-10-22  Bruno Haible  <bruno@clisp.org>
38172
38173         * modules/tsearch: New file.
38174         * lib/tsearch.h: New file.
38175         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
38176         * m4/tsearch.m4: New file.
38177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
38178
38179 2006-10-29  Eric Blake  <ebb9@byu.net>
38180
38181         * lib/arcfour.c: Assume config.h.
38182         * lib/arctwo.c: Likewise.
38183         * lib/base64.c: Likewise.
38184         * lib/check-version.c: Likewise.
38185         * lib/crc.c: Likewise.
38186         * lib/des.c: Likewise.
38187         * lib/gc-gnulib.c: Likewise.
38188         * lib/gc-libgcrypt.c: Likewise.
38189         * lib/gc-pbkdf2-sha1.c: Likewise.
38190         * lib/getaddrinfo.c: Likewise.
38191         * lib/getdelim.c: Likewise.
38192         * lib/getline.c: Likewise.
38193         * lib/hmac-md5.c: Likewise.
38194         * lib/hmac-sha1.c: Likewise.
38195         * lib/iconvme.c: Likewise.
38196         * lib/md2.c: Likewise.
38197         * lib/md4.c: Likewise.
38198         * lib/memxor.c: Likewise.
38199         * lib/read-file.c: Likewise.
38200         * lib/readline.c: Likewise.
38201         * lib/rijndael-alg-fst.c: Likewise.
38202         * lib/rijndael-api-fst.c: Likewise.
38203         * lib/xgetdomainname.c: Likewise.
38204
38205 2006-10-28  Eric Blake  <ebb9@byu.net>
38206
38207         * lib/xstrndup.c: Assume config.h.
38208
38209 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
38210
38211         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
38212         stat-macros.h is now for our own macros, whereas stat_h is for
38213         macros in the <sys/stat.h> name space.
38214         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
38215         (STAT_MACROS_H): Remove.
38216         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
38217         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
38218         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
38219         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
38220         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
38221         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
38222         Move these macros to ...
38223         * lib/stat_.h: here.  Don't include stat-macros.h.
38224         * lib/canonicalize.c: Don't include stat-macros.h.
38225         * lib/chown.c: Likewise.
38226         * lib/euidaccess.c: Likewise.
38227         * lib/file-type.c: Likewise.
38228         * lib/filemode.c: Likewise.
38229         * lib/glob.c: Likewise.
38230         * lib/isapipe.c: Likewise.
38231         * lib/lchown.c: Likewise.
38232         * lib/lstat.c: Likewise.
38233         * lib/mkdir-p.c: Likewise.
38234         * lib/rmdir.c: Likewise.
38235         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
38236         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
38237         unless mkdir isn't declared, to speed up 'configure'.
38238         Always create sys/stat.h, since it's unlikely any real sys/stat.h
38239         would define all the S_* symbols.
38240         * modules/canonicalize (Depends-on):
38241         Depend on sys_stat, not stat-macros.
38242         * modules/chown: Likewise.
38243         * modules/euidaccess: Likewise.
38244         * modules/filemode: Likewise.
38245         * modules/file-type: Likewise.
38246         * modules/glob: Likewise.
38247         * modules/isapipe: Likewise.
38248         * modules/lchown: Likewise.
38249         * modules/lstat: Likewise.
38250         * modules/mkancesdirs: Likewise.
38251         * modules/rmdir: Likewise.
38252         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
38253         * modules/modechange: Likewise.
38254         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
38255         (configure.ac): Remove gl_STAT_MACROS.
38256         * modules/sys_stat (Depends-on): Remove stat-macros.
38257
38258 2006-10-27  Bruno Haible  <bruno@clisp.org>
38259
38260         * m4/signed.m4: Remove file.
38261         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
38262         invocation.
38263         * modules/vasnprintf (Files): Remove m4/signed.m4.
38264
38265 2006-10-27  Bruno Haible  <bruno@clisp.org>
38266
38267         Update to GNU gettext 0.16.
38268         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
38269         m4/inttypes-h.m4, m4/signed.m4.
38270         * m4/gettext.m4: Update to GNU gettext 0.16.
38271         * m4/intl.m4: New file, from GNU gettext.
38272         * m4/intldir.m4: New file, from GNU gettext.
38273         * config/srclist.txt: Update
38274
38275 2006-10-27  Eric Blake  <ebb9@byu.net>
38276
38277         * MODULES.html.sh: Document tempname.
38278         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
38279         dependencies.
38280         (Files): Move lib/tempname.c...
38281         * modules/tempname: ...to this new module.
38282         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
38283         (gl_PREREQ_TEMPNAME): Move...
38284         * m4/tempname.m4: ...to this new file.
38285         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
38286         * modules/sys_stat (Depends-on): Add stat-macros.
38287         * lib/stat_.h (includes): Pick up stat macros.
38288         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
38289         if stat macros are broken.
38290         * lib/tempname.c (includes): No need to include "stat-macros.h".
38291         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
38292         (direxists, __path_search) [!_LIBC]: Don't compile these in
38293         gnulib; the tmpdir module covers that.
38294         * lib/tempname.h: New file.
38295
38296 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
38297
38298         * COPYING: Explain how gnulib-tool converts licence headers.
38299         Almost all wording by Eric Blake.
38300
38301 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
38302
38303         * lib/mbchar.h (is_basic_table): Make read-only.
38304         * lib/mbchar.c (is_basic_table): Likewise.
38305         Reported by John Darrington.
38306
38307 2006-10-25  Bruno Haible  <bruno@clisp.org>
38308
38309         * lib/progname.h (set_program_name): Undefine before defining.
38310
38311 2006-10-25  Bruno Haible  <bruno@clisp.org>
38312
38313         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
38314         false for non-gcc C++ compilers.
38315         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38316
38317 2006-10-24  Bruno Haible  <bruno@clisp.org>
38318
38319         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
38320         iconv implementations like Irix iconv.
38321
38322 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38323
38324         * modules/vararrays: New file.
38325         * m4/vararrays.m4: New file, taken from diffutils.
38326         * MODULES.html.sh: New module vararrays.
38327
38328 2006-10-24  Karl Berry  <karl@gnu.org>
38329
38330         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
38331         Don't call GNU Unix.
38332
38333 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38334
38335         * users.txt: Add Libtool.
38336
38337         Sync from Libtool:
38338
38339         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38340
38341         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
38342         to gnulib's policy of including config.h unconditionally.
38343
38344 2006-10-24  Bruno Haible  <bruno@clisp.org>
38345
38346         * modules/wcwidth (Files): Add m4/wint_t.m4.
38347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
38348         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
38349
38350 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38351
38352         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
38353         to pacify GCC with some -W flags enabled.  Problem reported by
38354         Bruno Haible.
38355
38356 2006-10-24  Jim Meyering  <jim@meyering.net>
38357
38358         * MODULES.html.sh: Remove uinttostr.  It's not a module.
38359         Reported by Karl Berry.
38360
38361 2006-10-23  Bruno Haible  <bruno@clisp.org>
38362
38363         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
38364
38365 2006-10-24  Bruno Haible  <bruno@clisp.org>
38366
38367         * lib/gl_list.h: Use C comment style, not C++ comment style.
38368
38369 2006-10-23  Eric Blake  <ebb9@byu.net>
38370
38371         * lib/getaddrinfo.c (includes): Add missing include.
38372
38373 2006-10-23  Bruno Haible  <bruno@clisp.org>
38374             Paul Eggert  <eggert@cs.ucla.edu>
38375
38376         Ability to rename obstack_free.
38377         * lib/obstack.h (__obstack_free): New macro. Declare instead of
38378         obstack_free.
38379         (obstack_free): Invoke the __obstack_free macro.
38380         * lib/obstack.c (obstack_free): Use __obstack_free macro.
38381
38382 2006-10-23  Bruno Haible  <bruno@clisp.org>
38383             Paul Eggert  <eggert@cs.ucla.edu>
38384
38385         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
38386         __argc, __argv from the declaration. (They are defined as macros on
38387         mingw.)
38388
38389 2006-10-22  Bruno Haible  <bruno@clisp.org>
38390
38391         * doc/gnulib-intro.texi: New file.
38392         * doc/gnulib.texi: Include it.
38393
38394 2006-10-21  Bruno Haible  <bruno@clisp.org>
38395
38396         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
38397         "Introduction", "Miscellanous Notes", "Particular Modules".
38398
38399 2006-10-21  Bruno Haible  <bruno@clisp.org>
38400
38401         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38402         Change mostlyclean-local rule to avoid sh syntax error from bash
38403         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
38404
38405 2006-10-23  Jim Meyering  <jim@meyering.net>
38406
38407         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
38408         in place of snprintf.
38409
38410         * modules/inttostr (Files): Add lib/uinttostr.c.
38411         * lib/uinttostr.c (inttostr): New file/function.
38412         * lib/inttostr.h (uinttostr): Declare.
38413         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
38414         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
38415         Add uinttostr.
38416         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
38417
38418 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
38419
38420         * lib/canonicalize.c (ELOOP): Define if not already defined.
38421         Problem reported by Bruno Haible in
38422         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
38423
38424 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
38425
38426         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
38427         Problem reported by Perry Smith and Ville Laurikari.
38428
38429         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
38430         uses.
38431
38432 2006-10-19  Bruno Haible  <bruno@clisp.org>
38433
38434         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
38435         for mingw.
38436
38437 2006-10-19  Bruno Haible  <bruno@clisp.org>
38438
38439         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
38440         Needed for mingw.
38441
38442 2006-10-19  Bruno Haible  <bruno@clisp.org>
38443
38444         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
38445
38446 2006-10-19  Bruno Haible  <bruno@clisp.org>
38447
38448         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
38449         it.
38450
38451 2006-10-19  Bruno Haible  <bruno@clisp.org>
38452
38453         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
38454         invocation.
38455
38456 2006-10-19  Bruno Haible  <bruno@clisp.org>
38457
38458         * gnulib-tool (func_create_testdir): Don't include ftruncate and
38459         mountlist by default.
38460
38461 2006-10-16  Bruno Haible  <bruno@clisp.org>
38462
38463         * lib/c-strstr.c: Include c-strstr.h.
38464
38465 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
38466
38467         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
38468         in a slash.
38469
38470 2006-10-18  Bruno Haible  <bruno@clisp.org>
38471
38472         * lib/lock.h [C++]: Wrap definitions in extern "C".
38473
38474 2006-10-18  Bruno Haible  <bruno@clisp.org>
38475
38476         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
38477         gl_LIBOBJS list.
38478
38479 2006-10-18  Bruno Haible  <bruno@clisp.org>
38480
38481         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
38482
38483 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
38484
38485         * lib/xstrtol.h: Include gettext.h.
38486         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
38487         Problem reported by Eric Blake.
38488         * modules/xstrtol (Depends-on): Add gettext-h.
38489
38490 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
38491
38492         * lib/strftime.c (advance): New macro.
38493         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
38494         incomplete type, so you can't add 0 to it.  Problem and patch
38495         reported by Eelco Dolstra for dietlibc.
38496
38497 2006-10-18  Jim Meyering  <jim@meyering.net>
38498
38499         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
38500         type for a local, and rename it: s/up/user_proc/.
38501
38502 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
38503
38504         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
38505         READ_UTMP_USER_PROCESS.
38506         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
38507
38508 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
38509
38510         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
38511         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
38512
38513 2006-10-17  Eric Blake  <ebb9@byu.net>
38514
38515         * lib/sigprocmask.c (sigprocmask): Fix typo.
38516
38517         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
38518
38519         * modules/clean-temp (Makefile.am): Don't add to make output...
38520         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
38521         config.h.
38522
38523 2006-10-17  Bruno Haible  <bruno@clisp.org>
38524
38525         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
38526         differently if DEFAULT_TEXT_DOMAIN is set.
38527
38528 2006-10-16  Bruno Haible  <bruno@clisp.org>
38529
38530         * lib/clean-temp.c: Include fwriteerror.h.
38531
38532 2006-10-16  Bruno Haible  <bruno@clisp.org>
38533
38534         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
38535
38536 2006-10-16  Bruno Haible  <bruno@clisp.org>
38537
38538         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
38539         * lib/sigprocmask.h: Include <sys/types.h>.
38540         (sigset_t): Use the system's definition if present.
38541
38542 2006-10-17  Eric Blake  <ebb9@byu.net>
38543
38544         * lib/xvasprintf.c (includes): Assume config.h.
38545         * lib/xasprintf.c (includes): Likewise.
38546
38547 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38548
38549         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
38550         at least as wide as intmax_t.
38551
38552 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
38553
38554         (Imported from Automake.)
38555         * build-aux/gnupload: Update to version 1.1 of directive file.
38556
38557 2006-10-16  Eric Blake  <ebb9@byu.net>
38558
38559         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
38560         match Automake 1.10a.
38561
38562 2006-10-14  Bruno Haible  <bruno@clisp.org>
38563
38564         * modules/sigprocmask: New file.
38565         * lib/sigprocmask.h: New file.
38566         * lib/sigprocmask.c: New file.
38567         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
38568         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
38569         request sigprocmask.o.
38570         (gl_PREREQ_SIGPROCMASK): New macro.
38571         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
38572         (Depends-on): Add sigprocmask.
38573         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
38574         gt_SIGNALBLOCKING. Test for 'raise' only once.
38575         * lib/fatal-signal.c: Include sigprocmask.h.
38576         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
38577         unblock_fatal_signals): Define always.
38578         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38579         sigprocmask.
38580
38581 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38582
38583         Sync from Automake.
38584         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
38585         which incorrectly sets the mode of an existing destination
38586         directory.  In some cases the unpatched install-sh could do the
38587         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
38588         system.  We hope this is rare in practice, but it's clearly worth
38589         fixing.  Problem reported by Alex Unleashed in
38590         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
38591         Also, don't bother to check for -m bugs unless we're using -m;
38592         suggested by Stepan Kasal.
38593
38594 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38595
38596         Sync from Automake.
38597         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
38598         `-c' flag, so they appear at the same position as in %FASTDEP%
38599         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
38600         which ignores unknown options only after the first non-option.
38601         Bug report against M4 by Nelson H. F. Beebe.
38602
38603 2006-10-13  Jim Meyering  <jim@meyering.net>
38604
38605         Fix a bug in yesterday's change.
38606         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
38607         p->fts_statp->st_dev would be used uninitialized.
38608         Ensures that we always call fts_stat on the very first entry.
38609         Miklos Szeredi reported that find -xdev stopped working.
38610
38611 2006-10-12  Bruno Haible  <bruno@clisp.org>
38612
38613         * gnulib-tool (func_get_automake_snippet): Append an automatically
38614         computed EXTRA_DIST augmentation.
38615         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
38616         * modules/alloca-opt (Makefile.am): Likewise.
38617         * modules/allocsa (Makefile.am): Likewise.
38618         * modules/arcfour (Makefile.am): Likewise.
38619         * modules/arctwo (Makefile.am): Likewise.
38620         * modules/argmatch (Makefile.am): Likewise.
38621         * modules/argz (Makefile.am): Likewise.
38622         * modules/atexit (Makefile.am): Likewise.
38623         * modules/backupfile (Makefile.am): Likewise.
38624         * modules/byteswap (Makefile.am): Likewise.
38625         * modules/c-strtod (Makefile.am): Likewise.
38626         * modules/c-strtold (Makefile.am): Likewise.
38627         * modules/calloc (Makefile.am): Likewise.
38628         * modules/canon-host (Makefile.am): Likewise.
38629         * modules/canonicalize (Makefile.am): Likewise.
38630         * modules/chdir-long (Makefile.am): Likewise.
38631         * modules/chdir-safer (Makefile.am): Likewise.
38632         * modules/check-version (Makefile.am): Likewise.
38633         * modules/chown (Makefile.am): Likewise.
38634         * modules/cloexec (Makefile.am): Likewise.
38635         * modules/close-stream (Makefile.am): Likewise.
38636         * modules/closeout (Makefile.am): Likewise.
38637         * modules/crc (Makefile.am): Likewise.
38638         * modules/csharpexec (Makefile.am): Likewise.
38639         * modules/cycle-check (Makefile.am): Likewise.
38640         * modules/des (Makefile.am): Likewise.
38641         * modules/dev-ino (Makefile.am): Likewise.
38642         * modules/dirfd (Makefile.am): Likewise.
38643         * modules/dirname (Makefile.am): Likewise.
38644         * modules/dup2 (Makefile.am): Likewise.
38645         * modules/eealloc (Makefile.am): Likewise.
38646         * modules/error (Makefile.am): Likewise.
38647         * modules/euidaccess (Makefile.am): Likewise.
38648         * modules/exclude (Makefile.am): Likewise.
38649         * modules/exitfail (Makefile.am): Likewise.
38650         * modules/fcntl-safer (Makefile.am): Likewise.
38651         * modules/fcntl (Makefile.am): Likewise.
38652         * modules/file-type (Makefile.am): Likewise.
38653         * modules/fileblocks (Makefile.am): Likewise.
38654         * modules/filemode (Makefile.am): Likewise.
38655         * modules/filenamecat (Makefile.am): Likewise.
38656         * modules/fnmatch (Makefile.am): Likewise.
38657         * modules/fopen-safer (Makefile.am): Likewise.
38658         * modules/fpending (Makefile.am): Likewise.
38659         * modules/fprintftime (Makefile.am): Likewise.
38660         * modules/free (Makefile.am): Likewise.
38661         * modules/fsusage (Makefile.am): Likewise.
38662         * modules/ftruncate (Makefile.am): Likewise.
38663         * modules/fts (Makefile.am): Likewise.
38664         * modules/gc-arcfour (Makefile.am): Likewise.
38665         * modules/gc-des (Makefile.am): Likewise.
38666         * modules/gc-hmac-md5 (Makefile.am): Likewise.
38667         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
38668         * modules/gc-md4 (Makefile.am): Likewise.
38669         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38670         * modules/gc-sha1 (Makefile.am): Likewise.
38671         * modules/gc (Makefile.am): Likewise.
38672         * modules/getaddrinfo (Makefile.am): Likewise.
38673         * modules/getcwd (Makefile.am): Likewise.
38674         * modules/getdelim (Makefile.am): Likewise.
38675         * modules/getdomainname (Makefile.am): Likewise.
38676         * modules/getgroups (Makefile.am): Likewise.
38677         * modules/gethostname (Makefile.am): Likewise.
38678         * modules/gethrxtime (Makefile.am): Likewise.
38679         * modules/getline (Makefile.am): Likewise.
38680         * modules/getloadavg (Makefile.am): Likewise.
38681         * modules/getlogin_r (Makefile.am): Likewise.
38682         * modules/getndelim2 (Makefile.am): Likewise.
38683         * modules/getopt (Makefile.am): Likewise.
38684         * modules/getpagesize (Makefile.am): Likewise.
38685         * modules/getpass-gnu (Makefile.am): Likewise.
38686         * modules/getpass (Makefile.am): Likewise.
38687         * modules/getsubopt (Makefile.am): Likewise.
38688         * modules/gettime (Makefile.am): Likewise.
38689         * modules/gettimeofday (Makefile.am): Likewise.
38690         * modules/getugroups (Makefile.am): Likewise.
38691         * modules/getusershell (Makefile.am): Likewise.
38692         * modules/glob (Makefile.am): Likewise.
38693         * modules/group-member (Makefile.am): Likewise.
38694         * modules/hard-locale (Makefile.am): Likewise.
38695         * modules/hash (Makefile.am): Likewise.
38696         * modules/hmac-md5 (Makefile.am): Likewise.
38697         * modules/hmac-sha1 (Makefile.am): Likewise.
38698         * modules/human (Makefile.am): Likewise.
38699         * modules/idcache (Makefile.am): Likewise.
38700         * modules/imaxabs (Makefile.am): Likewise.
38701         * modules/imaxdiv (Makefile.am): Likewise.
38702         * modules/inet_ntop (Makefile.am): Likewise.
38703         * modules/inet_pton (Makefile.am): Likewise.
38704         * modules/intprops (Makefile.am): Likewise.
38705         * modules/inttostr (Makefile.am): Likewise.
38706         * modules/inttypes (Makefile.am): Likewise.
38707         * modules/isapipe (Makefile.am): Likewise.
38708         * modules/javaversion (Makefile.am): Likewise.
38709         * modules/lchmod (Makefile.am): Likewise.
38710         * modules/lchown (Makefile.am): Likewise.
38711         * modules/localcharset (Makefile.am): Likewise.
38712         * modules/long-options (Makefile.am): Likewise.
38713         * modules/lstat (Makefile.am): Likewise.
38714         * modules/malloc (Makefile.am): Likewise.
38715         * modules/mathl (Makefile.am): Likewise.
38716         * modules/mbchar (Makefile.am): Likewise.
38717         * modules/md2 (Makefile.am): Likewise.
38718         * modules/md4 (Makefile.am): Likewise.
38719         * modules/md5 (Makefile.am): Likewise.
38720         * modules/memcasecmp (Makefile.am): Likewise.
38721         * modules/memchr (Makefile.am): Likewise.
38722         * modules/memcmp (Makefile.am): Likewise.
38723         * modules/memcoll (Makefile.am): Likewise.
38724         * modules/memcpy (Makefile.am): Likewise.
38725         * modules/memmem (Makefile.am): Likewise.
38726         * modules/memmove (Makefile.am): Likewise.
38727         * modules/mempcpy (Makefile.am): Likewise.
38728         * modules/memrchr (Makefile.am): Likewise.
38729         * modules/memset (Makefile.am): Likewise.
38730         * modules/memxor (Makefile.am): Likewise.
38731         * modules/mkancesdirs (Makefile.am): Likewise.
38732         * modules/mkdir-p (Makefile.am): Likewise.
38733         * modules/mkdir (Makefile.am): Likewise.
38734         * modules/mkdtemp (Makefile.am): Likewise.
38735         * modules/mkstemp (Makefile.am): Likewise.
38736         * modules/mktime (Makefile.am): Likewise.
38737         * modules/modechange (Makefile.am): Likewise.
38738         * modules/mountlist (Makefile.am): Likewise.
38739         * modules/nanosleep (Makefile.am): Likewise.
38740         * modules/obstack (Makefile.am): Likewise.
38741         * modules/openat (Makefile.am): Likewise.
38742         * modules/pagealign_alloc (Makefile.am): Likewise.
38743         * modules/pathmax (Makefile.am): Likewise.
38744         * modules/physmem (Makefile.am): Likewise.
38745         * modules/poll (Makefile.am): Likewise.
38746         * modules/posixtm (Makefile.am): Likewise.
38747         * modules/posixver (Makefile.am): Likewise.
38748         * modules/putenv (Makefile.am): Likewise.
38749         * modules/quote (Makefile.am): Likewise.
38750         * modules/quotearg (Makefile.am): Likewise.
38751         * modules/raise (Makefile.am): Likewise.
38752         * modules/read-file (Makefile.am): Likewise.
38753         * modules/readline (Makefile.am): Likewise.
38754         * modules/readlink (Makefile.am): Likewise.
38755         * modules/readtokens (Makefile.am): Likewise.
38756         * modules/readutmp (Makefile.am): Likewise.
38757         * modules/realloc (Makefile.am): Likewise.
38758         * modules/regex (Makefile.am): Likewise.
38759         * modules/rename-dest-slash (Makefile.am): Likewise.
38760         * modules/rename (Makefile.am): Likewise.
38761         * modules/rijndael (Makefile.am): Likewise.
38762         * modules/rmdir (Makefile.am): Likewise.
38763         * modules/rpmatch (Makefile.am): Likewise.
38764         * modules/safe-read (Makefile.am): Likewise.
38765         * modules/safe-write (Makefile.am): Likewise.
38766         * modules/same-inode (Makefile.am): Likewise.
38767         * modules/same (Makefile.am): Likewise.
38768         * modules/save-cwd (Makefile.am): Likewise.
38769         * modules/savedir (Makefile.am): Likewise.
38770         * modules/setenv (Makefile.am): Likewise.
38771         * modules/settime (Makefile.am): Likewise.
38772         * modules/sha1 (Makefile.am): Likewise.
38773         * modules/sig2str (Makefile.am): Likewise.
38774         * modules/snprintf (Makefile.am): Likewise.
38775         * modules/stat-macros (Makefile.am): Likewise.
38776         * modules/stat-time (Makefile.am): Likewise.
38777         * modules/stdbool (Makefile.am): Likewise.
38778         * modules/stdint (Makefile.am): Likewise.
38779         * modules/stdlib-safer (Makefile.am): Likewise.
38780         * modules/stpcpy (Makefile.am): Likewise.
38781         * modules/stpncpy (Makefile.am): Likewise.
38782         * modules/strcase (Makefile.am): Likewise.
38783         * modules/strcasestr (Makefile.am): Likewise.
38784         * modules/strchrnul (Makefile.am): Likewise.
38785         * modules/strcspn (Makefile.am): Likewise.
38786         * modules/strdup (Makefile.am): Likewise.
38787         * modules/strerror (Makefile.am): Likewise.
38788         * modules/strftime (Makefile.am): Likewise.
38789         * modules/strndup (Makefile.am): Likewise.
38790         * modules/strnlen (Makefile.am): Likewise.
38791         * modules/strpbrk (Makefile.am): Likewise.
38792         * modules/strsep (Makefile.am): Likewise.
38793         * modules/strstr (Makefile.am): Likewise.
38794         * modules/strtod (Makefile.am): Likewise.
38795         * modules/strtoimax (Makefile.am): Likewise.
38796         * modules/strtok_r (Makefile.am): Likewise.
38797         * modules/strtol (Makefile.am): Likewise.
38798         * modules/strtoll (Makefile.am): Likewise.
38799         * modules/strtoul (Makefile.am): Likewise.
38800         * modules/strtoull (Makefile.am): Likewise.
38801         * modules/strtoumax (Makefile.am): Likewise.
38802         * modules/strverscmp (Makefile.am): Likewise.
38803         * modules/sys_socket (Makefile.am): Likewise.
38804         * modules/sys_stat (Makefile.am): Likewise.
38805         * modules/sysexits (Makefile.am): Likewise.
38806         * modules/time_r (Makefile.am): Likewise.
38807         * modules/timegm (Makefile.am): Likewise.
38808         * modules/timespec (Makefile.am): Likewise.
38809         * modules/tmpfile-safer (Makefile.am): Likewise.
38810         * modules/trim (Makefile.am): Likewise.
38811         * modules/unistd-safer (Makefile.am): Likewise.
38812         * modules/unlinkdir (Makefile.am): Likewise.
38813         * modules/unlocked-io (Makefile.am): Likewise.
38814         * modules/userspec (Makefile.am): Likewise.
38815         * modules/utime (Makefile.am): Likewise.
38816         * modules/utimecmp (Makefile.am): Likewise.
38817         * modules/utimens (Makefile.am): Likewise.
38818         * modules/vasnprintf (Makefile.am): Likewise.
38819         * modules/vasprintf (Makefile.am): Likewise.
38820         * modules/vsnprintf (Makefile.am): Likewise.
38821         * modules/xalloc (Makefile.am): Likewise.
38822         * modules/xgetcwd (Makefile.am): Likewise.
38823         * modules/xnanosleep (Makefile.am): Likewise.
38824         * modules/xreadlink (Makefile.am): Likewise.
38825         * modules/xstrtod (Makefile.am): Likewise.
38826         * modules/xstrtol (Makefile.am): Likewise.
38827         * modules/xstrtold (Makefile.am): Likewise.
38828         * modules/yesno (Makefile.am): Likewise.
38829         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
38830
38831 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38832
38833         * modules/error (Makefile.am): Distribute files through
38834         EXTRA_DIST, not lib_SOURCES.
38835
38836 2006-10-12  Eric Blake  <ebb9@byu.net>
38837
38838         * modules/error (Makefile.am): Distribute files in /lib.
38839         * modules/obstack (Makefile.am): Likewise.
38840
38841 2006-10-12  Bruno Haible  <bruno@clisp.org>
38842
38843         * modules/acl (Makefile.am): Distribute all files in lib/ through
38844         EXTRA_DIST.
38845         * modules/arcfour (Makefile.am): Likewise.
38846         * modules/arctwo (Makefile.am): Likewise.
38847         * modules/argmatch (Makefile.am): Likewise.
38848         * modules/argz (Makefile.am): Likewise.
38849         * modules/atexit (Makefile.am): Likewise.
38850         * modules/backupfile (Makefile.am): Likewise.
38851         * modules/c-strtod (Makefile.am): Likewise.
38852         * modules/c-strtold (Makefile.am): Likewise.
38853         * modules/calloc (Makefile.am): Likewise.
38854         * modules/canon-host (Makefile.am): Likewise.
38855         * modules/canonicalize (Makefile.am): Likewise.
38856         * modules/chdir-long (Makefile.am): Likewise.
38857         * modules/chdir-safer (Makefile.am): Likewise.
38858         * modules/check-version (Makefile.am): Likewise.
38859         * modules/chown (Makefile.am): Likewise.
38860         * modules/cloexec (Makefile.am): Likewise.
38861         * modules/close-stream (Makefile.am): Likewise.
38862         * modules/closeout (Makefile.am): Likewise.
38863         * modules/crc (Makefile.am): Likewise.
38864         * modules/cycle-check (Makefile.am): Likewise.
38865         * modules/des (Makefile.am): Likewise.
38866         * modules/dirfd (Makefile.am): Likewise.
38867         * modules/dirname (Makefile.am): Likewise.
38868         * modules/dup2 (Makefile.am): Likewise.
38869         * modules/euidaccess (Makefile.am): Likewise.
38870         * modules/exclude (Makefile.am): Likewise.
38871         * modules/exitfail (Makefile.am): Likewise.
38872         * modules/fcntl-safer (Makefile.am): Likewise.
38873         * modules/file-type (Makefile.am): Likewise.
38874         * modules/fileblocks (Makefile.am): Likewise.
38875         * modules/filemode (Makefile.am): Likewise.
38876         * modules/filenamecat (Makefile.am): Likewise.
38877         * modules/fnmatch (Makefile.am): Likewise.
38878         * modules/fopen-safer (Makefile.am): Likewise.
38879         * modules/fpending (Makefile.am): Likewise.
38880         * modules/fprintftime (Makefile.am): Likewise.
38881         * modules/free (Makefile.am): Likewise.
38882         * modules/fsusage (Makefile.am): Likewise.
38883         * modules/ftruncate (Makefile.am): Likewise.
38884         * modules/fts (Makefile.am): Likewise.
38885         * modules/gc (Makefile.am): Likewise.
38886         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38887         * modules/getaddrinfo (Makefile.am): Likewise.
38888         * modules/getcwd (Makefile.am): Likewise.
38889         * modules/getdelim (Makefile.am): Likewise.
38890         * modules/getdomainname (Makefile.am): Likewise.
38891         * modules/getgroups (Makefile.am): Likewise.
38892         * modules/gethostname (Makefile.am): Likewise.
38893         * modules/gethrxtime (Makefile.am): Likewise.
38894         * modules/getline (Makefile.am): Likewise.
38895         * modules/getloadavg (Makefile.am): Likewise.
38896         * modules/getlogin_r (Makefile.am): Likewise.
38897         * modules/getopt (Makefile.am): Likewise.
38898         * modules/getpass (Makefile.am): Likewise.
38899         * modules/getpass-gnu (Makefile.am): Likewise.
38900         * modules/getsubopt (Makefile.am): Likewise.
38901         * modules/gettime (Makefile.am): Likewise.
38902         * modules/gettimeofday (Makefile.am): Likewise.
38903         * modules/getugroups (Makefile.am): Likewise.
38904         * modules/getusershell (Makefile.am): Likewise.
38905         * modules/glob (Makefile.am): Likewise.
38906         * modules/group-member (Makefile.am): Likewise.
38907         * modules/hard-locale (Makefile.am): Likewise.
38908         * modules/hash (Makefile.am): Likewise.
38909         * modules/hmac-md5 (Makefile.am): Likewise.
38910         * modules/hmac-sha1 (Makefile.am): Likewise.
38911         * modules/human (Makefile.am): Likewise.
38912         * modules/idcache (Makefile.am): Likewise.
38913         * modules/imaxabs (Makefile.am): Likewise.
38914         * modules/imaxdiv (Makefile.am): Likewise.
38915         * modules/inet_ntop (Makefile.am): Likewise.
38916         * modules/inet_pton (Makefile.am): Likewise.
38917         * modules/inttostr (Makefile.am): Likewise.
38918         * modules/isapipe (Makefile.am): Likewise.
38919         * modules/lchown (Makefile.am): Likewise.
38920         * modules/long-options (Makefile.am): Likewise.
38921         * modules/lstat (Makefile.am): Likewise.
38922         * modules/malloc (Makefile.am): Likewise.
38923         * modules/mathl (Makefile.am): Likewise.
38924         * modules/mbchar (Makefile.am): Likewise.
38925         * modules/md2 (Makefile.am): Likewise.
38926         * modules/md4 (Makefile.am): Likewise.
38927         * modules/md5 (Makefile.am): Likewise.
38928         * modules/memcasecmp (Makefile.am): Likewise.
38929         * modules/memchr (Makefile.am): Likewise.
38930         * modules/memcmp (Makefile.am): Likewise.
38931         * modules/memcoll (Makefile.am): Likewise.
38932         * modules/memcpy (Makefile.am): Likewise.
38933         * modules/memmem (Makefile.am): Likewise.
38934         * modules/memmove (Makefile.am): Likewise.
38935         * modules/mempcpy (Makefile.am): Likewise.
38936         * modules/memrchr (Makefile.am): Likewise.
38937         * modules/memset (Makefile.am): Likewise.
38938         * modules/memxor (Makefile.am): Likewise.
38939         * modules/mkancesdirs (Makefile.am): Likewise.
38940         * modules/mkdir (Makefile.am): Likewise.
38941         * modules/mkdir-p (Makefile.am): Likewise.
38942         * modules/mkdtemp (Makefile.am): Likewise.
38943         * modules/mkstemp (Makefile.am): Likewise.
38944         * modules/mktime (Makefile.am): Likewise.
38945         * modules/modechange (Makefile.am): Likewise.
38946         * modules/mountlist (Makefile.am): Likewise.
38947         * modules/nanosleep (Makefile.am): Likewise.
38948         * modules/openat (Makefile.am): Likewise.
38949         * modules/pagealign_alloc (Makefile.am): Likewise.
38950         * modules/physmem (Makefile.am): Likewise.
38951         * modules/poll (Makefile.am): Likewise.
38952         * modules/posixtm (Makefile.am): Likewise.
38953         * modules/posixver (Makefile.am): Likewise.
38954         * modules/putenv (Makefile.am): Likewise.
38955         * modules/quote (Makefile.am): Likewise.
38956         * modules/quotearg (Makefile.am): Likewise.
38957         * modules/raise (Makefile.am): Likewise.
38958         * modules/read-file (Makefile.am): Likewise.
38959         * modules/readline (Makefile.am): Likewise.
38960         * modules/readlink (Makefile.am): Likewise.
38961         * modules/readtokens (Makefile.am): Likewise.
38962         * modules/readutmp (Makefile.am): Likewise.
38963         * modules/realloc (Makefile.am): Likewise.
38964         * modules/regex (Makefile.am): Likewise.
38965         * modules/rename (Makefile.am): Likewise.
38966         * modules/rename-dest-slash (Makefile.am): Likewise.
38967         * modules/rijndael (Makefile.am): Likewise.
38968         * modules/rmdir (Makefile.am): Likewise.
38969         * modules/rpmatch (Makefile.am): Likewise.
38970         * modules/safe-read (Makefile.am): Likewise.
38971         * modules/safe-write (Makefile.am): Likewise.
38972         * modules/same (Makefile.am): Likewise.
38973         * modules/save-cwd (Makefile.am): Likewise.
38974         * modules/savedir (Makefile.am): Likewise.
38975         * modules/setenv (Makefile.am): Likewise.
38976         * modules/settime (Makefile.am): Likewise.
38977         * modules/sha1 (Makefile.am): Likewise.
38978         * modules/sig2str (Makefile.am): Likewise.
38979         * modules/snprintf (Makefile.am): Likewise.
38980         * modules/stdlib-safer (Makefile.am): Likewise.
38981         * modules/stpcpy (Makefile.am): Likewise.
38982         * modules/stpncpy (Makefile.am): Likewise.
38983         * modules/strcase (Makefile.am): Likewise.
38984         * modules/strcasestr (Makefile.am): Likewise.
38985         * modules/strchrnul (Makefile.am): Likewise.
38986         * modules/strcspn (Makefile.am): Likewise.
38987         * modules/strdup (Makefile.am): Likewise.
38988         * modules/strerror (Makefile.am): Likewise.
38989         * modules/strftime (Makefile.am): Likewise.
38990         * modules/strndup (Makefile.am): Likewise.
38991         * modules/strnlen (Makefile.am): Likewise.
38992         * modules/strpbrk (Makefile.am): Likewise.
38993         * modules/strsep (Makefile.am): Likewise.
38994         * modules/strstr (Makefile.am): Likewise.
38995         * modules/strtod (Makefile.am): Likewise.
38996         * modules/strtoimax (Makefile.am): Likewise.
38997         * modules/strtok_r (Makefile.am): Likewise.
38998         * modules/strtol (Makefile.am): Likewise.
38999         * modules/strtoll (Makefile.am): Likewise.
39000         * modules/strtoul (Makefile.am): Likewise.
39001         * modules/strtoull (Makefile.am): Likewise.
39002         * modules/strtoumax (Makefile.am): Likewise.
39003         * modules/strverscmp (Makefile.am): Likewise.
39004         * modules/time_r (Makefile.am): Likewise.
39005         * modules/timegm (Makefile.am): Likewise.
39006         * modules/tmpfile-safer (Makefile.am): Likewise.
39007         * modules/unistd-safer (Makefile.am): Likewise.
39008         * modules/unlinkdir (Makefile.am): Likewise.
39009         * modules/userspec (Makefile.am): Likewise.
39010         * modules/utime (Makefile.am): Likewise.
39011         * modules/utimecmp (Makefile.am): Likewise.
39012         * modules/utimens (Makefile.am): Likewise.
39013         * modules/vasnprintf (Makefile.am): Likewise.
39014         * modules/vasprintf (Makefile.am): Likewise.
39015         * modules/vsnprintf (Makefile.am): Likewise.
39016         * modules/xalloc (Makefile.am): Likewise.
39017         * modules/xgetcwd (Makefile.am): Likewise.
39018         * modules/xnanosleep (Makefile.am): Likewise.
39019         * modules/xreadlink (Makefile.am): Likewise.
39020         * modules/xstrtod (Makefile.am): Likewise.
39021         * modules/xstrtol (Makefile.am): Likewise.
39022         * modules/xstrtold (Makefile.am): Likewise.
39023         * modules/yesno (Makefile.am): Likewise.
39024
39025 2006-10-12  Jim Meyering  <jim@meyering.net>
39026
39027         * m4/getloadavg.m4: Revert the change below.
39028
39029         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
39030         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
39031         fail with a symlink, which is what coreutils' ./bootstrap now
39032         creates by default.
39033
39034 2006-10-12  Bruno Haible  <bruno@clisp.org>
39035
39036         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
39037         mingw.
39038         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
39039         MSVC and mingw explicitly.
39040
39041 2006-10-11  Simon Josefsson  <jas@extundo.com>
39042             Bruno Haible  <bruno@clisp.org>
39043
39044         Add support for multiple gnulib-tool invocations in the scope of a
39045         single configure.ac file.
39046         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
39047         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
39048         with the same contents as the _LIBADD variable.
39049         (func_emit_initmacro_start, func_emit_initmacro_end,
39050         func_emit_initmacro_done): New functions.
39051         (func_import, func_create_testdir): Invoke them. Allow the identifiers
39052         gl_LIBOBJS and gl_LTLIBOBJS.
39053
39054 2006-10-11  Bruno Haible  <bruno@clisp.org>
39055
39056         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
39057         (func_create_testdir): Don't create po/Makefile.am, don't invoke
39058         autoreconf. Instead, invoke autopoint explicitly but move back the
39059         *.m4 files from gnulib.
39060
39061 2006-10-11  Bruno Haible  <bruno@clisp.org>
39062
39063         * gnulib-tool (func_usage): Make module names after --create-testdir
39064         optional.
39065         (func_create_testdir): If no module was specified, use nearly all
39066         modules.
39067
39068 2006-10-12  Jim Meyering  <jim@meyering.net>
39069
39070         Big performance improvement for fts-based tools that use FTS_NOSTAT.
39071         Avoid spurious inode-mismatch problems on non-POSIX file systems.
39072         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
39073         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
39074         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
39075         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
39076         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
39077         (fts_set_stat_required): New function.
39078         (fts_open): Defer the calls to fts_stat, if possible or requested.
39079         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
39080         into fts_stat itself.
39081         (fts_read): Perform any required (deferred) fts_stat call.
39082         (fts_build): Likewise, for the directory we're about to open and read.
39083         In the readdir loop, carefully decide whether each entry will require
39084         an eventual call to fts_stat, using dirent.d_type info if available.
39085         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
39086         a command line argument into this function.  Update all callers.
39087         Map a return value of FTS_DOT to FTS_D for a command line argument.
39088         * modules/fts (Depends-on): Add d-type.  Alphabetize.
39089         Thanks to Miklos Szeredi for his tenacity and for the initial
39090         bug report about "find" failing on a FUSE-based file system.
39091
39092         * lib/fts.c (fts_open): Use consistent indentation.
39093
39094 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
39095
39096         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
39097         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
39098         reported by Jim Meyering.  All uses of cache variables renamed
39099         to match Autoconf's.
39100         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
39101         the other one.
39102
39103         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
39104         Fix misspelling in diagnostic.
39105
39106 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39107
39108         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
39109         defined.  Problem reported by Matthew Woehlke.
39110
39111         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
39112         Add support for Tandem NonStop R series.
39113         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
39114         Use new macro.
39115
39116         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
39117         (has_trailing_slash): Omit size arg; all callers changed.
39118         Omit 'inline', since it doesn't help performance and we'd
39119         need to configure it.
39120         Don't count //, ///, etc. as having a trailing slash.
39121         As a side effect, this removes a C99ism reported by Matthew Woehlke.
39122         (rpl_rename_dest_slash): On failure, use rename's errno rather
39123         than (in some cases) an incorrect or junk errno.
39124         Simplify code by removing need to compute length; this does
39125         cause it to make two passes instead of one over the file name,
39126         but it's worth it.
39127
39128         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
39129         change, since Autoconf's version may no longer be appropriate now
39130         that we are using CVS Autoconf's version.  Add support for Tandem.
39131
39132 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39133             Bruno Haible  <bruno@clisp.org>
39134
39135         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
39136         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
39137         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
39138         gl_AC_TYPE_LONG_LONG.
39139
39140         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
39141         instead of HAVE_LONG_LONG.
39142         * lib/printf-args.c (printf_fetchargs): Likewise.
39143         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
39144         * lib/vasnprintf.c (VASNPRINTF): Likewise.
39145         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
39146         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
39147         gl_AC_TYPE_LONG_LONG.
39148
39149 2006-10-11  Bruno Haible  <bruno@clisp.org>
39150
39151         * m4/longlong.m4: Add comments.
39152         * m4/ulonglong.m4: Likewise.
39153
39154 2006-10-10  Bruno Haible  <bruno@clisp.org>
39155
39156         Make it possible to #define stpcpy, strdup to aliases.
39157         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
39158         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
39159
39160 2006-10-10  Bruno Haible  <bruno@clisp.org>
39161
39162         Make it possible to #define gcd to an alias.
39163         * lib/gcd.c: Include config.h.
39164
39165 2006-10-10  Bruno Haible  <bruno@clisp.org>
39166
39167         Make it possible to #define c_isascii to an alias.
39168         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
39169         defined. Undefine the macros before defining them, to avoid gcc
39170         warnings.
39171         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
39172         define NO_C_CTYPE_MACROS early.
39173
39174 2006-10-10  Bruno Haible  <bruno@clisp.org>
39175
39176         Make it possible to #define set_program_name to an alias.
39177         * lib/progname.c: Don't undefine set_program_name; instead, undefine
39178         ENABLE_RELOCATABLE early.
39179
39180 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
39181
39182         Port to Tandem NSK OSS, which has 64-bit signed int but at most
39183         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
39184         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
39185         More generally, don't assume that 64-bit signed int is available
39186         if unsigned int is, and vice versa.
39187         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
39188         unsigned symbols, not on their signed counterparts.
39189         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
39190         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
39191         (UINT64_C, UINTMAX_C):
39192         Likewise.
39193         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
39194         unsigned counterparts.
39195         (Have_long_long, Unsigned): New macros.
39196         (Int): Renamed from INT.
39197         (strtoimax): Use the new macros.
39198         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
39199         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
39200         * modules/inttypes (inttypes.h): Substitute
39201         HAVE_UNSIGNED_LONG_LONG_INT.
39202         * modules/stdint (stdint.h): Likewise.
39203         (Files): Add m4/ulonglong.m4.
39204
39205 2006-10-10  Bruno Haible  <bruno@clisp.org>
39206
39207         Fix a gcc -Wshadow warning.
39208         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
39209         to 'bucket'.
39210         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
39211         gl_linked_indexof_from_to): Likewise.
39212         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
39213         Likewise.
39214         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
39215         Likewise.
39216         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
39217         Reported by Eric Blake.
39218
39219 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
39220
39221         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
39222         for NetBSD.  Problem reported by Bruno Haible.
39223
39224 2006-10-09  Jim Meyering  <jim@meyering.net>
39225
39226         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
39227         Patch from Bruno Haible.
39228
39229 2006-10-09  Jim Meyering  <jim@meyering.net>
39230
39231         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
39232         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
39233         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
39234
39235 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39236
39237         Don't include <config.h> twice; this doesn't work in some cases,
39238         e.g., when config.h has "#define intmax_t long long int" and
39239         we include <config.h>, <inttypes.h>, <config.h> in that order.
39240         Problem reported by Matthew Woehlke in:
39241         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
39242         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
39243         * lib/fts-cycle.c: Don't include config.h.
39244         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
39245         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
39246         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
39247         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
39248         inttypes.h.
39249         * lib/xstrtoumax.c: Likewise.
39250         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
39251         __strtol and the like, so that this module is more like its siblings.
39252         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
39253         Remove; no longer needed now that we assume gnulib inttypes.h.
39254
39255 2006-10-08  Bruno Haible  <bruno@clisp.org>
39256
39257         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
39258         option.
39259
39260 2006-10-07  Jim Meyering  <jim@meyering.net>
39261
39262         * modules/inttypes (inttypes.h): Revert what seems to have been
39263         an inadvertent part of today's change: use "|", not "/" in the
39264         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
39265
39266 2006-10-07  Bruno Haible  <bruno@clisp.org>
39267
39268         * modules/sublist: New file.
39269
39270 2006-10-07  Bruno Haible  <bruno@clisp.org>
39271
39272         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
39273         * modules/argz (argz.h): Likewise.
39274         * modules/arpa_inet (arpa/inet.h): Likewise.
39275         * modules/byteswap (byteswap.h): Likewise.
39276         * modules/configmake (configmake.h): Likewise.
39277         * modules/fcntl (fcntl.h): Likewise.
39278         * modules/fnmatch (fnmatch.h): Likewise.
39279         * modules/getopt (getopt.h): Likewise.
39280         * modules/glob (glob.h): Likewise.
39281         * modules/inttypes (inttypes.h): Likewise.
39282         * modules/netinet_in (netinet/in.h): Likewise.
39283         * modules/poll (poll.h): Likewise.
39284         * modules/stdbool (stdbool.h): Likewise.
39285         * modules/stdint (stdint.h): Likewise.
39286         * modules/sys_select (sys/select.h): Likewise.
39287         * modules/sys_socket (sys/socket.h): Likewise.
39288         * modules/sys_stat (sys/stat.h): Likewise.
39289         * modules/sysexits (sysexits.h): Likewise.
39290         * modules/unistd (unistd.h): Likewise.
39291         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39292         Add a "DO NOT EDIT" comment to the generated file.
39293         (func_import): Likewise for gnulib-comp.m4.
39294
39295 2006-10-07  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/gl_sublist.h: New file.
39298         * lib/gl_sublist.c: New file.
39299
39300 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
39301
39302         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
39303         name (relative to the original working directory) and the file
39304         name component (relative to the temporary working directory).  All
39305         callers changed.
39306         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
39307         * lib/mkdir-p.c (make_dir_parents): Likewise.
39308         * lib/mkdir-p.h (make_dir_parents): Likewise.
39309
39310 2006-10-06  Eric Blake  <ebb9@byu.net>
39311
39312         Define several macros for use by the clean-temp module.
39313         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
39314         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
39315         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
39316
39317         * lib/clean-temp.h (close_stream_temp): New declaration.
39318         * lib/clean-temp.c (includes): Pull in headers according to what
39319         other modules are in use.
39320         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
39321
39322 2006-10-06  Bruno Haible  <bruno@clisp.org>
39323
39324         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
39325         instead of fopen, fwriteerror.
39326
39327 2006-10-06  Bruno Haible  <bruno@clisp.org>
39328
39329         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
39330         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
39331         int.
39332         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
39333         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
39334         Return an error indicator.
39335         Suggested by Eric Blake.
39336
39337 2006-10-06  Bruno Haible  <bruno@clisp.org>
39338
39339         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
39340         Reported by Eric Blake.
39341
39342 2006-10-06  Bruno Haible  <bruno@clisp.org>
39343
39344         * modules/closeout (Description): Mention stderr too.
39345
39346 2006-10-06  Bruno Haible  <bruno@clisp.org>
39347         and Paul Eggert  <eggert@cs.ucla.edu>
39348
39349         * lib/closeout.c (close_stdout): Also close stderr.
39350         * lib/closeout.h: Update comment.
39351
39352 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
39353
39354         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
39355         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
39356         * lib/dirchownmod.c: Include lchown.h.
39357         * lib/lchown.c: Don't include files that lchown.h now includes.
39358         Don't declare chown, since lchown.h now does that.
39359         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
39360         (lchown): Define to rpl_chown if lchown is declared but
39361         does not exist.  Declare using a prototype if lchown is not
39362         declared.  Add a copyright notice.
39363         * lib/mkstemp.h: Include <unistd.h>.
39364         * lib/openat.c: Include lchown.h.
39365
39366         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
39367         we now test for that separately.
39368         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
39369         rather than O_NOFOLLOW, when testing whether it's possible to
39370         avoid a race condition reliably.
39371         * lib/savewd.c (savewd_chdir): Likewise.
39372
39373         Remove macros that are no longer needed now that stdint.h is
39374         reliable.
39375         * lib/fsusage.c (UINTMAX_MAX): Remove.
39376         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
39377         * lib/utimecmp.c (SIZE_MAX): Remove.
39378
39379         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
39380
39381         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
39382         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
39383         O_NOATIME works.
39384
39385 2006-10-05  Bruno Haible  <bruno@clisp.org>
39386
39387         * lib/gl_list.h (gl_sortedlist_search_from_to,
39388         gl_sortedlist_indexof_from_to): New declarations.
39389         (gl_list_implementation): New fields sortedlist_search_from_to,
39390         sortedlist_indexof_from_to.
39391         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
39392         inline functions.
39393         * lib/gl_list.c (gl_sortedlist_search_from_to,
39394         gl_sortedlist_indexof_from_to): New functions.
39395         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
39396         function.
39397         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
39398         (gl_array_sortedlist_search_from_to): New function.
39399         (gl_array_list_implementation): Update.
39400         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
39401         function.
39402         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
39403         (gl_carray_sortedlist_search_from_to): New function.
39404         (gl_carray_list_implementation): Update.
39405         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
39406         gl_linked_sortedlist_indexof_from_to): New functions.
39407         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39408         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39409         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
39410         gl_tree_sortedlist_indexof_from_to): New functions.
39411         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39412         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39413         Update.
39414         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39415         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
39416         Update.
39417
39418 2006-10-05  Bruno Haible  <bruno@clisp.org>
39419
39420         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
39421         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
39422         (struct gl_list_implementation): Add fields search_from_to,
39423         indexof_from_to. Remove fields search, indexof.
39424         (gl_list_search): Use the search_from_to method.
39425         (gl_list_search_from, gl_list_search_from_to): New functions.
39426         (gl_list_indexof): Use the indexof_from_to method.
39427         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39428         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
39429         (gl_list_search_from, gl_list_search_from_to): New functions.
39430         (gl_list_indexof): Use the indexof_from_to method.
39431         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39432         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
39433         gl_array_indexof. Add start_index, end_index arguments.
39434         (gl_array_search_from_to): Renamed from gl_array_search. Add
39435         start_index, end_index arguments.
39436         (gl_array_remove, gl_array_list_implementation): Update.
39437         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
39438         gl_carray_indexof. Add start_index, end_index arguments.
39439         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
39440         start_index, end_index arguments.
39441         (gl_carray_remove, gl_carray_list_implementation): Update.
39442         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
39443         gl_linked_search. Add start_index, end_index arguments.
39444         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
39445         start_index, end_index arguments.
39446         (gl_linked_remove): Update.
39447         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39448         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39449         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
39450         field to 'size_t'.
39451         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
39452         gl_tree_search. Add start_index, end_index arguments.
39453         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39454         start_index, end_index arguments.
39455         (gl_tree_remove): Update.
39456         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39457         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39458         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
39459         function.
39460         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
39461         gl_tree_search. Add start_index, end_index arguments.
39462         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39463         start_index, end_index arguments.
39464         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39465         Update.
39466         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39467
39468 2006-10-05  Bruno Haible  <bruno@clisp.org>
39469
39470         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
39471
39472         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
39473         fwriteerror_temp): New declarations.
39474         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
39475         (descriptors): New variable.
39476         (cleanup): First, close the descriptors.
39477         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
39478         fclose_temp, fwriteerror_temp): New functions.
39479
39480 2006-10-04  Jim Meyering  <jim@meyering.net>
39481
39482         * lib/fts.c (fts_open): Tiny comment change.
39483
39484 2006-10-04  Bruno Haible  <bruno@clisp.org>
39485
39486         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
39487         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
39488         gl_LOCK_BODY.
39489         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
39490         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
39491         gl_LOCK_EARLY_BODY.
39492         (gl_LOCK): Require gl_LOCK_BODY.
39493
39494 2006-10-04  Bruno Haible  <bruno@clisp.org>
39495
39496         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
39497         (gl_oset_search_atleast): New declaration.
39498         (struct gl_oset_implementation): Add field 'search_atleast'.
39499         (gl_oset_search_atleast): New inline function.
39500         * lib/gl_oset.c (gl_oset_search_atleast): New function.
39501         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
39502         (gl_array_oset_implementation): Update.
39503         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
39504         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
39505         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
39506
39507 2006-10-04  Bruno Haible  <bruno@clisp.org>
39508
39509         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
39510
39511 2006-10-03  Bruno Haible  <bruno@clisp.org>
39512
39513         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
39514         from gl_avltreehash_list_implementation.
39515
39516 2006-10-03  Bruno Haible  <bruno@clisp.org>
39517
39518         * lib/gl_oset.c (gl_oset_add): Fix return type.
39519
39520 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
39521
39522         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
39523
39524 2006-10-02  Eric Blake  <ebb9@byu.net>
39525
39526         * modules/strnlen (Depends-on): Add extensions.
39527
39528 2006-10-02  Eric Blake  <ebb9@byu.net>
39529
39530         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
39531         definition in 2.60+.
39532
39533 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
39534
39535         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
39536         checks.
39537
39538 2006-10-02  Bruno Haible  <bruno@clisp.org>
39539
39540         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
39541         to the AUTOMAKE_OPTIONS.
39542         Reported by Jim Meyering.
39543
39544 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
39545
39546         Work around bug in Solaris 10 /proc file system:
39547         /proc/self/fd/NNN/.. isn't the parent directory of
39548         the directory whose file descriptor is NNN.  This needs to
39549         be worked around at run time, not compile time, since a
39550         program might be built on Solaris 8, where things work, and
39551         run on Solaris 10.
39552         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
39553         to use the following interface instead:
39554         (OPENAT_BUFFER_SIZE): New macro.
39555         (openat_proc_name): New function.
39556         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
39557         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
39558         Likewise.
39559         * lib/openat-proc.c: New file.
39560         * modules/openat (Files): Add lib/openat-proc.c.
39561         (Depends-on): Add same-inode, stdbool.
39562         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
39563
39564 2006-09-29  Bruno Haible  <bruno@clisp.org>
39565
39566         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
39567         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
39568         argument. Set stdout_closed before testing for ferror, not after.
39569         (fwriteerror, fwriteerror_no_ebadf): New functions.
39570
39571 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39572
39573         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
39574
39575 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
39576
39577         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
39578         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
39579
39580 2006-09-28  Jim Meyering  <jim@meyering.net>
39581
39582         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
39583         Include <unistd.h>.
39584
39585 2006-09-28  Bruno Haible  <bruno@clisp.org>
39586
39587         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
39588         * modules/linkedhash-list (Depends-on): Likewise.
39589         * modules/rbtreehash-list (Depends-on): Likewise.
39590
39591 2006-09-28  Bruno Haible  <bruno@clisp.org>
39592
39593         * lib/strndup.h: Simplify the redefinition of strndup.
39594         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
39595         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
39596
39597 2006-09-28  Bruno Haible  <bruno@clisp.org>
39598
39599         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
39600         * lib/gl_linkedhash_list.c: Likewise.
39601         * lib/gl_rbtreehash_list.c: Likewise.
39602
39603 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
39604
39605         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
39606         getaddrinfo.
39607
39608         * lib/__fpending.h: Don't include <stdio_ext.h> unless
39609         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
39610         it causes <stdio_ext.h> to cause a compile-time error.
39611         Problem reported by Nelson H. F. Beebe.
39612         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
39613         of HAVE_DECL___PENDING.
39614
39615         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
39616         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
39617         declaration.
39618
39619 2006-09-27  Jim Meyering  <jim@meyering.net>
39620
39621         This file could end up with a definition for a function
39622         named __strndup, rather than rpl_strndup on a system with
39623         incomplete weak_alias support.
39624         * lib/strndup.c (strndup): Rename from __strndup.
39625         Remove #defines that used to map __strndup to strndup.
39626         Don't use K&R prototypes.
39627         Remove LIBC-related code, since this file is not sync'd with glibc.
39628         * lib/strndup.h: Revamp, accordingly.
39629         * m4/strndup.m4: Modernize.
39630
39631 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
39632
39633         * modules/savewd (Depends-on): Add 'raise'.
39634         * lib/savewd.c: Include <signal.h>, for 'raise'.
39635
39636 2006-09-26  Jim Meyering  <jim@meyering.net>
39637
39638         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
39639         when we detect Darwin 8.7.0's acl_get_file bug.
39640         Rearrange to perform the new (below) run-test while $LIBS
39641         contains any acl-related library.  Set USE_ACL at the end.
39642         (gl_ACL_GET_FILE): New function.
39643
39644 2006-09-26  Eric Blake  <ebb9@byu.net>
39645
39646         * lib/verror.c: Include <config.h> unconditionally.
39647
39648 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
39649
39650         * modules/clock-time (Maintainer): Add self.
39651         * modules/getlogin_r (Depends-on): Add extensions.
39652
39653 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39654
39655         * modules/clock-time: New module.
39656         * modules/nanosleep (Depends-on): Add clock-time.
39657         * modules/gethrxtime (Depends-on): Likewise.
39658         * modules/gettime (Depends-on): Likewise.
39659         * modules/settime (Depends-on): Likewise.
39660
39661         * modules/fts-lgpl: Depend on openat.
39662         * modules/mkancesdirs: Depend on savewd.
39663         * modules/mkdir-p: Likewise.
39664
39665 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39666
39667         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
39668
39669         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
39670         `gl_have_arbitrary_file_name_length_limit' to
39671         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
39672         actually works between configure runs.
39673
39674 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39675             Bruno Haible  <bruno@clisp.org>
39676
39677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
39678
39679 2006-09-25  Jim Meyering  <jim@meyering.net>
39680
39681         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
39682         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
39683
39684 2006-09-25  Eric Blake  <ebb9@byu.net>
39685
39686         * gnulib-tool (func_import, func_create_testdir): Fix typos in
39687         exec's in 2006-09-18 patch when shuffling fds.
39688
39689 2006-09-25  Bruno Haible  <bruno@clisp.org>
39690
39691         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
39692         Reported by Jim Meyering.
39693
39694 2006-09-24  Jim Meyering  <jim@meyering.net>
39695
39696         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
39697         compare a pointer against a literal "0".  That caused failures with
39698         at least HP-UX's hpcc.
39699
39700 2006-09-22  Simon Josefsson  <jas@extundo.com>
39701
39702         * modules/gc-sha1:
39703         * modules/gc-md4:
39704         * modules/gc-hmac-sha1:
39705         * modules/gc-hmac-md5:
39706         * modules/gc-des:
39707         * modules/gc-arcfour: Distribute more files.
39708
39709 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39710
39711         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
39712         (gl_linked_iterator_from_to): Initialize struct completely.
39713         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
39714         (gl_tree_iterator_from_to): Likewise
39715         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
39716         * lib/gl_array_list.c [lint] (gl_array_iterator)
39717         (gl_array_iterator_from_to): Likewise.
39718         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
39719         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
39720         (gl_carray_iterator_from_to): Likewise.
39721
39722         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
39723         * lib/md4.c (md4_process_block): Remove unused variable.
39724         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
39725         parentheses for clarity.
39726
39727 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39728
39729         * modules/bison-i18n (Depends-on): Add gettext.
39730
39731 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39732
39733         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
39734         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39735         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
39736         also add missing comma that caused broken test.
39737         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
39738         stdlib.h, for `abort'.
39739         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
39740         variables.
39741         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
39742         include unistd.h if present, for `rmdir'.
39743         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
39744         variables.
39745         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
39746         in the process include standard headers for prototypes.
39747         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
39748         gets declared on GNU/Linux.
39749         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
39750         unistd.h, for `rmdir'.
39751         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
39752
39753         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
39754         always true.
39755         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
39756
39757         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
39758
39759 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39760
39761         * gnulib-tool (func_version): Create output all at once.  This
39762         may help avoid triggering unnecessary SIGPIPEs, and at any
39763         rate it doesn't hurt.
39764
39765 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39766             Bruno Haible  <bruno@clisp.org>
39767
39768         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
39769         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39770         * m4/signed.m4 (bh_C_SIGNED): Likewise.
39771
39772         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
39773         (gl_FUNC_VASPRINTF): Invoke it.
39774
39775 2006-09-22  Bruno Haible  <bruno@clisp.org>
39776
39777         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
39778         getloadavg.c as first argument.
39779
39780 2006-09-22  Bruno Haible  <bruno@clisp.org>
39781
39782         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
39783         at the beginning of the gl_INIT macro.
39784         * modules/getloadavg (configure.ac): Pass $gl_source_base to
39785         gl_GETLOADAVG.
39786
39787 2006-09-22  Bruno Haible  <bruno@clisp.org>
39788
39789         * gnulib-tool (func_create_megatestdir): Don't include the config-h
39790         module.
39791         Suggested by Ralf Wildenhues.
39792
39793 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39794
39795         Import this patch from libc:
39796
39797         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
39798
39799         * lib/regex_internal.c (re_string_reconstruct): Handle
39800         offset < pstr->valid_raw_len && pstr->offsets_needed case.
39801         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
39802         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
39803         re_string_context_at.
39804
39805         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
39806         now requires it.
39807         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
39808         gl_REGEX now does it for us.
39809         (gl_REGEX): Add test taken from
39810         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
39811
39812         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
39813         Check that large offsets work.  Modernize Autoconf usages.
39814         Prefer "yes" to mean a good thing rather than a bad.
39815         Don't put "#define mkstemp" in config.h, as this might interfere
39816         with standard system headers that "#define mkstemp mkstemp64".
39817
39818         * modules/mkstemp (Depends-on): Add extensions, so that
39819         mkstemp is visible on some platforms.
39820         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
39821         (Include): Change to "mkstemp.h" from <stdlib.h>.
39822         (Files): Add mkstemp.h.
39823
39824         * lib/mkstemp.h: New file, since some standard headers
39825         #define mkstemp.
39826         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
39827         Include "mkstemp.h".
39828         Make the _LIBC code resemble glibc original more,
39829         e.g., use K&R style.
39830         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
39831         (mkstemp): Remove, since mkstemp.h does this for us.
39832         * lib/stdlib--.h: Include mkstemp.h.
39833
39834         Import this patch from libc:
39835
39836         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
39837
39838         * lib/tempname.c (__gen_tempname): Change attempts_min
39839         into a macro.  Use preprocessor to decide how to initialize
39840         attempts [Coverity CID 67].
39841
39842 2006-09-20  Bruno Haible  <bruno@clisp.org>
39843
39844         * lib/mkdtemp.c: Import from libc.
39845         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
39846                 * sysdeps/posix/tempname.c (__gen_tempname): Change
39847                 attempts_min into a macro.  Use preprocessor to decide how to
39848                 initialize attempts [Coverity CID 67].
39849         2001-11-27  Paul Eggert  <eggert@twinsun.com>
39850                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
39851                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
39852
39853 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39854
39855         * gnulib-tool (func_exit): New function, to allow to pass the
39856         exit status portably through the trap.  Use everywhere.
39857         (--help, --version): Signal a write error.
39858         (trap): catch SIGPIPE, for write errors.
39859         Exit at the end of the trap, with the correct exit status.
39860
39861 2006-09-19  Karl Berry  <karl@gnu.org>
39862
39863         * doc/gnulib.texi: note about the license texinfo files.
39864
39865 2006-09-19  Eric Blake  <ebb9@byu.net>
39866
39867         * gnulib-tool: Avoid space-tab.
39868
39869 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
39870
39871         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
39872         that prevented coreutils 6.1 from building.  Problem reported
39873         by Petter Reinholdtsen.
39874
39875 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
39876
39877         * gnulib-tool (avoidlist): Fix typo that broke options like
39878         --avoid=lock that are used by coreutils bootstrap.
39879
39880 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
39881
39882         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
39883         more systematically.
39884
39885 2006-09-18  Jim Meyering  <jim@meyering.net>
39886
39887         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
39888
39889 2006-09-18  Bruno Haible  <bruno@clisp.org>
39890
39891         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
39892
39893 2006-09-18  Bruno Haible  <bruno@clisp.org>
39894
39895         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
39896         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
39897         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
39898         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
39899         * m4/gettext.m4: Require autoconf >= 2.52.
39900         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
39901         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
39902         of gl_cv_header_inttypes_h.
39903
39904 2006-09-18  Bruno Haible  <bruno@clisp.org>
39905
39906         * lib/javaversion.c: Include configmake.h.
39907
39908 2006-09-18  Bruno Haible  <bruno@clisp.org>
39909
39910         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
39911         avoid that the while loops be executed in a subshell.
39912
39913 2006-09-18  Bruno Haible  <bruno@clisp.org>
39914
39915         * MODULES.html.sh (func_module): Break long lines.
39916         Suggested by Bruce Korb <bkorb@gnu.org>.
39917
39918 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39919
39920         Speed up by a factor of 1.12.
39921         * gnulib-tool (nl): New variable.
39922         (func_import): Rewrite include directive extraction to only read each
39923         directive once.
39924
39925 2006-09-17  Bruno Haible  <bruno@clisp.org>
39926
39927         * modules/javaversion (Makefile.am): Remove DEFS setting.
39928         (Depends-on): Add configmake, for PKGDATADIR definition.
39929
39930 2006-09-17  Bruno Haible  <bruno@clisp.org>
39931
39932         * gnulib-tool (func_create_testdir): Rewrite all files at once.
39933
39934 2006-09-17  Bruno Haible  <bruno@clisp.org>
39935
39936         * gnulib-tool (func_append): New function, stolen from libtool.m4.
39937         (func_modules_transitive_closure, func_modules_add_dummy,
39938         func_modules_to_filelist, func_import, func_create_testdir,
39939         func_create_megatestdir, ...): Use it wherever possible.
39940         Suggested by Ralf Wildenhues.
39941
39942 2006-09-16  Karl Berry  <karl@gnu.org>
39943
39944         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
39945         to avoid sectioning errors.
39946         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
39947         [ifinfo]: blank line after @center-ed titles.
39948         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
39949         Spell FSF address consistently with others.
39950         (These changes approved by rms.)
39951
39952 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39953
39954         Speed up by a factor of 1.61.
39955         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
39956         already checked module names again.
39957
39958 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39959
39960         Speed up by a factor of 1.13.
39961         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
39962         for new_files, and the input to func_add_or_update.
39963
39964 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39965
39966         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
39967         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
39968
39969 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39970
39971         * modules/mkancesdirs (Depends-on): Add fcntl.
39972         * modules/savewd: New file.
39973         * MODULES.html.sh (File system functions): Add savewd.
39974
39975         * modules/configmake (Makefile.am): Add support for the
39976         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
39977
39978 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39979
39980         * m4/savewd.m4: New file.
39981
39982 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39983
39984         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
39985         (dirchownmod): New arg FD.  All callers changed.
39986         Use FD rather than opening the directory ourself, as opening is
39987         now the caller's responsibility.
39988         * lib/dirchownmod.h: Likewise.
39989         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
39990         hosts that require <sys/types.h> before <sys/stat.h>.  Include
39991         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
39992         (test_dir): Remove.
39993         (mkancesdirs): Return length of prefix of FILE that has already
39994         been made, or -2 if there is a child doing the work.  Redo
39995         algorithm so that it is O(N) rather than O(N**2).  Optimize away
39996         ".", and treat ".." specially since it might stray back into
39997         already-created areas.  Use a subprocess if necessary.  New arg
39998         WD; all users changed.  MAKE_DIR function should now return 1
39999         if it creates a directory that is not readable.  Return -2 if
40000         a child process is spun off.
40001         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
40002         Adjust signature to match code.
40003         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
40004         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
40005         all users changed.
40006         * lib/savewd.c, lib/savewd.h: New files.
40007
40008 2006-09-15  Jim Meyering  <jim@meyering.net>
40009
40010         * modules/rename-dest-slash: New module.
40011         * MODULES.html.sh (posix_compat): Add it here.
40012
40013         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
40014
40015 2006-09-15  Jim Meyering  <jim@meyering.net>
40016
40017         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
40018         file.
40019
40020         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
40021
40022 2006-09-15  Jim Meyering  <jim@meyering.net>
40023
40024         * lib/rename-dest-slash.c (has_trailing_slash): Use
40025         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
40026         (rpl_rename_dest_slash): Perform the cheaper trailing slash
40027         test before testing whether SRC is a directory.
40028         Suggestions from Bruno Haible.
40029
40030         Avoid a warning about an unused variable.
40031         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
40032         into the #ifdef block where it's used.
40033
40034         * lib/rename-dest-slash.c: New file.
40035
40036 2006-09-14  Bruno Haible  <bruno@clisp.org>
40037
40038         * lib/allocsa.c: Include <config.h> unconditionally.
40039         * lib/asnprintf.c: Likewise.
40040         * lib/asprintf.c: Likewise.
40041         * lib/c-strcasecmp.c: Likewise.
40042         * lib/c-strcasestr.c: Likewise.
40043         * lib/c-strncasecmp.c: Likewise.
40044         * lib/c-strstr.c: Likewise.
40045         * lib/classpath.c: Likewise.
40046         * lib/clean-temp.c: Likewise.
40047         * lib/concatpath.c: Likewise.
40048         * lib/copy-file.c: Likewise.
40049         * lib/csharpcomp.c: Likewise.
40050         * lib/csharpexec.c: Likewise.
40051         * lib/execute.c: Likewise.
40052         * lib/fatal-signal.c: Likewise.
40053         * lib/findprog.c: Likewise.
40054         * lib/fwriteerror.c: Likewise.
40055         * lib/gl_array_list.c: Likewise.
40056         * lib/gl_array_oset.c: Likewise.
40057         * lib/gl_avltree_list.c: Likewise.
40058         * lib/gl_avltree_oset.c: Likewise.
40059         * lib/gl_avltreehash_list.c: Likewise.
40060         * lib/gl_carray_list.c: Likewise.
40061         * lib/gl_linked_list.c: Likewise.
40062         * lib/gl_linkedhash_list.c: Likewise.
40063         * lib/gl_list.c: Likewise.
40064         * lib/gl_oset.c: Likewise.
40065         * lib/gl_rbtree_list.c: Likewise.
40066         * lib/gl_rbtree_oset.c: Likewise.
40067         * lib/gl_rbtreehash_list.c: Likewise.
40068         * lib/imaxabs.c: Likewise.
40069         * lib/imaxdiv.c: Likewise.
40070         * lib/javacomp.c: Likewise.
40071         * lib/javaexec.c: Likewise.
40072         * lib/javaversion.c: Likewise.
40073         * lib/linebreak.c: Likewise.
40074         * lib/localcharset.c: Likewise.
40075         * lib/lock.c: Likewise.
40076         * lib/mbchar.c: Likewise.
40077         * lib/mbswidth.c: Likewise.
40078         * lib/mkdtemp.c: Likewise.
40079         * lib/pipe.c: Likewise.
40080         * lib/printf-args.c: Likewise.
40081         * lib/printf-parse.c: Likewise.
40082         * lib/progname.c: Likewise.
40083         * lib/progreloc.c: Likewise.
40084         * lib/readlink.c: Likewise.
40085         * lib/sh-quote.c: Likewise.
40086         * lib/stpcpy.c: Likewise.
40087         * lib/stpncpy.c: Likewise.
40088         * lib/strcasecmp.c: Likewise.
40089         * lib/strcasestr.c: Likewise.
40090         * lib/strcspn.c: Likewise.
40091         * lib/striconv.c: Likewise.
40092         * lib/strncasecmp.c: Likewise.
40093         * lib/strnlen1.c: Likewise.
40094         * lib/strstr.c: Likewise.
40095         * lib/strtok_r.c: Likewise.
40096         * lib/tls.c: Likewise.
40097         * lib/tmpdir.c: Likewise.
40098         * lib/unicodeio.c: Likewise.
40099         * lib/unsetenv.c: Likewise.
40100         * lib/vasnprintf.c: Likewise.
40101         * lib/vasprintf.c: Likewise.
40102         * lib/wait-process.c: Likewise.
40103         * lib/xallocsa.c: Likewise.
40104         * lib/xsetenv.c: Likewise.
40105         * lib/xstriconv.c: Likewise.
40106
40107 2006-09-13  Simon Josefsson  <jas@extundo.com>
40108
40109         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
40110         that internally, suggested by Ralf Wildenhues
40111         <Ralf.Wildenhues@gmx.de>.
40112
40113 2006-09-13  Simon Josefsson  <jas@extundo.com>
40114
40115         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
40116         @LIBOBJS@.
40117         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40118
40119 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40120
40121         * lib/_fpending.c: Include <config.h> unconditionally, since we no
40122         longer worry about uses that don't define HAVE_CONFIG_H.
40123         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
40124         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
40125         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
40126         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
40127         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
40128         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
40129         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
40130         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
40131         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
40132         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
40133         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
40134         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
40135         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
40136         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
40137         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
40138         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
40139         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
40140         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
40141         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
40142         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
40143         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
40144         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
40145         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
40146         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
40147         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
40148         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
40149         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
40150         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
40151         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
40152         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
40153         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
40154         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
40155         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
40156         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
40157         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
40158         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
40159         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
40160         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
40161         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
40162         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
40163         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
40164         Likewise.
40165
40166 2006-09-13  Eric Blake  <ebb9@byu.net>
40167
40168         * lib/getopt.c: Fix typo in last commit.
40169
40170 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40171
40172         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
40173         dgettext.
40174
40175 2006-09-12  Jim Meyering  <jim@meyering.net>
40176
40177         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
40178         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
40179         Reported by Nelson H. F. Beebe.
40180
40181 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40182
40183         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
40184         program_invocation_name and program_invocation_short_name are
40185         initialized.
40186         * lib/argp-namefrob.h: Move declarations of program_invocation_name
40187         and program_invocation_short_name to argp.h, so they are visible
40188         to user programs.
40189         * lib/argp.h: Likewise
40190
40191 2006-09-10  Bruno Haible  <bruno@clisp.org>
40192
40193         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40194         m4/inttypes_h.m4, m4/uintmax_t.m4.
40195
40196 2006-09-10  Bruno Haible  <bruno@clisp.org>
40197
40198         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
40199         gl_AC_TYPE_UINTMAX_T.
40200
40201 2006-09-10  Bruno Haible  <bruno@clisp.org>
40202
40203         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
40204
40205 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
40206
40207         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
40208         convention.  Text proposed by Bruno Haible.
40209         (struct argp_option): Document the use of N_() wrappers.
40210
40211         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
40212         '\v', and translate the two parts separately, instead of feeding
40213         the whole string to gettext.  This allows to exclude
40214         '\v' from the strings visible to the translator by writing doc
40215         strings as N_("..") "\v" N_("..").
40216
40217 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
40218
40219         * config/srclist.txt: Undo latest change; the bug was fixed.
40220
40221 2006-09-09  Bruno Haible  <bruno@clisp.org>
40222
40223         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
40224         assignments if building a library without libtool.
40225         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
40226         in func_emit_lib_Makefile_am.
40227         (func_import): When building a static library libfoo.a, arrange to
40228         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
40229         (func_create_testdir): Likewise.
40230         * modules/gc (configure.ac, Makefile.am): If building statically,
40231         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
40232         * modules/iconvme (configure.ac, Makefile.am): Likewise.
40233         * modules/striconv (configure.ac, Makefile.am): Likewise.
40234         Based on a suggestion by Ralf Wildenhues.
40235
40236 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40237
40238         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40239         Check for unistd.h too, since Autoconf doesn't assume POSIX.
40240         Also:
40241
40242         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40243         Add year_2050_test to catch glibc bug 2821
40244         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40245
40246         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40247         Prefer #ifdef to #if.
40248
40249         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
40250         Return from 'main' instead of calling 'exit'.
40251
40252 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40253
40254         * lib/mktime.c (guess_time_tm): Fix bug where mktime
40255         returned the maximum time_t value rather than (time_t) -1.
40256         Problem originally reported by William Bardwell
40257         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40258
40259         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40260         Moved to here ...
40261         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40262         ... from here.
40263
40264 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
40265
40266         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
40267         2821 is fixed.
40268
40269 2006-09-08  Jim Meyering  <jim@meyering.net>
40270
40271         Don't make generated files read-only.  That would bother too many
40272         people.  However, do retain the ability to work when targets are
40273         read-only: remove the destination and temporary files before writing
40274         them (when generated via sed or echo), or by using the -f option for
40275         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
40276         * modules/alloca-opt, modules/argz, modules/arpa_inet:
40277         * modules/byteswap, modules/configmake, modules/fcntl:
40278         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40279         * modules/localcharset, modules/netinet_in, modules/poll:
40280         * modules/stdbool, modules/stdint, modules/sys_select:
40281         * modules/sys_socket, modules/sys_stat, modules/sysexits:
40282
40283 2006-09-08  Jim Meyering  <jim@meyering.net>
40284
40285         Avoid new build failure on FreeBSD 6.0.
40286         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
40287         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
40288         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
40289
40290 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40291
40292         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
40293
40294 2006-09-07  Jim Meyering  <jim@meyering.net>
40295
40296         Fix global typo in last change: use chmod u-w, not chmod u-x.
40297         Spotted by Paul Eggert and Bruce Korb.
40298         * modules/alloca-opt, modules/argz, modules/arpa_inet:
40299         * modules/byteswap, modules/configmake, modules/fcntl:
40300         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40301         * modules/localcharset, modules/netinet_in, modules/poll:
40302         * modules/stdbool, modules/stdint, modules/sys_select:
40303         * modules/sys_socket, modules/sys_stat, modules/sysexits:
40304
40305 2006-09-06  Jim Meyering  <jim@meyering.net>
40306
40307         Make generated files be read-only.
40308         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
40309         Ensure that each generated file is now read-only.
40310         * modules/argz: Likewise.
40311         * modules/arpa_inet: Likewise.
40312         * modules/byteswap: Likewise.
40313         * modules/configmake: Likewise.
40314         * modules/fcntl: Likewise.
40315         * modules/fnmatch: Likewise.
40316         * modules/getopt: Likewise.
40317         * modules/glob: Likewise.
40318         * modules/inttypes: Likewise.
40319         * modules/netinet_in: Likewise.
40320         * modules/poll: Likewise.
40321         * modules/stdbool: Likewise.
40322         * modules/stdint: Likewise.
40323         * modules/sys_select: Likewise.
40324         * modules/sys_socket: Likewise.
40325         * modules/sys_stat: Likewise.
40326         * modules/sysexits: Likewise.
40327         * modules/localcharset: Same as above, but continue using temporary
40328         file named "t-$@" (why different?) rather than the "$@-t" used
40329         everywhere else.
40330
40331         * modules/sysexits (Makefile.am): Replace literal occurrences
40332         of "sysexit.h" more readable, and more consistent, "$@".
40333
40334 2006-09-06  Bruno Haible  <bruno@clisp.org>
40335
40336         * modules/striconv: New file.
40337         * modules/xstriconv: New file.
40338         * MODULES.html.sh (Internationalization functions): Add striconv,
40339         xstriconv.
40340
40341 2006-09-06  Bruno Haible  <bruno@clisp.org>
40342
40343         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
40344         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
40345         not using libtool correctly.
40346
40347 2006-09-06  Bruno Haible  <bruno@clisp.org>
40348
40349         * lib/striconv.h: New file.
40350         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
40351         iconvstring.c.
40352         * lib/xstriconv.h: New file.
40353         * lib/xstriconv.c: New file.
40354
40355 2006-09-06  Bruno Haible  <bruno@clisp.org>
40356
40357         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40358         lib_..._LDFLAGS.
40359
40360 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40361
40362         * lib/argz_.h: Sync from Libtool.
40363
40364         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
40365                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40366
40367         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
40368
40369 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
40370
40371         * modules/trim: New file.
40372
40373 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
40374
40375         * lib/trim.h: New file.
40376         * lib/trim.c: New file.
40377
40378 2006-09-05  Bruno Haible  <bruno@clisp.org>
40379
40380         * MODULES.html.sh (String handling): Add trim.
40381
40382 2006-09-04  Karl Berry  <karl@gnu.org>
40383
40384         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
40385         until next release.
40386
40387 2006-09-03  Bruno Haible  <bruno@clisp.org>
40388
40389         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
40390         correctly.
40391
40392 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40393
40394         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
40395         not gl_GETLOADAVG.  Omit unneeded semicolons.
40396         Problems reported by Ralf Wildenhues in
40397         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40398         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
40399         at the end, which is the usual gnulib style.
40400
40401         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
40402         of doing all the work ourselves.
40403         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
40404         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
40405
40406 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40407
40408         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
40409         Problem reported by Ralf Wildenhues in
40410         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40411
40412         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
40413         HAVE_STRUCT_STATFS_F_FSTYPENAME.
40414
40415 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40416
40417         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
40418         yesterday's patch by changing test -n to test -z.
40419
40420 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40421
40422         * modules/getloadavg (Files): Add m4/getloadavg.m4.
40423         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
40424         the former is now obsolescent.
40425
40426         * modules/chdir-long (Depends-on): Add fcntl.
40427
40428 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40429
40430         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
40431         obsolescent, and programs should use gnulib instead.
40432         * m4/getloadavg.m4: New file, with contents taken from Autoconf
40433         but with prefixes changed.
40434
40435 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40436
40437         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
40438         or stdbool.h, because they might not exist while configuring.
40439
40440         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
40441         Don't include unistd.h or limits.h; not needed, since chdir-long.h
40442         does that for us.
40443         (O_DIRECTORY): Remove.
40444
40445 2006-08-31  Eric Blake  <ebb9@byu.net>
40446
40447         * gnulib-tool: Don't let emacs change spaces to TAB.
40448
40449 2006-08-31  Bruno Haible  <bruno@clisp.org>
40450
40451         * gnulib-tool: When calling func_import more than once, do it in a
40452         subshell.
40453         Reported by Eric Blake <ebb9@byu.net>.
40454
40455 2006-08-31  Bruno Haible  <bruno@clisp.org>
40456
40457         * gnulib-tool (nl): Remove variable.
40458         (sed_transform_lib_file): Use more robust test for config-h module.
40459         (func_import): Fix typo in 2006-08-25 patch.
40460
40461 2006-08-31  Bruno Haible  <bruno@clisp.org>
40462
40463         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
40464         specified, augment Makefile.am variables instead of assigning them.
40465
40466 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40467
40468         Work around a bug in both the Linux and SunOS 64-bit kernels:
40469         nanosleep mishandles sleeps for longer than 2**31 seconds.
40470         Problem reported by Frank v Waveren in
40471         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40472         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
40473         Check for nanosleep bug.
40474         (LIB_NANOSLEEP): Append clock_gettime library if needed.
40475
40476 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40477
40478         Work around a bug in both the Linux and SunOS 64-bit kernels:
40479         nanosleep mishandles sleeps for longer than 2**31 seconds.
40480         Problem reported by Frank v Waveren in
40481         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40482         * lib/nanosleep.c (BILLION): New constant.
40483         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
40484         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
40485         implementation.
40486
40487 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40488
40489         * modules/nanosleep (Depends-on): Add gettime.
40490
40491 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40492         and Simon Josefsson  <jas@extundo.com>
40493         and Oskar Liljeblad  <oskar@osk.mine.nu>
40494
40495         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
40496         * gnulib-tool (func_import): New license type 'unmodifiable license
40497         text'.
40498         * modules/fdl: Use it.  Longer description.
40499         * module/gpl, module/lgpl: New files.
40500
40501 2006-08-30  Jim Meyering  <jim@meyering.net>
40502
40503         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
40504         shadowing the parameter.
40505
40506 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40507
40508         Sync from Libtool:
40509
40510         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40511
40512         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
40513         sharing with gnulib.  Report by Eric Blake.
40514
40515 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40516
40517         * modules/isapipe: New file.
40518         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
40519
40520 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40521
40522         * modules/configmake (Makefile.am): Add a comment, and omit
40523         the CONFIGMAKE_ prefix from generated macro names.  Suggested
40524         by Bruno Haible.
40525
40526 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40527
40528         * m4/isapipe.m4: New file.
40529
40530 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40531
40532         * lib/isapipe.c, lib/isapipe.h: New files.
40533
40534 2006-08-29  Jim Meyering  <jim@meyering.net>
40535
40536         * modules/configmake (Makefile.am): Make configmake.h depend on
40537         Makefile.  Otherwise, a stale configmake.h could hang around.
40538
40539 2006-08-29  Eric Blake  <ebb9@byu.net>
40540
40541         * lib/error.c (error_at_line, print_errno_message): Match libc, after
40542         resolution of upstream bug 3044.
40543
40544 2006-08-29  Bruno Haible  <bruno@clisp.org>
40545
40546         * modules/localcharset (Depends-on): Add configmake.
40547         (Makefile.am): Remove setting of LIBDIR through DEFS.
40548
40549 2006-08-29  Bruno Haible  <bruno@clisp.org>
40550
40551         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
40552         defined.
40553
40554 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40555
40556         * modules/fcntl: New file.
40557         * modules/chdir-safer (Depends-on): Add fcntl.
40558         * modules/fts: Likewise.
40559         * modules/mkdir-p: Likewise.
40560
40561         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
40562         This undoes the most recent change, since we're now addressing the
40563         problem in a different way.
40564
40565         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
40566         into output, since the output might be called Makefile.am even
40567         if $makefile_name is something different.
40568         (func_import): Use $makefile_am rather than
40569         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
40570         empty.
40571
40572         * modules/inttypes (Files): Add m4/inttypes-h.m4.
40573
40574 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40575
40576         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
40577         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
40578         recent change to stdint.m4, since we're now addressing the problem in a
40579         different way.
40580
40581 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40582
40583         * m4/fcntl_h.m4: New file.
40584
40585 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40586
40587         * lib/fcntl_.h: New file.
40588         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
40589         the fcntl module.
40590         * lib/dirchownmod.c: Likewise.
40591         * lib/fts.c: Likewise.
40592
40593         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
40594         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
40595         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
40596         just before including <inttypes.h>, to avoid circular inclusion.
40597
40598 2006-08-28  Jim Meyering  <jim@meyering.net>
40599
40600         * doc/visibility.texi: Actually read and correct the grammar of the
40601         sentence affected by yesterday's change.
40602
40603 2006-08-28  Eric Blake  <ebb9@byu.net>
40604
40605         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
40606         needs wrapper.
40607
40608 2006-08-28  Eric Blake  <ebb9@byu.net>
40609
40610         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
40611
40612 2006-08-28  Eric Blake  <ebb9@byu.net>
40613
40614         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
40615
40616 2006-08-28  Bruno Haible  <bruno@clisp.org>
40617
40618         * modules/c-strstr: New file, from GNU gettext.
40619         * MODULES.html.sh (String handling): Add c-strstr.
40620
40621 2006-08-28  Bruno Haible  <bruno@clisp.org>
40622
40623         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
40624         macros.
40625         Reported by Eric Blake.
40626
40627 2006-08-28  Bruno Haible  <bruno@clisp.org>
40628
40629         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
40630         (VASNPRINTF): Return a string of length > INT_MAX without failing.
40631         * lib/vasprintf.c: Include errno.h, limits.h.
40632         (EOVERFLOW): New fallback definition.
40633         (vasprintf): Test here whether the string length is > INT_MAX.
40634         * lib/vsnprintf.c: Include errno.h, limits.h.
40635         (EOVERFLOW): New fallback definition.
40636         (vsnprintf): Fix bug when generated string was too long for the buffer.
40637         Test here whether the string length is > INT_MAX.
40638
40639 2006-08-28  Bruno Haible  <bruno@clisp.org>
40640
40641         * lib/inttypes_.h (SCNX*): Remove definitions.
40642         Reported by Eric Blake.
40643
40644 2006-08-28  Bruno Haible  <bruno@clisp.org>
40645
40646         * lib/c-strstr.h: New file, from GNU gettext.
40647         * lib/c-strstr.c: New file, from GNU gettext.
40648
40649 2006-08-28  Bruno Haible  <bruno@clisp.org>
40650
40651         * gnulib-tool: Reorder some statements.
40652
40653 2006-08-28  Bruno Haible  <bruno@clisp.org>
40654
40655         * gnulib-tool: New option --makefile-name.
40656         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
40657         $makefile_name.
40658         (func_import): Write $makefile_name to the cache file, and read it from
40659         there unless explicitly specified. Use $makefile_name as file name
40660         instead of Makefile.am. Adjust the recommendations accordingly.
40661
40662 2006-08-28  Bruno Haible  <bruno@clisp.org>
40663
40664         * gnulib-tool (func_verify_module): Check against misapplying patch.
40665
40666 2006-08-28  Bruno Haible  <bruno@clisp.org>
40667
40668         * gnulib-tool (func_relativize, func_relconcat): New functions.
40669         Give an error if --local-dir is given with --update.
40670         Remove trailing slashes from $local_gnulib_dir.
40671         (func_import): Store the relativized $local_gnulib_dir in
40672         gnulib-cache.m4, and read it from there if not specified explicitly.
40673
40674 2006-08-28  Bruno Haible  <bruno@clisp.org>
40675
40676         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
40677         is the current directory. Respect also $local_gnulib_dir.
40678
40679 2006-08-28  Bruno Haible  <bruno@clisp.org>
40680             Simon Josefsson  <jas@extundo.com>
40681
40682         BeOS portability.
40683         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
40684
40685 2006-08-27  Jim Meyering  <jim@meyering.net>
40686
40687         * doc/visibility.texi: Remove duplicate word: "pointer".
40688
40689 2006-08-26  Bruno Haible  <bruno@clisp.org>
40690
40691         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
40692         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
40693         (Makefile.am): Create inttypes.h from inttypes_.h.
40694         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
40695
40696         * modules/imaxabs: New file.
40697
40698         * modules/imaxdiv: New file.
40699
40700 2006-08-26  Bruno Haible  <bruno@clisp.org>
40701
40702         * m4/inttypes.m4: New file.
40703         * m4/_inttypes_h.m4: Remove file.
40704         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
40705         PRI_MACROS_BROKEN.
40706         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
40707
40708         * m4/imaxabs.m4: New file.
40709
40710         * m4/imaxdiv.m4: New file.
40711
40712 2006-08-26  Bruno Haible  <bruno@clisp.org>
40713
40714         * lib/inttypes_.h: New file.
40715         * lib/inttypes.h: Remove file.
40716         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
40717
40718         * lib/imaxabs.c: New file.
40719
40720         * lib/imaxdiv.c: New file.
40721
40722 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40723
40724         New config-h module, so that "make" output needn't be cluttered
40725         by -DHAVE_CONFIG_H.
40726         * MODULES.html.sh (Support for building libraries and executables):
40727         Add config-h.
40728         * modules/config-h: New file.
40729         * gnulib-tool (nl, sed_transform_lib_file): New vars.
40730         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
40731         the config-h module is used.
40732
40733         New configmake module, so that "make" output needn't be cluttered
40734         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
40735         * MODULES.html.sh (Support for building libraries and executables):
40736         Add configmake.
40737         * modules/configmake: New file.
40738
40739 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40740
40741         * m4/config-h.m4: New file.
40742
40743 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40744
40745         * config/srclist.txt: Add elisp-comp.
40746
40747 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40748
40749         * MODULES.html.sh (Support for building libraries and executables):
40750         Add elisp-comp.
40751         * build-aux/elisp-comp: New file.
40752         * modules/elisp-comp: New file.
40753
40754 2006-08-24  Bruno Haible  <bruno@clisp.org>
40755
40756         * gnulib-tool (func_create_testdir): Use non-default values of
40757         sourcebase and m4base.
40758
40759 2006-08-24  Bruno Haible  <bruno@clisp.org>
40760
40761         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
40762         HTML structure.
40763
40764 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40765
40766         * modules/openat (Depends-on): Add lchown.
40767
40768 2006-08-23  Bruno Haible  <bruno@clisp.org>
40769
40770         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
40771         of gl_LOCK_EARLY instead of gl_LOCK.
40772
40773 2006-08-23  Bruno Haible  <bruno@clisp.org>
40774
40775         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
40776         on OSF/1 to no.
40777         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
40778
40779 2006-08-23  Bruno Haible  <bruno@clisp.org>
40780
40781         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
40782         as unusable.
40783
40784         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
40785         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
40786         (gl_LOCK): New macro.
40787
40788 2006-08-22  Simon Josefsson  <jas@extundo.com>
40789
40790         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
40791         to md5 module.
40792
40793 2006-08-22  Simon Josefsson  <jas@extundo.com>
40794
40795         * MODULES.html.sh: Add "Support for maintaining and release
40796         projects".
40797
40798         * build-aux/gnupload: New file, from coreutils.
40799
40800 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40801
40802         Avoid the need for AC_LIBSOURCES in m4 macros.
40803         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
40804         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
40805         * modules/check-version (EXTRA_DIST): Add check-version.h.
40806         * modules/crc (EXTRA_DIST): Add crc.h.
40807         * modules/des (EXTRA_DIST): Add des.h.
40808         * modules/gc (EXTRA_DIST): Add gc.h.
40809         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
40810         * modules/getline (EXTRA_DIST): Add getline.h.
40811         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
40812         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
40813         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
40814         * modules/md2 (EXTRA_DIST): Add md2.h.
40815         * modules/md4 (EXTRA_DIST): Add md4.h.
40816         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
40817         * modules/read-file (EXTRA_DIST): Add read-file.h.
40818         * modules/readline (EXTRA_DIST): Add readline.h.
40819         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
40820         rijndael-api-fst.h.
40821
40822 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40823
40824         * m4/rijndael.m4 (gl_ARCFOUR):
40825         * m4/arctwo.m4 (gl_ARCTWO):
40826         * m4/check-version.m4 (gl_CHECK_VERSION):
40827         * m4/crc.m4 (gl_CRC):
40828         * m4/des.m4 (gl_DES):
40829         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
40830         * m4/gc.m4 (gl_GC):
40831         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
40832         * m4/getline.m4 (gl_FUNC_GETLINE):
40833         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
40834         * m4/hmac-md5.m4 (gl_HMAC_MD5):
40835         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
40836         * m4/md2.m4 (gl_MD2):
40837         * m4/md4.m4 (gl_MD4):
40838         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
40839         * m4/read-file.m4 (gl_FUNC_READ_FILE):
40840         * m4/readline.m4 (gl_FUNC_READLINE):
40841         * m4/rijndael.m4 (gl_RIJNDAEL):
40842         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40843         to get the necessary .h files and whatnot.
40844
40845 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40846
40847         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
40848         gnulib rather than the other way around.
40849         * config/srclistvars.sh (COREUTILS): Remove.
40850
40851 2006-08-22  Jim Meyering  <jim@meyering.net>
40852
40853         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
40854
40855         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
40856
40857 2006-08-22  Eric Blake  <ebb9@byu.net>
40858
40859         * modules/regexprops-generic: New file.
40860         * MODULES.html.sh (Support for building documentation): List it.
40861
40862 2006-08-22  Eric Blake  <ebb9@byu.net>
40863
40864         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
40865         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40866         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
40867         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
40868
40869 2006-08-22  Bruno Haible  <bruno@clisp.org>
40870
40871         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
40872         and lib_LTLIBRARIES like the other lib_* variables.
40873
40874 2006-08-22  Bruno Haible  <bruno@clisp.org>
40875
40876         * build-aux/x-to-1.in: New file, from GNU gettext.
40877
40878 2006-08-22  Bruno Haible  <bruno@clisp.org>
40879
40880         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
40881         <utmpx.h> exists.
40882
40883 2006-08-22  Bruno Haible  <bruno@clisp.org>
40884
40885         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
40886         <utmpx.h> exists.
40887
40888 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40889
40890         BeOS portability.
40891         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
40892         exist.
40893         Problem reported by Bruno Haible.
40894
40895 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40896
40897         Avoid the need for AC_LIBSOURCES in m4 macros.
40898         * modules/acl (EXTRA_DIST): Add acl.h.
40899         * modules/argmatch (Files): Add m4/argmatch.m4.
40900         (configure.ac): Add gl_ARGMATCH.
40901         (EXTRA_DIST): Renamed from lib_SOURCES, for
40902         consistency with the other modules.  Remove argmatch.c.
40903         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
40904         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
40905         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
40906         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
40907         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
40908         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
40909         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
40910         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
40911         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
40912         * modules/closeout (EXTRA_DIST): Add closeout.h.
40913         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
40914         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
40915         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
40916         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
40917         dirname.h; remove basename.c and stripslash.c.
40918         * modules/exclude (EXTRA_DIST): Add exclude.h.
40919         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
40920         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
40921         * modules/file-type (EXTRA_DIST): Add file-type.h.
40922         * modules/filemode (EXTRA_DIST): Add filemode.h.
40923         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
40924         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40925         * modules/fpending (EXTRA_DIST): Add __fpending.h.
40926         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
40927         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
40928         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
40929         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
40930         * modules/getdate (EXTRA_DIST): Add getdate.c.
40931         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
40932         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
40933         * modules/getpass (EXTRA_DIST): Add getpass.h.
40934         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
40935         * modules/group-member (EXTRA_DIST): Add group-member.h.
40936         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
40937         * modules/hash (EXTRA_DIST): Add hash.h.
40938         * modules/human (EXTRA_DIST): Add human.h.
40939         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
40940         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
40941         * modules/lchown (EXTRA_DIST): Add lchown.h.
40942         * modules/long-options (EXTRA_DIST): Add long-options.h.
40943         * modules/lstat (EXTRA_DIST): Add lstat.h.
40944         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
40945         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
40946         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
40947         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
40948         * modules/memxor (EXTRA_DIST): Add memxor.h.
40949         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
40950         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
40951         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
40952         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
40953         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
40954         * modules/physmem (EXTRA_DIST): Add physmem.h.
40955         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
40956         * modules/posixver (EXTRA_DIST): Add posixver.h.
40957         * modules/quote (EXTRA_DIST): Add quote.h.
40958         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
40959         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
40960         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
40961         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
40962         regex_internal.h regexec.c.
40963         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
40964         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
40965         * modules/same (EXTRA_DIST): Add same.h.
40966         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
40967         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
40968         * modules/savedir (EXTRA_DIST): Add savedir.h.
40969         * modules/sha1 (EXTRA_DIST): Add sha1.h.
40970         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
40971         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
40972         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
40973         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
40974         * modules/strdup (EXTRA_DIST): Add strdup.h.
40975         * modules/strftime (EXTRA_DIST): Add strftime.h.
40976         * modules/strndup (EXTRA_DIST): Add strndup.h.
40977         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
40978         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
40979         * modules/time_r (EXTRA_DIST): Add time_r.h.
40980         * modules/timespec (EXTRA_DIST): Add timespec.h.
40981         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40982         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
40983         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
40984         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
40985         * modules/userspec (EXTRA_DIST): Add userspec.h.
40986         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
40987         * modules/utimens (EXTRA_DIST): Add utimens.h.
40988         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
40989         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
40990         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
40991         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
40992         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
40993         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
40994         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
40995         * modules/yesno (EXTRA_DIST): Add yesno.h.
40996
40997 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40998
40999         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
41000
41001         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
41002         * m4/dev-ino.m4, same-inode.m4: Remove.
41003
41004         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
41005         * m4/acl.m4 (AC_FUNC_ACL):
41006         * m4/backupfile.m4 (gl_BACKUPFILE):
41007         * m4/c-strtod.m4 (gl_C99_STRTOLD):
41008         * m4/canon-host.m4 (gl_CANON_HOST):
41009         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41010         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
41011         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
41012         * m4/cloexec.m4 (gl_CLOEXEC):
41013         * m4/close-stream.m4 (gl_CLOSE_STREAM):
41014         * m4/closeout.m4 (gl_CLOSEOUT):
41015         * m4/dirfd.m4 (gl_FUNC_DIRFD):
41016         * m4/dirname.m4 (gl_DIRNAME):
41017         * m4/exclude.m4 (gl_EXCLUDE):
41018         * m4/exitfail.m4 (gl_EXITFAIL):
41019         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
41020         * m4/file-type.m4 (gl_FILE_TYPE):
41021         * m4/filemode.m4 (gl_FILEMODE):
41022         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
41023         * m4/fpending.m4 (gl_FUNC_FPENDING):
41024         * m4/fprintftime.m4 (gl_FPRINTFTIME):
41025         * m4/fts.m4 (gl_FUNC_FTS):
41026         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
41027         * m4/getdate.m4 (gl_GETDATE):
41028         * m4/gethrxtime.m4 (gl_GETHRXTIME):
41029         * m4/getpagesize.m4 (gl_GETPAGESIZE):
41030         * m4/getpass.m4 (gl_FUNC_GETPASS):
41031         * m4/gettime.m4 (gl_GETTIME):
41032         * m4/getugroups.m4 (gl_GETUGROUPS):
41033         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
41034         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
41035         * m4/hard-locale.m4 (gl_HARD_LOCALE):
41036         * m4/hash.m4 (gl_HASH):
41037         * m4/idcache.m4 (gl_IDCACHE):
41038         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
41039         * m4/lchown.m4 (gl_FUNC_LCHOWN):
41040         * m4/long-options.m4 (gl_LONG_OPTIONS):
41041         * m4/lstat.m4 (gl_FUNC_LSTAT):
41042         * m4/md5.m4 (gl_MD5):
41043         * m4/memcasecmp.m4 (gl_MEMCASECMP):
41044         * m4/memcoll.m4 (gl_MEMCOLL):
41045         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
41046         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
41047         * m4/memxor.m4 (gl_MEMXOR):
41048         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
41049         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
41050         * m4/modechange.m4 (gl_MODECHANGE):
41051         * m4/mountlist.m4 (gl_MOUNTLIST):
41052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
41053         * m4/openat.m4 (gl_FUNC_OPENAT):
41054         * m4/pathmax.m4 (gl_PATHMAX):
41055         * m4/physmem.m4 (gl_PHYSMEM):
41056         * m4/posixtm.m4 (gl_POSIXTM):
41057         * m4/posixver.m4 (gl_POSIXVER):
41058         * m4/quote.m4 (gl_QUOTE):
41059         * m4/quotearg.m4 (gl_QUOTEARG):
41060         * m4/readtokens.m4 (gl_READTOKENS):
41061         * m4/readutmp.m4 (gl_READUTMP):
41062         * m4/regex.m4 (gl_REGEX):
41063         * m4/safe-read.m4 (gl_SAFE_READ):
41064         * m4/safe-write.m4 (gl_SAFE_WRITE):
41065         * m4/same.m4 (gl_SAME):
41066         * m4/save-cwd.m4 (gl_SAVE_CWD):
41067         * m4/savedir.m4 (gl_SAVEDIR):
41068         * m4/settime.m4 (gl_SETTIME):
41069         * m4/sha1.m4 (gl_SHA1):
41070         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
41071         * m4/stat-macros.m4 (gl_STAT_MACROS):
41072         * m4/stat-time.m4 (gl_STAT_TIME):
41073         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
41074         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
41075         * m4/strdup.m4 (gl_FUNC_STRDUP):
41076         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
41077         * m4/strndup.m4 (gl_FUNC_STRNDUP):
41078         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
41079         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
41080         * m4/time_r.m4 (gl_TIME_R):
41081         * m4/timespec.m4 (gl_TIMESPEC):
41082         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
41083         * m4/unlinkdir.m4 (gl_UNLINKDIR):
41084         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
41085         * m4/userspec.m4 (gl_USERSPEC):
41086         * m4/utimecmp.m4 (gl_UTIMECMP):
41087         * m4/utimens.m4 (gl_UTIMENS):
41088         * m4/xalloc.m4 (gl_XALLOC):
41089         * m4/xgetcwd.m4 (gl_XGETCWD):
41090         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
41091         * m4/xreadlink.m4 (gl_XREADLINK):
41092         * m4/xstrtod.m4 (gl_XSTRTOD):
41093         * m4/yesno.m4 (gl_YESNO):
41094         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
41095         to get the necessary .h files and whatnot.
41096
41097 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
41098             Bruno Haible  <bruno@clisp.org>
41099
41100         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
41101         /bin/sh understanding of '!' conditional negation.
41102
41103 2006-08-21  Jim Meyering  <jim@meyering.net>
41104
41105         * modules/openat (Depends-on): Really alphabetize.
41106
41107         * modules/acl (Depends-on): Add error and quote.
41108
41109         * check-module (find_included_lib_files): Add at-func.c to the
41110         ok-to-include-more-than-once white list.
41111
41112         * modules/openat (Depends-on): Add lstat.  Alphabetize.
41113
41114 2006-08-21  Bruno Haible  <bruno@clisp.org>
41115
41116         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41117         Emit a pkgdata_DATA variable only if some snippets add contents to it.
41118         Reported by Martin Lambers <marlam@marlam.de>.
41119
41120 2006-08-21  Bruno Haible  <bruno@clisp.org>
41121
41122         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
41123         specify an installation location, don't emit a noinst_LIBRARIES or
41124         noinst_LTLIBRARIES assignment.
41125
41126 2006-08-21  Bruno Haible  <bruno@clisp.org>
41127
41128         BeOS portability.
41129         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
41130         BeOS has mbrtowc() but no <wctype.h>.
41131
41132 2006-08-21  Bruno Haible  <bruno@clisp.org>
41133
41134         BeOS portability.
41135         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
41136         exist.
41137
41138 2006-08-21  Bruno Haible  <bruno@clisp.org>
41139
41140         BeOS portability.
41141         * lib/mbchar.h: Include <wctype.h> only if it exists.
41142
41143 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41144
41145         Remove files that are no longer needed by their respective modules.
41146         * m4/obstack.m4: Remove.
41147         * m4/strerror_r.m4: Remove.
41148         * m4/uint32_t.m4: Remove.
41149         * m4/uintptr_t.m4: Remove.
41150         * m4/ullong_max.m4: Remove.
41151         * m4/xstrtoimax.m4: Remove.
41152         * m4/xstrtoumax.m4: Remove.
41153
41154         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
41155         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
41156         dependencies now capture this.
41157
41158         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
41159         Do not use AC_LIBSOURCES, since gnulib modules now do this.
41160         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
41161         * m4/human.m4 (gl_HUMAN): Likewise.
41162         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
41163         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
41164
41165         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
41166
41167         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
41168         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
41169         stdint.
41170         * m4/human.m4 (gl_HUMAN): Likewise.
41171         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
41172         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
41173         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
41174         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
41175         * m4/xstrtol (gl_XSTRTOL): Likewise.
41176
41177         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
41178         AC_TYPE_LONG_LONG_INT.
41179         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
41180         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
41181         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
41182         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
41183
41184         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
41185         on stdbool.
41186
41187         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
41188         (gl_PREREQ_XSTRTOUL): Remove.
41189
41190         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
41191
41192         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
41193         mode.
41194
41195 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41196
41197         Add and change modules to make it easier for coreutils to use
41198         gnulib-tool.
41199         * modules/backupfile (Files): Remove m4/d-ino.m4.
41200         (Depends-on): Add d-ino.
41201         * modules/cycle-check (Depends-on): Add stdint.
41202         (lib_SOURCES): Add cycle-check.h.
41203         * modules/d-ino: New module.
41204         * modules/d-type: New module.
41205         * modules/error (Files): Remove m4/strerror_r.m4.
41206         * modules/filemode (Files): Add m4/st_dm_mode.m4.
41207         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41208         m4/inttypes_h.m4, m4/uintmax_t.m4.
41209         (Depends-on): Add stdint.
41210         (lib_SOURCES): Add fsusage.h.
41211         * modules/getcwd (Files): Remove d-ino.m4.
41212         (Depends-on): Add d-ino.
41213         * modules/getndelim2 (Depends-on): Add stdint.
41214         * modules/glob (Files): Remove m4/d-type.m4.
41215         (Depends-on): Add d-type.
41216         * modules/host-os: New module.
41217         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
41218         m4/inttypes_h.m4, m4/uintmax_t.m4.
41219         * Depends-on: Add stdint.
41220         (lib_SOURCES): Add human.h.
41221         * modules/inttostr (Files): Remove m4/intmax_t.m4,
41222         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
41223         m4/uintmax_t.m4, m4/ulonglong.m4.
41224         (Depends-on): Add stdint.
41225         (EXTRA_DIST): Add inttostr.h.
41226         * modules/lchmod: New module.
41227         * modules/link-follow: New module.
41228         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
41229         (Depends-on): Add lchmod.
41230         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
41231         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
41232         (Depends-on): Add stdint.
41233         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
41234         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
41235         (Depends-on): Add stdint.
41236         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
41237         * modules/perl: New module.
41238         * modules/regex (Depends-on): Add stdint.
41239         * modules/rmdir-errno: New module.
41240         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
41241         m4/intmax_t.m4.
41242         (Depends-on): Add stdint.
41243         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
41244         m4/uintmax_t.m4.
41245         (Depends-on): Add stdint.
41246         * modules/unlink-busy: New module.
41247         * modules/utimecmp (Depends-on): Add stdint.
41248         * modules/uptime: New module.
41249         * modules/winsz-ioctl: New module.
41250         * modules/winsz-termios: New module.
41251         * modules/xnanosleep (Depends-on): Add nanosleep.
41252         * modules/ullong_max: Remove.
41253         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
41254         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
41255         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
41256         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
41257         (Depends-on): Add inttypes.
41258         (lib_SOURCES): Add xstrtol.h.
41259         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
41260         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
41261         * MODULES.html.sh: Move 'assert' into the assert section.
41262         Move 'dummy' into the linking section.
41263         Remove ullong_max.
41264         Add section for compatibility checks for POSIX:2001 functions,
41265         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
41266         winsz-ioctl, and winsz-termios into it.
41267         Add lchmod.
41268         Add top-level Misc section and put host-os, perl, and uptime
41269         into it.
41270
41271 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41272
41273         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
41274         now assume the stdint module.  Do not include inttypes.h.
41275         * lib/fsusage.h: Likewise.
41276         * lib/getndelim2.c: Likewise.
41277         * lib/human.h: Likewise.
41278         * lib/inttostr.h: Likewise.
41279         * lib/obstack.c: Likewise.
41280         * lib/regex_internal.h: Likewise.
41281         * lib/tempname.c: Likewise.
41282         * lib/utimecmp.c: Likewise.
41283         * lib/xstrtol.h: Likewise.
41284
41285         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
41286
41287         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
41288         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
41289         * lib/xtime.h: Likewise.
41290
41291 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41292
41293         * modules/openat (Files): Add lib/fchmodat.c.
41294         Fixes problem reported by Jay Youngman.
41295
41296 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
41297
41298         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
41299         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
41300
41301 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
41302             Bruno Haible  <bruno@clisp.org>
41303
41304         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
41305         and is a script that invokes bison. Tighten the code. Add comments.
41306
41307 2006-08-18  Jim Meyering  <jim@meyering.net>
41308
41309         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
41310         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
41311         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
41312         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
41313
41314 2006-08-18  Bruno Haible  <bruno@clisp.org>
41315
41316         * modules/bison-i18n: New file.
41317         * MODULES.html.sh (Internationalization functions): Add it.
41318
41319 2006-08-18  Bruno Haible  <bruno@clisp.org>
41320
41321         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
41322         sys/statvfs.h. When getmntinfo was found, check its declaration and
41323         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
41324
41325 2006-08-18  Bruno Haible  <bruno@clisp.org>
41326
41327         * m4/bison-i18n.m4: New file, from bison.
41328
41329 2006-08-18  Bruno Haible  <bruno@clisp.org>
41330
41331         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
41332         (ME_DUMMY): Treat "kernfs" as a dummy.
41333         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
41334
41335 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
41336
41337         Update from coreutils.
41338
41339         2006-08-15  Jim Meyering  <jim@meyering.net>
41340
41341         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
41342
41343         2006-01-17  Jim Meyering  <jim@meyering.net>
41344
41345         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
41346
41347         2006-01-11  Jim Meyering  <jim@meyering.net>
41348
41349         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
41350         Check for the lchmod function.
41351
41352 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
41353
41354         Update from coreutils.
41355
41356         * lib/__fpending.h: Add copyright notice.
41357         * lib/fprintftime.h: Likewise.
41358         * lib/savedir.c: Use (C) in copyright notice.
41359         * lib/savedir.h: Likewise.
41360
41361         2006-08-15  Jim Meyering  <jim@meyering.net>
41362
41363         * lib/at-func.c: New file, with the logic of all emulated at-functions.
41364         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
41365         in support of the EXPECTED_ERRNO macro.
41366         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
41367         definitions.  Instead, define the appropriate symbols and include
41368         "at-func.c".
41369         * lib/mkdirat.c (mkdirat): Likewise.
41370         * lib/fchmodat.c (fchmodat): Likewise.
41371         (ENOSYS): Remove definition.
41372         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
41373         it.  Don't include "unistd--.h" -- it wasn't ever used.
41374
41375         2006-01-17  Jim Meyering  <jim@meyering.net>
41376
41377         Rewrite fts.c not to change the current working directory,
41378         by using openat, fstatat, fdopendir, etc..
41379
41380         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
41381         (HAVE_OPENAT_SUPPORT): Define.
41382         [_LIBC] (fchdir): Don't undef or define; no longer used.
41383         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
41384         Now, this `function' always succeeds, and consumes its file descriptor
41385         parameter -- so callers must not close such FDs.  Update callers.
41386         (diropen_fd, opendirat, cwd_advance_fd): New functions.
41387         (diropen): Add parameter, SP.  Adjust all callers.
41388         Implement using diropen_fd, rather than open.
41389         (fts_open): Initialize new member, fts_cwd_fd.
41390         Remove fts_rft-setting code.
41391         (fts_close): Close fts_cwd_fd, if necessary.
41392         (__opendir2): Define in terms of opendir or opendirat,
41393         depending on whether the FST_NOCHDIR flag is set.
41394         (fts_build): Since fts_safe_changedir consumes its FD, and since
41395         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
41396         and close the dup'd file descriptor upon failure.
41397         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
41398         (fts_safe_changedir): Tweak semantics to reflect that this function
41399         now calls cwd_advance_fd and hence consumes its FD argument.
41400         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
41401         [struct FTS] (fts_rft): Remove now-unused member.
41402         [struct FTS] (fts_cycle.state): Improve comment.
41403
41404         * lib/openat.c (openat_needs_fchdir): New function.
41405         * lib/openat.h (openat_needs_fchdir): Declare it.
41406
41407 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
41408
41409         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
41410         Problem and fix reported by Pádraig Brady in
41411         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
41412
41413 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41414
41415         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
41416
41417 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41418
41419         * lib/memcoll.c (memcoll): Optimize for the common case where the
41420         arguments are bytewise equal.
41421
41422 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41423
41424         * doc/regexprops-generic.texi: Add a copyright notice.
41425
41426 2006-08-15  Bruno Haible  <bruno@clisp.org>
41427
41428         * modules/tmpdir (License): Change to LGPL.
41429
41430 2006-08-15  Bruno Haible  <bruno@clisp.org>
41431
41432         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
41433         module.
41434
41435 2006-08-14  Simon Josefsson  <jas@extundo.com>
41436
41437         * config/srclist.txt: Add gnupload.
41438
41439 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41440
41441         Change copyright notice from LGPL 2 to GPL 2, since that's the
41442         standard form used in the gnulib repository.
41443         * tests/test-lock.c: Likewise.
41444         * tests/test-stdint.c: Likewise.
41445         * tests/test-tls.c: Likewise.
41446
41447         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
41448         prelude-manager.  User shorter URLs for GNU projects, without '?'.
41449         Add copyright notice.
41450
41451         * check-module: Add copyright notice.  Output a copyright
41452         notice if "--version" is specified.
41453         * modules/COPYING: New file.
41454         * tests/test-getaddrinfo.c: Add copyright notice.
41455         * tests/test-verify.c: Likewise.
41456
41457 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41458
41459         Change copyright notice from LGPL 2 to GPL 2, since that's the
41460         standard form used in the gnulib repository.
41461         * lib/lock.c: LGPL -> GPL.
41462         * lib/lock.h: Likewise.
41463         * lib/strnlen1.c: Likewise.
41464         * lib/strnlen1.h: Likewise.
41465         * lib/tls.c: Likewise.
41466         * lib/tls.h: Likewise.
41467         * lib/tmpdir.c: Likewise.
41468
41469         * lib/TODO: Remove; this belongs only in coreutils.
41470
41471 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41472
41473         Add copyright notices to long-enough files that lack them, since
41474         otherwise the files aren't clearly free.  Use the same notice that
41475         getdate.texi already uses.
41476         * doc/alloca-opt.texi: Add copyright notice.
41477         * doc/alloca.texi: Likewise.
41478         * doc/ctime.texi: Likewise.
41479         * doc/functions.texi: Likewise.
41480         * doc/gcd.texi: Likewise.
41481         * doc/gnulib-tool.texi: Likewise.
41482         * doc/inet_ntoa.texi: Likewise.
41483         * doc/visibility.texi: Likewise.
41484
41485         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
41486         * doc/quote.texi: Add copyright notice.
41487
41488         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
41489         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
41490         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
41491         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
41492         is now obsolete, and give a pointer to the Sun list.
41493         Add copyright notice.
41494
41495 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41496
41497         * config/srclistvars.sh: Add copyright notice.
41498
41499 2006-08-14  Eric Blake  <ebb9@byu.net>
41500
41501         Import the following change from libc:
41502
41503         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
41504
41505         Upstream bug 2997.
41506         * lib/misc/error.c: Add space between program name and message if file
41507         name is missing.
41508
41509 2006-08-12  Karl Berry  <karl@gnu.org>
41510
41511         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
41512         remove, these originate in gnulib now.
41513
41514 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41515
41516         * doc/Makefile (standards.info standards.html standards.dvi):
41517         Also depend on make-stds.texi.
41518
41519 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
41520
41521         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
41522         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
41523
41524         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
41525         in wchar_t.  Problem reported by Eric Blake.
41526
41527         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
41528         LEN is smaller than SIZE.  Suggested by Bruno Haible.
41529         Also, help the compiler to keep LEN in a register.
41530
41531 2006-08-11  Eric Blake  <ebb9@byu.net>
41532
41533         * users.txt: Sort.  Add tar.
41534
41535 2006-08-11  Bruno Haible  <bruno@clisp.org>
41536
41537         * users.txt: New file.
41538
41539 2006-08-11  Bruno Haible  <bruno@clisp.org>
41540
41541         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
41542         before <wchar.h>. Needed for OSF/1 and BSD/OS.
41543
41544 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41545
41546         * modules/snprintf (Depends-on): Remove minmax.
41547         (Maintainer): Add self and Bruno.
41548
41549 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41550
41551         * lib/.cppi-disable: Add snprintf.h, socket_.h.
41552         * lib/snprintf.c: Include <errno.h> and <limits.h>.
41553         (EOVERFLOW): Define if the system does not.
41554         Do not include "minmax.h"; it wasn't used.
41555         (snprintf): Don't assume size_t promotes to an unsigned type.
41556         Fix bug when generated string was too long for the buffer: the
41557         buffer's contents are supposed to be the initial prefix of the
41558         output.  Don't assume vasnprintf returns EOVERFLOW if the size
41559         exceeds INT_MAX; do the check ourselves.
41560
41561         Import the following changes from libc:
41562
41563         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
41564
41565         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
41566         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
41567         set wc to the byte which couldn't be converted.
41568         (re_string_reconstruct): Don't clear valid_raw_len before calling
41569         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
41570         tip_context using re_string_context_at.
41571
41572         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
41573
41574         * lib/posix/regex.h: g++ still cannot handled [restrict].
41575
41576         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
41577
41578         * lib/posix/regex.h: Remove special handling for VMS.
41579
41580 2006-08-10  Jim Meyering  <jim@meyering.net>
41581
41582         * modules/same-inode: New module.
41583         * modules/dev-ino: New module.
41584         * modules/cycle-check: Depend on these modules, rather than simply
41585         including their .h files.
41586         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
41587         required via m4/cycle-check.m4.
41588         * modules/same: Depend on new same-inode module, rather than
41589         including same-inode.h.
41590         * modules/chdir-safer: New file.
41591
41592         * modules/chown (Depends-on): Add stat-macros.
41593
41594 2006-08-10  Jim Meyering  <jim@meyering.net>
41595
41596         * m4/cycle-check.m4: New file.
41597         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
41598         * m4/dev-ino.m4, m4/same-inode.m4: New files.
41599
41600 2006-08-10  Eric Blake  <ebb9@byu.net>
41601
41602         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
41603         in from original proposal.
41604
41605 2006-08-10  Eric Blake  <ebb9@byu.net>
41606         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41607
41608         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
41609         namespace.
41610
41611 2006-08-10  Bruno Haible  <bruno@clisp.org>
41612
41613         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
41614         as well.
41615
41616 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41617
41618         Sync from coreutils.
41619
41620         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
41621
41622         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
41623         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
41624
41625 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41626
41627         * modules/restrict: Remove; no longer needed now that we assume
41628         Autoconf 2.59 or later.
41629         * MODULES.html.sh: Remove 'restrict'.
41630         * modules/argp (Depends-on): Remove 'restrict'.
41631         * modules/base64 (Depends-on): Likewise.
41632         * modules/gc (Depends-on): Likewise.
41633         * modules/getaddrinfo (Depends-on): Likewise.
41634         * modules/glob (Depends-on): Likewise.
41635         * modules/inet_ntop (Depends-on): Likewise.
41636         * modules/inet_pton (Depends-on): Likewise.
41637         * modules/memxor (Depends-on): Likewise.
41638         * modules/regex (Depends-on): Likewise.
41639         * modules/strtok_r (Depends-on): Likewise.
41640         * modules/time_r (Depends-on): Likewise.
41641
41642 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41643
41644         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
41645         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
41646         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41647         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
41648         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
41649         * m4/memxor.m4 (gl_MEMXOR): Likewise.
41650         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
41651         gl_C_RESTRICT replaced by AC_C_RESTRICT.
41652
41653         Merge from coreutils.
41654         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
41655         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
41656         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41657         * m4/time_r.m4 (gl_TIME_R): Likewise.
41658
41659 2006-08-09  Karl Berry  <karl@gnu.org>
41660
41661         * config/srclist.txt: no more gettext-tools, per Bruno.
41662
41663 2006-08-08  Eric Blake  <ebb9@byu.net>
41664
41665         * modules/verror: New module.
41666         * MODULES.html.sh: Document it.
41667
41668 2006-08-08  Eric Blake  <ebb9@byu.net>
41669
41670         * lib/verror.h, lib/verror.c: New files.
41671
41672 2006-08-08  Eric Blake  <ebb9@byu.net>
41673
41674         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
41675         verror_at_line output complies with GNU Coding Standards even when
41676         file is NULL.
41677
41678 2006-08-07  Bruno Haible  <bruno@clisp.org>
41679
41680         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
41681         versions of AIX.
41682         Reported by Ralf Wildenhues.
41683
41684 2006-08-07  Bruno Haible  <bruno@clisp.org>
41685
41686         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
41687         in an AC_DEFUN. Needed so that the autoconf snippets can use
41688         AC_REQUIRE.
41689
41690 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41691
41692         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41693         Initialize pkgdata_DATA.
41694         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
41695         overriding it.
41696
41697 2006-08-06  Eric Blake  <ebb9@byu.net>
41698
41699         * lib/error.h: Fold in some upstream changes from glibc.
41700         * lib/error.c: Likewise.
41701
41702 2006-08-04  Bruno Haible  <bruno@clisp.org>
41703
41704         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41705         Make the mostlyclean-local rule depend on mostlyclean-generic.
41706         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
41707
41708 2006-07-31  Bruno Haible  <bruno@clisp.org>
41709
41710         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
41711         <stdlib.h>, <string.h>.
41712
41713 2006-07-30  Bruno Haible  <bruno@clisp.org>
41714
41715         * modules/readlink (License): Change to LGPL.
41716
41717 2006-07-30  Bruno Haible  <bruno@clisp.org>
41718
41719         * modules/javaversion (Makefile.am): Distribute javaversion.java and
41720         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
41721         set PKGDATADIR to point to it.
41722
41723 2006-07-30  Bruno Haible  <bruno@clisp.org>
41724
41725         * modules/csharpexec (configure.ac): Comment out macro invocation.
41726         * modules/javaexec (configure.ac): Likewise.
41727         * modules/javacomp-script (configure.ac): Likewise.
41728
41729         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
41730
41731 2006-07-30  Bruno Haible  <bruno@clisp.org>
41732
41733         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
41734         linked-list.
41735
41736 2006-07-30  Bruno Haible  <bruno@clisp.org>
41737
41738         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
41739
41740 2006-07-30  Bruno Haible  <bruno@clisp.org>
41741
41742         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41743         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
41744         get removed.
41745
41746 2006-07-29  Bruno Haible  <bruno@clisp.org>
41747
41748         Make it possible for gnulib-tool to work with locally modified or
41749         augmented gnulib repositories.
41750         * gnulib-tool (func_usage): Document --local-dir option.
41751         (local_gnulib_dir): New variable.
41752         Handle --local-dir option.
41753         (func_lookup_file): New function.
41754         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
41755         (func_get_description, func_get_filelist, func_get_description,
41756         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
41757         func_get_automake_snippet, func_get_include_directive,
41758         func_get_license, func_get_maintainer): Use func_lookup_file.
41759         (func_import, func_create_testdir): Use func_lookup_file.
41760
41761 2006-07-29  Bruno Haible  <bruno@clisp.org>
41762
41763         * modules/setenv (Depends-on): Add unistd.
41764
41765 2006-07-29  Bruno Haible  <bruno@clisp.org>
41766
41767         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
41768
41769 2006-07-29  Bruno Haible  <bruno@clisp.org>
41770
41771         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
41772
41773 2006-07-29  Bruno Haible  <bruno@clisp.org>
41774
41775         * gnulib-tool (import, update): If there is no Makefile.am, look at
41776         aclocal.m4, instead of bailing out.
41777
41778 2006-07-29  Bruno Haible  <bruno@clisp.org>
41779
41780         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
41781         Categorize the options by when they are useful.
41782
41783 2006-07-29  Bruno Haible  <bruno@clisp.org>
41784
41785         * gnulib-tool (func_usage): Document option --no-libtool.
41786         Handle option --no-libtool.
41787         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
41788         for changed semantics of $libtool variable.
41789         (func_import): Likewise. If libtool is not used, show this through
41790         an option --no-libtool.
41791         (func_create_testdir): Update.
41792
41793 2006-07-29  Bruno Haible  <bruno@clisp.org>
41794
41795         * gnulib-tool (func_import): Extend error message about missing
41796         --doc-base.
41797
41798 2006-07-29  Bruno Haible  <bruno@clisp.org>
41799
41800         * gnulib-tool (func_import): Don't create the $docbase directory if
41801         there is no file to store there.
41802
41803 2006-07-29  Bruno Haible  <bruno@clisp.org>
41804
41805         * gnulib-tool (autoconf_minversion): If a --dir option is given and
41806         relevant, look for configure.ac there, not in the current directory.
41807         Also use a simple search for AC_PREREQ, not "autoconf --trace".
41808
41809 2006-07-29  Bruno Haible  <bruno@clisp.org>
41810
41811         * gnulib-tool (SORT): New variable.
41812         (func_usage): Undocument --assume-autoconf option.
41813         Remove --assume-autoconf option handling.
41814         (autoconf_minversion): Determine from the contents of configure.ac.
41815         (func_import): Remove autoconf_minversion handling.
41816         Suggested by Eric Blake.
41817
41818 2006-07-29  Bruno Haible  <bruno@clisp.org>
41819
41820         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
41821
41822 2006-07-29  Bruno Haible  <bruno@clisp.org>
41823
41824         * config/srclist.txt (*setenv.[ch]): Remove rules.
41825
41826 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41827
41828         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
41829
41830 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41831
41832         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
41833         arpa/inet.h.
41834
41835 2006-07-28  Simon Josefsson  <jas@extundo.com>
41836
41837         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
41838         * modules/inet_pton (Depends-on): Likewise.
41839
41840 2006-07-28  Simon Josefsson  <jas@extundo.com>
41841
41842         * m4/netinet_in_h.m4: New file.
41843
41844 2006-07-28  Simon Josefsson  <jas@extundo.com>
41845
41846         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
41847         #include's.
41848
41849 2006-07-28  Simon Josefsson  <jas@extundo.com>
41850
41851         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
41852         #include's.
41853
41854 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
41855
41856         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
41857         setgid on directories only if they set these bits.
41858         * lib/modechange.h: Remove obsolete comment about masks.
41859
41860 2006-07-28  Eric Blake  <ebb9@byu.net>
41861
41862         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
41863         macro expansion.
41864
41865 2006-07-28  Bruno Haible  <bruno@clisp.org>
41866
41867         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
41868
41869 2006-07-28  Bruno Haible  <bruno@clisp.org>
41870
41871         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
41872
41873 2006-07-28  Bruno Haible  <bruno@clisp.org>
41874
41875         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41876         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41877         Define fallbacks.
41878         Avoids link error on FreeBSD 4.x.
41879         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41880
41881         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
41882         encoding.
41883         * lib/mbswidth.c (iswcntrl): Likewise.
41884
41885 2006-07-27  Bruno Haible  <bruno@clisp.org>
41886
41887         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
41888         test.
41889
41890 2006-07-27  Bruno Haible  <bruno@clisp.org>
41891
41892         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
41893         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
41894         defined.
41895
41896 2006-07-26  Eric Blake  <ebb9@byu.net>
41897
41898         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
41899
41900 2006-07-26  Eric Blake  <ebb9@byu.net>
41901
41902         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
41903         like mingw that lack mkstemp.
41904         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
41905         avoid compilation warning on mingw.
41906
41907 2006-07-26  Bruno Haible  <bruno@clisp.org>
41908
41909         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
41910         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
41911         INT_FAST*_MIN, INTPTR_MIN.
41912
41913 2006-07-25  Bruno Haible  <bruno@clisp.org>
41914
41915         * modules/version-etc (Depends-on): Add stdarg.
41916
41917 2006-07-25  Bruno Haible  <bruno@clisp.org>
41918
41919         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
41920         complex commands.
41921
41922 2006-07-25  Bruno Haible  <bruno@clisp.org>
41923
41924         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
41925         defined in <stdarg.h> or config.h.
41926
41927 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41928
41929         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
41930         (gl_STDIO_SAFER): Remove.
41931
41932 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41933
41934         * MODULES.html.sh (File stream based Input/Output):
41935         Add fopen-safer, tmpfile-safer; remove stdio-safer.
41936         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
41937         * modules/fopen-safer, modules/tmpfile-safer: New files.
41938         * modules/stdio-safer: Remove.
41939
41940 2006-07-24  Bruno Haible  <bruno@clisp.org>
41941
41942         * modules/tmpdir: New file.
41943         * MODULES.html.sh (File system functions): Add it.
41944
41945 2006-07-24  Bruno Haible  <bruno@clisp.org>
41946
41947         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
41948         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
41949
41950 2006-07-24  Bruno Haible  <bruno@clisp.org>
41951
41952         * modules/clean-temp: New file.
41953
41954 2006-07-24  Bruno Haible  <bruno@clisp.org>
41955
41956         * m4/tmpdir.m4: New file, from GNU gettext.
41957
41958 2006-07-24  Bruno Haible  <bruno@clisp.org>
41959
41960         * lib/tmpdir.h: New file, from GNU gettext.
41961         * lib/tmpdir.c: New file, from GNU gettext.
41962
41963 2006-07-24  Bruno Haible  <bruno@clisp.org>
41964
41965         * lib/clean-temp.h: New file, from GNU gettext.
41966         * lib/clean-temp.c: New file, from GNU gettext.
41967
41968 2006-07-23  Eric Blake  <ebb9@byu.net>
41969
41970         * modules/stdio-safer (Files): Add tmpfile-safer.c.
41971         (Depends-on): Add binary-io.
41972
41973 2006-07-23  Eric Blake  <ebb9@byu.net>
41974
41975         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
41976
41977 2006-07-23  Eric Blake  <ebb9@byu.net>
41978
41979         * lib/tmpfile-safer.c: New file.
41980         * lib/stdio-safer.h (fopen_safer): Add prototype.
41981         * lib/stdio--.h (tmpfile): Make safer.
41982
41983 2006-07-23  Bruno Haible  <bruno@clisp.org>
41984
41985         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
41986         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
41987         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
41988         gl_linked_remove_at): Use it.
41989
41990 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41991         and Simon Josefsson <jas@extundo.com>
41992
41993         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
41994
41995         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
41996
41997 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41998
41999         * modules/close-stream: New file.
42000         * modules/closeout (Description): Make it clear that it exits
42001         with a diagnostic on error.
42002         (Depends-on): Add close-stream.  Remove fpending, stdbool.
42003         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
42004
42005 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42006
42007         * m4/close-stream.m4: New file.
42008
42009 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42010
42011         * lib/close-stream.c, lib/close-stream.h: New files.
42012
42013 2006-07-22  Bruno Haible  <bruno@clisp.org>
42014
42015         Merge from GNU gettext 0.15.
42016
42017         2006-05-01  Bruno Haible  <bruno@clisp.org>
42018
42019                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
42020
42021         2006-07-22  Bruno Haible  <bruno@clisp.org>
42022
42023                 * modules/javaversion: New file.
42024                 * MODULES.html.sh (Java): Add javaversion.
42025
42026         2006-03-12  Bruno Haible  <bruno@clisp.org>
42027
42028                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
42029
42030         2005-12-04  Bruno Haible  <bruno@clisp.org>
42031
42032                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
42033                 (untested).
42034
42035         2006-06-21  Bruno Haible  <bruno@clisp.org>
42036
42037                 Avoid warnings from recent versions of mcs.
42038                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
42039                 -o, -L, -r any more. Use options documented since mcs-1.0
42040                 instead. Similarly for -g.
42041
42042         2005-12-04  Bruno Haible  <bruno@clisp.org>
42043
42044                 * build-aux/csharpcomp.sh.in: Suffix for resources is
42045                 .resources, not .resource.
42046
42047         2005-07-09  Bruno Haible  <bruno@clisp.org>
42048
42049                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
42050                 add a .dll suffix.
42051                 Reported by Mark Junker <mjscod@gmx.de>.
42052
42053         2006-07-22  Bruno Haible  <bruno@clisp.org>
42054
42055                 * modules/gettext: Upgrade to gettext-0.15.
42056                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
42057                 m4/visibility.m4.
42058                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
42059
42060 2006-07-22  Bruno Haible  <bruno@clisp.org>
42061
42062         Merge from GNU gettext 0.15.
42063
42064         2006-03-25  Bruno Haible  <bruno@clisp.org>
42065
42066                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
42067
42068         2006-07-21  Bruno Haible  <bruno@clisp.org>
42069
42070                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
42071                 "1.1".
42072
42073         2006-05-09  Bruno Haible  <bruno@clisp.org>
42074
42075                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
42076                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
42077                 for the conftestver execution.
42078
42079         2006-05-01  Bruno Haible  <bruno@clisp.org>
42080
42081                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
42082                 optional target-version argument. Verify that the compiler
42083                 groks source of the specified source-version, or add -source
42084                 option as necessary. Verify that the compiler produces
42085                 bytecode in the specified target-version, or add -target and
42086                 -source options as necessary. Make the result of the test
42087                 available as variable CONF_JAVAC. Also log error output in
42088                 config.log.
42089
42090         2006-03-11  Bruno Haible  <bruno@clisp.org>
42091
42092                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
42093
42094         2006-05-09  Bruno Haible  <bruno@clisp.org>
42095
42096                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
42097                 CLASSPATH_SEPARATOR to a semicolon.
42098
42099         2006-03-12  Bruno Haible  <bruno@clisp.org>
42100
42101                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
42102                 available as variable CONF_JAVA, for subsequent autoconf
42103                 tests. Also log error output in config.log.
42104
42105         2006-07-19  Bruno Haible  <bruno@clisp.org>
42106
42107                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
42108                 that getline works on glibc2 systems. Needed to avoid trouble
42109                 in relocatable.c.
42110                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
42111
42112         2005-12-04  Bruno Haible  <bruno@clisp.org>
42113
42114                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
42115                 launcher (untested).
42116
42117         2005-12-04  Bruno Haible  <bruno@clisp.org>
42118
42119                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
42120
42121         2006-07-22  Bruno Haible  <bruno@clisp.org>
42122
42123                 * gettext.m4: Update from GNU gettext-0.15.
42124                 * nls.m4: Likewise.
42125                 * po.m4: Likewise.
42126                 * inttypes-pri.m4: Likewise.
42127                 * inttypes-h.m4: Renamed from inttypes.m4.
42128                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
42129
42130 2006-07-22  Bruno Haible  <bruno@clisp.org>
42131
42132         Merge from GNU gettext 0.15.
42133
42134         2005-07-05  Bruno Haible  <bruno@clisp.org>
42135
42136                 * printf-args.c (printf_fetchargs): Work around broken
42137                 definition of wint_t on mingw.
42138
42139         2005-02-12  Bruno Haible  <bruno@clisp.org>
42140
42141                 * xallocsa.h: Add extern "C" for C++.
42142
42143         2006-05-17  Bruno Haible  <bruno@clisp.org>
42144
42145                 Cygwin portability.
42146                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
42147
42148         2006-04-30  Bruno Haible  <bruno@clisp.org>
42149
42150                 * progreloc.c: Include <mach-o/dyld.h> if available.
42151                 (find_executable): Use _NSGetExecutablePath when possible.
42152
42153         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42154
42155                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
42156                 function.
42157
42158         2005-12-29  Bruno Haible  <bruno@clisp.org>
42159
42160                 * progreloc.c (set_program_name_and_installdir): Fix
42161                 compilation error.
42162
42163         2005-12-04  Bruno Haible  <bruno@clisp.org>
42164
42165                 Cygwin portability.
42166                 * progreloc.c: Include <windows.h> also on Cygwin.
42167                 (find_executable): Add support for Cygwin.
42168                 (set_program_name_and_installdir): Handle also platforms with
42169                 nonempty EXEEXT.
42170
42171         2006-07-11  Bruno Haible  <bruno@clisp.org>
42172
42173                 * javacomp.c: Fix a comment.
42174                 Reported by Jim Meyering.
42175
42176         2006-04-30  Bruno Haible  <bruno@clisp.org>
42177
42178                 * javacomp.h (compile_java_class): Add source_version,
42179                 target_version arguments.
42180                 * javacomp.c: Rewritten to choose only a compiler that
42181                 respects the specified source_version and target_version.
42182
42183         2006-06-27  Bruno Haible  <bruno@clisp.org>
42184
42185                 Assume correct S_ISDIR macro.
42186                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
42187
42188         2006-07-22  Bruno Haible  <bruno@clisp.org>
42189
42190                 * javaversion.h: New file, from GNU gettext.
42191                 * javaversion.c: New file, from GNU gettext.
42192                 * javaversion.java: New file, from GNU gettext.
42193                 * javaversion.class: New file, from GNU gettext.
42194
42195         2006-05-17  Bruno Haible  <bruno@clisp.org>
42196
42197                 Cygwin portability.
42198                 * javaexec.c (execute_java_class): Test for jview program
42199                 also on Cygwin.
42200
42201         2006-04-09  Bruno Haible  <bruno@clisp.org>
42202
42203                 * fatal-signal.c: Don't include string.h.
42204                 (at_fatal_signal): Use a copying loop instead of memcpy.
42205
42206         2005-12-04  Bruno Haible  <bruno@clisp.org>
42207
42208                 * csharpexec.c: Add support for 'clix' launcher (untested).
42209                 (execute_csharp_using_sscli): New function.
42210                 (execute_csharp_program): Call it.
42211
42212         2006-06-21  Bruno Haible  <bruno@clisp.org>
42213
42214                 Avoid warnings from recent versions of mcs.
42215                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
42216                 -o, -L, -r any more. Use options documented since mcs-1.0
42217                 instead. Similarly for -g.
42218
42219         2005-07-09  Bruno Haible  <bruno@clisp.org>
42220
42221                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
42222                 add a .dll suffix.
42223                 Reported by Mark Junker <mjscod@gmx.de>.
42224
42225         2006-06-17  Bruno Haible  <bruno@clisp.org>
42226
42227                 * config.charset: Update for NetBSD 3.0.
42228
42229         2006-05-17  Bruno Haible  <bruno@clisp.org>
42230
42231                 Cygwin portability.
42232                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
42233
42234         2006-05-16  Bruno Haible  <bruno@clisp.org>
42235
42236                 * localcharset.c [CYGWIN]: Include <windows.h>.
42237                 (get_charset_aliases): For Cygwin, return the same CPxxx
42238                 aliases list as under WIN32.
42239                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
42240                 the environment variables. Fall back to GetACP().
42241
42242         2006-04-05  Bruno Haible  <bruno@clisp.org>
42243
42244                 * config.charset: Update Juan Manuel Guerrero's address.
42245
42246         2005-02-12  Bruno Haible  <bruno@clisp.org>
42247
42248                 * allocsa.h: Add extern "C" for C++.
42249
42250         2005-02-10  Bruno Haible  <bruno@clisp.org>
42251
42252                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
42253                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
42254
42255         2006-07-22  Bruno Haible  <bruno@clisp.org>
42256
42257                 * gettext.h: Update to GNU gettext-0.15.
42258
42259 2006-07-22  Bruno Haible  <bruno@clisp.org>
42260
42261         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
42262         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
42263         lib-prefix.m4, longdouble.m4, ssize_t.m4.
42264
42265 2006-07-21  Eric Blake  <ebb9@byu.net>
42266
42267         * modules/stdlib-safer: New file.
42268         * MODULES.html.sh (File stream based Input/Output): Add
42269         stdlib-safer.
42270
42271 2006-07-21  Eric Blake  <ebb9@byu.net>
42272
42273         * lib/stdlib-safer.h: New file from coreutils, required by
42274         stdlib--.h.
42275
42276 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
42277
42278         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
42279
42280 2006-07-20  Bruno Haible  <bruno@clisp.org>
42281
42282         * gnulib-tool: Recognize new option --assume-autoconf.
42283         (autoconf_minversion): New variable.
42284         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
42285
42286 2006-07-20  Bruno Haible  <bruno@clisp.org>
42287
42288         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
42289
42290 2006-07-19  Derek R. Price  <derek@ximbiot.com>
42291
42292         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
42293         Reindent and repaginate.
42294
42295 2006-07-19  Derek Price  <derek@ximbiot.com>
42296
42297         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
42298         Correct grammar.
42299
42300 2006-07-17  Bruno Haible  <bruno@clisp.org>
42301
42302         * modules/list: New file.
42303         * modules/array-list: New file.
42304         * modules/carray-list, modules/carray-list-tests: New files.
42305         * modules/linked-list, modules/linked-list-tests: New files.
42306         * modules/avltree-list, modules/avltree-list-tests: New files.
42307         * modules/rbtree-list, modules/rbtree-list-tests: New files.
42308         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
42309         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
42310         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
42311         * modules/oset: New file.
42312         * modules/array-oset: New file.
42313         * modules/avltree-oset, modules/avltree-oset-tests: New files.
42314         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
42315         * tests/test-carray_list.c: New file.
42316         * tests/test-linked_list.c: New file.
42317         * tests/test-avltree_list.c: New file.
42318         * tests/test-rbtree_list.c: New file.
42319         * tests/test-linkedhash_list.c: New file.
42320         * tests/test-avltreehash_list.c: New file.
42321         * tests/test-rbtreehash_list.c: New file.
42322         * tests/test-avltree_oset.c: New file.
42323         * tests/test-rbtree_oset.c: New file.
42324         * MODULES.html.sh (Container data structures): New section.
42325
42326 2006-07-17  Bruno Haible  <bruno@clisp.org>
42327
42328         * m4/gl_list.m4: New file.
42329
42330 2006-07-17  Bruno Haible  <bruno@clisp.org>
42331
42332         * lib/gl_list.h: New file.
42333         * lib/gl_list.c: New file.
42334         * lib/gl_array_list.h: New file.
42335         * lib/gl_array_list.c: New file.
42336         * lib/gl_carray_list.h: New file.
42337         * lib/gl_carray_list.c: New file.
42338         * lib/gl_linked_list.h: New file.
42339         * lib/gl_linked_list.c: New file.
42340         * lib/gl_anylinked_list1.h: New file.
42341         * lib/gl_anylinked_list2.h: New file.
42342         * lib/gl_avltree_list.h: New file.
42343         * lib/gl_avltree_list.c: New file.
42344         * lib/gl_anyavltree_list1.h: New file.
42345         * lib/gl_anyavltree_list2.h: New file.
42346         * lib/gl_rbtree_list.h: New file.
42347         * lib/gl_rbtree_list.c: New file.
42348         * lib/gl_anyrbtree_list1.h: New file.
42349         * lib/gl_anyrbtree_list2.h: New file.
42350         * lib/gl_anytree_list1.h: New file.
42351         * lib/gl_anytree_list2.h: New file.
42352         * lib/gl_linkedhash_list.h: New file.
42353         * lib/gl_linkedhash_list.c: New file.
42354         * lib/gl_anyhash_list1.h: New file.
42355         * lib/gl_anyhash_list2.h: New file.
42356         * lib/gl_avltreehash_list.h: New file.
42357         * lib/gl_avltreehash_list.c: New file.
42358         * lib/gl_rbtreehash_list.h: New file.
42359         * lib/gl_rbtreehash_list.c: New file.
42360         * lib/gl_anytreehash_list1.h: New file.
42361         * lib/gl_anytreehash_list2.h: New file.
42362
42363         * lib/gl_oset.h: New file.
42364         * lib/gl_oset.c: New file.
42365         * lib/gl_array_oset.h: New file.
42366         * lib/gl_array_oset.c: New file.
42367         * lib/gl_avltree_oset.h: New file.
42368         * lib/gl_avltree_oset.c: New file.
42369         * lib/gl_rbtree_oset.h: New file.
42370         * lib/gl_rbtree_oset.c: New file.
42371         * lib/gl_anytree_oset.h: New file.
42372
42373 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42374
42375         * m4/mkancesdirs.m4: New file.
42376         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
42377         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
42378         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
42379         it.
42380
42381 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42382
42383         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
42384         * lib/mkancesdirs.h: New files.
42385         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
42386         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
42387         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
42388         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
42389         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
42390         callers changed.  Revamp internals significantly, by not
42391         attempting to create directories that are temporarily more
42392         permissive than the final results.  Do not attempt to use
42393         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
42394         This removes some race conditions, fixes some bugs, and simplifies
42395         things.  Use new dirchownmod function to do owner and mode changes.
42396         * lib/mkdir-p.h: Likewise.
42397         * lib/modechange.c (octal_to_mode): New function.
42398         (struct mode_change): New member mentioned.
42399         (make_node_op_equals): New arg mentioned.  All callers changed.
42400         (mode_compile): Keep track of which mode bits the user has explicitly
42401         mentioned.
42402         (mode_adjust): New arg DIR, so that we implement the X op correctly.
42403         New arg PMODE_BITS, to keep track of which mode bits the user
42404         mentioned; it treats S_ISUID and S_ISGID speciall.
42405         All callers changed.
42406         * lib/modechange.h: Likewise.
42407
42408 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42409
42410         * MODULES.html.sh: Add mkancestors.
42411         * modules/mkancesdirs: New module.
42412         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
42413         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
42414         The chdir-safer and afs files are now orphans; I'll remove them
42415         unless someone speaks up.
42416         Add lib/dirchownmod.c, lib/dirchownmod.h.
42417         (Depends-on): Remove alloca, chown, save-cwd, dirname.
42418         Add lchown, mkancesdirs.
42419         (Maintainer): Add self.
42420
42421 2006-07-15  Karl Berry  <karl@gnu.org>
42422
42423         * gnulib-tool: help message wording/arrangement.
42424
42425 2006-07-14  Simon Josefsson  <jas@extundo.com>
42426
42427         * doc/gnulib.texi (Libtool and Windows): New section.
42428
42429 2006-07-12  Simon Josefsson  <jas@extundo.com>
42430
42431         * modules/gendocs (License): Fix license, approved by Karl.
42432
42433 2006-07-12  Eric Blake  <ebb9@byu.net>
42434
42435         * MODULES.html.sh: Add gendocs.
42436
42437 2006-07-11  Eric Blake  <ebb9@byu.net>
42438
42439         * modules/fdl: New module, to install doc/fdl.texi.
42440         * MODULES.html.sh: Add new section for documentation modules.
42441         * gnulib-tool: Avoid space-tab.
42442         (--doc-base): New option, to manage files from doc.
42443
42444 2006-07-11  Eric Blake  <ebb9@byu.net>
42445
42446         * m4/absolute-header.m4: Fix comments to match recent change.
42447
42448 2006-07-11  Eric Blake  <ebb9@byu.net>
42449
42450         * gnulib-tool: List --doc-base before --tests-base.
42451
42452 2006-07-11  Derek R. Price  <derek@ximbiot.com>
42453
42454         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
42455
42456 2006-07-11  Bruno Haible  <bruno@clisp.org>
42457
42458         * README: Mention where to put documentation.
42459
42460 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42461
42462         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
42463
42464 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
42465
42466         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
42467         to stdint.m4.
42468
42469 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
42470
42471         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
42472         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
42473         "no/such/file/stdint.h" when there is no such file, so that
42474         the resulting C code can be parsed by dodgy compilers.
42475         Problems reported by Bob Proulx.
42476
42477 2006-07-10  Derek R. Price  <derek@ximbiot.com>
42478
42479         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
42480         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
42481         macros into the GNU _D_EXACT_NAMLEN.
42482         * lib/savedir.c:  Likewise.
42483         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
42484
42485 2006-07-10  Derek R. Price  <derek@ximbiot.com>
42486         and Paul Eggert  <eggert@cs.ucla.edu>
42487
42488         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
42489         * m4/savedir.m4:
42490         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
42491         macros into the GNU _D_EXACT_NAMLEN.
42492
42493 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42494
42495         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
42496         around the absolute name, to work around a problem with the HP-UX
42497         11.23 native C compiler, reported by Bob Proulx.
42498
42499 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42500
42501         * doc/maintain.texi, make-stds.texi: Sync from
42502         <http://savannah.gnu.org/projects/gnustandards>.
42503
42504 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42505
42506         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
42507
42508 2006-07-09  Jim Meyering  <jim@meyering.net>
42509
42510         * m4/glob.m4: Remove a doubled word in a comment.
42511
42512 2006-07-09  Jim Meyering  <jim@meyering.net>
42513
42514         * lib/argp-pv.c: Remove a doubled word in a comment.
42515         * lib/check-version.c (check_version): Likewise.
42516         * lib/javacomp.c (compile_java_class): Likewise.
42517
42518 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
42519
42520         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
42521         for the benefit of people using Autoconf 2.60.  If you want to
42522         support older Autoconf versions you can copy m4/onceonly_2_57.m4
42523         (or m4/onceonly.m4, if pre-2.57) manually.
42524
42525 2006-07-08  Jim Meyering  <jim@meyering.net>
42526
42527         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
42528         comment.
42529         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
42530         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
42531         comment.
42532
42533 2006-07-08  Jim Meyering  <jim@meyering.net>
42534
42535         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
42536
42537 2006-07-07  Simon Josefsson  <jas@extundo.com>
42538
42539         * tests/test-crc.c: Change expected crc value, the test vector
42540         were probably computed using the old broken crc.c?
42541
42542 2006-07-06  Simon Josefsson  <jas@extundo.com>
42543
42544         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
42545         now the canonical place for the M4 file).
42546
42547         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
42548         from the sys_socket dependency now.
42549
42550         * modules/inet_pton (Files): Ditto.
42551
42552         * modules/inet_ntop (Files): Ditto.
42553
42554 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
42555
42556         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
42557         not gl_PREREQ_GETUSERSHELL.
42558
42559 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42560
42561         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
42562         with only one argument, for Autoconf 2.60.
42563         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
42564         expand to nothing, so add a shell command to avoid syntax error.
42565         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
42566
42567 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42568
42569         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
42570
42571 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42572
42573         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
42574         no longer needed.  Check for isblank decl.
42575         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
42576         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
42577         of existence.
42578
42579 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42580
42581         * lib/getloadavg.c: Use __VMS, not VMS.
42582         * lib/getopt.c: Likewise.
42583         * lib/getpagesize.h: Likewise.
42584         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
42585         and probably does not work.
42586
42587 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42588
42589         * lib/.cppi-disable: Add wcwidth.
42590         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
42591         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
42592         (ISGRAPH): Remove.  All uses changed to isgraph.
42593         (FOLD) [!defined _LIBC]: Remove special case.
42594         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
42595         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
42596         HAVE_ISBLANK.
42597         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
42598         case.
42599
42600 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
42601
42602         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
42603         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
42604         brackets.  Other minor changes to suppress some compiler
42605         warnings.
42606
42607 2006-07-06  Derek R. Price  <derek@ximbiot.com>
42608         and Paul Eggert  <eggert@cs.ucla.edu>
42609
42610         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
42611         of invoking obsolescent AC_HEADER_DIRENT macro.
42612         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
42613         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
42614         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42615         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
42616         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
42617         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42618         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
42619         * m4/readdir.m4: Remove; no longer needed.
42620
42621 2006-07-06  Derek R. Price  <derek@ximbiot.com>
42622         and Paul Eggert  <eggert@cs.ucla.edu>
42623
42624         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
42625         Don't worry about this obsolete case any more.
42626         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
42627         directories.
42628         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
42629         worry about this obsolete case any more.
42630         * lib/fts.c: Likewise.
42631         * lib/getcwd.c: Likewise.
42632         * lib/glob.h: Likewise.
42633         * lib/savedir.c: Likewise.
42634
42635 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42636
42637         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
42638         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
42639         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
42640         needed.
42641         All uses removed.
42642         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42643         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42644         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
42645         needed.
42646         * m4/getdate.m4 (gl_GETDATE): Likewise.
42647         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42648         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42649         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42650         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42651         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42652         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42653         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
42654         needed.
42655
42656 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42657
42658         * lib/memcasecmp.c: Include <limits.h>.
42659         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
42660         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
42661         Don't assume isdigit succeeds only on '0' through '9'.
42662
42663 2006-07-05  Eric Blake  <ebb9@byu.net>
42664
42665         * modules/getaddrinfo (Depends-on): Add snprintf.
42666
42667 2006-07-05  Eric Blake  <ebb9@byu.net>
42668
42669         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
42670         to avoid 'header present but could not be compiled' on cygwin.
42671
42672 2006-07-05  Eric Blake  <ebb9@byu.net>
42673
42674         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
42675         missing from netdb.h.
42676         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
42677
42678 2006-07-05  Derek R. Price  <derek@ximbiot.com>
42679
42680         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
42681         no longer needed.
42682         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
42683         * m4/getdate.m4 (gl_GETDATE): Likewise.
42684         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42685         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42686         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42687         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42688         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42689
42690 2006-07-05  Derek R. Price  <derek@ximbiot.com>
42691
42692         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
42693         All uses of is_space replaced by isspace.
42694         * lib/exit.h: Don't talk about STDC_HEADERS.
42695         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
42696         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
42697         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
42698         replaced by isprint etc.
42699         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
42700         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42701         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
42702         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
42703         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
42704         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42705
42706 2006-07-05  Bruno Haible  <bruno@clisp.org>
42707
42708         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
42709         the function exists, before testing against AIX.
42710         Reported by Martin Lambers <marlam@marlam.de>.
42711
42712 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
42713
42714         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
42715         From Mark D. Baushke.
42716
42717 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
42718
42719         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
42720         to the absolute name, not just one, to bypass Sun C 5.8's
42721         "warning: #include of /usr/include/... may be non-portable".
42722
42723 2006-07-04  Eric Blake  <ebb9@byu.net>
42724
42725         * modules/dirname-tests: New test module.
42726         * tests/test-dirname.c: New file, replacing dirname.c
42727         TEST_DIRNAME section that was recently deleted.
42728
42729 2006-07-04  Bruno Haible  <bruno@clisp.org>
42730
42731         Assume ANSI C header files and <ctype.h> functions.
42732         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
42733         (mbsnwidth): Use isprint, iscntrl instead.
42734
42735 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42736
42737         Merge from coreutils.
42738         * MODULES.html.sh: Add xstrtold.
42739         * modules/xstrtold: New file.
42740         * modules/cycle-check (Files): Add lib/same-inode.h.
42741         * modules/dirname (Files): Add m4/double-slash-root.m4.
42742         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
42743         * modules/mkdir-p (Files): Add lib/same-inode.h.
42744         * modules/same (Files): Add lib/same-inode.h.
42745
42746 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42747
42748         * m4/absolute-header.m4: Renamed from full-header-path.m4.
42749         This is to keep the terminology clean; POSIX talks about
42750         "absolute pathnames", not "full pathnames", but the GNU
42751         Coding Standards say to use "path" for something else;
42752         so use "absolute" to keep both sides happy.
42753         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
42754         Set gl_absolute_header, not gl_full_header_path.
42755         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
42756         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
42757         All uses changed.
42758
42759         Merge from coreutils.
42760
42761         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
42762
42763         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
42764         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
42765         want to require the building of c-strtod.o.
42766         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
42767         needs -lm directly.
42768         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
42769
42770         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
42771
42772         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
42773         --as-needed option if available.  Problem reported by Albert Chin in
42774         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
42775         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
42776         cc merely issues a bunch of annoying warnings for --as-needed
42777         (this problem was reported by Bob Proulx).  Also, try linking with
42778         -lm to detect a bug in binutils 2.16 (this problem was reported
42779         by Ralf Wildenhues).
42780
42781         2006-06-18  Jim Meyering  <jim@meyering.net>
42782
42783         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
42784         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
42785         macro.
42786         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
42787         also check for glibc-2.4's abort-inducing bug.
42788
42789         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
42790         Low-probability clean-up should be to use rmdir to get rid of
42791         the just-created directory, not unlink.
42792
42793         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
42794         configure fail, and request a bug report to inform us about it.
42795         Add a comment that, barring reports to the contrary, in 2007 we'll
42796         assume ftruncate is universally available.
42797
42798         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
42799
42800         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
42801
42802         2006-03-12  Jim Meyering  <jim@meyering.net>
42803
42804         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
42805         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
42806         * m4/same.m4 (gl_SAME): Likewise.
42807         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
42808
42809         2006-03-11  Eric Blake  <ebb9@byu.net>
42810
42811         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
42812         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
42813         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
42814         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
42815
42816 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42817
42818         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
42819         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
42820         reported by Mark D. Baushke, one in
42821         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
42822
42823         Merge from coreutils.
42824
42825         * lib/.cppi-disable: Add stdint_.h.
42826         * lib/.cvsignore: Add stdint.h.
42827
42828         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
42829
42830         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
42831         both double and long double versions.
42832         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
42833         * lib/xstrtold.c: New file.
42834         * lib/xstrtod.h (xstrtold): New decl.
42835
42836         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
42837
42838         * lib/filemode.c (setst): Remove.
42839         (strmode): Rewrite to avoid setst.  This makes the code shorter,
42840         (arguably) clearer, and the generated code is a bit smaller on my
42841         Debian GNU/Linux stable x86 host.
42842
42843         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
42844
42845         * lib/filemode.c: Include "filemode.h" first, to test the interface.
42846         Assume that filemode.h includes sys/types.h and sys/stat.h.
42847         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
42848         (ftypelet): Reorder to put common cases first, for efficiency.
42849         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
42850         to do 'M'.
42851         (strmode): Renamed from mode_string, and now stores 12 bytes instead
42852         of 10, for compatibility with FreeBSD.  All callers changed.
42853         (filemodestring): Now stores 12 bytes instead of 10, and sets file
42854         types that can't be deduced solely from st_mode.  First arg is now a
42855         const pointer.
42856         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
42857         (strmode): Renamed from mode_string.
42858         (filemodestring): New decl.
42859         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
42860         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
42861         needed.
42862         (S_ISPORT, S_ISWHT): New macros, if not already defined.
42863
42864         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
42865
42866         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
42867         fsusage.h now does that.  Include fsusage.h first, to test interface.
42868         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
42869         at most one method (the old code could have generated decls that
42870         didn't conform to C89, not that this was ever exercised).
42871         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
42872
42873         2006-03-19  Jim Meyering  <jim@meyering.net>
42874
42875         Work even in a chroot where d_ino values for entries in "/"
42876         don't match the stat.st_ino values for the same names.
42877         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
42878         number, iterate through all entries again, using lstat instead.
42879         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
42880         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
42881
42882         * lib/getcwd.c (__getcwd): Clarify a comment.
42883         Use memcpy in place of a call to strcpy.
42884
42885         2006-03-12  Jim Meyering  <jim@meyering.net>
42886
42887         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
42888         matches that of the current directory (which we're about to chdir ".."
42889         out of), then save the dev-ino of the parent, instead.
42890
42891         * lib/same-inode.h (SAME_INODE): New file/macro.
42892         * lib/chdir-safer.c (SAME_INODE): Remove definition.
42893         Include "same-inode.h", instead.
42894         * lib/same.c: Likewise.
42895         * lib/cycle-check.h: Include "same-inode.h".
42896         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
42897         * lib/cycle-check.c (SAME_INODE): Remove definition.
42898         * lib/root-dev-ino.h: Include "same-inode.h".
42899
42900         2006-03-11  Eric Blake  <ebb9@byu.net>
42901
42902         * lib/same.c (same_name): s/base_name/last_component/
42903         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
42904         * lib/filenamecat.c (file_name_concat): Likewise.
42905
42906         2006-03-11  Eric Blake  <ebb9@byu.net>,
42907                     Paul Eggert  <eggert@cs.ucla.edu>
42908
42909         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
42910         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
42911         drive prefix.
42912         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
42913         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
42914         (last_component): New method.
42915         * lib/dirname.c (dir_len): Determine when drive letters need a
42916         subsequent slash.  Preserve // when it is special.
42917         (dir_name): Don't append dot when drive letter is absolute.
42918         [TEST_DIRNAME]: Move into a full-blown gnulib test.
42919         * lib/basename.c (base_name): New semantics - malloc the result.
42920         Preserve // when it is special.  Preserve relative files that look
42921         like drive letters.
42922         (base_len): Preserve // when it is special.
42923         (last_component): New method, similar to old base_name semantics.
42924         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
42925         base_name.  Strip redundant slashes from ///.
42926
42927 2006-07-03  Jim Meyering  <jim@meyering.net>
42928
42929         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
42930         macro is used before the first cycle_check call.
42931
42932 2006-07-03  Eric Blake  <ebb9@byu.net>
42933
42934         * modules/dirname (Depends-on): Add xstrndup.
42935
42936 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42937
42938         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
42939         test cases, so that config.log is a bit easier to follow.
42940
42941 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42942
42943         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
42944         both are 64 bits, since this seems to be the tradition, and this
42945         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
42946         we ever run into a host that prefers long long to long in this
42947         case, we'll need another configure-time test.  Problem reported by
42948         Jim Meyering.
42949
42950 2006-07-02  Eric Blake  <ebb9@byu.net>
42951
42952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
42953
42954 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42955
42956         * modules/inttypes (Depends-on): No longer depends on stdint.
42957         * modules/stdint (Description): Say more about assumptions.
42958         Say that the fast types might differ.  Say macros are used.
42959         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
42960         (Makefile.am): Revise list of substituted symbols to match
42961         new stdint.m4.
42962         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
42963         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
42964         * tests/test-stdint.c (verify_same_types)
42965         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
42966         the code conforms to C99/C89.
42967         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
42968         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
42969
42970 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42971
42972         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
42973         but fix a bug, by requiring at least 64 bits.
42974         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42975         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
42976         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
42977         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
42978
42979         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
42980         changes.  Make 2.59 a prerequisite.  Check and substitute for
42981         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
42982         inttypes.h.  Do not use special include files; just use the
42983         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
42984         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
42985         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
42986         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
42987         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
42988         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
42989         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
42990         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
42991         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
42992         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
42993         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
42994         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
42995         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
42996         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
42997         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
42998         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
42999         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
43000         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
43001         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
43002         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
43003         WINT_MAX.  Check for C99 conformance more strictly, by detecting
43004         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
43005         not check for things that C99 does not require, e.g., int8_t.  If
43006         a test isn't needed unless <stdint.h> isn't working, and is
43007         unlikely to be needed for any other reason, then don't do it
43008         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
43009         size_t, since we assume C89 freestanding at least.  Do not check
43010         for sig_atomic_t, wchar_t, or wint_t, since the code now does
43011         the right thing even if the types are not defined.  Instead use:
43012         (gl_STDINT_TYPE_PROPERTIES): New macro.
43013         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
43014         testing whether <sys/types.h> clashes, as Autoconf does this for
43015         us now.  All uses removed.
43016         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
43017         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
43018         (gl_CHECK_TYPE_SAME):
43019         Remove; no longer needed.
43020         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
43021         exists, since we'll return 0 anyway in that case.
43022         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
43023
43024 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
43025
43026         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
43027         possible collision with system files.
43028         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
43029         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
43030         WCHAR_MIN and WCHAR_MAX in this case.
43031         (<stddef.h>): Do not include; no longer needed.
43032         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
43033         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
43034         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
43035         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
43036         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
43037         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
43038         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
43039         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
43040         !defined(__c99))]: Include in this case too, since it's harmless
43041         now.
43042         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
43043         dangerous to do so.
43044         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
43045         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
43046         (_STDINT_MIN, _STDINT_MAX): New macros.
43047         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
43048         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
43049         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
43050         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
43051         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
43052         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
43053         macros, not typedefs; this simplifies things quite a bit.
43054         Use long int for all types narrower than int64_t.
43055         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
43056         Define in terms of long long int or int64_t or long int,
43057         not int64_t or int32_t.  This saves some compile-time testing.
43058         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
43059         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
43060         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
43061         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
43062         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
43063         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
43064         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
43065         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
43066         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
43067         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
43068         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
43069         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
43070         undef any previous version and define our own version, for
43071         simplicity and consistency with the new macros for types.
43072         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
43073         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
43074         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
43075         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
43076         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
43077         @WINT_T_SUFFIX@ to keep things simple here.
43078         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
43079         Simplify by assuming typical 8/16/32/64 host, since we're
43080         already doing that elsewhere anyway.
43081         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
43082         and assume long long int is 64 bits if available.  This
43083         speeds up 'configure'.
43084
43085 2006-07-01  Eric Blake  <ebb9@byu.net>
43086
43087         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
43088         Reported by Andreas Buening.
43089
43090 2006-07-01  Eric Blake  <ebb9@byu.net>
43091
43092         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
43093
43094 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
43095
43096         * lib/getaddrinfo.c: fixed typo
43097
43098 2006-06-29  Jim Meyering  <jim@meyering.net>
43099
43100         * modules/strftime (Maintainer): Add my name, since with the
43101         FPRINTFTIME changes strftime.c has forked from glibc.
43102
43103 2006-06-29  Eric Blake  <ebb9@byu.net>
43104
43105         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
43106
43107 2006-06-29  Eric Blake  <ebb9@byu.net>
43108
43109         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
43110
43111 2006-06-29  Eric Blake  <ebb9@byu.net>
43112
43113         * lib/stat_.h: New file.
43114
43115 2006-06-29  Eric Blake  <ebb9@byu.net>
43116
43117         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
43118         unused static function.
43119
43120 2006-06-29  Eric Blake  <ebb9@byu.net>
43121
43122         * doc/functions.texi (Function Portability): Document missing lstat
43123         on mingw.
43124
43125 2006-06-29  Eric Blake  <ebb9@byu.net>
43126
43127         * MODULES.html.sh: Add sys_stat.
43128         * modules/sys_stat: New module.
43129         * modules/mkstemp (Depends-on): Add sys_stat.
43130
43131 2006-06-29  Derek R. Price  <derek@ximbiot.com>
43132
43133         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
43134
43135 2006-06-29  Derek R. Price  <derek@ximbiot.com>
43136
43137         * m4/c-bs-a.m4: Removed.
43138
43139 2006-06-29  Derek R. Price  <derek@ximbiot.com>
43140
43141         * lib/strftime.c: Assume strftime() exists.
43142
43143 2006-06-29  Derek Price  <derek@ximbiot.com>
43144
43145         * modules/c-bs-a: Removed - \a is C89.
43146         * MODULES.html.sh: Remove c-bs-a.
43147
43148 2006-06-29  Bruno Haible  <bruno@clisp.org>
43149
43150         * modules/wcwidth (License): Change to LGPL.
43151
43152 2006-06-28  Simon Josefsson  <jas@extundo.com>
43153
43154         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
43155         on _WIN32.
43156
43157         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
43158         getnameinfo.
43159
43160 2006-06-28  Simon Josefsson  <jas@extundo.com>
43161
43162         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
43163
43164 2006-06-28  Simon Josefsson  <jas@extundo.com>
43165
43166         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
43167         functions there.  It will succeed on Windows XP, but on Windows
43168         2000 and (presumably) earlier, it will fail, and use the internal
43169         re-implementation.
43170         (use_win32_p): New function.
43171         (getaddrinfo): Use strtoul on servname, to support numeric ports.
43172         Support AI_NUMERICSERV to disable getservbyname.
43173         (getnameinfo): New function, only supports
43174         NI_NUMERICHOST|NI_NUMERICSERV for now.
43175
43176         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
43177         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
43178         getnameinfo.
43179
43180 2006-06-28  Eric Blake  <ebb9@byu.net>
43181
43182         * modules/wcwidth: New file.
43183         * modules/mbchar (Depends-on): Add wcwidth.
43184         * modules/mbswidth (Depends-on): Add wcwidth.
43185         * MODULES.html.sh: Add wcwidth.
43186
43187 2006-06-28  Eric Blake  <ebb9@byu.net>
43188
43189         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
43190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
43191
43192 2006-06-28  Eric Blake  <ebb9@byu.net>
43193
43194         * lib/xvasprintf.h: Fix comments.
43195
43196 2006-06-28  Eric Blake  <ebb9@byu.net>
43197
43198         * lib/mbchar.h (wcwidth): Include wcwidth.h.
43199         * lib/mbswidth.c (wcwidth): Move from here...
43200         * lib/wcwidth.h: ...to this new file.
43201
43202 2006-06-28  Derek R. Price  <derek@ximbiot.com>
43203
43204         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
43205
43206         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
43207         it's obsolete.
43208         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
43209
43210 2006-06-28  Derek R. Price  <derek@ximbiot.com>
43211
43212         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
43213         Autoconf 2.60 says this stuff was obsolete.
43214
43215 2006-06-28  Bruno Haible  <bruno@clisp.org>
43216
43217         * modules/wcwidth (Files): Add m4/wchar_t.m4.
43218
43219 2006-06-28  Bruno Haible  <bruno@clisp.org>
43220
43221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
43222         gt_TYPE_WCHAR_T.
43223
43224 2006-06-28  Bruno Haible  <bruno@clisp.org>
43225
43226         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
43227         declaration for wcwidth.
43228         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
43229
43230 2006-06-28  Bruno Haible  <bruno@clisp.org>
43231
43232         * lib/mkdtemp.c [MINGW]: Include <io.h>.
43233         (mkdir): Define using _mkdir.
43234
43235 2006-06-28  Bruno Haible  <bruno@clisp.org>
43236
43237         * lib/getaddrinfo.h: Fix POSIX URL.
43238         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
43239         _WIN32.
43240         (use_win32_p): Make static.
43241         (getaddrinfo): Reject service name if it is empty or does not consist
43242         solely of decimal digits, or if its value is > 65535.
43243         (getnameinfo): Remove useless casts.
43244
43245 2006-06-27  Simon Josefsson  <jas@extundo.com>
43246
43247         * modules/sys_select: New file, suggested by Bruno Haible, Paul
43248         Eggert and Martin Lambers.
43249
43250 2006-06-27  Simon Josefsson  <jas@extundo.com>
43251
43252         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
43253         Eggert and Martin Lambers.
43254
43255 2006-06-27  Bruno Haible  <bruno@clisp.org>
43256
43257         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
43258         result to 0, not to empty.
43259         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
43260
43261 2006-06-27  Bruno Haible  <bruno@clisp.org>
43262
43263         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
43264
43265 2006-06-26  Simon Josefsson  <jas@extundo.com>
43266
43267         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
43268         present.
43269
43270 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
43271
43272         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
43273         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
43274         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
43275
43276 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
43277
43278         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
43279
43280 2006-06-26  Bruno Haible  <bruno@clisp.org>
43281
43282         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
43283
43284 2006-06-26  Bruno Haible  <bruno@clisp.org>
43285
43286         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
43287
43288 2006-06-26  Bruno Haible  <bruno@clisp.org>
43289
43290         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
43291         SGI C compiler in pre-C99 mode.
43292         Suggested by Mark D. Baushke and Larry Jones.
43293
43294 2006-06-26  Bruno Haible  <bruno@clisp.org>
43295
43296         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
43297         WCHAR_MAX.
43298         Reported by Mark D. Baushke and Larry Jones.
43299
43300 2006-06-26  Bruno Haible  <bruno@clisp.org>
43301
43302         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
43303         in pre-C99 mode.
43304         Suggested by Mark D. Baushke and Larry Jones.
43305
43306 2006-06-23  Simon Josefsson  <jas@extundo.com>
43307             Bruno Haible  <bruno@clisp.org>
43308
43309         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
43310         Emit mostlyclean-local rule.
43311         (func_emit_tests_Makefile_am): Likewise.
43312         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
43313
43314 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
43315
43316         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
43317
43318 2006-06-23  Bruno Haible  <bruno@clisp.org>
43319
43320         * tests/test-stdint.c: Update to match ISO C 99 Technical
43321         Corrigendum 1.
43322
43323 2006-06-23  Bruno Haible  <bruno@clisp.org>
43324
43325         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
43326
43327 2006-06-23  Bruno Haible  <bruno@clisp.org>
43328
43329         * lib/stdint_.h: Treat IRIX like OpenBSD.
43330
43331 2006-06-23  Bruno Haible  <bruno@clisp.org>
43332
43333         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
43334         ISO C 99 Technical Corrigendum 1.
43335
43336 2006-06-22  Simon Josefsson  <jas@extundo.com>
43337
43338         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
43339         MinGW.
43340
43341 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43342
43343         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
43344         needed.  Some compiler complained about some of them.  Problem reported
43345         by Larry Jones in
43346         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
43347
43348 2006-06-21  Simon Josefsson  <jas@extundo.com>
43349
43350         * tests/test-getaddrinfo.c: New file.
43351
43352         * modules/getaddrinfo-tests: New file.
43353
43354         * MODULES.html.sh: Add inet_pton.
43355
43356         * modules/inet_pton: New file.
43357
43358 2006-06-21  Simon Josefsson  <jas@extundo.com>
43359
43360         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
43361         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
43362         of using the (limited) gnulib implementation on Windows XP.
43363
43364         * m4/inet_pton.m4: New file.
43365
43366 2006-06-21  Simon Josefsson  <jas@extundo.com>
43367
43368         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
43369         variable.
43370
43371         * lib/socket_.h: Don't define WINVER.
43372
43373         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
43374         slightly modified to work in gnulib.
43375
43376 2006-06-21  Simon Josefsson  <jas@extundo.com>
43377
43378         * doc/gnulib.texi (Windows sockets): Add.
43379
43380 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
43381
43382         * lib/read-file.c (fread_file): Start with buffer allocation of
43383         0 bytes rather than 1 byte; this simplifies the code.
43384         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
43385         code to free buffer and save/restore errno.
43386         (internal_read_file): Remove unused local.
43387
43388 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43389
43390         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
43391         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
43392         Problem reported by Denis Excoffier in
43393         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
43394
43395 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43396
43397         * modules/sys_socket, modules/socklen: Include sys/types since
43398         FreeBSD 4.x's sys/socket.h needs it.
43399
43400 2006-06-19  Simon Josefsson  <jas@extundo.com>
43401
43402         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
43403
43404 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
43405
43406         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
43407
43408 2006-06-19  Bruno Haible  <bruno@clisp.org>
43409
43410         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
43411         and FULL_PATH_INTTYPES_H in angle brackets.
43412         Reported by Mark D. Baushke <mdb@gnu.org>.
43413
43414 2006-06-17  Eric Blake  <ebb9@byu.net>
43415
43416         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
43417         errno.
43418
43419 2006-06-17  Bruno Haible  <bruno@clisp.org>
43420
43421         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
43422         <sys/inttypes.h>.
43423
43424 2006-06-17  Bruno Haible  <bruno@clisp.org>
43425
43426         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
43427         whether errno is declared. Assume <errno.h> declares errno.
43428
43429 2006-06-17  Bruno Haible  <bruno@clisp.org>
43430
43431         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
43432
43433 2006-06-17  Bruno Haible  <bruno@clisp.org>
43434
43435         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
43436         problem on Solaris 2.5.1.
43437
43438 2006-06-16  Eric Blake  <ebb9@byu.net>
43439
43440         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
43441         * lib/unicodeio.c [!defined errno]: Likewise.
43442         * lib/strtol.c [!defined errno]: Likewise.
43443         * lib/strtod.c [!defined errno]: Likewise.
43444
43445 2006-06-15  Eric Blake  <ebb9@byu.net>
43446
43447         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
43448
43449 2006-06-15  Eric Blake  <ebb9@byu.net>
43450
43451         * config/srclist.txt (ssize_t.m4): Lose sync.
43452
43453 2006-06-15  Bruno Haible  <bruno@clisp.org>
43454
43455         * modules/stdint (Files): Include m4/full-header-path.m4,
43456         m4/size_max.m4, m4/wchar_t.m4.
43457         (Makefile.am): Many more substitutions.
43458         * modules/stdint-tests: New file.
43459         * tests/test-stdint.c: New file.
43460
43461 2006-06-15  Bruno Haible  <bruno@clisp.org>
43462
43463         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
43464         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
43465         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
43466         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
43467         gl_CHECK_TYPE_SAME): New macros.
43468
43469 2006-06-15  Bruno Haible  <bruno@clisp.org>
43470
43471         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
43472
43473 2006-06-15  Bruno Haible  <bruno@clisp.org>
43474
43475         * lib/stdint_.h: Rewritten to be fully auto-configured.
43476         Fixes bug on HP-UX/IA64.
43477
43478 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
43479
43480         * lib/getdate.y (__attribute__): Don't define if already defined.
43481         Problem reported by Larry Jones.
43482         * lib/utimens.c (__attribute__): Likewise.
43483
43484 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
43485
43486         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
43487         reported by Andreas Schwab.
43488
43489 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43490             Bruno Haible  <bruno@clisp.org>
43491
43492         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
43493         check for the declaration of strnlen and a run test that exposes the
43494         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
43495         rpl_strndup.
43496
43497 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43498             Bruno Haible  <bruno@clisp.org>
43499
43500         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
43501
43502 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43503
43504         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
43505         compile test, for Tru64 4.0D.
43506
43507 2006-05-28  Karl Berry  <karl@gnu.org>
43508
43509         * config/srclist.txt (printf-args.c): lose sync.
43510
43511 2006-05-26  Martin Lambers  <marlam@marlam.de>
43512
43513         * lib/getpass.c: Updates the test for the native W32 API, and adds
43514         missing includes, thus fixing compilation warnings.
43515
43516 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43517
43518         * lib/exclude.c (exclude_fnmatch): New function.
43519         (excluded_file_name): Call exclude_fnmatch.
43520         * lib/exclude.h (excluded_file_name): New prototype
43521
43522 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
43523
43524         * lib/tempname.c (small_open, large_open): New macros.
43525         (__open, __open64) [!_LIBC]: Remove.
43526         (__gen_tempname): Use small_open and large_open instead of __open
43527         and __open64.  This fixes a portability bug on HP-UX 11.11i
43528         reported by Simon Wing-Tang in
43529         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
43530
43531 2006-05-24  Bruno Haible  <bruno@clisp.org>
43532
43533         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
43534         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
43535         Reported by Thorsten Maerz <torte@netztorte.de> via
43536         Aaron Stone <aaron@serendipity.cx>.
43537
43538 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43539
43540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
43541         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
43542         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
43543         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
43544         not really conditional on the cache.
43545         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
43546
43547 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43548
43549         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
43550         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
43551         (my_usleep): Don't mishandle maximum value.
43552
43553 2006-05-19  Jim Meyering  <jim@meyering.net>
43554
43555         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
43556
43557 2006-05-17  Bruno Haible  <bruno@clisp.org>
43558
43559         Cygwin portability.
43560         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
43561
43562 2006-05-17  Bruno Haible  <bruno@clisp.org>
43563
43564         * lib/stdint_.h: Fix recognition of Cygwin.
43565
43566 2006-05-15  Bruno Haible  <bruno@clisp.org>
43567
43568         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
43569         on libtool patch by Ralf Wildenhues.
43570
43571 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43572
43573         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
43574         test for C99 conformance; (bool) 0.5 is an integer constant
43575         expression, but (bool) -0.5 is not.  Problem reported by Fedor
43576         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
43577
43578 2006-05-11  Simon Josefsson  <jas@extundo.com>
43579
43580         * m4/xvasprintf.m4: Fix obvious typo.
43581
43582 2006-05-11  Jim Meyering  <jim@meyering.net>
43583
43584         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
43585         James Lemley.
43586
43587 2006-05-10  Simon Josefsson  <jas@extundo.com>
43588
43589         * lib/md4.c: Typo fix, update copyright years.
43590         (K1, K2): Don't use L because it turn computations into 64-bit on
43591         64-bit platforms.
43592
43593 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
43594
43595         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
43596         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
43597         unwanted sign propagation, e.g., on hosts with 64-bit int.
43598         There still are some problems with reeelly weird theoretical hosts
43599         (e.g., 33-bit int) but it's not worth worrying about now.
43600         * lib/sha1.c (rol): Likewise.
43601         (K1, K2, K3, K4): Remove unnecessary L suffix.
43602
43603 2006-05-10  Bruno Haible  <bruno@clisp.org>
43604
43605         * lib/des.c: Cast to avoid warnings.
43606
43607 2006-05-09  Bruno Haible  <bruno@clisp.org>
43608
43609         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
43610         (Depends-on): Depend also on xsize, stdarg.
43611         (configure.ac): Add gl_XVASPRINTF.
43612
43613 2006-05-09  Bruno Haible  <bruno@clisp.org>
43614
43615         * m4/xvasprintf.m4: New file.
43616
43617 2006-05-09  Bruno Haible  <bruno@clisp.org>
43618
43619         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
43620         (EOVERFLOW): Define fallback value.
43621         (xstrcat): New function.
43622         (xvasprintf): Recognize the special case of a string concatenation.
43623
43624 2006-05-08  Eric Blake  <ebb9@byu.net>
43625
43626         * gnulib-tool (func_version): Base copyright year on CVS date.
43627         (func_emit_copyright_notice): New function.
43628         (func_emit_lib_Makefile_am): Use it.
43629         (func_emit_tests_Makefile_am): Likewise.
43630         (func_import): Likewise.
43631
43632 2006-05-08  Bruno Haible  <bruno@clisp.org>
43633
43634         * modules/stdarg: New file.
43635         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
43636
43637 2006-05-08  Bruno Haible  <bruno@clisp.org>
43638
43639         * m4/stdarg.m4: New file, from GNU gettext.
43640
43641 2006-05-08  Bruno Haible  <bruno@clisp.org>
43642
43643         * config/srclist.txt (build-aux/config.rpath): different from latest
43644         release.
43645
43646 2006-05-08  Bruno Haible  <bruno@clisp.org>
43647
43648         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
43649
43650 2006-05-05  Jim Meyering  <jim@meyering.net>
43651
43652         * m4/warning.m4: New file, derived from bison's file by the same name.
43653
43654 2006-05-03  Bruno Haible  <bruno@clisp.org>
43655
43656         * lib/stdint_.h: Shorter URL.
43657         * lib/inttypes.h: Likewise.
43658
43659 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43660
43661         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
43662
43663 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43664
43665         * lib/verify.h: Document the internals better.  Most of this change
43666         was written by Bruno Haible.
43667
43668 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43669
43670         * doc/verify.texi: New file, partly based on a proposal by
43671         Bruno Haible.
43672
43673 2006-05-02  Bruno Haible  <bruno@clisp.org>
43674
43675         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
43676         test from here...
43677         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
43678
43679 2006-04-29  Bruno Haible  <bruno@clisp.org>
43680
43681         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
43682         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
43683
43684 2006-04-29  Bruno Haible  <bruno@clisp.org>
43685
43686         * gnulib-tool: Make --update option actually work.
43687
43688 2006-04-29  Bruno Haible  <bruno@clisp.org>
43689
43690         * doc/gcd.texi: New file.
43691         * doc/gnulib.texi: Include it.
43692
43693 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
43694
43695         * lib/getdate.y (get_date): When adding relative date, start with the
43696         initial time, not with the result of the first mktime call.
43697
43698 2006-04-25  Bruno Haible  <bruno@clisp.org>
43699
43700         * gnulib-tool (func_import): Output the include directives in three
43701         blocks, sorted separately.
43702         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43703
43704 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
43705
43706         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
43707         to define main with arguments, for C++.  Reported by Eric Blake.
43708         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
43709         Prefer 'int main ()' to 'int main (void)', for C++.
43710         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43711         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
43712         for 'main', for C99 and C++.
43713
43714 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
43715
43716         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
43717         Don't assume that exit status -1 is valid.
43718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43719         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43720         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43721         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
43722         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
43723         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
43724         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
43725         functions can be used without declaring them, or that you can
43726         exit with status -1.
43727         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43728
43729 2006-04-24  Karl Berry  <karl@gnu.org>
43730
43731         * config/srclist.txt (longdouble.m4): sync lost.
43732
43733 2006-04-24  Eric Blake  <ebb9@byu.net>
43734
43735         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
43736
43737 2006-04-24  Bruno Haible  <bruno@clisp.org>
43738
43739         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
43740         poll() implementation in AIX.
43741         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43742
43743 2006-04-24  Bruno Haible  <bruno@clisp.org>
43744
43745         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
43746         assigned exactly once.
43747
43748 2006-04-23  Claudio Fontana  <claudio@gnu.org>
43749             Bruno Haible  <bruno@clisp.org>
43750
43751         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
43752         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
43753         for AM_CPPFLAGS.
43754
43755 2006-04-23  Bruno Haible  <bruno@clisp.org>
43756
43757         * modules/copy-file: Depend on unistd.
43758         * modules/execute: Likewise.
43759         * modules/fatal-signal: Likewise.
43760         * modules/findprog: Likewise.
43761         * modules/mkdtemp : Likewise.
43762         * modules/pipe: Likewise.
43763         * modules/wait-process: Likewise.
43764
43765 2006-04-23  Bruno Haible  <bruno@clisp.org>
43766
43767         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
43768         condition was already detected.
43769         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43770
43771 2006-04-23  Bruno Haible  <bruno@clisp.org>
43772
43773         * lib/copy-file.c: Include <unistd.h> unconditionally.
43774         * lib/execute.c: Likewise.
43775         * lib/fatal-signal.c: Likewise.
43776         * lib/findprog.c: Likewise.
43777         * lib/mkdtemp.c: Likewise.
43778         * lib/pipe.h: Likewise.
43779         * lib/pipe.c: Likewise.
43780         * lib/wait-process.h: Likewise.
43781
43782 2006-04-23  Bruno Haible  <bruno@clisp.org>
43783
43784         * gnulib-tool (func_usage): Fix --import description. Document
43785         --update.
43786         (func_import): Create temporary file in a temporary directory, if
43787         --dry-run is specified. Silence errors from 'grep' when there are no
43788         m4 files in $m4dir.
43789         (func_create_testdir): Silence errors from 'grep' when there are no
43790         m4 files in $m4dir.
43791         Reported by Karl Berry <karl@freefriends.org>.
43792
43793 2006-04-20  Bruno Haible  <bruno@clisp.org>
43794
43795         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
43796         one argument, so that the code will be portable to Autoconf 2.60.
43797         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
43798         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43799         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
43800
43801 2006-04-19  Derek Price  <derek@ximbiot.com>
43802             Eric Blake  <ebb9@byu.net>
43803
43804         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
43805         rather than "/full/path.h".  Update comment to match.  Shorten &
43806         generalize m4_translit call via AS_TR_CPP.
43807
43808 2006-04-19  Derek Price  <derek@ximbiot.com>
43809             Eric Blake  <ebb9@byu.net>
43810
43811         * lib/inttypes.h: Correct grammar in comment.
43812
43813 2006-04-18  Derek Price  <derek@ximbiot.com>
43814             Paul Eggert  <eggert@cs.ucla.edu>
43815
43816         * modules/inttypes: New file.
43817         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
43818
43819 2006-04-18  Derek Price  <derek@ximbiot.com>
43820             Paul Eggert  <eggert@cs.ucla.edu>
43821
43822         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
43823         New files.
43824
43825 2006-04-18  Derek Price  <derek@ximbiot.com>
43826             Paul Eggert  <eggert@cs.ucla.edu>
43827
43828         * lib/inttypes.h: New file.
43829         * lib/strtoimax.c: Assume <inttypes.h>.
43830
43831 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
43832
43833         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
43834         isn't mounted.  Problem reported by Kir Kolyshkin.
43835
43836 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43837
43838         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
43839         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
43840         Derek R. Price.
43841         * lib/regex.h (RE_DUP_MAX): Update comment to match current
43842         implementation.
43843
43844 2006-04-12  Eric Blake  <ebb9@byu.net>
43845
43846         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
43847         is now done automatically by the corresponding Autoconf macro.
43848
43849 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
43850
43851         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
43852         time_r.h.
43853
43854 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43855
43856         Merge regex changes from libc, removing some of our
43857         POSIX-conformance changes that were rejected and redoing them in a
43858         less-intrusive way.
43859
43860         * lib/regcomp.c (re_compile_internal, init_dfa):
43861         Length arg is now size_t, not Idx.  All uses changed.
43862         (peek_token): Forward decl now says internal_function.
43863         (__re_error_msgid, __re_error_msgid_idx):
43864         Now static rather than extern with attribute_hidden.
43865         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
43866         For some reason libc prefers K&R style defns for external functions.
43867         (regerror) [!defined _LIBC]: Likewise.
43868         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
43869         (seek_collating_symbol_entry, lookup_collation_sequence_value):
43870         (build_range_exp, build_collating_symbol):
43871         Use K&R-style defn.
43872         (re_compile_fastmap): Use '\0' to memset, not 0.
43873         (utf8_sb_map): Make the calculations more obvious.
43874         (init_dfa, parse_bracket_exp, build_charclass_op):
43875         Call calloc and cast result, as glibc does.
43876         (init_word_char, fetch_token, peek_token, peek_token_bracket):
43877         (build_range_exp, build_collating_symbol):
43878         Now internal functions.
43879
43880         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
43881
43882         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
43883         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
43884         Don't depend on VMS; depend on __VMS instead, for POSIX
43885         namespace cleanness.
43886         (regoff_t): Define to ssize_t, not long int.
43887
43888         Remove the REG_ macros named below.  Instead, make the old names
43889         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
43890         __USE_GNU_REGEX.
43891         (REG_BACKSLASH_ESCAPE_IN_LISTS):
43892         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
43893         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
43894         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
43895         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
43896         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
43897         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
43898         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
43899         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
43900         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
43901         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
43902         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
43903         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
43904         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
43905         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
43906         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
43907         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
43908         (REG_NREGS):
43909         Remove.  All uses replaced by the old RE_* names.
43910         (RE_BACKSLASH_ESCAPE_IN_LISTS):
43911         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
43912         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
43913         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
43914         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
43915         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
43916         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
43917         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
43918         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
43919         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
43920         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
43921         Don't bother having these macros be independent of each others'
43922         values, since they no longer exist in the POSIX name space.
43923
43924         Rename the following member names back to their old names,
43925         unless !__USE_GNU_REGEX.  All uses changed back.
43926         (buffer): Renamed from re_buffer.
43927         (allocated): Renamed from re_allocated.
43928         (used): Renamed from re_used.
43929         (syntax): Renamed from re_syntax.
43930         (fastmap): Renamed from re_fastmap.
43931         (translate): Renamed from re_translate.
43932         (can_be_null): Renamed from re_can_be_null.
43933         (regs_allocated): Renamed from re_regs_allocated.
43934         (fastmap_accurate): Renamed from re_fastmap_accurate.
43935         (no_sub): Renamed from re_no_sub.
43936         (not_bol): Renamed from re_not_bol.
43937         (not_eol): Renamed from re_not_eol.
43938         (newline_anchor): Renamed from re_newline_anchor.
43939         (num_regs): Renamed from rm_num_regs.
43940         (start): Renamed from rm_start.
43941         (end): Renamed from rm_end.
43942
43943         (free_state): Move up a bit.
43944
43945         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
43946         #define to be empty.
43947         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
43948         when that is what is intended.
43949         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
43950         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
43951         (MAX): New macro.
43952         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
43953         All uses changed back to re_malloc, etc.  It's now the caller's
43954         responsibility to check for overflow; all callers changed.
43955         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
43956         (re_x2nrealloc): Remove.
43957         (free_state): Remove decl.
43958
43959         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
43960         (re_set_registers, re_exec):
43961         Use K&R-style defn.
43962
43963         2006-01-31  Roland McGrath  <roland@redhat.com>
43964
43965         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
43966         Reported by Mike Frysinger <vapier@gentoo.org>.
43967
43968         2006-01-15  Andreas Jaeger  <aj@suse.de>
43969
43970         [BZ #1950]
43971         * lib/regex_internal.c (re_string_reconstruct): Adjust for
43972         build_wcs_upper_buffer change.
43973         (build_wcs_upper_buffer): Change return type.
43974
43975         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
43976
43977         * lib/regex_internal.h: Include <stdint.h> if available.
43978
43979         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
43980
43981         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
43982
43983         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
43984
43985         * lib/regcomp.c: Adjust for changed secondary hash function.
43986
43987         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
43988
43989         * lib/regex.h: Pretty printing.
43990         Clean up namespace a bit.
43991
43992         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
43993
43994         * lib/regexec.c (update_cur_sifted_state, check_arrival,
43995         check_arrival_add_next_nodes): Avoid using uninitialized variable.
43996
43997         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43998                     Ulrich Drepper  <drepper@redhat.com>
43999
44000         [BZ #1302]
44001         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
44002         changed.
44003         (bitset_word_t): Renamed from bitset_word.  All uses changed.
44004
44005         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
44006
44007         [BZ #281]
44008         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
44009         * lib/regcomp.c: Remove unnecessary uses of
44010         unsigned RE_TRANSLATE_TYPE.
44011         * lib/regex_internal.h: Likewise.
44012         * lib/regex_internal.c: Likewise.
44013         * lib/regexec.c: Likewise.
44014         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
44015
44016         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
44017
44018         * lib/regexec.c (find_recover_state): Remove unnecessary
44019         initialization.
44020         (transit_state_bkref): Make DFA a const pointer.
44021         (get_subexp): Likewise.
44022         (check_arrival): Likewise.
44023         (update_cur_sifted_state): Likewise.
44024         (re_search_internal): Likewise.
44025         (prune_impossible_nodes): Likewise.
44026         (acquire_init_state_context): Likewise.
44027         (proceed_next_node): Likewise.
44028         (set_regs): Likewise.
44029         (free_fail_stack_return): Likewise.
44030         (check_arrival_expand_ecl): Mark DFA parameter as const.
44031         (check_arrival_expand_ecl_sub): Likewise.
44032         (check_subexp_limits): Likewise.
44033         (sub_epsilon_src_nodes):  Likewise.
44034         (add_epsilon_src_nodes):  Likewise.
44035         (merge_state_array): Likewise.
44036         (update_regs): Likewise.
44037         (build_trtable): Likewise.
44038         (sift_states_backward): Mark MCTX parameter as const.
44039         (build_sifted_states): Likewise.
44040         (update_cur_sifted_state): Likewise.
44041         (sift_states_mkref): Likewise.
44042         (check_arrival_expand_ecl): Mark eclosure as const.
44043         (check_dst_limits_calc_pos_1): Likewise.
44044         * lib/regex_internal.h (re_match_context_t): Make dfa a const
44045         pointer.
44046
44047         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
44048
44049         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
44050         (transit_state_sb): Likewise.
44051         (transit_state_mb): Likewise.
44052         (sift_states_iter_mb): Likewise.
44053         (check_arrival_add_next_nodes): Likewise.
44054         (check_node_accept_bytes): Change first parameter to pointer-to-const.
44055         [_LIBC] (re_search_2_stub): Use mempcpy.
44056
44057         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
44058         mbrtowc for very simple UTF-8 case.
44059
44060         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
44061         a pointer-to-const.
44062         (re_acquire_state_context): Likewise.
44063         * lib/regex_internal.h: Adjust prototypes.
44064
44065         * lib/regex.c: Prevent using C++ compilers.
44066
44067         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
44068         (re_acquire_state_context): Likewise.
44069
44070 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
44071
44072         * modules/regex (Depends-on): Add ssize_t.
44073
44074 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
44075
44076         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
44077         translation table.
44078
44079 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
44080
44081         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
44082
44083 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
44084             Bruno Haible  <bruno@clisp.org>
44085
44086         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
44087         <sys/types.h> and <inttypes.h>.
44088
44089 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44090
44091         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
44092         `__error_t_defined', so argp.h will not typedef the former.
44093
44094 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44095
44096         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
44097         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
44098         glibc names.  Even if glibc is changed to conform to POSIX, the
44099         traditional names will be available anyway, since regex depends on
44100         the extensions module.  Also, fix a longstanding typo in the
44101         implementation of Spencer ERE test #75 from grep 2.3.  Problems
44102         reported by Emanuele Giaquinta.  Also, change sense of cached
44103         variable, so that the message makes sense.
44104
44105 2006-03-24  Simon Josefsson  <jas@extundo.com>
44106
44107         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
44108         including some doc fixes.
44109         (base64_encode_alloc): Fix +1 bug on allocation failures.
44110
44111 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44112
44113         * lib/base64.c (base64_encode): Do not read past end of array with
44114         unsanitized input on systems with CHAR_BIT > 8.
44115
44116 2006-03-24  Eric Blake  <ebb9@byu.net>
44117
44118         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
44119
44120 2006-03-22  Karl Berry  <karl@gnu.org>
44121
44122         * config/srclist.txt (*setenv.[ch]): get from coreutils.
44123         * config/srclistvars.sh (COREUTILS): new var.
44124
44125 2006-03-17  Jim Meyering  <jim@meyering.net>
44126
44127         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
44128         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
44129
44130 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
44131
44132         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
44133         no longer needs it.  Instead, check that regoff_t is as least
44134         as wide as ptrdiff_t.
44135
44136         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
44137         so that our regex.h stays compatible with the installed regex.
44138         This is helpful for installers who configure --without-included-regex.
44139         Problem reported by Emanuele Giaquinta.
44140
44141 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
44142
44143         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
44144         Typedef to long int, not to off_, as POSIX will likely change
44145         in that direction.
44146
44147 2006-03-15  Eric Blake  <ebb9@byu.net>
44148
44149         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
44150
44151 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
44152
44153         * lib/argp-help.c (validate_uparams): Fix typo
44154         * lib/argp-parse.c (argp_default_options): Consistently begin help
44155         messages with a lowercase letter.
44156
44157 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
44158
44159         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
44160         overrun buffers and shouldn't be used (much as gets shouldn't be
44161         used).
44162         * lib/time_r.c (asctime_r, ctime_r): Likewise.
44163
44164 2006-03-08  Simon Josefsson  <jas@extundo.com>
44165
44166         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
44167         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44168
44169 2006-03-08  Simon Josefsson  <jas@extundo.com>
44170
44171         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
44172         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44173
44174 2006-03-08  Simon Josefsson  <jas@extundo.com>
44175
44176         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
44177         signal that configure disabled the device.
44178
44179 2006-03-08  Simon Josefsson  <jas@extundo.com>
44180
44181         * build-aux/maint.mk: Fix refresh-po, to handle no translated
44182         languages.
44183
44184 2006-03-07  Simon Josefsson  <jas@extundo.com>
44185
44186         * modules/getopt (Depends-on): Add unistd.
44187
44188         * modules/unistd: New file.
44189
44190 2006-03-07  Simon Josefsson  <jas@extundo.com>
44191
44192         * modules/gc-random: New file.
44193
44194 2006-03-07  Simon Josefsson  <jas@extundo.com>
44195
44196         * m4/unistd_h.m4: New file.
44197
44198 2006-03-07  Simon Josefsson  <jas@extundo.com>
44199
44200         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
44201         test to be side-effect free by storing the result in the cache
44202         variable gl_cv_lib_readline, and moving the assignment of
44203         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
44204         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44205
44206 2006-03-07  Simon Josefsson  <jas@extundo.com>
44207
44208         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
44209         error on missing devices (the functions will return an error).
44210
44211         * m4/gc.m4: Move random stuff to gc-random.m4
44212
44213 2006-03-07  Simon Josefsson  <jas@extundo.com>
44214
44215         * lib/unistd_.h: New file.
44216
44217 2006-03-07  Simon Josefsson  <jas@extundo.com>
44218
44219         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
44220
44221 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
44222
44223         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
44224         Problem reported by Juan Manuel Guerrero.
44225
44226 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
44227
44228         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
44229         the unistd module.
44230         * lib/getlogin_r.c: Likewise.
44231         * lib/getlogin_r.h: Likewise.
44232         * lib/glob.c: Likewise.
44233         * lib/pagealign_alloc.c: Likewise.
44234         * lib/unistd_.h: Remove; no longer needed.
44235
44236 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
44237
44238         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44239         Add unistd.
44240         * modules/c-stack (Depends-on): Add unistd.
44241         * modules/getlogin_r: Likewise.
44242         * modules/glob: Likewise.
44243         * modules/pagealign_alloc: Likewise.
44244         * modules/unistd (Files): Remove lib/unistd_.h.
44245         (EXTRA_DIST): Remove.
44246         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
44247         need unistd_.h.
44248         (MOSTLYCLEANFILES): Remove unistd.h-t.
44249
44250 2006-03-03  Simon Josefsson  <jas@extundo.com>
44251
44252         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
44253
44254 2006-03-03  Simon Josefsson  <jas@extundo.com>
44255
44256         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
44257         libidn and bison.
44258
44259 2006-03-03  Simon Josefsson  <jas@extundo.com>
44260
44261         * build-aux/maint.mk: Add indent target.
44262
44263 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
44264
44265         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
44266         our replacement poll.h in any case, to avoid a differing
44267         declaration from a system header.  Seen on AIX.
44268
44269 2006-03-01  Simon Josefsson  <jas@extundo.com>
44270
44271         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
44272         <kasal@ucw.cz>.
44273
44274 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44275
44276         * modules/gettime (Depends-on): Add extensions module.
44277         * modules/nanosleep (Depends-on): Likewise.
44278         * modules/settime (Depends-on): Likewise.
44279
44280 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44281
44282         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
44283         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
44284         pedantically.
44285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44286         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
44287
44288         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
44289         not "==".  Reported by Ralf Wildenhues.
44290
44291 2006-03-01  Karl Berry  <karl@gnu.org>
44292
44293         * doc/Copyright/request-*: new files, synced from gnuorg.
44294
44295 2006-03-01  Karl Berry  <karl@gnu.org>
44296
44297         * config/srclist.txt (Copyright/*): new entries.
44298
44299 2006-02-28  Simon Josefsson  <jas@extundo.com>
44300
44301         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
44302
44303 2006-02-27  Simon Josefsson  <jas@extundo.com>
44304
44305         * lib/base64.h: Indent #define's.  From Jim Meyering
44306         <jim@meyering.net>.
44307
44308 2006-02-27  Jim Meyering  <jim@meyering.net>
44309
44310         Revert the change of 2006-02-24, so these files can continue
44311         to be sync'd from gettext.
44312         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
44313         of `config.h'.
44314
44315 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
44316
44317         * modules/intprops: New file.
44318         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
44319         Add intprops.
44320         * modules/getloadavg (Files): Remove lib/intprops.h.
44321         (Depends-on): Add intprops.
44322         * modules/human: Likewise.
44323         * modules/inttostr: Likewise.
44324         * modules/openat: Likewise.
44325         * modules/sig2str: Likewise.
44326         * modules/userspec: Likewise.
44327         * modules/utimecmp: Likewise.
44328         * modules/xnanosleep: Likewise.
44329         * modules/xstrtol: Likewise.
44330
44331 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
44332
44333         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
44334         * modules/lock-tests (TESTS): Use $(EXEEXT).
44335         * modules/tls-tests: Likewise.
44336         * modules/argp-tests: Likewise.
44337         (check_PROGRAMS): New var, replacing...
44338         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
44339
44340 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44341
44342         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
44343         `config.h'.
44344
44345 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44346
44347         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
44348
44349 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44350
44351         Sync from coreutils.
44352         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
44353         gl_CHDIR_SAFER.
44354
44355 2006-02-22  Jim Meyering  <jim@meyering.net>
44356
44357         Sync from coreutils.
44358         * m4/chdir-safer.m4: New file.
44359
44360 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44361
44362         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
44363         AT_FDCWD exceeds INT_MAX.
44364         * lib/openat.h (AT_FDCWD): Likewise.
44365
44366 2006-02-17  Eric Blake  <address@hidden>
44367
44368         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
44369
44370 2006-02-16  Simon Josefsson  <jas@extundo.com>
44371
44372         * modules/getaddrinfo (Depends-on): Add sys_socket.
44373
44374 2006-02-15  Simon Josefsson  <jas@extundo.com>
44375
44376         * build-aux/maint.mk: Add dsyntax-check rule.
44377
44378 2006-02-15  Eric Blake  <ebb9@byu.net>
44379
44380         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
44381         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
44382         'present but cannot compile' warnings on cygwin.
44383         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
44384         use ws2tcpip.h if sys/socket.h works.
44385         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
44386         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
44387
44388 2006-02-14  Simon Josefsson  <jas@extundo.com>
44389
44390         * modules/maintainer-makefile (Files): Rename.
44391
44392         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
44393         and (the local) Makefile.cfg to maint-cfg.mk.
44394
44395         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
44396         to the latter.
44397
44398         * modules/maintainer-makefile: New module.
44399
44400         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
44401         severaly stripped to make it possible to build it up from scratch
44402         with reliable tests.
44403
44404         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
44405         fixes to permit overriding the default actions when configure and
44406         makefile are not available.
44407
44408 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44409
44410         Sync from coreutils.
44411         * modules/lstat (Depends-on): Don't depend on xalloc.
44412         (License): Change from GPL to LGPL, since this is now simply a
44413         replacement for a libc function.
44414
44415 2006-02-14  Jim Meyering  <jim@meyering.net>
44416
44417         Sync from coreutils.
44418
44419         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
44420         failure on deficient systems, and simplify gnulib lgpl dependencies.
44421         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
44422         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
44423
44424         * lib/xalloc-die.c: Remove unused definition of N_.
44425
44426 2006-02-14  Jim Meyering  <jim@meyering.net>
44427
44428         Sync from coreutils.
44429         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
44430         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
44431         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
44432         double-quote uses of that variable, to accommodate the rare case in
44433         which getmntent is available in none of the libraries checked.  This
44434         happens at least on FreeBSD 5.0.
44435
44436 2006-02-13  Simon Josefsson  <jas@extundo.com>
44437
44438         * gnulib-tool (Usage): Fix --import, from
44439         karl@freefriends.org (Karl Berry).
44440
44441 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
44442
44443         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
44444
44445 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
44446
44447         * lib/argp-namefrob.h: Restore changes accidentally lost during the
44448         "autoupdate" on 2005-12-12.
44449
44450 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
44451
44452         * modules/closeout (Depends-on): Remove atexit.
44453
44454 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
44455
44456         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
44457         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
44458
44459 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
44460
44461         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
44462         __EXTENSIONS__ if this causes compilation to fail.  Problem
44463         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
44464         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
44465
44466 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
44467
44468         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
44469         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
44470         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
44471         All uses changed.
44472
44473 2006-01-26  Simon Josefsson  <jas@extundo.com>
44474
44475         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
44476         prototype is visible on mingw32.
44477
44478         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
44479         for mingw32.
44480
44481         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
44482         mingw32).
44483
44484 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44485
44486         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
44487         attempt to open for write; this always fails, at least on POSIX
44488         hosts.  This reinstates the 2006-01-09 change, which was
44489         inadvertently removed.
44490
44491 2006-01-26  Bruno Haible  <bruno@clisp.org>
44492
44493         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
44494         Reported by Paul Eggert.
44495
44496 2006-01-26  Bruno Haible  <bruno@clisp.org>
44497             Paul Eggert  <eggert@cs.ucla.edu>
44498
44499         * lib/stdbool_.h (_Bool)
44500         [(! (defined __cplusplus || defined __BEOS__)
44501           && !defined __GNUC__
44502           && !(defined __HP_cc || defined __xlc__
44503                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
44504                || defined __sgi))]:
44505         #define to signed char in these cases too; this simplifies
44506         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
44507         etc., separately) and makes it more conservative.
44508
44509 2006-01-25  Simon Josefsson  <jas@extundo.com>
44510
44511         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
44512         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
44513         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
44514
44515 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44516
44517         * lib/argp-namefrob.h: Bugfix. Remove stray #
44518
44519 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44520
44521         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
44522         so that we test the test.
44523         Check for yet another HP-UX cc bug involving *bool |= bool.
44524
44525 2006-01-25  Karl Berry  <karl@gnu.org>
44526
44527         * config/srclist.txt (vasnprintf.c): sync lost.
44528
44529 2006-01-25  Jim Meyering  <jim@meyering.net>
44530
44531         Sync from the stable (b5) branch of coreutils:
44532
44533         * lib/fts.c (fts_children): Don't let close() clobber errno from
44534         failed fchdir().
44535
44536         * lib/fts.c (fts_stat): When following a symlink-to-directory,
44537         don't necessarily interpret stat-fails+lstat-succeeds as indicating
44538         a dangling symlink.  That can also happen at least for ELOOP.
44539         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
44540         FYI, this bug predates the inclusion of fts.c in coreutils.
44541
44542         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
44543         in their own block, so pre-c99 compilers don't object.
44544
44545         Avoid the double-free (first in fts_read, second in fts_close) that
44546         would occur when an `active' directory is made inaccessible (e.g.,
44547         via chmod a-x) during a traversal.
44548         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44549         before returning.  Reproduce this failure by
44550         mkdir -p a/b; cd a; chmod a-x . b
44551         Reported by Stavros Passas.
44552
44553 2006-01-25  Jim Meyering  <jim@meyering.net>
44554
44555         * lib/fileblocks.c: Remove more useless parentheses.
44556         * lib/readutmp.h: Likewise.
44557
44558 2006-01-25  Bruno Haible  <bruno@clisp.org>
44559
44560         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
44561         warnings.
44562         Reported by Paul Eggert.
44563
44564 2006-01-25  Bruno Haible  <bruno@clisp.org>
44565
44566         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
44567         rid of a trap command. For Solaris sh.
44568         Reported by Mark D. Baushke <mdb@gnu.org>.
44569
44570 2006-01-24  Simon Josefsson  <jas@extundo.com>
44571
44572         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
44573         Bruno.
44574
44575 2006-01-24  Karl Berry  <karl@gnu.org>
44576
44577         * config/srclist.txt (argp-namefrob.h): sync lost.
44578
44579 2006-01-24  Jim Meyering  <jim@meyering.net>
44580
44581         * modules/openat (Files): Add lib/intprops.h.
44582         From Mark D. Baushke.
44583
44584 2006-01-24  Jim Meyering  <jim@meyering.net>
44585
44586         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
44587         Reported by Mark D. Baushke.
44588
44589 2006-01-24  Jim Meyering  <jim@meyering.net>
44590
44591         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
44592
44593 2006-01-24  Bruno Haible  <bruno@clisp.org>
44594
44595         * modules/strnlen (Maintainer): Change from glibc to all.
44596
44597 2006-01-24  Bruno Haible  <bruno@clisp.org>
44598
44599         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
44600         Patch by Paul Eggert.
44601
44602 2006-01-24  Bruno Haible  <bruno@clisp.org>
44603
44604         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
44605         already has it.
44606         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
44607         2005-11-26.
44608
44609         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
44610         'signed char' to avoid problems with the built-in _Bool type.
44611         Reported by Paul Eggert on 2005-11-26.
44612
44613 2006-01-24  Bruno Haible  <bruno@clisp.org>
44614
44615         * gnulib-tool (func_import): Avoid constructing complicated sed
44616         expressions inside backquote.
44617         Report and solution by Mark D. Baushke <mdb@gnu.org>.
44618
44619 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
44620
44621         These changes imported from libc.
44622         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
44623         test and two separate function calls.
44624         * lib/strndup.c (__strndup): Add libc_hidden_def.
44625
44626 2006-01-23  Simon Josefsson  <jas@extundo.com>
44627
44628         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
44629         Remove the test_*_SOURCES variable: automake infers it by default.
44630         * modules/tls-tests: Likewise.
44631
44632 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44633
44634         Work around porting bugs reported by Dieter in
44635         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
44636         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
44637         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
44638         Include "getopt.h" first, to check interface.
44639         (getenv): Declare only if defined HAVE_DECL_GETENV &&
44640         !HAVE_DECL_GETENV.
44641         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
44642         (__strndup): Revert to K&R-style function dfns, the glibc style.
44643         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
44644         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
44645         Include strnlen.h first, to get prototype properly.
44646         (strnlen): Renamed from __strnlen.
44647         Remove weak alias.
44648
44649 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44650
44651         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
44652
44653 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44654
44655         * config/srclist.txt: Adjust to reflect glibc reorganization.
44656         This affects only comments.
44657
44658 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44659
44660          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
44661          Reported by Bruce Korb <bkorb@gnu.org>.
44662
44663 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44664
44665         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
44666         to pacify gcc -Wswitch-default.
44667
44668 2006-01-22  Bruno Haible  <bruno@clisp.org>
44669
44670         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
44671         temporary buffer for sprintf, take into account the precision also
44672         for 'd', 'i', 'u', 'o', 'x', 'X'.
44673
44674 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
44675
44676         * modules/argp-tests: New module
44677         * tests/test-argp.c: New file
44678         * tests/test-argp-2.sh: New file
44679
44680 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
44681
44682         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
44683         (__argp_base_name): Removed
44684         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
44685         typo.
44686         (__argp_base_name): Provide macro definition or extern declaration
44687         depending on the configuration
44688
44689 2006-01-20  Simon Josefsson  <jas@extundo.com>
44690
44691         * modules/inet_ntop (Depends-on): Depend on sys_socket.
44692
44693 2006-01-20  Simon Josefsson  <jas@extundo.com>
44694
44695         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
44696
44697 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44698
44699         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
44700         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
44701         Suggested by Bruno Haible.
44702
44703 2006-01-20  Karl Berry  <karl@gnu.org>
44704
44705         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
44706         until changes propagate, I guess.
44707
44708 2006-01-19  Simon Josefsson  <jas@extundo.com>
44709
44710         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
44711
44712 2006-01-19  Simon Josefsson  <jas@extundo.com>
44713
44714         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
44715
44716 2006-01-19  Simon Josefsson  <jas@extundo.com>
44717
44718         * gnulib-tool: Set check_PROGRAMS.
44719
44720         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44721         modules/des-tests, modules/gc-arcfour-tests,
44722         modules/gc-arctwo-tests, modules/gc-des-tests,
44723         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44724         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44725         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44726         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44727         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44728         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
44729         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
44730         test_*_SOURCES.
44731
44732 2006-01-18  Simon Josefsson  <jas@extundo.com>
44733
44734         * modules/socklen (Depends-on): Depend on sys_socket.
44735
44736 2006-01-18  Simon Josefsson  <jas@extundo.com>
44737
44738         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44739         modules/des-tests, modules/gc-arcfour-tests,
44740         modules/gc-arctwo-tests, modules/gc-des-tests,
44741         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44742         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44743         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44744         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44745         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44746         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
44747         $(EXEEXT) to automake TESTS variable, for mingw32.
44748
44749 2006-01-17  Simon Josefsson  <jas@extundo.com>
44750
44751         * modules/socklen (Include): Need sys/socket.h.
44752
44753 2006-01-17  Bruno Haible  <bruno@clisp.org>
44754
44755         * modules/ssize_t (Include): Add <sys/types.h>.
44756
44757 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
44758
44759         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
44760         it's not portable and it doesn't work with cross-compiles.
44761         Problem reported by Bruno Haible.  Fix missing-$ typo in
44762         'test "gl_cv_ignore_unused_libraries" ...' that prevented
44763         -zignore from being used with Sun's C compiler.
44764
44765 2006-01-12  Simon Josefsson  <jas@extundo.com>
44766
44767         * lib/base64.c: Fix warning, reported by Bruno Haible
44768         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
44769
44770 2006-01-12  Bruno Haible  <bruno@clisp.org>
44771
44772         * modules/ldd: New file.
44773         * build-aux/ldd.sh.in: New file.
44774         * MODULES.html.sh (Support for building libraries and executables): Add
44775         ldd.
44776
44777 2006-01-12  Bruno Haible  <bruno@clisp.org>
44778
44779         * m4/ldd.m4: New file.
44780
44781 2006-01-12  Bruno Haible  <bruno@clisp.org>
44782
44783         * gnulib-tool (func_import, func_create_testdir): Don't go into an
44784         endless loop while replacing $auxdir with build-aux.
44785
44786 2006-01-11  Simon Josefsson  <jas@extundo.com>
44787
44788         * lib/stdint_.h (SIZE_MAX): Add missing (.
44789
44790 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44791
44792         Sync from coreutils.
44793         * lib/md5.c: Fix commentary typos.
44794         (alignof, UNALIGNED_P): No need for a GCC-specific version.
44795         * lib/md5.h (__attribute__): Remove; unused.
44796         * lib/sha1.c: Fix commentary to match md5 better.
44797         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
44798         so that we don't need to worry about alignment.  All uses changed.
44799         This merges the 2005-10-28 md5 change into sha1.
44800
44801 2006-01-11  Jim Meyering  <jim@meyering.net>
44802
44803         Sync from coreutils.
44804         * lib/md5.c (OP): Fix spacing.
44805
44806 2006-01-11  Bruno Haible  <bruno@clisp.org>
44807
44808         Ensure automatic ordering between gl_LOCK and gl_ARGP.
44809         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
44810         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
44811
44812 2006-01-11  Bruno Haible  <bruno@clisp.org>
44813
44814         Ensure automatic ordering between gl_LOCK and gl_ARGP.
44815         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
44816         the "early" section as well.
44817
44818 2006-01-11  Bruno Haible  <bruno@clisp.org>
44819
44820         Avoid "ar: no archive members specified" error on MacOS X.
44821         * gnulib-tool (func_modules_add_dummy): New function.
44822         (func_import, func_create_testdir): Invoke it.
44823
44824 2006-01-11  Bruno Haible  <bruno@clisp.org>
44825
44826         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
44827         with $auxdir in AC_CONFIG_FILES statements.
44828
44829 2006-01-11  Bruno Haible  <bruno@clisp.org>
44830
44831         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44832         Initialize also noinst_HEADERS to empty.
44833
44834 2006-01-11  Bruno Haible  <bruno@clisp.org>
44835
44836         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
44837         variables.
44838         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
44839         autoreconf.
44840
44841 2006-01-11  Bruno Haible  <bruno@clisp.org>
44842
44843         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
44844         overridable by the user.
44845         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44846
44847 2006-01-10  Simon Josefsson  <jas@extundo.com>
44848
44849         * modules/sys_socket: New file.
44850
44851 2006-01-10  Simon Josefsson  <jas@extundo.com>
44852
44853         * m4/sys_socket_h.m4: New file.
44854
44855 2006-01-10  Simon Josefsson  <jas@extundo.com>
44856
44857         * lib/socket_.h: New file.
44858
44859 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44860
44861         * modules/readutmp (Maintainer): Add myself.
44862
44863 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44864
44865         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
44866         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
44867         People who are still concerned with buggy memcmp implementations
44868         can invoke gl_FUNC_MEMCMP themselves.
44869
44870 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44871
44872         * lib/regex_internal.h (BITSET_WORD_BITS):
44873         Work around a bug in 64-bit PGC (before version 6.1-2), where the
44874         preprocessor mishandles large unsigned values as if they were signed.
44875         Problem reported by Claudio Fontana in
44876         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
44877
44878 2006-01-10  Jim Meyering  <jim@meyering.net>
44879
44880         Avoid the double-free (first in fts_read, second in fts_close) that
44881         would occur when an `active' directory is made inaccessible (e.g.,
44882         via chmod a-x) during a traversal.
44883         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44884         before returning.  Reproduce this failure by
44885         mkdir -p a/b; cd a; chmod a-x . b
44886         Reported by Stavros Passas.
44887
44888         Sync from coreutils.
44889         * lib/sha1.c: Tweak grammar in a comment.
44890
44891 2006-01-10  Jim Meyering  <jim@meyering.net>
44892
44893         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
44894         Patch by Joerg Sonnenberger.
44895
44896 2006-01-10  Bruno Haible  <bruno@clisp.org>
44897
44898         * modules/readutmp: Depend on module free.
44899         * modules/strtok_r: Depend on module restrict.
44900
44901 2006-01-10  Bruno Haible  <bruno@clisp.org>
44902
44903         * modules/gettext (configure.ac): Add an invocation of
44904         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
44905
44906 2006-01-10  Bruno Haible  <bruno@clisp.org>
44907
44908         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
44909         Reported by Werner Lemberg <wl@gnu.org>.
44910
44911 2006-01-10  Bruno Haible  <bruno@clisp.org>
44912
44913         * lib/localcharset.c: Update from GNU gettext.
44914
44915 2006-01-10  Bruno Haible  <bruno@clisp.org>
44916
44917         * lib/argp.h (__const): Remove macro. Use const instead.
44918         * lib/argp-fmtstream.h (__const): Likewise.
44919         * lib/glob_.h (__const): Remove macro.
44920         * lib/glob-libc.h: Use const instead of __const.
44921
44922 2006-01-10  Bruno Haible  <bruno@clisp.org>
44923
44924         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
44925         variable.
44926         Needed to avoid an automake error regarding the 'gettext' module.
44927
44928 2006-01-09  Simon Josefsson  <jas@extundo.com>
44929
44930         * modules/inet_ntop (Depends-on): Add restrict.
44931
44932 2006-01-09  Simon Josefsson  <jas@extundo.com>
44933
44934         * modules/gc-rijndael-tests (License): Put under LGPL.
44935
44936         * modules/gc-des-tests (License): Likewise.
44937
44938         * modules/gc-arcfour-tests (License): Likewise.
44939
44940         * modules/gc-arctwo-tests (License): Likewise.
44941
44942         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
44943
44944         * modules/gc-hmac-sha1-tests (Files): Likewise.
44945
44946         * modules/gc-hmac-md5-tests (License): Likewise.
44947
44948         * modules/gc-sha1-tests (License): Likewise.
44949
44950         * modules/gc-md5-tests (License): Likewise.
44951
44952         * modules/gc-md4-tests (License): Likewise.
44953
44954         * modules/gc-md2-tests (License): Likewise.
44955
44956         * modules/gc-tests (License): Likewise.
44957
44958         * modules/des-tests (License): Likewise.
44959
44960         * modules/md4-tests (License): Likewise.
44961
44962         * modules/md2-tests (License): Likewise.
44963
44964 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44965
44966         Sync from coreutils:
44967
44968         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
44969         * modules/lib-ignore: New file.
44970         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
44971         chdir-safer.m4, lchmod.m4.
44972         * modules/openat: Add mkdirat.c, openat-priv.h.
44973
44974 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44975
44976         Sync from coreutils.
44977         * m4/lib-ignore.m4: New file.
44978         * m4/lchmod.m4: New file.
44979
44980 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44981
44982         Sync from coreutils.
44983         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
44984         for write access: POSIX says that must fail.
44985         * lib/fts.c (diropen): Likewise.
44986         * lib/save-cwd.c (save_cwd): Likewise.
44987         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
44988         well, for minor improvements on hosts that lack O_DIRECTORY.
44989         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
44990         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
44991         Fall back on chown if open failed with EACCES.
44992
44993         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
44994         Report an error at compile-time if only a 1-second nominal clock
44995         resolution is found.
44996
44997         * lib/lchmod.h: New file.
44998         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
44999         (make_dir_parents): Use lchown rather than chown, and
45000         lchmod rather than chmod.
45001
45002         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
45003         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
45004         "proc" reported by n0dalus.
45005
45006         * lib/mountlist.c: Include <limits.h>.
45007         (dev_from_mount_options)
45008         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
45009         New function.  It no longer assumes "dev=" has the System V meaning
45010         on Linux (since it doesn't).  It also parses "dev=" more carefully.
45011         (read_file_system_list)
45012         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
45013         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
45014         dev= in that case.
45015
45016         * lib/posixtm.h (PDS_PRE_2000): New macro.
45017         * lib/posixtm.c (year): Arg is now syntax_bits rather than
45018         allow_century.  All usages changed.  Reject dates outside the range
45019         1969-1999 if PDS_PRE_2000 is used.
45020
45021 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45022
45023         Sync from coreutils.
45024         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
45025         (Time of day items): Mention the possibility of leap seconds.
45026         Problem reported by Dr. David Alan Gilbert.
45027
45028 2006-01-09  Jim Meyering  <jim@meyering.net>
45029
45030         Sync from coreutils.
45031
45032         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
45033
45034         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
45035
45036         * lib/modechange.c (mode_compile): Reject an invalid mode string
45037         that starts with an octal digit.  From Andreas Gruenbacher.
45038
45039         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
45040         and dup to open_safer and dup_safer, respectively.
45041         (openat_permissive): Fix typo in comment.
45042
45043         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
45044         "gettext.h"; either no longer needed or are guaranteed by openat.h.
45045         (_): Remove; no longer needed.
45046         (openat): Renamed from rpl_openat; no need for rpl_openat
45047         since openat.h renames openat for us.
45048         Replace most of the body with a call to openat_permissive,
45049         to avoid duplicate code.
45050         Port to (probably hypothetical) environments were mode_t is
45051         wider than int.
45052         (openat_permissive): Require mode arg, so that we can check
45053         types better.  Put it just after flags.  Change cwd failure
45054         indicator from pointer-to-bool to pointer-to-errno-value.
45055         All callers changed.
45056         Invoke openat_save_fail and/or openat_restore_fail if
45057         cwd_errno is null, so that openat can call us.
45058         (openat_permissive, fdopendir, fstatat, unlinkat):
45059         Simplify errno handling to avoid some duplicate code,
45060         as it's OK to set errno on success.
45061         * lib/openat.h: Revamp code so that function macros depend on
45062         __OPENAT_PREFIX only, not also on AT_FDCWD.
45063         (openat_ro): Remove.  Caller changed to use openat_permissive.
45064         (openat_permissive): Now a macro, if not a function.
45065         (openat_restore_fail, openat_save_fail): Now always functions,
45066         since mkdirat needs them even if __OPENAT_PREFIX is defined.
45067
45068         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
45069         and openat.c.
45070         * lib/mkdirat.c: Include openat-priv.h.
45071         Remove definitions of macros defined therein.
45072         * lib/openat.c: Likewise.
45073
45074         * lib/mkdirat.c (mkdirat): New file and function.
45075         * lib/openat.h (mkdirat): Declare.
45076
45077         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
45078
45079         * lib/openat.h (openat_permissive): Declare.
45080         (openat_ro): Define.
45081
45082         * lib/openat.c (EXPECTED_ERRNO): New macro.
45083         (openat_permissive): New function -- used in remove.c rewrite.
45084         (all functions): Set errno just before returning, only if there
45085         was an actual failure.
45086         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
45087
45088         Emulate openat-family functions using Linux's procfs, if possible.
45089         Idea and some code based on Ulrich Drepper's glibc changes.
45090
45091         * lib/openat.c: (BUILD_PROC_NAME): New macro.
45092         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
45093         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
45094         before falling back on save_cwd and restore_cwd.
45095         (fdopendir, fstatat, unlinkat): Likewise.
45096
45097         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
45098         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
45099
45100         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
45101         as second argument to va_arg.  Otherwise, some versions of gcc
45102         warn that `if this code is reached, the program will abort'.
45103
45104 2006-01-09  Jim Meyering  <jim@meyering.net>
45105
45106         Sync from coreutils.
45107         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
45108         Require openat-priv.h.
45109
45110 2006-01-09  Bruno Haible  <bruno@clisp.org>
45111
45112         * modules/strnlen (Include): Use strnlen.h.
45113
45114 2006-01-09  Bruno Haible  <bruno@clisp.org>
45115
45116         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
45117
45118 2006-01-09  Bruno Haible  <bruno@clisp.org>
45119
45120         * lib/sysexit_.h (EX_OK): New macro.
45121         Suggested by Martin Lambers <marlam@marlam.de>.
45122
45123 2006-01-09  Bruno Haible  <bruno@clisp.org>
45124
45125         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
45126         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
45127
45128 2006-01-09  Bruno Haible  <bruno@clisp.org>
45129
45130         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
45131         numbers.
45132
45133 2006-01-09  Bruno Haible  <bruno@clisp.org>
45134
45135         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
45136         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
45137         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
45138         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
45139
45140 2006-01-09  Bruno Haible  <bruno@clisp.org>
45141
45142         * build-aux/javacomp.sh.in: New file, moved from lib/.
45143         * modules/javacomp-script (Files): Update.
45144         (configure.ac): Add AC_CONFIG_FILES invocation.
45145         (EXTRA_DIST): Remove variable.
45146
45147         * build-aux/javaexec.sh.in: New file, moved from lib/.
45148         * modules/javaexec (Files): Update.
45149         (configure.ac): Add AC_CONFIG_FILES invocation.
45150         (EXTRA_DIST): Remove javaexec.sh.in.
45151
45152         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
45153         * modules/csharpcomp-script (Files): Update.
45154         (configure.ac): Add AC_CONFIG_FILES invocation.
45155         (EXTRA_DIST): Remove variable.
45156
45157         * build-aux/csharpexec.sh.in: New file, moved from lib/.
45158         * modules/csharpexec (Files): Update.
45159         (configure.ac): Add AC_CONFIG_FILES invocation.
45160         (EXTRA_DIST): Remove csharpexec.sh.in.
45161
45162 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
45163
45164         Sync from coreutils.
45165
45166         Add POSIX ACL support
45167         * lib/acl.h (copy_acl, set_acl): Add declarations.
45168         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
45169         systems other than Linux.
45170         (chmod_or_fchmod): New function: use fchmod when possible,
45171         and chmod otherwise.
45172         (file_has_acl): Add a POSIX ACL implementation, with a
45173         Linux-specific subcase.
45174         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
45175         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
45176         acls are unsupported.
45177         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
45178         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
45179         are unsupported.
45180
45181 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
45182
45183         Sync from coreutils.
45184         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
45185
45186 2006-01-07  Bruno Haible  <bruno@clisp.org>
45187
45188         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
45189         gl_EARLY.
45190
45191 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45192
45193         * lib/strftime.c (tzname): Don't declare if it is already #defined.
45194         Problem reported for Mingw by Mark Junker.
45195
45196 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45197
45198         * README: Gnulib normally doesn't generate a tarball.
45199
45200 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
45201
45202         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
45203         long int, not int, for nanosecond counts, so that people who are
45204         used to POSIX struct timespec won't be surprised.  Reported by Jim
45205         Meyering.
45206
45207 2005-12-28  Bruno Haible  <bruno@clisp.org>
45208
45209         * build-aux/config.rpath: Update from GNU gettext.
45210
45211 2005-12-16  Jim Meyering  <jim@meyering.net>
45212
45213         * modules/fprintftime: New module.
45214         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
45215
45216 2005-12-16  Jim Meyering  <jim@meyering.net>
45217
45218         * m4/fprintftime.m4: New file.
45219
45220 2005-12-16  Jim Meyering  <jim@meyering.net>
45221
45222         * lib/fprintftime.c, lib/fprintftime.h: New files.
45223
45224 2005-12-15  Simon Josefsson  <jas@extundo.com>
45225
45226         * modules/socklen (configure.ac): Fix M4 macro name, to align with
45227         new m4/socklen.m4.
45228
45229 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45230
45231         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
45232         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
45233
45234 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
45235
45236         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
45237         * lib/argp-help.c (fill_in_uparams): Check if the constructed
45238         struct uparams is valid. Fall back to the default values if it is
45239         not.
45240
45241 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45242
45243         * modules/argp (Files): Add argp-pin.c
45244         (Depends-on): dirname
45245         (lib_SOURCES): Add argp-pin.c
45246
45247 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45248
45249         * m4/argp.m4:  Check if program_invocation_name and
45250         program_invocation_short_name are declared and define appropriate
45251         macros if they are not.
45252
45253 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45254
45255         * lib/argp-help.c (__argp_base_name): New function
45256         (__argp_short_program_name): Rewrite using __argp_base_name
45257         * lib/argp-namefrob.h: Define program_invocation_name and
45258         program_invocation_short_name if requested
45259         (__argp_base_name): Add prototype
45260         * lib/argp-parse.c (argp_def): Use gettext wrappers
45261         (argp_default_parser): Use __argp_base_name
45262         * lib/argp-pin.c: New file. Defines program_invocation_name and
45263         program_invocation_short_name on systems that lack them.
45264
45265 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
45266
45267         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
45268         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45269         porting problem reported by Georg Schwarz in
45270         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45271
45272 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
45273
45274         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
45275         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45276         porting problem reported by Georg Schwarz in
45277         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45278
45279 2005-12-05  Bruno Haible  <bruno@clisp.org>
45280
45281         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
45282         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
45283         Reported by Mark Junker <mjscod@gmx.de>.
45284
45285 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
45286
45287         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
45288         Use implementation from Albert Chin, with some
45289         comments/corrections by Stepan Kasal and myself.
45290
45291 2005-12-02  Bruno Haible  <bruno@clisp.org>
45292
45293         * gnulib-tool (func_import): Accept GPLed build tool modules when
45294         --lgpl is given.
45295         * modules/csharpcomp-script: New file.
45296         * modules/csharpcomp: Depend on it.
45297         * modules/javacomp-script: New file.
45298         * modules/javacomp: Depend on it.
45299         Suggested by Simon Josefsson.
45300
45301 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
45302
45303         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
45304         statement, to work around an HP-UX 10.20 compiler bug reported by
45305         Peter O'Gorman.
45306
45307 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
45308
45309         * modules/savedir (Depends-on): Add openat.
45310
45311 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
45312
45313         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
45314         (uintmax_t) [defined uintmax_t]: Do not declare.
45315         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
45316         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
45317         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
45318         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
45319         sake of portability to weird hosts that C allows (though we don't
45320         know of any practical examples).
45321
45322         * lib/savedir.h (fdsavedir): New decl.
45323         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
45324         contains most of the former guts of savedir.
45325         (savedir): Use savedirstream.
45326         Include "openat.h".
45327
45328 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
45329
45330         * modules/obstack (Files): Add m4/ulonglong.m4.
45331         Problem reported by Davide Angelocola.
45332
45333 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45334
45335         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
45336         coreutils no longer futzes with rounding modes.
45337
45338 2005-11-14  Jim Meyering  <jim@meyering.net>
45339
45340         * lib/mkstemp-safer.c: Include <config.h>, required for possible
45341         replacement of mkstemp.
45342
45343 2005-11-10  Simon Josefsson  <jas@extundo.com>
45344
45345         * lib/readline.c: Remove EOL.
45346
45347 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45348
45349         * modules/gethrxtime (Depends-on): Add gettime.
45350
45351 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45352
45353         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
45354         or gettimeofday; no longer needed.
45355
45356 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45357
45358         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
45359         time business.
45360         (gethrxtime) [! (HAVE_NANOUPTIME
45361         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
45362         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
45363         our own approximation.
45364
45365 2005-11-08  Eric Blake  <ebb9@byu.net>
45366
45367         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45368
45369 2005-11-08  Eric Blake  <ebb9@byu.net>
45370
45371         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45372
45373 2005-11-04  Bruno Haible  <bruno@clisp.org>
45374
45375         * gnulib-tool: Implement --update mode.
45376
45377 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45378
45379         Fix porting problem reported by Theodoros V. Kalamatianos.
45380         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
45381         Don't assume that futimes failing means we must fail.
45382
45383 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45384
45385         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
45386         variables to suggest the intended function of the PATH_MAX check.
45387
45388 2005-10-30  Kean Johnston  <jkj@sco.com>
45389
45390         Trivial changes to support SCO systems.
45391         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
45392         as PATH_MAX.
45393         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
45394         where __ptr is null when no I/O is pending.
45395
45396 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45397
45398         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
45399         leave errno alone.  Problem reported by Dmitry V. Levin.
45400
45401 2005-10-28  Simon Josefsson  <jas@extundo.com>
45402
45403         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
45404         Test more.
45405
45406         * tests/test-gc-md2.c, tests/test-md2.c: New files.
45407
45408         * modules/md2, modules/md2-tests: New files.
45409
45410 2005-10-28  Simon Josefsson  <jas@extundo.com>
45411
45412         * m4/inet_ntop.m4: More tests.
45413
45414         * m4/gc-md2.m4, md2.m4: New file.
45415
45416 2005-10-28  Simon Josefsson  <jas@extundo.com>
45417
45418         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
45419         "restrict" keywords, as per POSIX.  Protect the function
45420         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
45421         Don't use K&R prototypes.  Check the sprintf return values.
45422         Re-define EAFNOSUPPORT if not present.  Indent.
45423
45424         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
45425         suggested by Bruno Haible <bruno@clisp.org>.
45426
45427         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
45428
45429         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
45430
45431         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
45432         libgcrypt).
45433
45434         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
45435
45436         * lib/md2.h, lib/md2.c: New files.
45437
45438 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
45439
45440         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
45441         errno alone.  Problem reported by Frederic Jolliton.
45442
45443 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45444
45445         * modules/verify (License): Change from GPL to LGPL.  This is a
45446         tiny module and there are apparently near-equivalents that are
45447         under the BSD license.
45448
45449 2005-10-24  Simon Josefsson  <jas@extundo.com>
45450
45451         * modules/sha1: Relicense to LGPL.
45452
45453 2005-10-24  Simon Josefsson  <jas@extundo.com>
45454
45455         * lib/md4.h: Shrink buffer size, now that we changed the type.
45456
45457 2005-10-23  Simon Josefsson  <jas@extundo.com>
45458
45459         * gnulib-tool (func_import): Fix --tests-base.
45460
45461 2005-10-22  Simon Josefsson  <jas@extundo.com>
45462
45463         * modules/arcfour (Depends-on): Need stdint.
45464
45465 2005-10-22  Simon Josefsson  <jas@extundo.com>
45466
45467         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
45468         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
45469
45470 2005-10-22  Simon Josefsson  <jas@extundo.com>
45471
45472         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
45473         suggested by Bruno Haible <bruno@clisp.org>.
45474
45475 2005-10-22  Simon Josefsson  <jas@extundo.com>
45476
45477         * lib/crc.h: Include stddef.h, for size_t.
45478
45479 2005-10-22  Simon Josefsson  <jas@extundo.com>
45480
45481         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
45482         arcfour_context struct (simplify test vector testing in GNU
45483         Shishi).
45484
45485 2005-10-21  Simon Josefsson  <jas@extundo.com>
45486
45487         * modules/des, modules/des-tests: New files.
45488
45489         * modules/gc-des, modules/gc-des-tests: New files.
45490
45491         * tests/test-des.c, tests/test-gc-des.c: New file.
45492
45493 2005-10-21  Simon Josefsson  <jas@extundo.com>
45494
45495         * modules/arctwo, modules/arctwo-tests: New files.
45496
45497         * tests/test-arctwo.c: New file.
45498
45499         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
45500
45501         * tests/test-gc-arctwo.c: New file.
45502
45503 2005-10-21  Simon Josefsson  <jas@extundo.com>
45504
45505         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
45506         Bruno Haible <bruno@clisp.org>.
45507
45508         * m4/gc-des.m4: New file.
45509
45510 2005-10-21  Simon Josefsson  <jas@extundo.com>
45511
45512         * m4/arctwo.m4: New file.
45513
45514         * m4/gc-arctwo.m4: New file.
45515
45516 2005-10-21  Simon Josefsson  <jas@extundo.com>
45517
45518         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
45519         block.
45520
45521 2005-10-21  Simon Josefsson  <jas@extundo.com>
45522
45523         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
45524         <bruno@clisp.org>.
45525
45526         * lib/hmac-sha1.c (hmac_sha1): Likewise.
45527
45528         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
45529         Bruno Haible <bruno@clisp.org>.
45530
45531         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
45532         <bruno@clisp.org>.
45533
45534 2005-10-21  Simon Josefsson  <jas@extundo.com>
45535
45536         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
45537
45538 2005-10-21  Simon Josefsson  <jas@extundo.com>
45539
45540         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
45541
45542 2005-10-21  Simon Josefsson  <jas@extundo.com>
45543
45544         * lib/des.h, lib/des.c: New files.
45545
45546         * lib/gc-gnulib.c: Support DES.c
45547
45548 2005-10-21  Simon Josefsson  <jas@extundo.com>
45549
45550         * lib/arctwo.h, lib/arctwo.c: New files.
45551
45552         * lib/gc-gnulib.c: Support ARCTWO.
45553
45554 2005-10-21  Simon Josefsson  <jas@extundo.com>
45555
45556         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
45557         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45558
45559 2005-10-21  Simon Josefsson  <jas@extundo.com>
45560
45561         * gnulib-tool (func_import, func_create_testdir): Define automake
45562         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
45563         Makefile.am snippet),
45564         suggested by Bruno Haible <bruno@clisp.org>.
45565
45566         * modules/gc (Makefile.am): Use it.
45567
45568 2005-10-21  Bruno Haible  <bruno@clisp.org>
45569
45570         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
45571         patch.
45572
45573 2005-10-19  Simon Josefsson  <jas@extundo.com>
45574
45575         * tests/test-gc-rijndael.c: New file.
45576
45577         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
45578
45579 2005-10-19  Simon Josefsson  <jas@extundo.com>
45580
45581         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
45582         interface too.
45583
45584 2005-10-19  Simon Josefsson  <jas@extundo.com>
45585
45586         * tests/test-gc-arcfour.c: New file.
45587
45588         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
45589
45590 2005-10-19  Simon Josefsson  <jas@extundo.com>
45591
45592         * modules/gc-md4, modules/gc-md4-tests: New file.
45593
45594         * tests/test-gc-md4.c: New file.
45595
45596 2005-10-19  Simon Josefsson  <jas@extundo.com>
45597
45598         * m4/gc-md4.m4: New file.
45599
45600 2005-10-19  Simon Josefsson  <jas@extundo.com>
45601
45602         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
45603         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
45604         <kasal@ucw.cz>.
45605
45606 2005-10-19  Simon Josefsson  <jas@extundo.com>
45607
45608         * m4/gc-arcfour.m4: New file.
45609
45610         * m4/gc-rijndael.m4: New file.
45611
45612 2005-10-19  Simon Josefsson  <jas@extundo.com>
45613
45614         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
45615
45616 2005-10-19  Simon Josefsson  <jas@extundo.com>
45617
45618         * lib/gc-gnulib.c: Support ARCFOUR.
45619
45620 2005-10-19  Simon Josefsson  <jas@extundo.com>
45621
45622         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
45623         support.
45624
45625         * lib/gc.h: Add ECB enum type.
45626
45627         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
45628
45629 2005-10-18  Simon Josefsson  <jas@extundo.com>
45630
45631         * tests/test-md5.c: New file.
45632
45633         * modules/md5-tests: New file.
45634
45635 2005-10-18  Simon Josefsson  <jas@extundo.com>
45636
45637         * tests/test-md4.c: New file.
45638
45639         * modules/md4, modules/md4-tests: New files.
45640
45641 2005-10-18  Simon Josefsson  <jas@extundo.com>
45642
45643         * m4/md4.m4: New file.
45644
45645 2005-10-18  Simon Josefsson  <jas@extundo.com>
45646
45647         * lib/md4.h, lib/md4.c: New files, based on md5.?.
45648
45649 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
45650
45651         * gnulib-tool (func_create_testdir): Omit the second check whether
45652         BUILT_SOURCES in nonempty.
45653
45654 2005-10-17  Simon Josefsson  <jas@extundo.com>
45655
45656         * tests/test-rijndael.c: New file.
45657
45658 2005-10-17  Simon Josefsson  <jas@extundo.com>
45659
45660         * modules/sha1: Depend on stdint instead of md5.
45661
45662         * modules/md5: Depend on stdint, remove uint32_t.
45663
45664 2005-10-17  Simon Josefsson  <jas@extundo.com>
45665
45666         * modules/gc-sha1-tests: New file.
45667
45668         * tests/test-gc-sha1.c: New file.
45669
45670 2005-10-17  Simon Josefsson  <jas@extundo.com>
45671
45672         * m4/md5.m4: Remove call to uint32_t.m4.
45673
45674 2005-10-17  Simon Josefsson  <jas@extundo.com>
45675
45676         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
45677
45678         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
45679         md5.h.
45680
45681         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
45682
45683         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
45684
45685 2005-10-17  Simon Josefsson  <jas@extundo.com>
45686
45687         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
45688
45689 2005-10-17  Simon Josefsson  <jas@extundo.com>
45690
45691         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
45692
45693 2005-10-17  Simon Josefsson  <jas@extundo.com>
45694
45695         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
45696
45697         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
45698
45699 2005-10-17  Bruno Haible  <bruno@clisp.org>
45700
45701         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
45702         that it can also be used in a test.
45703
45704 2005-10-16  Bruno Haible  <bruno@clisp.org>
45705
45706         * gnulib-tool (func_emit_tests_Makefile_am): Also define
45707         TESTS_ENVIRONMENT, so that individual tests can augment it.
45708
45709         * gnulib-tool (func_create_testdir): Use an intermediate target for
45710         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
45711         macros, like $(ALLOCA_H), which cannot be passed through the command
45712         line.
45713
45714 2005-10-15  Simon Josefsson  <jas@extundo.com>
45715
45716         * modules/rijndael-tests: New file.
45717
45718         * modules/rijndael: New file.
45719
45720 2005-10-15  Simon Josefsson  <jas@extundo.com>
45721
45722         * m4/rijndael.m4: New file.
45723
45724 2005-10-15  Simon Josefsson  <jas@extundo.com>
45725
45726         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
45727
45728         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
45729
45730 2005-10-14  Simon Josefsson  <jas@extundo.com>
45731
45732         * tests/test-arcfour.c: New file.
45733
45734         * modules/arcfour, modules/arcfour-tests: New files.
45735
45736 2005-10-14  Simon Josefsson  <jas@extundo.com>
45737
45738         * m4/arcfour.m4: New file.
45739
45740 2005-10-14  Simon Josefsson  <jas@extundo.com>
45741
45742         * lib/arcfour.h, lib/arcfour.c: New files.
45743
45744 2005-10-14  Roland McGrath  <roland@redhat.com>
45745
45746         Import from libc.  [BZ #1331]
45747         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
45748         macro argument.
45749         Reported by Matej Vela <vela@debian.org>.
45750
45751 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45752
45753         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
45754         include <wchar.h>; no longer needed.
45755
45756 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45757
45758         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
45759
45760 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
45761         and  Ulrich Drepper  <drepper@redhat.com>
45762
45763         Import from libc.
45764         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
45765         instead of inline stream orientation test and two separate
45766         function calls.  Pay no attention to USE_IN_LIBIO.
45767
45768 2005-10-13  Simon Josefsson  <jas@extundo.com>
45769
45770         * modules/gc-hmac-md5-tests: New file.
45771
45772         * tests/test-gc-hmac-sha1.c: New file.
45773
45774         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
45775
45776         * modules/gc-hmac-md5-tests: New file.
45777
45778         * tests/test-gc-md5.c: New file.
45779
45780         * modules/gc-md5-tests: New file.
45781
45782 2005-10-13  Simon Josefsson  <jas@extundo.com>
45783
45784         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
45785         Move memory allocation outside of loop.
45786
45787 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
45788
45789         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
45790         intermediate directory is in a read-only file system.  Problem
45791         reported by Eric Blake.
45792
45793 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
45794
45795         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
45796
45797 2005-10-12  Simon Josefsson  <jas@extundo.com>
45798
45799         * tests/test-hmac-sha1.c: New file.
45800
45801         * modules/hmac-sha1-tests: New file.
45802
45803         * modules/hmac-sha1: New file.
45804
45805 2005-10-12  Simon Josefsson  <jas@extundo.com>
45806
45807         * modules/gc-sha1: New file.
45808
45809 2005-10-12  Simon Josefsson  <jas@extundo.com>
45810
45811         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
45812
45813         * tests/test-gc-pbkdf2-sha1.c: New file.
45814
45815 2005-10-12  Simon Josefsson  <jas@extundo.com>
45816
45817         * modules/gc-md5, modules/gc-hmac-md5: New files.
45818
45819         * modules/gc (Files): Remove md5, memxor and hmac files.
45820
45821 2005-10-12  Simon Josefsson  <jas@extundo.com>
45822
45823         * m4/gc-pbkdf2-sha1.m4: New file.
45824
45825         * m4/gc-hmac-sha1.m4: New file.
45826
45827         * m4/gc-sha1: New file.
45828
45829         * m4/hmac-sha1.m4: New file.
45830
45831 2005-10-12  Simon Josefsson  <jas@extundo.com>
45832
45833         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
45834
45835         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
45836
45837 2005-10-12  Simon Josefsson  <jas@extundo.com>
45838
45839         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
45840         suggested by Bruno Haible <bruno@clisp.org>.
45841
45842 2005-10-12  Simon Josefsson  <jas@extundo.com>
45843
45844         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
45845
45846 2005-10-12  Simon Josefsson  <jas@extundo.com>
45847
45848         * lib/gc-pbkdf2-sha1.c: New file.
45849
45850         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
45851
45852 2005-10-12  Simon Josefsson  <jas@extundo.com>
45853
45854         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
45855
45856         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
45857
45858 2005-10-12  Simon Josefsson  <jas@extundo.com>
45859
45860         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
45861         GC_USE_HMAC_MD5, respectively.
45862
45863         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
45864         (gc_md5): Fix typo.
45865
45866         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
45867
45868         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
45869
45870         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
45871
45872 2005-10-12  Bruno Haible  <bruno@clisp.org>
45873
45874         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
45875         Reported by Stepan Kasal <kasal@ucw.cz>.
45876
45877 2005-10-11  Simon Josefsson  <jas@extundo.com>
45878
45879         * tests/test-crc.c: New file.
45880
45881         * modules/crc, modules/crc-tests: New files.
45882
45883 2005-10-11  Simon Josefsson  <jas@extundo.com>
45884
45885         * m4/crc.m4: New file.
45886
45887 2005-10-11  Simon Josefsson  <jas@extundo.com>
45888
45889         * lib/gc.h: Add gc_hash and gc_hash_buffer.
45890
45891         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
45892
45893         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
45894
45895 2005-10-11  Simon Josefsson  <jas@extundo.com>
45896
45897         * lib/crc.h, lib/crc.c: New files.
45898
45899         * lib/gc.h (gc_hash_buffer): Add doc.
45900
45901 2005-10-11  Bruno Haible  <bruno@clisp.org>
45902
45903         * modules/c-strcasestr: New file.
45904         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
45905
45906 2005-10-11  Bruno Haible  <bruno@clisp.org>
45907
45908         * modules/c-strcase: New file.
45909         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
45910
45911 2005-10-11  Bruno Haible  <bruno@clisp.org>
45912
45913         * lib/strcasecmp.c: Include limits.h.
45914         (strcasecmp): Avoid integer overflow on exotic platforms.
45915         * lib/strncasecmp.c: Include limits.h.
45916         (strncasecmp): Avoid integer overflow on exotic platforms.
45917         Reported by Paul Eggert.
45918
45919 2005-10-11  Bruno Haible  <bruno@clisp.org>
45920
45921         * lib/c-strcasestr.h: New file, from GNU gettext.
45922         * lib/c-strcasestr.c: New file, from GNU gettext.
45923
45924 2005-10-11  Bruno Haible  <bruno@clisp.org>
45925
45926         * lib/c-strcase.h: New file, from GNU gettext.
45927         * lib/c-strcasecmp.c: New file, from GNU gettext.
45928         * lib/c-strncasecmp.c: New file, from GNU gettext.
45929
45930 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45931
45932         * modules/mempcpy (License): GPL -> LGPL.
45933         * modules/strchrnul (License): Likewise.
45934         * modules/sysexits (License): Likewise.
45935
45936 2005-10-08  Simon Josefsson  <jas@extundo.com>
45937
45938         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
45939
45940 2005-10-07  Simon Josefsson  <jas@extundo.com>
45941
45942         * m4/memxor.m4: Remove gl_C_RESTRICT call.
45943
45944 2005-10-06  Simon Josefsson  <jas@extundo.com>
45945
45946         * tests/test-hmac-md5.c: New file.
45947
45948         * modules/hmac-md5-tests: New file.
45949
45950         * modules/hmac-md5: New file.
45951
45952 2005-10-06  Simon Josefsson  <jas@extundo.com>
45953
45954         * m4/hmac-md5.m4: New file.
45955
45956         * m4/memxor.m4: Require gl_C_RESTRICT.
45957
45958 2005-10-06  Simon Josefsson  <jas@extundo.com>
45959
45960         * lib/memxor.c (memxor): Avoid casts and warnings.
45961
45962 2005-10-06  Simon Josefsson  <jas@extundo.com>
45963
45964         * lib/hmac-md5.c: New file.
45965
45966         * lib/hmac.h: New file.
45967
45968 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45969
45970         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
45971         promotes to int, not unsigned int, to catch the AIX 5.3
45972         compiler bug.
45973
45974 2005-10-05  Simon Josefsson  <jas@extundo.com>
45975
45976         * modules/memxor: New file.
45977
45978         * modules/iconv (Files): Move config.rpath to havelib, it is used
45979         there.
45980
45981         * modules/havelib (Files): Add config.rpath.
45982
45983 2005-10-05  Simon Josefsson  <jas@extundo.com>
45984
45985         * m4/memxor.m4: New file.
45986
45987 2005-10-05  Simon Josefsson  <jas@extundo.com>
45988
45989         * lib/memxor.c (memxor): Fix compiler error.
45990
45991         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
45992         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
45993
45994         * lib/memxor.h, lib/memxor.c: New files.
45995
45996         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
45997         we assume all systems have it, suggested by Jim Meyering
45998         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
45999         any systems lack sys/socket.h; mingw32 is known to lack it, but we
46000         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
46001         same reasons.
46002
46003 2005-10-05  Simon Josefsson  <jas@extundo.com>
46004
46005         * config/srclist.txt: Add glibc bug 1423 for md5.h.
46006
46007 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46008
46009         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
46010         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
46011         needed, since the source code now assumes these .h files.
46012
46013 2005-10-05  Derek Price  <derek@ximbiot.com>
46014
46015         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
46016
46017 2005-10-05  Bruno Haible  <bruno@clisp.org>
46018
46019         * modules/stdint (License): Change to LGPL.
46020
46021 2005-10-04  Simon Josefsson  <jas@extundo.com>
46022
46023         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
46024         D. Baushke" <mdb@gnu.org>.
46025
46026 2005-10-04  Bruno Haible  <bruno@clisp.org>
46027
46028         * lib/verify.h (verify_true): Provide alternative definition for C++.
46029
46030 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
46031
46032         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
46033         (SSIZE_MAX): New macro, if not already defined.
46034         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
46035         than 2 GiB.
46036
46037 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
46038
46039         Sync from coreutils.
46040         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
46041         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
46042         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
46043         ULLONG_MAX doesn't work with 2.7.2.1.
46044
46045 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
46046
46047         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
46048         From Ben Pfaff.
46049
46050         * modules/exclude (Depends-on): Depend on verify.
46051         * modules/strtoimax (Depends-on): Likewise.
46052         * modules/utimecmp (Depends-on): Likewise.
46053
46054 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
46055
46056         * lib/exclude.c: Include verify.h.
46057         (verify): Remove.  All callers changed to use verify.h's version.
46058         * lib/strtoimax.c: Likewise.
46059         * lib/utimecmp.c: Likewis.e
46060
46061         Sync from coreutils.
46062         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
46063         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
46064         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
46065         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
46066         bother returning ENOSYS if settimeofday or stime fails; just let
46067         them return whatever errno they want to return.
46068         * lib/utimens.c: Include unistd.h, for dup2.
46069         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
46070         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
46071
46072 2005-10-02  Jim Meyering  <jim@meyering.net>
46073
46074         Sync from coreutils.
46075         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
46076         from glibc-2.2.5 that fails for read-only files.
46077
46078 2005-10-02  Jim Meyering  <jim@meyering.net>
46079
46080         Sync from coreutils.
46081         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
46082         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
46083         `#if HAVE_CONFIG_H'.
46084         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
46085         Remove AT_FDCWD test.
46086         Do not consume the fd unless successful.
46087         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
46088         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
46089         block, so that we don't even try to compile it if settimeofday is
46090         available.  This works around a compilation failure on OSF1 V5.1,
46091         due to stime requiring a `long int*' while tv_sec is `int'.
46092
46093 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
46094
46095         Sync from coreutils.
46096         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
46097         against `yes', rather than just testing for nonempty.
46098
46099 2005-10-01  Simon Josefsson  <jas@extundo.com>
46100
46101         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
46102         and Darwin.
46103
46104         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
46105         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
46106         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
46107         freeaddrinfo and gai_strerror are declared by the POSIX headers.
46108         Check if struct addrinfo is declared.
46109
46110 2005-10-01  Simon Josefsson  <jas@extundo.com>
46111
46112         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
46113         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
46114         AI_* and EAI_* definitions.  Protect function declarations.
46115
46116 2005-10-01  Jim Meyering  <jim@meyering.net>
46117
46118         Sync from coreutils.
46119
46120         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
46121         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
46122         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
46123         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
46124         in the inet and nsl libraries.  Required on Solaris 5.7.
46125
46126 2005-10-01  Jim Meyering  <jim@meyering.net>
46127
46128         Sync from coreutils.
46129         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
46130         in the inet and nsl libraries.  Required on Solaris 5.7.
46131
46132 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
46133
46134         * lib/getdelim.c (getdelim): Remove unused variables.
46135
46136 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
46137
46138         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
46139         so that the code works even with ancient cpp.  Portability problem
46140         with GCC 2.7.2.1 reported by Thomas M.Ott.
46141
46142 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
46143
46144         * modules/regex (Depends-on): Add strcase.
46145
46146         * modules/gethostname (Licence): Change from GPL to LGPL, since
46147         gethostname.c is a trivial implementation of a standard library
46148         function.
46149         * modules/poll (License): Change from GPL to LGPL, since it's
46150         derived from LGPL code.
46151
46152 2005-09-27  Jim Meyering  <jim@meyering.net>
46153
46154         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
46155         HAVE_CONFIG_H.
46156
46157         * lib/intprops.h (signed_type_or_expr__): Define.
46158         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
46159         for unsigned types.
46160
46161 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46162
46163         * lib/verify.h (verify_expr): Remove, replacing with:
46164         (verify_true): New macro that returns true instead of void.
46165         (verify_type__): Remove.
46166         (verify): Use verify_true rather than verify_type__.
46167
46168 2005-09-26  Bruno Haible  <bruno@clisp.org>
46169
46170         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
46171         is necessary.
46172         (lib_SOURCES): Remove mbchar.c.
46173         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
46174         (Files): Add m4/mbrtowc.m4.
46175         * modules/mbiter: Likewise.
46176         * modules/mbuiter: Likewise.
46177
46178 2005-09-26  Bruno Haible  <bruno@clisp.org>
46179
46180         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
46181         compile mbchar.c if they are not both present.
46182         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
46183         * m4/mbiter.m4 (gl_MBITER): Likewise.
46184         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
46185         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
46186         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
46187
46188 2005-09-25  Jim Meyering  <jim@meyering.net>
46189
46190         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
46191         also uses socklen_t.
46192
46193 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
46194
46195         * lib/utimens.c (ENOSYS): Define if not already defined.
46196         (futimens): Support having a null PATH if the file descriptor
46197         is nonnegative.
46198
46199         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
46200         Remove.
46201         (__attribute): Define to empty unless GCC 3.1 or later.
46202         This works around a core dump on OpenBSD 3.4, which has GCC
46203         2.95.3, which dumps core when given __attribute__(()).  It also
46204         simplifies other tests, since we really don't want to bother with
46205         worrying about which ancient version of GCC supported what.
46206         Original problem reported by Yoann Vandoorselaere, with part of
46207         the fix suggested by Derek Price.
46208
46209 2005-09-24  Jim Meyering  <jim@meyering.net>
46210
46211         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
46212         so we can once again use a positive bitfield width of 1 -- now we
46213         don't have to explain why we were using a bitfield width of 2.
46214
46215 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
46216
46217         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
46218         and similarly for the other external symbols.  Problem reported
46219         by James Gallager.
46220
46221         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
46222         bug reported by Jim Meyering.
46223
46224         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
46225         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
46226         not needed, since socklen is a prerequisite module.
46227
46228 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
46229
46230         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
46231         Problem reported by Eric Blake.
46232         (getaddrinfo): Initialize se so that it's not garbage.
46233         Redo internal storage allocation so that it doesn't make unportable
46234         assumptions about alignment.
46235         Fix a memory leak.
46236
46237         * lib/utimens.c (futimens): Use futimesat if available.
46238         Prefer it to futimes since it doesn't have the futimes bug.
46239
46240         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
46241         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
46242         Instead, declare a function that returns a pointer to an array,
46243         and use verify_type__ to declare the size of the array.
46244         Problem and germ of a solution reported by Bruno Haible.
46245         (verify_type__): Use 2, not 1, for bitfield size, to avoid
46246         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
46247
46248 2005-09-23  Jim Meyering  <jim@meyering.net>
46249
46250         Sync from coreutils.
46251         Correct build failure (socklen_t not defined) on at least
46252         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
46253         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
46254
46255 2005-09-23  Jim Meyering  <jim@meyering.net>
46256
46257         * modules/getaddrinfo (Depends-on): Add socklen.
46258
46259 2005-09-23  Bruno Haible  <bruno@clisp.org>
46260
46261         * tests/test-verify.c: New file.
46262
46263 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46264
46265         Sync from coreutils.
46266
46267         * modules/argmatch (Depends-on): Add verify.
46268         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
46269         unistd-safer.
46270         * modules/save-cwd (Depends-on): Likewise.
46271
46272         * modules/openat (Files): Add lib/openat-die.c.
46273         (Depends-on): Remove error, exitfail.
46274         Add dirname.
46275
46276         * modules/verify: New file.
46277         * MODULES.html.sh (Diagnostics <assert.h>): New section,
46278         with "verify" module.
46279
46280 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46281
46282         Sync from coreutils.
46283
46284         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
46285         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
46286         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
46287         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
46288         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
46289         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
46290         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
46291         Don't bother checking for string.h, stdlib.h, unistd.h.
46292         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
46293         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
46294         module's job.
46295         * m4/jm-macros.m4 (gl_MACROS): Likewise.
46296         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
46297
46298         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
46299         (gl_GETDATE): Use it.
46300
46301         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
46302
46303 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46304
46305         Sync from coreutils.
46306
46307         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
46308         stat-time.h.
46309         * lib/argmatch.h: Include verify.h
46310         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
46311         (ARGMATCH_ASSERT): Remove; unused.
46312         * lib/canonicalize.c: Assume STDC_HEADERS.
46313         * lib/exclude.c: Include "strcase.h".
46314         * lib/regex_internal.h [!defined _LIBC]: Likewise.
46315         * lib/getusershell.c: Include stdio--.h rather than stdio.h
46316         and stdio-safer.h.
46317         (getusershell): Call fopen, not fopen_safer.
46318         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
46319         Do not include unistd-safer.h.
46320         (save_cwd): Don't call fd_safer; no longer needed
46321         now that we include fcntl--.h.
46322
46323         * lib/getdate.y (relative_time): New type.
46324         (RELATIVE_TIME_0): New constant.
46325         (parser_control): Use relative_time instead of doing it ourselves.
46326         (%union): Add new relative_time rel member.
46327         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
46328         Now typeless.
46329         (relunit, relunit_snumber): Now of type rel.
46330         (zone, rel, relunit, get_date): Adjust to above changes.
46331
46332         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
46333         Do not include unistd-safer.h.
46334         (getloadavg): Don't call fd_safer; no longer needed
46335         now that we include fcntl--.h.
46336
46337         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
46338         (make_dir_parents): Treat ENOSYS like EEXIST.
46339
46340         Improve quality of diagnostics on restore_cwd failure.
46341         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
46342         (make_dir_parents): Last arg is now int * (for errno), not bool *.
46343         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
46344         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
46345         each time through the loop.  Do not diagnose restore_cwd failure;
46346         that is the caller's job (and perhaps the caller does not care).
46347
46348         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
46349         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
46350         If the file already exists but is not a directory, don't bother
46351         to try to make its parents.
46352         Close potential file descriptor leak if we can't chdir("/") (!).
46353         Don't always return true if chdir($PWD) fails; return true only
46354         if the requested action was done successfully (except for the
46355         chdir($PWD)).
46356         Don't log final directory unless we actually made it.
46357         Refactor to avoid duplicate code to fix up permissions.
46358         Don't attempt to fix up parent permissions if chdir($PWD) fails.
46359
46360         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
46361         to make it a bit faster and (I hope) clearer.
46362         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
46363         Fix bug in formats like %2N.
46364
46365         * lib/verify.h: New file.
46366
46367 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46368
46369         Sync from coreutils.
46370         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
46371
46372 2005-09-22  Jim Meyering  <jim@meyering.net>
46373
46374         Sync from coreutils.
46375
46376         * m4/lstat.m4 (gl_FUNC_LSTAT):
46377         Use AC_LIBSOURCES to require lstat.c and lstat.h.
46378         Remove obsolete comment.
46379         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
46380         * m4/xstrtod.m4: Likewise.
46381
46382         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
46383
46384 2005-09-22  Jim Meyering  <jim@meyering.net>
46385
46386         Sync from coreutils.
46387
46388         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
46389
46390         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
46391         the .tm_year member, since otherwise gcc-4.0 would now warn about
46392         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
46393
46394         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
46395         order to avoid an unsuppressible warning from gcc on 64-bit systems.
46396
46397         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
46398         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
46399         when run in a time zone for which daylight savings time is in effect
46400         for the starting date.
46401
46402         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
46403         stop us from restricting permissions of just-created absolute-named
46404         directories.
46405         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
46406         to restore initial working directory.
46407         * lib/mkdir-p.c (make_dir_parents): New parameter:
46408         different_working_dir, to tell caller if/when we change the working
46409         directory and are unable to return to the initial one.
46410         * lib/mkdir-p.h (make_dir_parents): Update prototype.
46411         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
46412         `return false'.  This fixes a bug introduced on 2004-07-30.
46413
46414         * lib/openat.c (fdopendir): Be sure to close the supplied
46415         file descriptor before returning.  This makes our replacement
46416         implementation a little closer to Solaris's, where fdopendir
46417         ties the file descriptor to the returned DIR* pointer.
46418         * lib/openat.c (unlinkat): New function.
46419         * lib/openat.h (unlinkat): Add prototype.
46420         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
46421         (openat_restore_fail): Rename from openat_restore_die.
46422         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
46423
46424         Provide an alternative to exiting immediately upon save_cwd or
46425         restore_cwd failure.  Now, an application can arrange e.g.,
46426         to perform a longjump in that case.
46427         * lib/openat.c: Include dirname.h.
46428         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
46429         (rpl_openat, fdopendir, fstatat): Call openat_save_die
46430         and openat_restore_die rather than calling error directly.
46431         Don't include "error.h" or "exitfail.h"; they're no longer needed.
46432
46433         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
46434         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
46435         define.
46436
46437         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
46438         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
46439                             int utc, int nanoseconds);
46440         Background:
46441         date should not have to allocate a megabyte of virtual memory to
46442         handle a format argument like +%1048575T.  When implemented with
46443         strftime, it must allocate such a buffer, use strftime to fill it
46444         in, print it, then free it.
46445         With fprintftime, it simply prints everything and exits.
46446         With no need for memory allocation, that's one fewer way to fail.
46447         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
46448         optional field width, not before, so we accept %9:z, not %:9z.
46449         (my_strftime): Be sure to use L_('x') for literals.
46450
46451         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
46452         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
46453         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
46454         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
46455         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
46456         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
46457         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
46458         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
46459         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
46460         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
46461         * lib/xgethostname.c, lib/xreadlink.c:
46462         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
46463
46464         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
46465         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
46466         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
46467         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
46468         and don't include <sys/file.h>).
46469
46470 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
46471
46472         Sync from coreutils.
46473
46474         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
46475         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
46476         [!LDAV_DONE]: Avoid unused variable warning.
46477
46478 2005-09-21  Bruno Haible  <bruno@clisp.org>
46479
46480         * lib/unicodeio.h (unicode_to_mb): New declaration.
46481
46482 2005-09-20  Derek Price  <derek@ximbiot.com>
46483
46484         * lib/getaddrinfo.c: Don't include <netdb.h> included from
46485         getaddrinfo.h.
46486
46487 2005-09-20  Bruno Haible  <bruno@clisp.org>
46488
46489         * gnulib-tool: Remove trailing slashes from the values specified for
46490         --source-base, --m4-base, --tests-base, --aux-dir.
46491         Suggested by Simon Josefsson <jas@extundo.com>.
46492
46493 2005-09-20  Bruno Haible  <bruno@clisp.org>
46494
46495         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
46496         func_modules_to_filelist, func_import, func_create_testdir): Make all
46497         sorting results locale-independent, so that gnulib-cache.m4 doesn't
46498         change when gnulib-tool is invoked in a different locale.
46499
46500 2005-09-19  Simon Josefsson  <jas@extundo.com>
46501
46502         * m4/socklen.m4: Fix typo.
46503
46504 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46505
46506         Use a consistent style for including <config.h>.
46507         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
46508         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
46509         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
46510         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
46511         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
46512         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
46513         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
46514         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
46515         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
46516         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
46517         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
46518         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
46519         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
46520         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
46521         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
46522         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
46523         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
46524         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
46525         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
46526         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
46527         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
46528         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
46529         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
46530         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
46531         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
46532         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
46533         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
46534         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
46535         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
46536         lib/xstrtoumax.c, lib/yesno.c:
46537         Standardize inclusion of config.h.
46538         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
46539         lib/inttostr.h:  Removed inclusion of config.h from header files.
46540         * lib/inttostr.c:  Adjusted in-tree users.
46541         * lib/timespec.h: Remove superfluous warning to include config.h.
46542         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
46543         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
46544         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
46545         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
46546         config.h with HAVE_CONFIG_H.
46547
46548 2005-09-19  Jim Meyering  <jim@meyering.net>
46549
46550         * modules/pathmax (License): Change to LGPL.
46551
46552 2005-09-19  Derek Price  <derek@ximbiot.com>
46553
46554         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
46555
46556 2005-09-19  Bruno Haible  <bruno@clisp.org>
46557
46558         * gnulib-tool (import): Provide default for --tests-base.
46559
46560 2005-09-19  Bruno Haible  <bruno@clisp.org>
46561
46562         * doc/quote.texi: New file, extracted from gnulib.texi.
46563         * doc/ctime.texi: New file, extracted from gnulib.texi.
46564         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
46565         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
46566         * doc/gnulib.texi: Include them.
46567
46568 2005-09-18  Bruno Haible  <bruno@clisp.org>
46569
46570         Portability fix.
46571         * gnulib-tool (func_readlink): New function.
46572         (func_ln_if_changed): Use it.
46573
46574 2005-09-18  Bruno Haible  <bruno@clisp.org>
46575
46576         * gnulib-tool: Support --with-tests also with --import.
46577         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
46578         (func_import): Use variables $testsbase and $inctests. Emit a
46579         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
46580         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
46581         SUBDIRS += $testsdir.
46582         (func_create_testdir): Update.
46583
46584 2005-09-18  Bruno Haible  <bruno@clisp.org>
46585
46586         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
46587         instead of $dry_run.
46588         (func_cp_if_changed, func_mv_if_changed): Remove functions.
46589         (func_ln_if_changed): Don't handle dry-run here.
46590         (func_import): In dry-run mode, detect more precisely which actions
46591         would be performed, and don't use "...ing" verbs.
46592
46593 2005-09-18  Bruno Haible  <bruno@clisp.org>
46594
46595         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
46596         (func_import): Use join on two temporary files instead of three nested
46597         loops, in order to determine which files are new or old.
46598
46599 2005-09-18  Bruno Haible  <bruno@clisp.org>
46600
46601         * gnulib-tool (func_import): Comment out code that spits out the
46602         new files with --dry-run.
46603
46604 2005-09-18  Bruno Haible  <bruno@clisp.org>
46605
46606         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
46607
46608 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46609
46610         * lib/stat-time.h: New file.
46611         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
46612         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
46613         in a different way.
46614         (timespec_cmp): New function.
46615         * lib/utimecmp.c: Include stat-time.h.
46616         (SYSCALL_RESOLUTION): Depend on whether various struct stat
46617         members exist, not on the obsolescent ST_MTIM_NSEC.
46618         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
46619
46620 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46621
46622         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
46623
46624 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46625
46626         * MODULES.html.sh (File system functions): Add stat-time.
46627         * modules/stat-time: New file.
46628         * modules/timespec (Files): Remove m4/st_mtim.m4; this
46629         is now done in a different way, by the stat-time module.
46630         * modules/utimecmp (Depends-on): Add stat-time.
46631
46632 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46633
46634         * m4/st_mtim.m4: Remove.  Superseded by...
46635         * m4/stat-time.m4: New file.
46636         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
46637         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
46638
46639 2005-09-15  Derek Price  <derek@ximbiot.com>
46640
46641         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
46642
46643 2005-09-15  Derek Price  <derek@ximbiot.com>
46644
46645         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
46646         * lib/regex_internal.c: Ditto, using this...
46647         (__GNUC_PREREQ): ...new macro.
46648         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
46649         using...
46650         (__GNUC_PREREQ): ...this new macro.
46651
46652         * lib/strstr.h: Include string.h. Define strstr as a macro here.
46653
46654 2005-09-15  Derek Price  <derek@ximbiot.com>
46655             Paul Eggert  <eggert@cs.ucla.edu>
46656
46657         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
46658         changes, consolidating in...
46659         * lib/regex_internal.h: ...this file.
46660
46661 2005-09-13  Jim Meyering  <jim@meyering.net>
46662
46663         * lib/canon-host.c: Filter through gnu indent and reword comments
46664         slightly.
46665         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
46666
46667 2005-09-13  Derek Price  <derek@ximbiot.com>
46668
46669         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
46670         failure.
46671         Reported by Jim Meyering  <jim@meyering.net>.
46672
46673 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46674
46675         * lib/base64.c: Typo.
46676         (base64_encode): Put b64str in initialized data section.
46677
46678 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
46679
46680         Merge glibc and coreutils changes into gnulib, plus a few
46681         extra fixes.
46682         * lib/md5.c: Use #error rather than a string.
46683         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
46684         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
46685         (__attribute__): Define to empty for non recent-GCC.
46686         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
46687         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
46688         Renamed from their non-__ counterparts, with new macros replacing
46689         them if not _LIBC.  Add __THROW attribute.
46690         (rol): Remove.
46691         (struct md5_ctx): Align buffer if using GCC.
46692         * lib/sha1.h (struct sha1_ctx): Likewise.
46693         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
46694         The old name was backwards.
46695         (NOTSWAP): Remove; not used.
46696         (rol): New macro, moved here from md5.h.
46697         (sha1_process_block): Remove a FIXME that doesn't make sense.
46698
46699 2005-09-12  Derek Price  <derek@ximbiot.com>
46700
46701         Return usable errors from canon-host.
46702         * lib/canon-host.h: New file.
46703         * lib/canon-host.c (canon_host): Wrap...
46704         (canon_host_r): ...this new function, which now relies exclusively on
46705         getaddrinfo.
46706         (ch_strerror): New function.
46707         (last_cherror): New global.
46708         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
46709         interface.
46710         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
46711         void *.
46712         (freeaddrinfo): Free ai->ai_canonname when set.
46713
46714 2005-09-12  Derek Price  <derek@ximbiot.com>
46715
46716         Make canon-host require getaddrinfo.
46717         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
46718         AC_LIBSOURCE canon-host.h.  Call...
46719         (gl_PREREQ_CANON_HOST): ...this new function, which requires
46720         gl_GETADDRINFO.
46721         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
46722
46723 2005-09-12  Derek Price  <derek@ximbiot.com>
46724
46725         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
46726         LGPL.
46727         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
46728
46729 2005-09-12  Derek Price  <derek@ximbiot.com>
46730
46731         * lib/gai_strerror.c: Include config.h when available.  Include
46732         getaddrinfo.h before other headers to test interface.
46733         Reported by Larry Jones <lawrence.jones@ugs.com>.
46734
46735 2005-09-12  Derek Price  <derek@ximbiot.com>
46736             Paul Eggert  <eggert@cs.ucla.edu>
46737
46738         * modules/glob (Files): Add glob-libc.h.
46739
46740 2005-09-12  Derek Price  <derek@ximbiot.com>
46741             Paul Eggert  <eggert@cs.ucla.edu>
46742
46743         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
46744         glob_.h, glob-libc.h.
46745         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
46746
46747 2005-09-12  Derek Price  <derek@ximbiot.com>
46748             Paul Eggert  <eggert@cs.ucla.edu>
46749
46750         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
46751         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
46752         protecting things that should be done only in gnulib contexts.
46753         * lib/glob_.h: New file, containing only the glob things needed for
46754         gnulib.
46755         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
46756         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
46757         (glob, globfree, glob_pattern_p): Now defined simply in terms of
46758         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
46759         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
46760         and to respect the namespace rules better.
46761
46762 2005-09-08  Simon Josefsson  <jas@extundo.com>
46763
46764         * modules/socklen: New file.
46765
46766 2005-09-08  Simon Josefsson  <jas@extundo.com>
46767
46768         * m4/socklen.m4: New file.
46769
46770 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46771
46772         * modules/utimens (Files): Add m4/utimbuf.m4, since
46773         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
46774         Reported by Sergey Poznyakoff.
46775
46776 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46777
46778         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
46779         definitions, since that's the preferred style in glibc.
46780         Fix a minor spacing issue, and update copyright notice to match
46781         glibc's.
46782
46783 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46784
46785         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
46786
46787 2005-09-06  Simon Josefsson  <jas@extundo.com>
46788
46789         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
46790         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
46791
46792 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46793
46794         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
46795         warning.
46796
46797 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46798
46799         * config/srclist.txt: Add glibc bug 1302.
46800
46801 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
46802
46803         Change bitset word type from unsigned int to unsigned long int,
46804         as this has better performance on typical 64-bit hosts.
46805         Port bitset code to hosts with unusual word sizes.
46806         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
46807         (build_collating_symbol):
46808         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
46809         argument is a bitset.  This is merely a style issue, but it makes
46810         it clearer that an entire array is expected.
46811         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
46812         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
46813         Port to the case where bitset_word is not the same as unsigned int.
46814         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46815         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
46816         Likewise.
46817         * lib/regexec.c (check_dst_limits_calc_pos_1,
46818         check_subexp_matching_top):
46819         (build_trtable, group_nodes_into_DFAstates):
46820         Likewise.
46821         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
46822         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
46823         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
46824         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
46825         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
46826         * lib/regcomp.c (optimize_subexps, lower_subexp):
46827         Work even if bitset_word has holes in its bitwise representation.
46828         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
46829         * lib/regexec.c (check_dst_limits_calc_pos_1,
46830         check_subexp_matching_top):
46831         Likewise.
46832         * lib/regex_internal.c (re_string_reconstruct):
46833         Don't assume UCHAR_MAX == 255.
46834         * lib/regex_internal.h (bitset_set_all): Likewise.
46835         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
46836         All uses changed.
46837         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
46838         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
46839         All uses changed.
46840         (BITSET_WORD_MAX): New macro.
46841         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
46842         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
46843         (bitset_empty, bitset_copy):
46844         Prefer sizeof (bitset) to multiplying it out ourselves.
46845         (bitset_not_merge): Remove; unused.
46846         (bitset_contain): Return bool, not unsigned int with one bit on.
46847         All callers changed.
46848         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
46849         alignment than re_node_set; do this by defining a new internal
46850         type struct dests_alloc and using it to allocate memory.
46851
46852 2005-09-05  Bruno Haible  <bruno@clisp.org>
46853
46854         * gnulib-tool (func_import): Fix comparison in handling of symbolic
46855         links.
46856
46857 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
46858
46859         * modules/size_max (Makefile.am): Add size_max.h
46860
46861 2005-09-04  Derek Price  <derek@ximbiot.com>
46862
46863         * gnulib-tool (func_import): Fix reversed $symbolic logic.
46864
46865 2005-09-03  Simon Josefsson  <jas@extundo.com>
46866
46867         * gnulib-tool: Fix typo.
46868
46869 2005-09-03  Simon Josefsson  <jas@extundo.com>
46870
46871         * config/srclist.txt: Add glibc bug 1293.
46872
46873 2005-09-03  Derek Price  <derek@ximbiot.com>
46874
46875         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
46876         From Larry Jones <lawrence.jones@ugs.com>.
46877
46878 2005-09-02  Simon Josefsson  <jas@extundo.com>
46879
46880         * modules/socklen: New file.
46881
46882 2005-09-02  Simon Josefsson  <jas@extundo.com>
46883
46884         * modules/havelib: New module.
46885
46886         * modules/gettext, modules/iconv, modules/lock, modules/readline:
46887         Use havelib.
46888
46889 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46890
46891         Check for arithmetic overflow when calculating sizes, to prevent
46892         some buffer-overflow issues.  These patches are conservative, in the
46893         sense that when I couldn't determine whether an overflow was possible,
46894         I inserted a run-time check.
46895         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
46896         macros.
46897         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
46898         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
46899         (re_xnrealloc, re_x2nrealloc): New inline functions.
46900         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
46901         parse_bracket_exp):
46902         (build_equiv_class, build_charclass): Check for arithmetic overflow
46903         in size expression calculations.
46904         * lib/regex_internal.c (re_string_realloc_buffers):
46905         (build_wcs_upper_buffer, re_node_set_add_intersect):
46906         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
46907         (re_dfa_add_node, register_state): Likewise.
46908         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
46909         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
46910         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
46911         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
46912
46913 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46914
46915         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
46916         m4/ulonglong.m4.  Problem reported by Martin Lambers.
46917
46918 2005-09-02  Bruno Haible  <bruno@clisp.org>
46919
46920         Support for lib vs. lib64 distinction on biarch platforms.
46921         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
46922         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
46923         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
46924
46925 2005-09-02  Bruno Haible  <bruno@clisp.org>
46926
46927         * gnulib-tool (import): In the other first-use case, provide defaults
46928         as well.
46929
46930 2005-09-02  Bruno Haible  <bruno@clisp.org>
46931
46932         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
46933         patches not yet found in the latest gettext release.
46934
46935 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46936
46937         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
46938         to avoid a collision with bits/local_lim.h in glibc.
46939         All uses changed.  Problem reported by Dmitry V. Levin in
46940         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
46941
46942         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
46943         bugs in int versus size_t comparisons.
46944         (re_string_context_at): Fix bug where the code assumed that
46945         Idx is signed.
46946
46947         Use bool where appropriate.
46948         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
46949         All callers changed.
46950         (calc_eclosure_iter): Likewise, for ROOT arg.
46951         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
46952         (build_charclass_op): Likewise, for NON_MATCH arg.
46953         * lib/regex_internal.c (re_string_allocate, re_string_construct):
46954         (re_string_construct_common): Likewise, for ICASE arg.
46955         * lib/regexec.c (re_search_2_stub, re_search_stub):
46956         Likewise, for RET_LEN arg.
46957         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
46958         (set_regs): Likewise, for FL_BACKTRACK arg.
46959         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
46960         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
46961         (calc_eclosure_iter, parse_bracket_exp):
46962         Use bool for internal variables that are booleans.
46963         * lib/regexec.c (re_search_internal, check_matching,
46964         proceed_next_node):
46965         (set_regs, build_sifted_states, sift_states_bkref):
46966         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
46967         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
46968         (find_collation_sequence_value):
46969         Likewise.
46970         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
46971         (re_node_set_compare):
46972         Return bool, not int. All callers changed.
46973         * lib/regexec.c (check_halt_node_context, check_dst_limits):
46974         (build_trtable, check_node_accept): Likewise.
46975         * lib/regex_internal.h: Include stdbool.h.
46976
46977         Fix bugs uncovered when converting to bool.
46978         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
46979         failure instead of charging ahead blindly.
46980         * lib/regex_internal.c (register_state): Likewise.
46981         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
46982         for freeing internal storage.
46983         (group_nodes_into_DFA_states): Use unsigned int, not int, for
46984         bitset pieces used as boolean, to avoid undefined behavior
46985         on hosts that do int overflow checking.
46986
46987 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46988
46989         * config/srclist.txt: Add glibc bugs 1285-1287.
46990
46991 2005-09-01  Jim Meyering  <jim@meyering.net>
46992
46993         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
46994         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
46995         Require gl_STAT_MACROS, too.
46996
46997 2005-09-01  Bruno Haible  <bruno@clisp.org>
46998
46999         * gnulib-tool (import): In the first-use case, provide defaults.
47000
47001 2005-09-01  Bruno Haible  <bruno@clisp.org>
47002
47003         * gnulib-tool (func_import): Remove the .tmp files.
47004
47005 2005-09-01  Bruno Haible  <bruno@clisp.org>
47006
47007         * gnulib-tool (func_import): Fix handling of symbolic links.
47008
47009 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47010
47011         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
47012         old glibc regex code mishandles strings longer than 2**31 bytes.
47013         This patch fixes this when the regex code is used in gnulib
47014         (i.e., outside glibc).
47015
47016         This patch should not affect the use of the regex code inside
47017         glibc.  No doubt this problem also needs to be handled for glibc
47018         as well, but the result will be an incompatible change to the
47019         glibc ABI, and the old ABI will have to be supported too.  That
47020         can be the the subject for another patch.
47021
47022         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
47023         governing whether the rest of this patch is active.  By default,
47024         the macro is disabled and the patch has no effect.
47025         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
47026         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
47027         (struct re_pattern_buffer, re_search, re_search_2, re_match):
47028         (re_match_2, re_set_registers): Use the new types.
47029         * lib/regex_internal.h (Idx, re_hashval_t): New types.
47030         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
47031         New macros.
47032         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
47033         (re_string_context_at, bin_tree_t, re_dfastate_t):
47034         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
47035         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
47036         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
47037         (re_string_char_size_at, re_string_wchar_at):
47038         (re_string_elem_size_at):
47039         Use the new types and macros to port to 64-bit hosts.
47040         Use unsigned types for internal values, so that the code
47041         mostly works even for arrays larger than SSIZE_MAX.
47042         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
47043         (search_duplicated_node, calc_eclosure_iter, fetch_number):
47044         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
47045         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
47046         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
47047         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
47048         (calc_inveclosure, parse_dup_op, build_range_exp):
47049         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
47050         (fetch_number, create_token_tree, mark_opt_subexp):
47051         Likewise.
47052         * lib/regex_internal.c (re_string_construct_common,
47053         create_ci_newstate):
47054         (create_cd_newstate, re_string_allocate, re_string_construct):
47055         (re_string_realloc_buffers, build_wcs_upper_buffer):
47056         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47057         (re_string_reconstruct, re_string_peek_byte_case):
47058         (re_string_fetch_byte_case, re_string_context_at):
47059         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47060         (re_node_set_init_copy, re_node_set_add_intersect):
47061         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47062         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47063         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47064         (re_acquire_state, re_acquire_state_context, register_state):
47065         Likewise.
47066         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
47067         search_cur_bkref_entry):
47068         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
47069         (re_search_internal, re_search_2_stub, re_search_stub)
47070         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
47071         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
47072         (update_cur_sifted_state, check_dst_limits):
47073         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
47074         (check_subexp_limits, sift_states_bkref, merge_state_array):
47075         (check_subexp_matching_top, get_subexp, get_subexp_sub):
47076         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
47077         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47078         (expand_bkref_cache, check_node_accept_bytes):
47079         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
47080         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
47081         (acquire_init_state_context, check_halt_node_context):
47082         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
47083         (sift_states_backward, clean_state_log_if_needed):
47084         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
47085         (find_recover_state, transit_state_sb, transit_state_mb):
47086         (transit_state_bkref, build_trtable, match_ctx_clean):
47087         Likewise.
47088         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
47089         to work around an assumption that REG_MISSING is negative.
47090
47091         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
47092         (seek_collating_symbol_entry) [defined _LIBC]:
47093         (lookup_collation_sequence_value) [defined _LIBC]:
47094         (build_range_exp, build_collating_symbol) [defined _LIBC]:
47095         Use prototypes rather than old-style function definitions.
47096         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
47097         (transit_state_sb) [0]:
47098         (find_collation_sequence_value) [defined _LIBC]: Likewise.
47099
47100         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
47101         rm_eo.
47102
47103         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
47104         (optimize_subexps, lower_subexp):
47105         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
47106         since the signed shift might overflow.  Use 1u<<31 instead.
47107         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
47108         Likewise.
47109         * lib/regexec.c (check_dst_limits_calc_pos_1,
47110         check_subexp_matching_top): Likewise.
47111
47112         * lib/regcomp.c (optimize_subexps, lower_subexp):
47113         Use CHAR_BIT rather than 8, for clarity.
47114         * lib/regexec.c (check_dst_limits_calc_pos_1):
47115         (check_subexp_matching_top): Likewise.
47116         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
47117         have to worry about portability issues when shifting it left.
47118         Remove no-longer-needed test for table_size > 0.
47119         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
47120         in a word, as the resulting behavior is undefined.
47121         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
47122         in one case, a <= should have been an <, and in another case the
47123         whole test was missing.
47124         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
47125         the standard name CHAR_BIT.
47126         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
47127         this is not true on one's complement and signed-magnitude hosts.
47128
47129         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
47130         next_last_offset.
47131         (struct re_dfa_t): Remove unused member states_alloc.
47132         * lib/regcomp.c (init_dfa): Don't initialize unused members.
47133
47134 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47135
47136         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
47137         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
47138         and large-file glibc and in 32-bit large-file Solaris.
47139
47140 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47141
47142         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
47143         lengths fit in regoff_t; this isn't true if regoff_t is the same
47144         width as size_t.
47145         * lib/regex.c (re_search_internal): 5th arg is LAST_START
47146         (= START + RANGE) instead of RANGE.  This avoids overflow
47147         problems when regoff_t is the same width as size_t.
47148         All callers changed.
47149         (re_search_2_stub): Check for overflow when adding the
47150         sizes of the two strings.
47151         (re_search_stub): Check for overflow when adding START
47152         to RANGE; if it occurs, substitute the extreme value.
47153
47154 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47155
47156         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
47157
47158 2005-08-31  Jim Meyering  <jim@meyering.net>
47159
47160         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
47161         a pointer-to-const.
47162         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
47163         (register_state): Likewise.
47164         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
47165         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
47166         (group_nodes_into_DFAstates): Likewise.
47167
47168 2005-08-31  Jim Meyering  <jim@meyering.net>
47169
47170         * check-module: Add a FIXME comment.
47171
47172 2005-08-31  Eric Blake  <ebb9@byu.net>
47173
47174         * modules/unistd-safer (Files): Add unistd--.h.
47175         * modules/stdio-safer (Files): Add stdio--.h.
47176
47177 2005-08-31  Derek Price  <derek@ximbiot.com>
47178
47179         * lib/getdelim.c (getdelim): Return EOF on EOF.
47180         Reported by Larry Jones <lawrence.jones@ugs.com>.
47181
47182 2005-08-31  Bruno Haible  <bruno@clisp.org>
47183
47184         Avoid unnecessary diffs in the generated lib/Makefile.am.
47185         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
47186         the generated files.
47187         (func_import): Don't set cmd.
47188
47189 2005-08-31  Bruno Haible  <bruno@clisp.org>
47190
47191         * lib/strstr.c: Include <stddef.h>, for NULL.
47192         * lib/strcasestr.c: Likewise.
47193         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47194
47195 2005-08-31  Bruno Haible  <bruno@clisp.org>
47196
47197         * gnulib-tool: New option --macro-prefix.
47198         (func_import): Use macro_prefix.
47199         (import): Handle option --macro-prefix.
47200
47201 2005-08-31  Bruno Haible  <bruno@clisp.org>
47202
47203         * gnulib-tool (import): Rename most ac_* variables to cached_*.
47204         Also use new variables cached_lgpl, cached_libtool.
47205
47206 2005-08-31  Bruno Haible  <bruno@clisp.org>
47207
47208         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
47209         always instantiating them.
47210
47211 2005-08-31  Bruno Haible  <bruno@clisp.org>
47212
47213         * gnulib-tool (func_import): Read the previous cached settings
47214         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
47215         earlier added by gnulib but are now dropped. Warn when a gnulib file
47216         overwrites a non-gnulib file.
47217
47218 2005-08-31  Bruno Haible  <bruno@clisp.org>
47219
47220         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
47221         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
47222         projects that don't keep autogenerated files in CVS. Put into
47223         actioncmd only the specified modules, not the transitive closure.
47224
47225 2005-08-31  Bruno Haible  <bruno@clisp.org>
47226
47227         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
47228         Create directories that shall be filled.
47229         (import): Don't look for gl_* macros in configure.ac. Recurse across
47230         all directories containing a gnulib-cache.m4 files, if meaningful.
47231
47232 2005-08-31  Bruno Haible  <bruno@clisp.org>
47233
47234         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
47235         (import): Set seen_libtool when we see gl_LIBTOOL.
47236
47237 2005-08-31  Bruno Haible  <bruno@clisp.org>
47238
47239         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
47240         declaration macro definitions from generated gnulib.m4.
47241
47242 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
47243
47244         * lib/iconvme.h: Add prototype for iconv_alloc.
47245
47246 2005-08-29  Simon Josefsson  <jas@extundo.com>
47247
47248         * lib/iconvme.c: Fix errno.
47249
47250 2005-08-29  Bruno Haible  <bruno@clisp.org>
47251
47252         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
47253         that it works when the directory contains spaces.
47254
47255 2005-08-29  Bruno Haible  <bruno@clisp.org>
47256
47257         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
47258
47259 2005-08-29  Bruno Haible  <bruno@clisp.org>
47260
47261         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
47262         Emit more advice.
47263
47264 2005-08-29  Bruno Haible  <bruno@clisp.org>
47265         and Stepan Kasal  <kasal@ucw.cz>
47266
47267         * check-module: If more parameters are given, check each of them
47268         separately; add more exceptions, as noted by Jim Meyering.
47269         (check_module): New procedure.
47270         (%exempt_header): Now contains all exceptions.
47271
47272 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
47273
47274         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
47275
47276 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
47277
47278         * lib/iconvme.c: Split iconv_string into iconv_alloc.
47279
47280 2005-08-28  Bruno Haible  <bruno@clisp.org>
47281
47282         * m4/gnulib-tool.m4: New file.
47283
47284 2005-08-27  Jim Meyering  <jim@meyering.net>
47285
47286         * modules/unistd-safer (Files): Add pipe-safer.c.
47287         * modules/fcntl-safer (Files): Add creat-safer.c.
47288
47289 2005-08-27  Jim Meyering  <jim@meyering.net>
47290
47291         * m4/stdlib-safer.m4: New file.  From coreutils.
47292         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
47293         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
47294         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
47295         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
47296         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
47297
47298 2005-08-27  Jim Meyering  <jim@meyering.net>
47299
47300         * lib/fopen-safer.c: Merge minor changes from coreutils.
47301         * lib/dup-safer.c: Likewise.
47302         * lib/fd-safer.c: Likewise.
47303
47304         Merge from coreutils.
47305         * lib/stdio--.h: New file.
47306         * lib/stdlib--.h: New file.
47307         * lib/mkstemp-safer.c: New file.
47308
47309         GNU tar needs these.
47310         * lib/pipe-safer.c: New file.
47311         * lib/creat-safer.c: New file.
47312         * lib/fcntl--.h (creat): Define to creat_safer.
47313         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
47314         * lib/unistd--.h (pipe): Define to pipe_safer.
47315         * lib/unistd-safer.h: Declare pipe_safer.
47316
47317 2005-08-26  Simon Josefsson  <jas@extundo.com>
47318
47319         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
47320         Haible <bruno@clisp.org>.
47321
47322 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
47323
47324         * lib/regex_internal.h: Remove all references to
47325         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
47326         or better.
47327         (bitset_not, bitset_merge, bitset_not_merge):
47328         (bitset_mask, re_string_allocate, re_string_construct):
47329         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
47330         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
47331         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
47332         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
47333         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47334         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47335         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
47336         (re_acquire_state_context):
47337         Remove unnecessary forward decls.
47338         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
47339         Put __attribute at function definition,
47340         now that the function decl has been removed.
47341         * lib/regex_internal.c (re_string_peek_byte_case):
47342         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
47343         Likewise.
47344
47345 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
47346
47347         * m4/regex.m4: Add AC_PREREQ(2.50).
47348         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
47349
47350 2005-08-25  Simon Josefsson  <jas@extundo.com>
47351
47352         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
47353         __fsetlocking.
47354
47355 2005-08-25  Simon Josefsson  <jas@extundo.com>
47356
47357         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
47358         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
47359         GLIBC specific code.
47360
47361 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47362
47363         Make regex safe for g++.  This fixes one real bug (an "err"
47364         that should have been "*err").  g++ problem reported by
47365         Sam Steingold.
47366         * lib/regex_internal.h (re_calloc): New macro, consistent with
47367         re_malloc etc.  All callers of calloc changed to use re_calloc.
47368         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
47369         not int.  All callers changed.
47370         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
47371         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
47372         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
47373         (find_recover_state): Change "err" to "*err"; this fixes what
47374         appears to be a real bug.
47375         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
47376         versus int.
47377
47378 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47379
47380         * modules/regex (Depends-on): Add malloc, since the code
47381         assumes that !malloc(0) means failure.
47382
47383 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47384
47385         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
47386
47387         alloca modernization/simplification for regex.
47388         * lib/regex.c: Remove portability cruft for alloca.  This no longer
47389         needs to be at the start of the file, and can be moved into
47390         regex_internal.h and simplified.
47391         * lib/regex_internal.h: Include <alloca.h>.
47392         (__libc_use_alloca) [!defined _LIBC]: New macro.
47393         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
47394         now works outside glibc.
47395
47396 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47397
47398         * config/srclist.txt: Add glibc bugs 1241, 1245.
47399
47400 2005-08-25  Jim Meyering  <jim@meyering.net>
47401
47402         * lib/open-safer.c: Include <config.h>.
47403         Otherwise, we'd lose LARGEFILE support in any file using
47404         e.g. "fcntl--.h"
47405
47406 2005-08-25  Bruno Haible  <bruno@clisp.org>
47407
47408         * m4/minmax.m4: Require autoconf 2.52.
47409         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
47410         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
47411         alternatives of translit over the alphabet.
47412         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
47413
47414 2005-08-24  Simon Josefsson  <jas@extundo.com>
47415
47416         * tests/test-getpass.c: New file.
47417
47418 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47419
47420         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
47421         for GNU regex features.
47422
47423 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47424
47425         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
47426         * lib/regex.h (regerror): Likewise.
47427
47428         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
47429         requires this.  (The code never needed it.)
47430
47431         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
47432         All uses of recently-renamed identifiers changed to use the new,
47433         POSIX-compliant names.  The code will build and run just fine
47434         without these changes, but it's better to eat our own dog food
47435         and use the standard-conforming names.
47436
47437         * lib/regex.h: Fix a multitude of POSIX name space violations.
47438         These changes have an effect only for programs that define
47439         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
47440         do not change anything for programs compiled in the normal way.
47441         Also, there is no effect on the ABI.
47442
47443         (_REGEX_SOURCE): New macro.
47444         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
47445         defined and _GNU_SOURCE is not; this fixes a name space violation.
47446
47447         Rename the following macros to obey POSIX requirements.
47448         The old names are still visible as macros if _REGEX_SOURCE is defined.
47449         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
47450         RE_BACKSLASH_ESCAPE_IN_LISTS.
47451         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
47452         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
47453         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
47454         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
47455         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
47456         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
47457         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
47458         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
47459         (REG_INTERVALS): renamed from RE_INTERVALS.
47460         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
47461         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
47462         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
47463         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
47464         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
47465         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
47466         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
47467         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
47468         RE_UNMATCHED_RIGHT_PAREN_ORD.
47469         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
47470         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
47471         (REG_DEBUG): renamed from RE_DEBUG.
47472         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
47473         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
47474         unusual, since we can't clash with the POSIX REG_ICASE.
47475         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
47476         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
47477         (REG_NO_SUB): renamed from RE_NO_SUB.
47478         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
47479         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
47480         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
47481         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
47482         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
47483         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
47484         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
47485         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
47486         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
47487         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
47488         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
47489         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
47490         RE_SYNTAX_POSIX_MINIMAL_BASIC.
47491         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
47492         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
47493         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
47494         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
47495         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
47496         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
47497         (REG_FIXED): Renamed from REGS_FIXED.
47498         (REG_NREGS): Renamed from RE_NREGS.
47499
47500         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
47501         of other REG_* macros, since POSIX says the user is allowed to
47502         #undef these macros selectively.
47503
47504         (reg_errcode_t): Update comment stating what other tables need
47505         to be consistent.
47506
47507         Rename the following enum values to obey POSIX requirements.
47508         The old names are still visible as macros.
47509         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
47510         is not defined, since GNU is supposed to be a superset of POSIX as
47511         much as possible, and since we want reg_errcode_t to be a signed
47512         type for implementation consistency.
47513         (_REG_NOERROR): Renamed from REG_NOERROR.
47514         (_REG_NOMATCH): Renamed from REG_NOMATCH.
47515         (_REG_BADPAT): Renamed from REG_BADPAT.
47516         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
47517         (_REG_ECTYPE): Renamed from REG_ECTYPE.
47518         (_REG_EESCAPE): Renamed from REG_EESCAPE.
47519         (_REG_ESUBREG): Renamed from REG_ESUBREG.
47520         (_REG_EBRACK): Renamed from REG_EBRACK.
47521         (_REG_EPAREN): Renamed from REG_EPAREN.
47522         (_REG_EBRACE): Renamed from REG_EBRACE.
47523         (_REG_BADBR): Renamed from REG_BADBR.
47524         (_REG_ERANGE): Renamed from REG_ERANGE.
47525         (_REG_ESPACE): Renamed from REG_ESPACE.
47526         (_REG_BADRPT): Renamed from REG_BADRPT.
47527         (_REG_EEND): Renamed from REG_EEND.
47528         (_REG_ESIZE): Renamed from REG_ESIZE.
47529         (_REG_ERPAREN): Renamed from REG_ERPAREN.
47530         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
47531         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
47532         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
47533         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
47534
47535         (_REG_RE_NAME, _REG_RM_NAME): New macros.
47536         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
47537         changed.  But support the old name if the new one is not defined
47538         and if _REGEX_SOURCE.
47539
47540         Change the following member names in struct re_pattern_buffer.
47541         The old names are still supported if !_REGEX_SOURCE.
47542         The new names are always supported, regardless of _REGEX_SOURCE.
47543         (re_buffer): Renamed from buffer.
47544         (re_allocated): Renamed from allocated.
47545         (re_used): Renamed from used.
47546         (re_syntax): Renamed from syntax.
47547         (re_fastmap): Renamed from fastmap.
47548         (re_translate): Renamed from translate.
47549         (re_can_be_null): Renamed from can_be_null.
47550         (re_regs_allocated): Renamed from regs_allocated.
47551         (re_fastmap_accurate): Renamed from fastmap_accurate.
47552         (re_no_sub): Renamed from no_sub.
47553         (re_not_bol): Renamed from not_bol.
47554         (re_not_eol): Renamed from not_eol.
47555         (re_newline_anchor): Renamed from newline_anchor.
47556
47557         Change the following member names in struct re_registers.
47558         The old names are still supported if !_REGEX_SOURCE.
47559         The new names are always supported, regardless of _REGEX_SOURCE.
47560         (rm_num_regs): Renamed from num_regs.
47561         (rm_start): Renamed from start.
47562         (rm_end): Renamed from end.
47563
47564         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
47565         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
47566         Prepend __ to parameter names.
47567
47568         Undo yesterday's changes.
47569
47570 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47571
47572         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
47573         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
47574         lib/regex.c.
47575
47576 2005-08-24  Jim Meyering  <jim@meyering.net>
47577
47578         Sync from coreutils.
47579         * m4/fcntl-safer.m4: New file.
47580
47581         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
47582         and object files for this module.
47583
47584 2005-08-24  Jim Meyering  <jim@meyering.net>
47585
47586         Sync from coreutils.
47587         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
47588
47589 2005-08-24  Jim Meyering  <jim@meyering.net>
47590
47591         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
47592         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
47593
47594 2005-08-24  Jim Meyering  <jim@meyering.net>
47595
47596         * modules/fcntl-safer: New module.
47597         * modules/fts (Depends-on): Add fcntl-safer.
47598         * MODULES.html.sh (File descriptor based Input/Output):
47599         Add fcntl-safer.
47600
47601 2005-08-24  Bruno Haible  <bruno@clisp.org>
47602
47603         Support for unit test modules.
47604         * modules/README: Mention tests modules.
47605         * modules/TEMPLATE-TESTS: New file.
47606         * gnulib-tool: New options --extract-tests-module, --with-tests and
47607         --tests-base (unused for the moment).
47608         (testsbase, inctests): New variables.
47609         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
47610         (func_verify_module): Exclude TEMPLATE-TESTS.
47611         (func_verify_nontests_module, func_verify_tests_module): New functions.
47612         (func_get_dependencies): Add implicit dependency for tests modules.
47613         (func_get_tests_module): New function.
47614         (func_modules_transitive_closure): When --with-tests was specified,
47615         include the unit tests as well, unless explicitly avoided.
47616         (func_emit_lib_Makefile_am): Ignore the tests modules here.
47617         (func_emit_tests_Makefile_am): New function.
47618         (func_create_testdir): When --with-tests was specified, emit a
47619         tests/ directory.
47620         * MODULES.html.sh (Future developments): Update.
47621
47622 2005-08-24  Bruno Haible  <bruno@clisp.org>
47623
47624         * modules/tls-tests: New file.
47625         * tests/test-tls.c: New file, from GNU gettext.
47626
47627 2005-08-24  Bruno Haible  <bruno@clisp.org>
47628
47629         * modules/lock-tests: New file.
47630         * tests/test-lock.c: New file, from GNU gettext.
47631
47632 2005-08-24  Bruno Haible  <bruno@clisp.org>
47633
47634         * lib/lock.h: Add multiple inclusion guard.
47635         * lib/tls.h: Add multiple inclusion guard.
47636
47637 2005-08-24  Bruno Haible  <bruno@clisp.org>
47638
47639         * gnulib-tool: Add support for the --aux-dir option to
47640         --create-testdir, --create-megatestdir, --test, --megatest.
47641         (func_create_testdir, func_create_megatestdir): Optionally emit a
47642         AC_CONFIG_AUX_DIR directive.
47643         (create-testdir, create-megatestdir, test, megatest): Provide a
47644         default value for $auxdir.
47645
47646 2005-08-24  Bruno Haible  <bruno@clisp.org>
47647
47648         * gnulib-tool (import): Use compound statement instead of subshell
47649         where possible.
47650
47651 2005-08-24  Bruno Haible  <bruno@clisp.org>
47652
47653         * gnulib-tool (import): Change --aux-dir default to "build-aux".
47654
47655 2005-08-24  Bruno Haible  <bruno@clisp.org>
47656
47657         * gnulib-tool (func_version): Update.
47658
47659 2005-08-24  Bruno Haible  <bruno@clisp.org>
47660
47661         * gnulib-tool (func_import, func_create_testdir,
47662         func_create_megatestdir): Quote all autoconf macro arguments.
47663
47664 2005-08-24  Bruno Haible  <bruno@clisp.org>
47665
47666         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
47667         option --force, because --force causes the aclocal.m4 of each
47668         subdirectory to be newer than the corresponding config.h.in.
47669
47670 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47671
47672         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
47673         All contents moved to gl_REGEX.
47674         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
47675         assume that it does.
47676
47677 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47678
47679         * lib/regex.h (REG_NOSYS)
47680         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
47681         Define, since POSIX requires it as of 2001.
47682         (_REG_ENOSYS)
47683         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
47684         New private symbol, used to keep the enum signed in all cases.
47685         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
47686         Youngman in
47687         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
47688
47689         * lib/regex_internal.c (re_string_skip_chars, register_state):
47690         (calc_state_hash):
47691         Remove forward decls; no longer needed now that we use prototypes.
47692         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
47693         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
47694         (clean_state_log_if_needed): Likewise.
47695
47696 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47697
47698         * config/srclist.txt: Add glibc bugs 1231-1233.
47699
47700 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47701
47702         Fix problems reported by Sam Steingold in
47703         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
47704         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
47705         assumed that reg_errcode_t is a signed type, which is not
47706         necessarily true if _XOPEN_SOURCE is not defined.
47707         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
47708         since some compilers warn about it otherwise.
47709
47710 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47711
47712         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
47713         (init_word_char, create_initial_state, duplicate_node_closure):
47714         (fetch_token, peek_token_bracket, build_range_exp):
47715         (build_collating_symbol): Remove forward decls; no longer needed
47716         now that we use prototypes.
47717
47718         * lib/regcomp.c:
47719         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
47720         (re_compile_fastmap_iter, regcomp, regerror, regfree):
47721         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
47722         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
47723         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
47724         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
47725         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
47726         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
47727         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
47728         (build_range_exp, build_collating_symbol, parse_bracket_exp):
47729         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
47730         (build_charclass, build_charclass_op, fetch_number, create_tree):
47731         (create_token_tree, mark_opt_subexp, duplicate_tree):
47732         Use prototypes rather than old-style definitions.
47733
47734         * lib/regex_internal.c:
47735         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
47736         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
47737         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47738         (re_string_reconstruct, re_string_peek_byte_case):
47739         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
47740         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47741         (re_node_set_init_copy, re_node_set_add_intersect):
47742         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47743         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47744         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47745         (re_acquire_state, re_acquire_state_context, register_state):
47746         (create_ci_newstate, create_cd_newstate, free_state):
47747         Likewise.
47748         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
47749         re_search_2):
47750         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
47751         (re_search_internal, prune_impossible_nodes):
47752         (acquire_init_state_context, check_matching, static):
47753         (check_halt_node_context, check_halt_state_context, proceed_next_node):
47754         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
47755         (update_regs, sift_states_backward, build_sifted_states):
47756         (clean_state_log_if_needed, merge_state_array):
47757         (update_cur_sifted_state, add_epsilon_src_nodes):
47758         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
47759         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
47760         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
47761         (find_recover_state, check_subexp_matching_top, transit_state_mb):
47762         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
47763         (check_arrival, check_arrival_add_next_nodes):
47764         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47765         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
47766         (check_node_accept_bytes, check_node_accept, extend_buffers):
47767         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
47768         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
47769         (sift_ctx_init):
47770         Likewise.
47771
47772         * lib/regex_internal.h:
47773         (re_string_allocate, re_string_construct, re_string_reconstruct):
47774         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
47775         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
47776         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
47777         (re_string_context_at, re_string_peek_byte_case):
47778         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
47779         is defined, since we now use prototypes always.
47780
47781         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
47782         C89 or better.  All uses removed.
47783
47784 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47785
47786         * config/srclist.txt: Add glibc bugs 1220-1227.
47787
47788 2005-08-20  Jim Meyering  <jim@meyering.net>
47789
47790         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
47791         of unused local, dfa.
47792
47793 2005-08-20  Bruno Haible  <bruno@clisp.org>
47794
47795         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
47796
47797 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47798
47799         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
47800         (re_node_set_insert_last, re_dfa_add_node):
47801         Rename local variables to avoid GCC shadowing warnings.
47802
47803 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47804
47805         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
47806         [defined lint]: Suppress bogus uninitialized-variable warnings.
47807
47808         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
47809         and let the caller return REG_ESPACE if out of space.  This
47810         removes an uninitialied-variable warning with GCC 4.0.1, and also
47811         avoids taking the address of a local variable.  All callers
47812         changed.
47813
47814 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47815
47816         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
47817         $LIBCSRC/posix/regexec.c.
47818         Add glibc bug 1217 for regcomp.c.
47819
47820 2005-08-19  Jim Meyering  <jim@meyering.net>
47821
47822         * lib/regexec.c (proceed_next_node): Redo local variables to
47823         avoid GCC shadowing warnings.
47824
47825 2005-08-18  Bruno Haible  <bruno@clisp.org>
47826
47827         * lib/strstr.c (strstr): Fix return value in multibyte case.
47828         * lib/strcasestr.c (strcasestr): Likewise.
47829
47830 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47831
47832         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
47833
47834 2005-08-17  Jim Meyering  <jim@meyering.net>
47835
47836         Make the %s format (seconds since the epoch) work for a negative
47837         number and when used with a zero-padded field width, e.g. %015s.
47838
47839         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
47840         label so that it precedes the code to set `digits'.  Otherwise,
47841         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
47842         print `00-22'.  Now, it prints `-0022', as it should.
47843
47844 2005-08-17  Bruno Haible  <bruno@clisp.org>
47845
47846         * modules/strstr (Files): Add m4/mbrtowc.m4.
47847         (Depends-on): Add mbuiter.
47848
47849 2005-08-17  Bruno Haible  <bruno@clisp.org>
47850
47851         * modules/strcasestr: New file.
47852         * MODULES.html.sh (String handling, based on ANSI C 89): Add
47853         strcasestr.
47854
47855 2005-08-17  Bruno Haible  <bruno@clisp.org>
47856
47857         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
47858
47859 2005-08-17  Bruno Haible  <bruno@clisp.org>
47860
47861         * modules/mbuiter: New file.
47862         * MODULES.html.sh (Extended multibyte and wide character utilities):
47863         Add mbuiter.
47864
47865 2005-08-17  Bruno Haible  <bruno@clisp.org>
47866
47867         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
47868         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
47869
47870 2005-08-17  Bruno Haible  <bruno@clisp.org>
47871
47872         * m4/strcasestr.m4: New file.
47873
47874 2005-08-17  Bruno Haible  <bruno@clisp.org>
47875
47876         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
47877         * lib/strstr.c: Completely rewritten, with multibyte locale support.
47878
47879 2005-08-17  Bruno Haible  <bruno@clisp.org>
47880
47881         * lib/strcasestr.h: New file.
47882         * lib/strcasestr.c: New file.
47883
47884 2005-08-17  Bruno Haible  <bruno@clisp.org>
47885
47886         * lib/strcasecmp.c: Use mbuiter.h.
47887
47888 2005-08-17  Bruno Haible  <bruno@clisp.org>
47889
47890         * lib/mbuiter.h: New file.
47891
47892 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
47893
47894         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
47895         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
47896         and gl_GETOPT are both invoked via different paths (as happens
47897         with GNU tar CVS because it uses both argp and getopt), the former
47898         wins.
47899
47900 2005-08-16  Bruno Haible  <bruno@clisp.org>
47901
47902         * modules/tls: New file.
47903         * MODULES.html.sh (Multithreading): Add tls.
47904
47905 2005-08-16  Bruno Haible  <bruno@clisp.org>
47906
47907         * modules/strnlen1: New file.
47908         * MODULES.html.sh (String handling): Add strnlen1.
47909
47910 2005-08-16  Bruno Haible  <bruno@clisp.org>
47911
47912         * modules/strcase (Files): Add m4/mbrtowc.m4.
47913         (Depends-on): Add strnlen1, mbchar.
47914
47915 2005-08-16  Bruno Haible  <bruno@clisp.org>
47916
47917         * modules/mbiter: New file.
47918         * MODULES.html.sh (Extended multibyte and wide character utilities):
47919         Add mbiter.
47920
47921 2005-08-16  Bruno Haible  <bruno@clisp.org>
47922
47923         * modules/mbfile: New file.
47924         * MODULES.html.sh (Extended multibyte and wide character utilities):
47925         Add mbfile.
47926
47927 2005-08-16  Bruno Haible  <bruno@clisp.org>
47928
47929         * modules/mbchar: New file.
47930         * MODULES.html.sh (Extended multibyte and wide character utilities):
47931         New section.
47932
47933 2005-08-16  Bruno Haible  <bruno@clisp.org>
47934
47935         * m4/tls.m4: New file, from GNU gettext.
47936
47937 2005-08-16  Bruno Haible  <bruno@clisp.org>
47938
47939         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
47940         always.
47941         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
47942
47943 2005-08-16  Bruno Haible  <bruno@clisp.org>
47944
47945         * m4/mbiter.m4: New file.
47946
47947 2005-08-16  Bruno Haible  <bruno@clisp.org>
47948
47949         * m4/mbfile.m4: New file.
47950
47951 2005-08-16  Bruno Haible  <bruno@clisp.org>
47952
47953         * m4/mbchar.m4: New file.
47954
47955 2005-08-16  Bruno Haible  <bruno@clisp.org>
47956
47957         * lib/tls.h: New file, from GNU gettext.
47958         * lib/tls.c: New file, from GNU gettext.
47959
47960 2005-08-16  Bruno Haible  <bruno@clisp.org>
47961
47962         * lib/strnlen1.h: New file.
47963         * lib/strnlen1.c: New file.
47964
47965 2005-08-16  Bruno Haible  <bruno@clisp.org>
47966
47967         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
47968         (mbi_init): Update.
47969         (mbi_avail, mbi_advance): Let the iteration end before the terminating
47970         NUL byte, not after it.
47971
47972 2005-08-16  Bruno Haible  <bruno@clisp.org>
47973
47974         * lib/strcase.h (strcasecmp): Add note in comments.
47975         * lib/strncasecmp.c: Use code from strcasecmp.c.
47976         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
47977         (strcasecmp): Work correctly in multibyte locales.
47978
47979 2005-08-16  Bruno Haible  <bruno@clisp.org>
47980
47981         * lib/mbiter.h: New file.
47982
47983 2005-08-16  Bruno Haible  <bruno@clisp.org>
47984
47985         * lib/mbfile.h: New file.
47986
47987 2005-08-16  Bruno Haible  <bruno@clisp.org>
47988
47989         * lib/mbchar.h: New file.
47990         * lib/mbchar.c: New file.
47991
47992 2005-08-16  Bruno Haible  <bruno@clisp.org>
47993
47994         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
47995         the valid ones. Makes the comparison operations transitive:
47996         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
47997         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
47998
47999 2005-08-15  Simon Josefsson  <jas@extundo.com>
48000
48001         * modules/ssize_t (License): Change to 'unlimited'.
48002
48003         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
48004
48005 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48006
48007         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
48008         Add comments for each pending glibc patch.
48009
48010 2005-08-15  Bruno Haible  <bruno@clisp.org>
48011
48012         * lib/regex.h (__restrict_arr): Don't define to __restrict if
48013         __cplusplus is defined.
48014
48015 2005-08-14  Jim Meyering  <jim@meyering.net>
48016
48017         Sync from coreutils.
48018
48019         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
48020         Use the hash-table-based cycle-detection code not just when
48021         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
48022         Reported by James Youngman in
48023         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
48024         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
48025         FTS_TIGHT_CYCLE_CHECK.
48026         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
48027         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
48028         once again.
48029         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
48030         * lib/fts.c (fd_safer): Remove decl.
48031         Include fcntl--.h rather than unistd-safer.h
48032         (fts_safe_changedir): Don't call fd_safer; no longer needed
48033         now that we include fcntl--.h.
48034
48035 2005-08-12  Simon Josefsson  <jas@extundo.com>
48036
48037         * modules/getndelim2: Use ssize_t module.
48038         * modules/getnline: Likewise.
48039         * modules/safe-read: Likewise.
48040         * modules/xreadlink: Likewise.
48041
48042         * modules/ssize_t: New file.
48043
48044 2005-08-12  Simon Josefsson  <jas@extundo.com>
48045
48046         * m4/readline.m4: Look for termcap, curses or ncurses if required.
48047
48048 2005-08-12  Simon Josefsson  <jas@extundo.com>
48049
48050         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48051         ssize_t.
48052
48053 2005-08-12  Simon Josefsson  <jas@extundo.com>
48054
48055         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
48056         readline, getdelim and check_version.
48057         (Support for systems lacking ISO C 99: Sizes of integer types):
48058         Add size_max.
48059
48060 2005-08-12  Bruno Haible  <bruno@clisp.org>
48061
48062         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
48063
48064 2005-08-11  Simon Josefsson  <jas@extundo.com>
48065
48066         * modules/readline: New file.
48067
48068         * modules/strnlen (Files): Add strnlen.h.
48069
48070 2005-08-11  Simon Josefsson  <jas@extundo.com>
48071
48072         * m4/readline.m4: New file.
48073
48074 2005-08-11  Simon Josefsson  <jas@extundo.com>
48075
48076         * lib/readline.h, readline.c: New file.
48077
48078 2005-08-11  Simon Josefsson  <jas@extundo.com>
48079
48080         * doc/gnulib.texi (Initial import, Finishing touches): Mention
48081         gl_AVOID.
48082
48083 2005-08-11  Bruno Haible  <bruno@clisp.org>
48084
48085         * lib/strnlen.h (strnlen): Change parameter name to match comment.
48086
48087 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
48088
48089         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
48090
48091 2005-08-10  Simon Josefsson  <jas@extundo.com>
48092
48093         * tests/test-iconvme.c: New file.
48094
48095 2005-08-10  Simon Josefsson  <jas@extundo.com>
48096
48097         * m4/strnlen.m4: New file.
48098
48099         * m4/strndup.m4: Don't check for strnlen declaration, done in
48100         strnlen.m4.
48101
48102 2005-08-10  Simon Josefsson  <jas@extundo.com>
48103
48104         * lib/strndup.c: Use strnlen.h.
48105
48106         * lib/strnlen.h: New file.
48107
48108 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48109
48110         * README: Typos.
48111
48112 2005-08-02  Simon Josefsson  <jas@extundo.com>
48113
48114         * modules/readline: New file.
48115
48116 2005-08-02  Simon Josefsson  <jas@extundo.com>
48117
48118         * modules/getdelim: New file.
48119
48120         * modules/getline: Rewrite, don't use getndelim2.
48121
48122 2005-08-02  Simon Josefsson  <jas@extundo.com>
48123
48124         * m4/getline.m4: Separate out getdelim stuff into separate module.
48125
48126         * m4/getdelim.m4: New file.
48127
48128 2005-08-02  Simon Josefsson  <jas@extundo.com>
48129
48130         * lib/getline.h, getline.c: Rewrite.
48131
48132         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
48133
48134 2005-07-31  Bruno Haible  <bruno@clisp.org>
48135
48136         * lib/lock.h (gl_lock_initializer): New macro.
48137         (gl_lock_define_initialized): Use it.
48138         (gl_rwlock_initializer): New macro.
48139         (gl_rwlock_define_initialized): Use it.
48140         (gl_recursive_lock_initializer): New macro.
48141         (gl_recursive_lock_define_initialized): Use it.
48142
48143 2005-07-30  Karl Berry  <karl@gnu.org>
48144
48145         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
48146         Report from Ben Pfaff, regarding getopt.
48147
48148 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
48149
48150         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
48151         normal way.
48152         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
48153         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
48154         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
48155         (gl_GETOPT): Use the new macros.  Most of the implementation
48156         is moved to the new macros.  This is for programs like Emacs
48157         that don't want all the functionality of gl_GETOPT.
48158
48159 2005-07-26  Bruno Haible  <bruno@clisp.org>
48160
48161         * m4/lock.m4: Update from GNU gettext.
48162
48163 2005-07-26  Bruno Haible  <bruno@clisp.org>
48164
48165         * lib/lock.h: Update from GNU gettext.
48166         * lib/lock.c: Update from GNU gettext.
48167
48168 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
48169
48170         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
48171         obsolescent AC_TRY_RUN.  Include the default includes files, for
48172         'exit'.
48173
48174 2005-07-24  Bruno Haible  <bruno@clisp.org>
48175
48176         * modules/visibility: New file.
48177         * MODULES.html.sh (Misc): Add visibility.
48178
48179 2005-07-24  Bruno Haible  <bruno@clisp.org>
48180
48181         * m4/visibility.m4: New file.
48182
48183 2005-07-24  Bruno Haible  <bruno@clisp.org>
48184
48185         * doc/visibility.texi: New file.
48186
48187 2005-07-22  Bruno Haible  <bruno@clisp.org>
48188
48189         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
48190         $(ALLOCA_H), redundant through BUILT_SOURCES.
48191         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
48192         redundant through BUILT_SOURCES.
48193         * modules/byteswap (Makefile.am): Remove explicit dependency on
48194         $(BYTESWAP_H), redundant through BUILT_SOURCES.
48195         * modules/fnmatch (Makefile.am): Remove explicit dependency on
48196         $(FNMATCH_H), redundant through BUILT_SOURCES.
48197         * modules/getopt (Makefile.am): Remove explicit dependency on
48198         $(GETOPT_H), redundant through BUILT_SOURCES.
48199         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
48200         redundant through BUILT_SOURCES.
48201         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
48202         redundant through BUILT_SOURCES.
48203         * modules/stdbool (Makefile.am): Remove explicit dependency on
48204         $(STDBOOL_H), redundant through BUILT_SOURCES.
48205         * modules/stdint (Makefile.am): Remove explicit dependency on
48206         $(STDINT_H), redundant through BUILT_SOURCES.
48207         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
48208         Remove explicit dependency on $(SYSEXITS_H).
48209         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
48210
48211 2005-07-18  Simon Josefsson  <jas@extundo.com>
48212
48213         * lib/check-version.c (check_version): Accept identical versions too.
48214
48215 2005-07-18  Bruno Haible  <bruno@clisp.org>
48216
48217         * modules/lock: New file.
48218         * MODULES.html.sh (Multithreading): New section.
48219
48220 2005-07-18  Bruno Haible  <bruno@clisp.org>
48221
48222         * m4/lock.m4: New file, from GNU gettext.
48223
48224 2005-07-18  Bruno Haible  <bruno@clisp.org>
48225
48226         * lib/lock.h: New file, from GNU gettext.
48227         * lib/lock.c: New file, from GNU gettext.
48228
48229 2005-07-18  Bruno Haible  <bruno@clisp.org>
48230
48231         * lib/lock.h (gl_once_t): New type.
48232         (gl_once_define, gl_once): New macros.
48233         * lib/lock.c (fresh_once): New variable.
48234         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
48235         functions.
48236
48237 2005-07-16  Simon Josefsson  <jas@extundo.com>
48238
48239         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
48240         workaround, suggested by Bruno.
48241
48242 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
48243
48244         * modules/xalloc (Depends-on): Add xalloc-die.
48245         * modules/xvasprintf (Depends-on): Add xalloc-die.
48246
48247 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
48248
48249         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
48250         with a minor change.
48251
48252 2005-07-15  Bruno Haible  <bruno@clisp.org>
48253
48254         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
48255         When using lib/poll.c, define poll as rpl_poll.
48256
48257 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
48258
48259         * modules/argp (Depends-on): Remove unlocked-io.
48260
48261 2005-07-14  Derek Price  <derek@ximbiot.com>
48262
48263         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
48264         for glob symlink bug.
48265
48266 2005-07-14  Bruno Haible  <bruno@clisp.org>
48267
48268         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
48269         Instead, test for *_unlocked function declarations directly.
48270
48271 2005-07-11  Simon Josefsson  <jas@extundo.com>
48272
48273         * modules/size_max: New file.
48274
48275         * modules/xsize: Depend on size_max module for size_max.m4.
48276
48277 2005-07-11  Simon Josefsson  <jas@extundo.com>
48278
48279         * lib/size_max.h: New file.
48280
48281 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
48282
48283         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
48284         copyright symbol and the year.
48285         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
48286         (version_etc_va): Use parameterized copyright notice.
48287         Reword to conform to the current GNU coding standards.
48288
48289 2005-07-11  Karl Berry  <karl@gnu.org>
48290
48291         * doc/gnulib.texi (Quoting): new node.
48292         (Initial import): more info, from Patrice.
48293
48294 2005-07-11  Bruno Haible  <bruno@clisp.org>
48295
48296         * gnulib-tool (func_usage): Document option --avoid.
48297         (Command line options): Handle --avoid.
48298         (func_acceptable): New function.
48299         (func_modules_transitive_closure): Use it.
48300
48301 2005-07-11  Bruno Haible  <bruno@clisp.org>
48302
48303         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
48304         Reported by Jim Meyering.
48305
48306 2005-07-10  Bruno Haible  <bruno@clisp.org>
48307
48308         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
48309         Needed when size_t is smaller than 'unsigned int'.
48310         Reported by Paul Eggert.
48311
48312 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48313
48314         * modules/argp (Depends-on): Add unlocked-io
48315
48316 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48317
48318         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
48319         block of defines.
48320
48321 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48322
48323         * config/srclist.txt: Comment out regcomp.c, since we have a porting
48324         fix now.
48325
48326 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
48327         and Paul Eggert  <eggert@cs.ucla.edu>
48328
48329         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
48330         in wint_t, not wchar_t.  Remove now-unnecessary cast.
48331
48332 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48333
48334         * modules/regex (Files): Add lib/regex_internal.c,
48335         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
48336         (Depends-on): Add extensions.
48337         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
48338
48339 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48340
48341         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
48342         pathconf.
48343         * m4/same.m4 (gl_SAME): Likewise.
48344         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
48345
48346         * m4/regex.m4: Adjust to new libc regex implementation.
48347         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
48348         all the .c and .h parts of (the new) regex.
48349         Quote the m4 stuff better.
48350         Check for RE_ICASE bug of old gnulib.
48351         Check for REG_STARTEND of recent libc.
48352         Rename local variables from jm_* to gl_*.
48353         Quote operand of "test -f".
48354         Say "recent enough" version of libc, not "version 2".
48355         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
48356         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
48357         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
48358         Remove check for btowc, isascii.
48359         Require AM_LANGINFO_CODESET.
48360
48361 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48362
48363         * lib/regex.c, regex.h: Sync from libc.
48364         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
48365         * lib/regexec.c:
48366         New files, synced from libc, except that regex_internal.h
48367         currently has a small porting fix.
48368
48369 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48370
48371         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
48372         regex_internal.c, regexec.c.
48373         Add regex_internal.h too, but as a comment, since the libc version
48374         is currently broken in gnulib mode.
48375
48376 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48377
48378         Support programs like Emacs that use gnulib but not gettext.
48379         * MODULES.html.sh (Internationalization functions): Add gettext-h.
48380         * modules/gettext-h: New file.
48381         * modules/gettext (Files): Remove lib/gettext.h.
48382         (Depends-on): Add gettext-h.
48383         (Makefile.am): Remove lib_SOURCES.
48384         * modules/argmatch, modules/c-stack, modules/closeout:
48385         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
48386         * modules/execute, modules/file-type, modules/getaddrinfo:
48387         * modules/getopt, modules/human, modules/javacomp:
48388         * modules/javaexec, modules/mkdir-p, modules/obstack:
48389         * modules/openat, modules/pagealign_alloc, modules/pipe:
48390         * modules/quotearg, modules/regex, modules/rpmatch:
48391         * modules/unicodeio, modules/userspec, modules/version-etc:
48392         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
48393         * modules/xsetenv:
48394         Depend on gettext-h, not gettext.
48395
48396 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
48397
48398         * gnulib-tool (func_import): Add support for 'public domain' license.
48399         * modules/alloca, modules/atexit, modules/memmove:
48400         Now public domain, not GPL.
48401         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
48402         * modules/realloc, modules/strerror, modules/strtod:
48403         Now LGPL, not GPL.
48404
48405 2005-07-05  Bruno Haible  <bruno@clisp.org>
48406
48407         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
48408         autoconf CVS. Needed for mingw.
48409
48410 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48411
48412         Remove the dependency of the strftime module on the tzset module.
48413         * modules/strftime (Depends-on): Remove dependency on tzset.
48414
48415 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48416
48417         Remove the dependency of the strftime module on the tzset module.
48418         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
48419         gl_FUNC_TZSET_CLOBBER.
48420
48421 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48422
48423         Remove the dependency of the strftime module on the tzset module.
48424         * lib/strftime.c (my_strftime)
48425         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
48426         Copy the input structure, to work around some of the bug with
48427         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
48428         Solaris releases, you should also use the tzset module, but we won't
48429         require it as a dependency any more since we don't want LGPLed code
48430         to depend on GPLed code.
48431
48432 2005-07-02  Jim Meyering  <jim@meyering.net>
48433
48434         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
48435         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
48436         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
48437         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
48438
48439 2005-07-02  Jim Meyering  <jim@meyering.net>
48440
48441         * lib/backupfile.c (backup_args): Change a `0' to NULL.
48442
48443 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
48444
48445         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
48446         declares only 'struct timespec;' (!).
48447
48448 2005-07-01  Jim Meyering  <jim@meyering.net>
48449
48450         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
48451         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
48452         * lib/save-cwd.c, tempname.c:
48453         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48454         and don't include <sys/file.h>).
48455
48456 2005-06-29  Jim Meyering  <jim@meyering.net>
48457
48458         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
48459         type name.  Use the variable name instead.
48460         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
48461         Likewise.
48462
48463 2005-06-28  Simon Josefsson  <jas@extundo.com>
48464
48465         * modules/check-version (Files): Add check-version.m4.
48466
48467 2005-06-28  Simon Josefsson  <jas@extundo.com>
48468
48469         * m4/check-version.m4: New file, suggested by Jim Meyering
48470         <jim@meyering.net>.
48471
48472 2005-06-28  Simon Josefsson  <jas@extundo.com>
48473
48474         * lib/check-version.h, lib/check-version.c: New files.
48475
48476 2005-06-28  Simon Josefsson  <jas@extundo.com>
48477
48478         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
48479         collision with global variable.  Better indentation.  Don't
48480         increment buffer pointer beyond buffer end.  Based on comments
48481         from Paul Eggert <eggert@cs.ucla.edu>.
48482
48483         * lib/base64.h: Indent.
48484
48485 2005-06-28  Simon Josefsson  <jas@extundo.com>
48486
48487         * doc/gnulib.texi (Library version handling): New section.
48488
48489 2005-06-28  Jim Meyering  <jim@meyering.net>
48490
48491         * check-module (find_included_lib_files): Hard-code another
48492         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
48493         but modules/fts-lgpl (correctly) does not list those files.
48494
48495         * modules/canonicalize (Files): Add lib/pathmax.h.
48496
48497 2005-06-25  Simon Josefsson  <jas@extundo.com>
48498
48499         * modules/check-version: New file.
48500
48501 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
48502
48503         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
48504         initializer of struct addrinfo, as an indication that we don't
48505         care how many members the structure has.
48506
48507 2005-06-24  Derek Price  <derek@ximbiot.com>
48508         and Bruno Haible  <bruno@clisp.org>
48509
48510         Remove stat module & update lstat.
48511         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
48512         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48513         * m4/stat.m4: Remove this file.
48514
48515 2005-06-24  Derek Price  <derek@ximbiot.com>
48516         and Bruno Haible  <bruno@clisp.org>
48517
48518         Remove stat module & update lstat.
48519         * lib/stat.c: Remove this file...
48520         (slash_aware_lstat): ...moving this content and its support...
48521         * lib/lstat.c (rpl_lstat): ...into here.
48522         * lib/lstat.h: New file.
48523
48524 2005-06-24  Derek Price  <derek@ximbiot.com>
48525         and Bruno Haible  <bruno@clisp.org>
48526
48527         Remove stat module & update lstat.
48528         * config/srclist.txt (libc sources): Remove stat.
48529
48530 2005-06-24  Derek Price  <derek@ximbiot.com>
48531         and Bruno Haible  <bruno@clisp.org>
48532
48533         Remove stat module & update lstat.
48534         * MODULES.html.sh (stat): Remove.
48535         * MODULES.html: Regenerated.
48536         * modules/lstat (Description): Correct function name.
48537         (Files): Add "lstat.h".
48538         (Depends-on): Remove stat, add xalloc, stat-macros.
48539         * modules/stat: Remove this file.
48540         (Include): Add "lstat.h", remove <sys/stat.h>.
48541
48542 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48543
48544         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
48545         (ranged_convert): Don't save conversion in a temporary struct.
48546         This causes a warning with GCC 4.0.0, and anyway in the typical
48547         case it's not worth the extra 100 bytes or so of code.
48548         (ranged_convert, __mktime_internal): When calling a function via a
48549         pointer P, use P () rather than (*P) (), as we now assume C89 or
48550         better.
48551
48552 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
48553
48554         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
48555         "who -r" failed to give output.  Problem reported by Tim Waugh.
48556
48557         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
48558         (xcalloc): Use it to avoid needless tests.
48559         Problem reported by Jim Meyering.
48560
48561 2005-06-20  Derek Price  <derek@ximbiot.com>
48562
48563         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
48564         unnecessary for Autoconfs > 2.59c.
48565
48566 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48567
48568         * lib/argp.h (__option_is_short): Check upper limit of
48569         __key. Isprint() requires its argument to have the value
48570         of an unsigned char or EOF.
48571
48572 2005-06-16  Jim Meyering  <jim@meyering.net>
48573
48574         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
48575         when either N or S is zero.
48576
48577 2005-06-16  Derek Price  <derek@ximbiot.com>
48578
48579         * m4/bison.m4: Declare YACC & YFLAGS precious.
48580
48581 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
48582
48583         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
48584         multibyte string or pattern, fall back on unibyte matching.
48585         Problem reported by James Youngman.
48586
48587 2005-06-08  Bruno Haible  <bruno@clisp.org>
48588
48589         * modules/csharpcomp: New file.
48590         * MODULES.html.sh (C#): Add csharpcomp.
48591
48592 2005-06-08  Bruno Haible  <bruno@clisp.org>
48593
48594         * m4/csharpcomp.m4: New file, from GNU gettext.
48595
48596 2005-06-08  Bruno Haible  <bruno@clisp.org>
48597
48598         * lib/csharpcomp.h: New file, from GNU gettext.
48599         * lib/csharpcomp.c: New file, from GNU gettext.
48600         * lib/csharpcomp.sh.in: New file, from GNU gettext.
48601
48602 2005-06-08  Bruno Haible  <bruno@clisp.org>
48603
48604         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
48605         warning on mingw.
48606
48607 2005-06-07  Derek Price  <derek@ximbiot.com>
48608
48609         Sync from CVS.
48610         * lib/glob_.h: Indent nested #ifdef.
48611
48612 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48613
48614         Sync from coreutils.
48615         Use "file name" when talking about file names, instead of "filename"
48616         or "path", as per the GNU coding standards.
48617         * lib/mkdir-p.c: Renamed from makepath.c.
48618         (make_dir_parents): Renamed from make_path.  All callers changed.
48619         * lib/mkdir-p.h: Likewise.  All includers changed.
48620         * lib/filenamecat.c: Renamed from path-concat.c.
48621         (file_name_concat): Renamed from path_concat.  All callers changed.
48622         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
48623         * lib/filenamecat.h: Likewise.  All includers changed.
48624         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
48625         in comments or local variable names.
48626         * lib/basename.c: Likewise.
48627         * lib/canonicalize.c, canonicalize.h: Likewise.
48628         * lib/dirname.c, dirname.h: Likewise.
48629         * lib/euidaccess.c: Likewise.
48630         * lib/exclude.c: Likewise
48631         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
48632         * lib/fsusage.c, fsuage.h: Likewise.
48633         * lib/fts.c, fts_.h: Likewise.
48634         * lib/getcwd.c: Likewise.
48635         * lib/getloadavg.c: Likewise.
48636         * lib/mkstemp.c: Likewise.
48637         * lib/mountlist.c, mountlist.h: Likewise.
48638         * lib/openat.c, openat.h: Likewise.
48639         * lib/readlink-stub.c: Likewise.
48640         * lib/readutmp.c, readutmp.h: Likewise.
48641         * lib/rename.c: Likewise.
48642         * lib/rmdir.c: Likewise.
48643         * lib/same.c: Likewise.
48644         * lib/savedir.c: Likewise.
48645         * lib/stripslash.c: Likewise.
48646         * lib/tempname.c: Likewise.
48647         * lib/xreadlink.c: Likewise.
48648         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
48649         All uses changed.
48650         * lib/exclude.h: Likewise.
48651
48652         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
48653         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48654         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
48655         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48656         * lib/pathmax.h: Include <limits.h> unconditionally, since other
48657         files have been getting away with it for years (MORE/BSD 4.3
48658         is extinct now).
48659         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
48660         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48661
48662         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
48663         Define to 256, not 255, as per modern POSIX.
48664
48665 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48666
48667         Sync from coreutils.
48668         Use "file name" when talking about file names, instead of "filename"
48669         or "path", as per the GNU coding standards.
48670         * MODULES.html.sh: mkdir-p renamed from makepath.
48671         filenamecat renamed from path-concat.
48672         * modules/filenamecat: Renamed from modules/path-concat.
48673         (Files): filenamecat.h and filenamecat.c renamed from
48674         path-concat.h and path-concat.c.
48675         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
48676         (Include): filenamecat.h, not path-concat.h.
48677         * modules/mkdir-p: Renamed from modules/makepath.
48678         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
48679         makepath.c.
48680         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
48681         (Include): mkdir-p.h, not makepath.h.
48682
48683 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48684
48685         Sync from coreutils.
48686         * m4/mkdir-p.m4: Renamed from makepath.m4.
48687         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
48688         Rename files from makepath.c to mkdir-p.c, and from
48689         makepath.h to mkdir-p.h.
48690         * m4/filenamecat.m4: Renamed from path-concat.m4.
48691         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
48692         Rename files from path-concat.c to filenamecat.c,
48693         and from path-concat.h to filenamecat.h.
48694         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
48695         "file name" in local variables or comments.
48696         * m4/rename.m4: Likewise.
48697
48698 2005-06-01  Bruno Haible  <bruno@clisp.org>
48699
48700         * modules/csharpexec: New file.
48701         * MODULES.html.sh (C#): New section.
48702
48703 2005-06-01  Bruno Haible  <bruno@clisp.org>
48704
48705         * m4/csharp.m4: New file, from GNU gettext.
48706         * m4/csharpexec.m4: New file, from GNU gettext.
48707
48708 2005-06-01  Bruno Haible  <bruno@clisp.org>
48709
48710         * lib/csharpexec.h: New file, from GNU gettext.
48711         * lib/csharpexec.c: New file, from GNU gettext.
48712         * lib/csharpexec.sh.in: New file, from GNU gettext.
48713
48714 2005-05-31  Derek Price  <derek@ximbiot.com>
48715             Paul Eggert  <eggert@cs.ucla.edu>
48716
48717         Sync from cvs.
48718         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48719
48720 2005-05-31  Derek Price  <derek@ximbiot.com>
48721             Paul Eggert  <eggert@cs.ucla.edu>
48722
48723         Sync from cvs.
48724         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48725
48726 2005-05-29  Derek Price  <derek@ximbiot.com>
48727
48728         * config/srclist.txt (glob_.h, glob.c): Add these files.
48729
48730 2005-05-29  Derek Price  <derek@ximbiot.com>
48731
48732         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
48733         * modules/glob: New file.
48734         * modules/getlogin_r: Add link to POSIX spec in description.
48735
48736 2005-05-29  Derek Price  <derek@ximbiot.com>
48737             Paul Eggert  <eggert@cs.ucla.edu>
48738
48739         * m4/glob.m4: New file.
48740
48741 2005-05-29  Derek Price  <derek@ximbiot.com>
48742             Paul Eggert  <eggert@cs.ucla.edu>
48743
48744         * lib/glob_.h, lib/glob.c: New files.
48745
48746 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48747
48748         * modules/fts (Files): Remove m4/inttypes-pri.m4.
48749         * modules/fts-lgpl (Depends-on): Remove gettext.
48750
48751 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48752
48753         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
48754         and don't require gt_INTTYPES_PRI.
48755
48756 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48757
48758         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
48759
48760         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
48761         the configuration hassle isn't worth it.
48762         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
48763         (LONGEST_MODIFIER, PRIuMAX): Remove.
48764
48765 2005-05-27  Bruno Haible  <bruno@clisp.org>
48766
48767         * lib/getlogin_r.h: Remove second include of <stddef.h>.
48768
48769 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
48770
48771         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
48772         _POSIX_PTHREAD_SEMANTICS for Solaris.
48773
48774 2005-05-25  Derek Price  <derek@ximbiot.com>
48775
48776         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
48777
48778 2005-05-25  Derek Price  <derek@ximbiot.com>
48779             Paul Eggert  <eggert@cs.ucla.edu>
48780
48781         * modules/getlogin_r, m4/getlogin_r.m4: New files.
48782         * lib/getlogin_r.c, getlogin_r.h: New files.
48783
48784 2005-05-25  Bruno Haible  <bruno@clisp.org>
48785             Derek Price  <derek@ximbiot.com>
48786
48787         * lib/getlogin_r.h: Simplify API documentation.
48788
48789 2005-05-23  Derek Price  <derek@ximbiot.com>
48790
48791         * modules/minmax (Files): Add m4/minmax.m4.
48792         (configure.ac): Add gl_MINMAX.
48793
48794 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
48795
48796         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
48797         so that unistd-safer.h (GPL'ed code) need not be included.
48798
48799 2005-05-22  Bruno Haible  <bruno@clisp.org>
48800
48801         * m4/minmax.m4: New file.
48802         Based on a patch by Derek Price <derek@ximbiot.com>.
48803
48804 2005-05-22  Bruno Haible  <bruno@clisp.org>
48805
48806         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
48807         (INT64_MIN): Fix definition.
48808         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
48809
48810         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
48811         NEED_SIGNED_INT_TYPES.
48812
48813         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
48814         HAVE_SYSTEM_INTTYPES.
48815
48816 2005-05-22  Bruno Haible  <bruno@clisp.org>
48817
48818         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
48819         Also include <sys/param.h> if it defines MIN, MAX.
48820         Based on a patch by Derek Price <derek@ximbiot.com>.
48821
48822 2005-05-21  Jim Meyering  <jim@meyering.net>
48823
48824         * modules/fts (Files): Add m4/inttypes-pri.m4.
48825         (Depends-on): Add lstat and remove gettext.  Alphabetize.
48826
48827 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48828
48829         New fts module.
48830         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
48831         (setup_dir, free_dir): New functions.
48832         (enter_dir, leave_dir): Define trivial
48833         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
48834         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
48835         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
48836         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
48837         Move to fts-cycle.c.
48838         (fts_open): Use setup_dir.
48839         (fts_close): Use free_dir.
48840         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
48841         This adds a label and some gotos, but the alternatives were messier.
48842         Check for memory allocation failure when entering a dir.
48843         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
48844         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
48845         (FTS): New member fts_cycle, that is a union that contains the
48846         old active_dir_ht and cycle_state.  All uses changed to mention
48847         fts_cycle.ht and fts_cycle.state.
48848         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
48849         fts.c, with the following changes:
48850         (setup_dir, free_dir): New functions.
48851         (enter_dir): Now returns bool.  Return true if successful, false
48852         if memory exhausted.  All callers changed.
48853         Do not bother partly cleaning up on
48854         memory allocation failure; that is free_dir's job.
48855         However, free ad if hash_insert fails, to avoid memory leak.
48856         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
48857         fts->fts_options to see which union member to use.
48858
48859 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48860
48861         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
48862         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
48863
48864 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48865
48866         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
48867
48868 2005-05-20  Jim Meyering  <jim@meyering.net>
48869
48870         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
48871         Now a macro, to pacify GCC.
48872
48873 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
48874
48875         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
48876         of -1.
48877
48878 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
48879
48880         * lib/chown.c (rpl_chown): Return -1 on failure.
48881
48882 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
48883
48884         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
48885         Don't check for stddef.h.
48886         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
48887         don't use its results.
48888         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
48889         since we include them unconditionally.  Don't require
48890         AM_STDBOOL_H, since stdbool is a prerequisite.
48891         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
48892         since we assume C89 or better.
48893         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
48894         as we don't use their results.
48895         Don't check for fchdir, memmove, memset, strrchr, as we use
48896         them unconditionally.
48897         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
48898         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
48899
48900 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
48901
48902         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
48903         Include <stddef.h> unconditionally, since we assume C89 now.
48904         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
48905         * lib/fts.c: Include fts_.h first, to check interface.
48906         Do not include intprops.h; no longer needed.
48907         Include cycle-check.h and hash.h, since fts_.h no longer does.
48908         Remove unnecessary casts of closedir to void.
48909         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
48910         decide whether to decrement nlinks.
48911         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
48912         (FTS): Use struct hash_table * instead of Hash_table, so that
48913         we no longer need to include hash.h here.
48914
48915 2005-05-18  Jim Meyering  <jim@meyering.net>
48916
48917         * modules/dirfd (License): Change to LGPL.  Most of the code
48918         is already in the public domain.
48919
48920 2005-05-18  Jim Meyering  <jim@meyering.net>
48921
48922         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
48923         Reported by Yoann Vandoorselaere.
48924
48925 2005-05-17  Jim Meyering  <jim@meyering.net>
48926
48927         * m4/fts.m4: New file, from coreutils.
48928
48929 2005-05-17  Jim Meyering  <jim@meyering.net>
48930
48931         * lib/fts.c, lib/fts_.h: New files, from coreutils.
48932
48933 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48934
48935         Sync from coreutils.
48936         * m4/unlinkdir.m4: New file.
48937
48938 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48939
48940         Sync from coreutils.
48941         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
48942         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
48943         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
48944         White space changes only.
48945         * lib/makepath.c (make_path): Port to hosts where leading "//" is
48946         special.
48947         * lib/yesno.c: Include getline.h, not ctype.h.
48948         (yesno): Don't remove leading white space; POSIX doesn't allow it.
48949         Use getline to remove arbitrary restriction on response length.
48950
48951 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48952
48953         * config/srclist-update: Spell out "Street" in FSF postal
48954         mail address; this is the style the FSF seems to prefer.
48955
48956         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
48957         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
48958         this updates FSF postal mail address.
48959
48960         Sync from coreutils.
48961         * modules/unlinkdir: New file.
48962         * modules/yesno (Depends-on): Add getline.
48963         * MODULES.html.sh (File system functions): Add unlinkdir.
48964
48965 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48966
48967         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
48968         lib/strsep.h:
48969         Change the initial comment to refer to GPL, not LGPL.
48970         gnulib-tool will change it to LGPL as needed.
48971
48972         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
48973         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
48974         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
48975         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
48976         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
48977         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
48978         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
48979         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
48980         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
48981         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
48982         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
48983         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
48984         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
48985         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
48986         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
48987         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
48988         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
48989         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
48990         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
48991         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
48992         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
48993         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
48994         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
48995         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
48996         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
48997         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
48998         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
48999         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
49000         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
49001         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
49002         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
49003         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
49004         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
49005         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
49006         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
49007         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
49008         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
49009         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
49010         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
49011         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
49012         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
49013         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
49014         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
49015         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
49016         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
49017         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
49018         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
49019         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
49020         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
49021         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
49022         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
49023         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
49024         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
49025         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
49026         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
49027         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
49028         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
49029         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
49030         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
49031         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
49032         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
49033         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
49034         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
49035         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
49036         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
49037         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
49038         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
49039         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
49040         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
49041         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
49042         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
49043         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
49044         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
49045         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
49046         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
49047         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
49048         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
49049         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
49050         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
49051         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
49052         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
49053         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
49054         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
49055         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
49056         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
49057         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
49058         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
49059         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
49060         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
49061         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
49062         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
49063         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
49064         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
49065         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
49066         lib/yesno.c, lib/yesno.h:
49067         Update FSF postal mail address.
49068
49069 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
49070
49071         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
49072         tests/test-memmem.c, tests/test-stpncpy.c:
49073         Update FSF postal mail address.
49074
49075 2005-05-13  Bruno Haible  <bruno@clisp.org>
49076
49077         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
49078         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
49079         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
49080         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
49081         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
49082         Add support for 64-bit integers in the MSVC compiler.
49083
49084 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49085
49086         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
49087
49088 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
49089
49090         * gnulib-tool (func_import): Sort and uniquify recommended includes.
49091
49092 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
49093
49094         * doc/getdate.texi (General date syntax): Don't say that date
49095         date --iso-8601=ns generates acceptable dates; it doesn't yet.
49096         Problem reported by Nic Ferrier.
49097
49098 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49099
49100         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
49101         specified in ai_socktype. Fix invalid ai_protocol
49102         check. ai_protocol is usually set to 0 or depending on
49103         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
49104         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
49105         ai_socktype / ai_protocol in the returned addrinfo structure.
49106
49107 2005-05-10  Simon Josefsson  <jas@extundo.com>
49108
49109         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
49110         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49111
49112 2005-05-10  Karl Berry  <karl@gnu.org>
49113
49114         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
49115         (from http://www.gnu.org/licenses).
49116         * doc/COPYING.LIB: also rename to COPYING.LESSER.
49117         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
49118         fdl.texi suffices.
49119
49120 2005-05-10  Karl Berry  <karl@gnu.org>
49121
49122         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
49123         (COPYING.DOC): remove.
49124
49125         * config/srclist-update: new FSF address.
49126
49127 2005-05-10  Derek Price  <derek@ximbiot.com>
49128
49129         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
49130         possible.
49131
49132 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49133             Bruno Haible  <bruno@clisp.org>
49134
49135         * modules/inet_ntop: New file.
49136         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49137         inet_ntop.
49138
49139 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49140             Bruno Haible  <bruno@clisp.org>
49141
49142         * m4/inet_ntop.m4: New file.
49143
49144 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49145             Bruno Haible  <bruno@clisp.org>
49146
49147         * lib/inet_ntop.h: New file.
49148         * lib/inet_ntop.c: New file, from glibc with modifications.
49149
49150 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
49151
49152         * modules/time_r (License): Change to LGPL.
49153         * modules/extensions (License): Change to LGPL.  Actually,
49154         the license is more permissive than that, but currently gnulib-tool
49155         doesn't know how to handle more-permissive licenses.
49156
49157         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
49158         Problem reported by Dave Love.
49159
49160 2005-05-08  Jim Meyering  <jim@meyering.net>
49161
49162         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
49163         blank.
49164
49165 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
49166
49167         * modules/argmatch (Depends-on): Add stdbool.
49168         * modules/backupfile (Depends-on): Likewise.
49169         * modules/chdir-long (Depends-on): Likewise.
49170         * modules/closeout (Depends-on): Likewise.
49171         * modules/cycle-check (Depends-on): Likewise.
49172         * modules/dirname (Depends-on): Likewise.
49173         * modules/fnmatch (Depends-on): Likewise.
49174         * modules/fsusage (Depends-on): Likewise.
49175         * modules/fwriteerror (Depends-on): Likewise.
49176         * modules/getcwd (Depends-on): Likewise.
49177         * modules/getloadavg (Depends-on): Likewise.
49178         * modules/hard-locale (Depends-on): Likewise.
49179         * modules/makepath (Depends-on): Likewise.
49180         * modules/mountlist (Depends-on): Likewise.
49181         * modules/nanosleep (Depends-on): Likewise.
49182         * modules/posixtm (Depends-on): Likewise.
49183         * modules/quotearg (Depends-on): Likewise.
49184         * modules/readtokens (Depends-on): Likewise.
49185         * modules/readtokens0 (Depends-on): Likewise.
49186         * modules/readutmp (Depends-on): Likewise.
49187         * modules/save-cwd (Depends-on): Likewise.
49188         * modules/strftime (Depends-on): Likewise.
49189         * modules/userspec (Depends-on): Likewise.
49190         * modules/utimecmp (Depends-on): Likewise.
49191         * modules/xgetcwd (Depends-on): Likewise.
49192         * modules/xnanosleep (Depends-on): Likewise.
49193         * modules/xstrtod (Depends-on): Likewise.
49194         * modules/yesno (Depends-on): Likewise.
49195
49196 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
49197
49198         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
49199         needless checks.
49200
49201 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49202
49203         Merge from coreutils.  Among other things,
49204         add bulletproofing for cases where stdin, stdout, or stderr are closed.
49205         * lib/fd-safer.c: New file.
49206         * lib/fcntl-safer.h, open-safer.c: Remove.
49207         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
49208         * lib/dup-safer.c: Include unistd-safer.h first.
49209         Don't include errno.h.
49210         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
49211         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
49212         * lib/file-type.c: Rely on file-type.h change.
49213         * lib/getloadavg.c: Include unistd-safer.h.
49214         (getloadavg): Use safer open.
49215         * lib/getusershell.c: Include "stdio-safer.h".
49216         (getusershell): Use safer fopen.
49217         * lib/long-options.c (long_options): Use NULL rather than 0.
49218         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
49219         'free'.
49220         * lib/modechange.c: Likewise.
49221         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
49222         (MODE_DONE): New constant.
49223         (struct mode_change): Remove 'next' member.
49224         (make_node_op_equals): New function; like the old one of the
49225         same name, except it allocates an array.
49226         (mode_compile, mode_create_from_ref): Use it.
49227         (mode_compile): Allocate result as an array, not a linked list.
49228         Parse octal string ourself, so that we catch mistakes like "+0".
49229         (mode_adjust): Arg is an array, not a linked list.
49230         * lib/modechange.c: Include stat-macros.h, xalloc.h.
49231         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
49232         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
49233         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
49234         Remove.  This is now stat-macros.h's job.
49235         (talloc): Remove.  All callers replaced by xalloc, so that
49236         our invokers don't have to worry about reporting memory failures.
49237         (make_node_op_equals): Remove.
49238         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49239         New constants.
49240         (struct mode_change): Moved here from modechange.h.
49241         (mode_append_entry): Remove.
49242         (mode_compile): Remove MASKED_OPS arg, since it encouraged
49243         apps to have incorrect behavior.  Use simpler algorithm for head
49244         and tail.  Don't futz with umask; that's now the job of mode_adjust.
49245         Detect more invalid usages rather than having somewhat-random behavior.
49246         Don't insert an "a=" action, as that leads to incorrect behavior.
49247         (mode_compile, mode_create_from_ref): Return NULL on error instead
49248         of an enum, since now there's only one way to have an error.  All
49249         callers changed.
49250         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
49251         at the correct time.  Simplify calculation of "+u" and its ilk.
49252         Don't mishandle "+X".
49253         (mode_free): Remove "register" and localize decls.
49254         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49255         (struct mode_change): Move to modechange.c; callers don't
49256         need to see this stuff.
49257         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
49258         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
49259         (mode_change, mode_adjust): Reflect the new signatures noted above.
49260         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
49261         that might redefine system include files.
49262         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
49263         (my_usleep): Use NULL rather than (void *) 0.
49264         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
49265         Use siginterrupt to specify that system calls should be interrupted.
49266         (rpl_nanosleep): Move initialization of suspended closer to call of
49267         my_usleep.
49268         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
49269         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
49270         (desirable_utmp_entry): New function.
49271         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
49272         using x2nrealloc, to simplify logic.
49273         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
49274         size calculation.  Do not assume utmp file is a regular file.
49275         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
49276         (READ_UTMP_CHECK_PIDS): New constant.
49277         * lib/save-cwd.c: Include unistd-safer.h.
49278         (save_cwd): Use fd_safer.
49279         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
49280         [!_LIBC] Include "stat-macros.h" instead.
49281         * lib/unistd-safer.h (fd_safer): New decl.
49282
49283 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49284
49285         * modules/getloadavg (Depends-on): Add unistd-safer.
49286         * modules/getusershell (Depends-on): Add stdio-safer.
49287         * modules/lstat (Depends-on): Remove xalloc.
49288         * modules/mkstemp (Depends-on): Add stat-macros.
49289         * modules/modechange (Depends-on): Remove xstrtol.
49290         Add stat-macros, xalloc.
49291         * modules/save-cwd (Depends-on): Add unistd-safer.
49292         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
49293         * modules/unistd-safer (Files): Add lib/fd-safer.c
49294         (Makefile.am): Remove lib_SOURCES.
49295
49296         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
49297         Remove fcntl-safer; unistd-safer supersedes it.
49298
49299 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49300
49301         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
49302         AC_HEADER_STAT.
49303         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
49304         (gl_PREREQ_CHOWN): Remove.
49305         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
49306         it.  Don't require AC_HEADER_STAT.
49307         (gl_PREREQ_LSTAT): Remove.
49308         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
49309         Don't require AC_HEADER_STAT.
49310         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
49311         (gl_PREREQ_RMDIR): Remove.
49312         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
49313         mention stat-macros.h or AC_HEADER_STAT, since we'll make
49314         the stat-macros module a prerequisite.
49315         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
49316         * m4/filemode.m4 (gl_FILEMODE): Likewise.
49317         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
49318         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
49319         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
49320         variable names.
49321         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
49322         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
49323         variable prefixes.
49324         * m4/fcntl-safer.m4: Remove.
49325         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
49326         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
49327         Invoke gl_PREREQ_FD_SAFER.
49328         (gl_PREREQ_FD_SAFER): New macro.
49329         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
49330         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
49331         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
49332         Remove duplicate call to AC_LIBOBJ(readutmp).
49333         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
49334
49335         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
49336         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
49337
49338 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49339
49340         * MODULES.html.sh (Misc): Add byteswap.
49341
49342 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49343
49344         * modules/getcwd (Depends-on): Add extensions.
49345         * modules/openat (Depends-on): Likewise.
49346
49347 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49348
49349         * modules/byteswap: New file.
49350
49351 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49352
49353         * m4/byteswap.m4: New file.
49354
49355 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49356
49357         * lib/byteswap_.h: New file.
49358
49359 2005-04-25  Karl Berry  <karl@gnu.org>
49360
49361         * m4/gettext.m4: Update from GNU gettext 0.14.4.
49362
49363 2005-04-25  Albert Chin  <china@thewrittenword.com>
49364
49365         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
49366         Toolkit C bug.
49367
49368 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
49369
49370         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
49371         (func_ln_if_changed) Remove forcibly for no error message
49372         in case file does not exist.
49373
49374 2005-04-19  Simon Josefsson  <jas@extundo.com>
49375
49376         * gnulib-tool (Options): Make --symlink mean --symbolic.
49377
49378 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
49379
49380         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
49381
49382 2005-04-16  Simon Josefsson  <jas@extundo.com>
49383
49384         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
49385
49386 2005-04-15  Simon Josefsson  <jas@extundo.com>
49387
49388         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
49389
49390 2005-04-15  Simon Josefsson  <jas@extundo.com>
49391
49392         * gnulib-tool: Rename --symlink to --symbolic.
49393
49394 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
49395
49396         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
49397         symbolic links to files instead of copying/moving.  Add --aux-dir,
49398         specifying directory relative --dir where auxiliary build tools
49399         are placed.
49400
49401 2005-04-14  Bruno Haible  <bruno@clisp.org>
49402
49403         * modules/allocsa (License): Change to LGPL.
49404         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49405
49406 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49407
49408         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
49409         that "UTC +1 second" continues to work.  Problem reported
49410         by Dmitry V. Levin.
49411         (relunit_snumber): New rule.
49412         (relunit): Use it.
49413
49414 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49415
49416         * lib/getdate.y (universal_time_zone_table): New constant.
49417         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
49418         universal_time_zone_table.
49419         (lookup_zone): Prefer universal_time_zone_table to
49420         local_time_zone_table, so that "GMT" time stamps are allowed in
49421         London during the summer.  Problem reported by Ian Abbott.
49422
49423 2005-04-12  Jim Meyering  <jim@meyering.net>
49424
49425         * lib/human.c (humblock): Set *options even when returning due to
49426         xstrtoumax conversion failure.  Thanks to a used-uninitialized
49427         warning from gcc-4.
49428
49429 2005-04-09  Jim Meyering  <jim@meyering.net>
49430
49431         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
49432         -Wuninitialized: initialize tm0.tm_year.
49433
49434 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49435
49436         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
49437         count, since there's no maximum.  All uses changed.
49438         Add member dsts_seen.
49439         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
49440         not being INT_MAX.
49441         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
49442         Use pc_rels_seen to decide whther a date is absolute.
49443
49444         * lib/getdate.y (number): Don't overwrite year.
49445         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
49446         check.
49447
49448 2005-04-02  Simon Josefsson  <jas@extundo.com>
49449
49450         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
49451         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
49452
49453 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
49454
49455         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
49456         where no absolute path name can be longer than PATH_MAX.
49457
49458 2005-03-27  Jim Meyering  <jim@meyering.net>
49459
49460         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
49461
49462 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
49463
49464         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
49465         "one's complement" -> "ones' complement" in comment, as per Knuth.
49466         "value of type" -> "type or expression" in comment.
49467         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
49468
49469 2005-03-26  Jim Meyering  <jim@meyering.net>
49470
49471         Comment nits.
49472         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
49473         Correct typos: s/or/of/.
49474
49475 2005-03-26  Jim Meyering  <jim@meyering.net>
49476
49477         * modules/check-include-files: Move to ../ and rename to...
49478         * check-module: ...this.
49479
49480 2005-03-25  Jim Meyering  <jim@meyering.net>
49481
49482         * modules/xvasprintf (Files): Add xalloc.h.
49483
49484 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49485
49486         * modules/gettext (Files): config/config.rpath ->
49487         build-aux/config.rpath
49488         * modules/iconv (Files): Likewise.
49489         Problem reported by Oskar Liljeblad.
49490
49491 2005-03-23  Jim Meyering  <jim@meyering.net>
49492
49493         * modules/check-include-files: New script to check for
49494         missing dependencies, multiple includes, etc.
49495
49496         * modules/c-strtold (Depends-on): Add xalloc.
49497         * modules/c-strtod (Depends-on): Add xalloc.
49498         * modules/hash (Depends-on): Add xalloc.
49499         (Files): Remove lib/xalloc.h.
49500
49501         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
49502         * modules/userspec (Files): Add lib/inttostr.h.
49503
49504 2005-03-23  Jim Meyering  <jim@meyering.net>
49505
49506         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
49507
49508 2005-03-22  Jim Meyering  <jim@meyering.net>
49509
49510         * modules/stat-macros: New module.
49511         * modules/canonicalize, modules/euidaccess, modules/file-type,
49512         * modules/filemode, modules/lchown, modules/makepath,
49513         * modules/rmdir, modules/stat: Depend on new stat-macros module
49514         rather than listing lib/stat-macros.h manually.
49515         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
49516
49517 2005-03-22  Jim Meyering  <jim@meyering.net>
49518
49519         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
49520
49521 2005-03-22  Bruno Haible  <bruno@clisp.org>
49522
49523         * config/srclist.txt: Replace target directory 'config' with
49524         'build-aux'.
49525         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
49526         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
49527         ../build-aux/.
49528
49529 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
49530
49531         * modules/chdir-long (Depends-on): Add mempcpy.
49532
49533         * modules/acl, modules/backupfile, modules/c-strtod,
49534         modules/c-strtold, modules/canon-host, modules/canonicalize,
49535         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
49536         modules/exclude, modules/exitfail, modules/file-type,
49537         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
49538         modules/getdate, modules/getline, modules/getpagesize,
49539         modules/getpass, modules/getugroups, modules/group-member,
49540         modules/hard-locale, modules/hash, modules/human, modules/idcache,
49541         modules/inttostr, modules/long-options, modules/makepath,
49542         modules/md5, modules/memcasecmp, modules/memcoll,
49543         modules/modechange, modules/mountlist, modules/path-concat,
49544         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
49545         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
49546         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
49547         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
49548         modules/strftime, modules/strndup, modules/strverscmp,
49549         modules/timespec, modules/unlocked-io, modules/userspec,
49550         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
49551         modules/yesno:
49552         Remove lib_SOURCES line from Makefile.am section, as this is now
49553         done automatically by the corresponding Autoconf macro.
49554
49555 2005-03-21  Jim Meyering  <jim@meyering.net>
49556
49557         Changes imported from coreutils.
49558
49559         * lib/cycle-check.c: Don't include xalloc.h.
49560
49561         * lib/path-concat.c: Don't include assert.h.
49562         (path_concat): Remove assertion that would have triggered
49563         for ABASE starting with more than one slash.
49564         Reported by Andreas Schwab.
49565
49566         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
49567         properly when ABASE is an absolute file name.
49568         Correct the description of this function.
49569         Include <assert.h>.
49570         Add an assertion and a test driver.
49571         This fixes a bug introduced on 2004-07-02.
49572         Andreas Schwab reported the resulting failure of cp --parents:
49573         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
49574
49575 2005-03-21  Jim Meyering  <jim@meyering.net>
49576
49577         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
49578         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
49579
49580 2005-03-21  Jim Meyering  <jim@meyering.net>
49581         and  Paul Eggert  <eggert@cs.ucla.edu>
49582
49583         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
49584         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
49585         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
49586         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
49587         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
49588         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
49589         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
49590         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
49591         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
49592         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
49593         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
49594         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
49595         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
49596         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
49597         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
49598         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
49599         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
49600         for these modules.
49601
49602 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
49603
49604         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
49605         (which shouldn't happen), generate nothing instead of returning 0
49606         immediately, so that nstrftime (NULL, ...) doesn't return 0.
49607
49608 2005-03-16  Bruno Haible  <bruno@clisp.org>
49609
49610         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
49611         HAVE_LONGLONG_64BIT.
49612
49613 2005-03-16  Bruno Haible  <bruno@clisp.org>
49614
49615         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
49616         HAVE_LONGLONG_64BIT.
49617
49618 2005-03-16  Bruno Haible  <bruno@clisp.org>
49619
49620         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
49621         HAVE_LONGLONG_64BIT.
49622
49623 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
49624
49625         * lib/strftime.c (my_strftime): Prepend space to format so that we can
49626         reliably distinguish strftime failure from empty output on POSIX
49627         hosts.
49628
49629 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
49630
49631         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
49632         (iconv_string): Don't guess a size-zero buffer, as that might cause
49633         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
49634         result would be 'too large', where 'too large' is (heuristically)
49635         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
49636         overflow concerns.  This will prevent some unwanted malloc failures
49637         when the inputs are very large.
49638
49639 2005-03-15  Karl Berry  <karl@gnu.org>
49640
49641         * config/srclist.txt (config.rpath): from gettext.
49642         * config/config.rpath: update.
49643
49644 2005-03-15  Bruno Haible  <bruno@clisp.org>
49645
49646         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
49647         to 'negate'.
49648
49649         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
49650         variable.
49651
49652         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
49653         results.
49654
49655 2005-03-14  Simon Josefsson  <jas@extundo.com>
49656
49657         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
49658         <fx@gnu.org>.
49659
49660 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
49661
49662         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
49663         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
49664         intprops.h.
49665         * lib/strtol.c: Likewise.
49666
49667 2005-03-14  Jim Meyering  <jim@meyering.net>
49668
49669         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
49670         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
49671         to be nonzero so that we (and caller) can detect the difference
49672         between a valid zero-length expansion and an error return, even
49673         when the underlying strftime fails before writing anything into
49674         that location.
49675
49676 2005-03-14  Bruno Haible  <bruno@clisp.org>
49677
49678         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
49679         Update from GNU gettext 0.14.3.
49680
49681 2005-03-10  Jim Meyering  <jim@meyering.net>
49682
49683         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
49684
49685 2005-03-10  Jim Meyering  <jim@meyering.net>
49686
49687         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
49688         so that this module works on systems without fchdir.
49689
49690 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
49691
49692         Factor int-properties macros into a single file, except for
49693         glibc-related files.
49694         * lib/intprops.h: New file.
49695         * lib/getloadavg.c: Include it instead of limits.h.
49696         (INT_STRLEN_BOUND): Remove.
49697         * lib/human.c: Include intprops.h.
49698         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
49699         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
49700         302/1000.
49701         * lib/inttostr.h: Include intprops.h instead of limits.h.
49702         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
49703         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
49704         for consistency with intprops.h.
49705         (time_t_is_integer, twos_complement_arithmetic): Use them.
49706         * lib/sig2str.h: Include <signal.h>, intprops.h.
49707         (INT_STRLEN_BOUND): Remove.
49708         * lib/strftime.c (TYPE_SIGNED): Remove.
49709         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
49710         * lib/strtol.c: Adjust comments to match intprops.h.
49711         * lib/userspec.c: Include intprops.h.
49712         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
49713         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
49714         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
49715         instead of rolling our own expressions.
49716         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
49717
49718         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
49719         instead of int.
49720         (my_strftime): Do not mishandle years close to INT_MAX, by doing
49721         the right thing even if adding 1900 would overflow.  Similarly
49722         for tm_mon + 1 and tm_yday + 1.
49723         Make %Y always equivalent to %C%y, and similarly for %G and %g.
49724         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
49725         (DO_SIGNED_NUMBER): New macro.
49726         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
49727
49728 2005-03-07  Bruno Haible  <bruno@clisp.org>
49729
49730         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
49731
49732 2005-03-07  Bruno Haible  <bruno@clisp.org>
49733
49734         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
49735
49736 2005-03-04  Derek R. Price  <derek@ximbiot.com>
49737
49738         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
49739         (func_import): Only replace files via --import when they have actually
49740         changed.
49741
49742 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49743
49744         * m4/mmap-anon.m4: New file.
49745         * m4/pagealign_alloc.m4: New file.
49746
49747 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49748             Bruno Haible  <bruno@clisp.org>
49749
49750         * modules/pagealign_alloc: New file.
49751         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
49752
49753 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49754             Bruno Haible  <bruno@clisp.org>
49755
49756         * lib/pagealign_alloc.h: New file.
49757         * lib/pagealign_alloc.c: New file.
49758
49759 2005-03-03  Bruno Haible  <bruno@clisp.org>
49760
49761         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
49762         Use an all-permissive copyright notice, recommended by RMS.
49763
49764 2005-03-02  Bruno Haible  <bruno@clisp.org>
49765
49766         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
49767         of AIX, the replacement has to be done only after <string.h> is
49768         included, therefore not in config.h. stpncpy.h does the replacement,
49769         and stpncpy.c uses it.
49770
49771 2005-03-02  Bruno Haible  <bruno@clisp.org>
49772
49773         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
49774         stpncpy.c uses it.
49775
49776 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49777
49778         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
49779         The workaround isn't strictly needed for POSIX conformance, and
49780         it's too much of a pain to configure and maintain.  We'll ask
49781         people to fix their kernels instead.
49782         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
49783         (NANOSLEEP_BUG_WORKAROUND): Remove.
49784         (xnanosleep): Remove the workaround.
49785
49786 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49787
49788         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
49789         Reported by Derek Price.
49790         (Include): Add "timespec.h".
49791
49792         * modules/xnanosleep (Depends-on): Remove gethrxtime.
49793
49794 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49795
49796         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
49797         to detect nanosleep bug.
49798
49799 2005-03-01  Bruno Haible  <bruno@clisp.org>
49800
49801         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
49802
49803 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
49804
49805         * modules/gethrxtime: New file.
49806         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
49807         (Depends-on): Add gethrxtime.
49808         (configure.ac): Add gl_XNANOSLEEP.
49809         (Makefile.am): Remove lib_SOURCES line.
49810
49811 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49812
49813         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
49814         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
49815
49816 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49817
49818         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
49819         * lib/timespec.h (gettime): Return void, since it always
49820         succeeds now.  All uses changed.
49821         * lib/gettime.c (gettime) Likewise.
49822         [HAVE_NANOTIME]: Prefer nanotime.
49823         Assume gettimeofday succeeds, as POSIX requires.
49824         Assime time () succeeds, since other code already does.
49825         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
49826         (timespec_subtract): Remove.
49827         (NANOSLEEP_BUG_WORKAROUND): New constant.
49828         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
49829         things considerably.  Use it only on GNU/Linux hosts, since the
49830         workaround shouldn't be needed elsewhere.
49831
49832 2005-02-24  Bruno Haible  <bruno@clisp.org>
49833
49834         * modules/gettext (Files): Add m4/glibc2.m4.
49835
49836 2005-02-24  Bruno Haible  <bruno@clisp.org>
49837
49838         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
49839         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
49840         * m4/progtest.m4:
49841         Update from GNU gettext 0.14.2.
49842         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
49843
49844 2005-02-24  Bruno Haible  <bruno@clisp.org>
49845
49846         * lib/localcharset.c: Update from GNU gettext 0.14.2.
49847         * lib/config.charset: Update from GNU gettext 0.14.2.
49848
49849 2005-02-24  Bruno Haible  <bruno@clisp.org>
49850
49851         * lib/gettext.h: Update from GNU gettext 0.14.2.
49852
49853 2005-02-23  Simon Josefsson  <jas@extundo.com>
49854
49855         * m4/iconvme.m4: New file.
49856
49857 2005-02-23  Jim Meyering  <jim@meyering.net>
49858
49859         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
49860         change.
49861         Thanks to Bruno Haible for catching it.
49862
49863 2005-02-22  Simon Josefsson  <jas@extundo.com>
49864
49865         * modules/iconvme: New file.
49866
49867         * MODULES.html.sh: Add iconvme.
49868
49869 2005-02-22  Simon Josefsson  <jas@extundo.com>
49870
49871         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
49872
49873 2005-02-22  Simon Josefsson  <jas@extundo.com>
49874
49875         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
49876
49877 2005-02-22  Jim Meyering  <jim@meyering.net>
49878
49879         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
49880         s/ifndef/ifdef/.
49881
49882 2005-02-20  Neil Conway  <neilc@samurai.com>
49883
49884         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
49885         returned by OSX/Darwin if the specified buffer is not large
49886         enough for the hostname.
49887
49888 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49889
49890         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
49891         pass it to _help, otherwise the latter coredumps trying to
49892         dereference state.root_argp.
49893
49894 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49895
49896         * modules/chdir-long (Depends-on): Add memrchr.
49897         * modules/memrchr (Files): Add lib/memrchr.h.
49898         (Include): "memrchr.h".
49899
49900 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49901
49902         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
49903
49904 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49905
49906         * lib/memrchr.h: New file.
49907         * lib/chdir-long.c: Include it.
49908         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
49909         Don't bother including stddef.h.
49910
49911 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
49912
49913         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
49914         inclusion.
49915         Include <sys/types.h>, for dev_t.
49916         (ME_DUMMY, ME_REMOTE): Move from here....
49917         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
49918         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
49919         Dmitry V. Levin.
49920         Include mountlist.h first, to test the interface.
49921
49922 2005-01-29  Bruno Haible  <bruno@clisp.org>
49923
49924         * lib/progname.c (program_name): Initialize.
49925         Needed when linking statically on MacOS X.
49926
49927 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49928
49929         Sync from coreutils.
49930         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
49931         (Depends-on): Add c-strtod.
49932         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
49933
49934 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49935
49936         Sync from coreutils.
49937         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
49938
49939         Remove files that are specific to coreutils.
49940         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
49941
49942 2005-01-28  Bruno Haible  <bruno@clisp.org>
49943
49944         * modules/javacomp: New file.
49945         * MODULES.html.sh (Java): Add javacomp.
49946
49947 2005-01-28  Bruno Haible  <bruno@clisp.org>
49948
49949         * m4/javacomp.m4: New file, from GNU gettext.
49950
49951 2005-01-28  Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/javacomp.sh.in: New file, from GNU gettext.
49954         * lib/javacomp.h: New file, from GNU gettext.
49955         * lib/javacomp.c: New file, from GNU gettext.
49956
49957 2005-01-26  Simon Josefsson  <jas@extundo.com>
49958
49959         * lib/gai_strerror.c: Use GPL in header.
49960
49961 2005-01-26  Bruno Haible  <bruno@clisp.org>
49962
49963         * modules/javaexec: New file.
49964         * MODULES.html.sh (Java): Add javaexec.
49965
49966 2005-01-26  Bruno Haible  <bruno@clisp.org>
49967
49968         * m4/javaexec.m4: New file, from GNU gettext.
49969
49970 2005-01-26  Bruno Haible  <bruno@clisp.org>
49971
49972         * lib/javaexec.sh.in: New file, from GNU gettext.
49973         * lib/javaexec.h: New file, from GNU gettext.
49974         * lib/javaexec.c: New file, from GNU gettext.
49975
49976 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49977
49978         * modules/lchown (Depends-on): Remove lchown.h
49979
49980 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49981
49982         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
49983         must be defined if the header file was not found, in order
49984         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
49985
49986 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49987
49988         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
49989         initializers for struct pentry_state.
49990         (__argp_error): Check return value of __asprintf
49991         (__argp_failure): Translate error message
49992
49993         * lib/argp-parse.c: Removed braces around the expansion of N_()
49994
49995 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49996
49997         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
49998         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
49999         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
50000         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
50001         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
50002         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
50003         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
50004         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
50005         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
50006         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
50007         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
50008         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
50009         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
50010         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
50011         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
50012         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
50013         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
50014         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
50015         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
50016         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
50017         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
50018         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
50019         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
50020         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
50021         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
50022         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
50023         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
50024         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
50025         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
50026         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
50027         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
50028         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
50029         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
50030         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
50031         xstrtol.m4, xstrtoumax.m4, yesno.m4:
50032         Use an all-permissive copyright notice, recommended by RMS.
50033
50034 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
50035
50036         * modules/chdir-long (Depends-on): Remove mempcpy.
50037
50038 2005-01-21  Jim Meyering  <jim@meyering.net>
50039
50040         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
50041         same value as for Solaris 9.
50042
50043         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
50044         component length.  This included changing the parameter to be
50045         of type `char *' rather than `char const *'.
50046         * lib/chdir-long.h (chdir_long): Update prototype.
50047
50048         * lib/openat.c (fdopendir, fstatat): New functions.
50049         * lib/openat.h: Include headers required for use of DIR and struct
50050         stat.
50051         [AT_SYMLINK_NOFOLLOW]: Define.
50052         (fdopendir, fstatat): Add prototypes.
50053
50054 2005-01-21  Bruno Haible  <bruno@clisp.org>
50055
50056         * modules/classpath: New file.
50057         * MODULES.html.sh (Java): Add classpath.
50058
50059 2005-01-21  Bruno Haible  <bruno@clisp.org>
50060
50061         * lib/classpath.h: New file, from GNU gettext.
50062         * lib/classpath.c: New file, from GNU gettext.
50063
50064 2005-01-20  Simon Josefsson  <jas@extundo.com>
50065
50066         * modules/version-etc-fsf: New file.
50067
50068 2005-01-20  Simon Josefsson  <jas@extundo.com>
50069
50070         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
50071         * lib/version-etc.c: Remove version_etc_copyright.
50072         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
50073         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
50074
50075 2005-01-20  Simon Josefsson  <jas@extundo.com>
50076
50077         * lib/base64.h (isbase64): Add.
50078
50079         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
50080         using a unsigned prototype, don't inline.
50081         (base64_decode): Use it.
50082
50083 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
50084
50085         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
50086         it.
50087
50088 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
50089
50090         * lib/save-cwd.c (save_cwd): Remove code to support the case
50091         where fchdir is missing or flaky.
50092
50093 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
50094
50095         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
50096
50097 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
50098
50099         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
50100         AC_LIBSOURCES now does this.
50101         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
50102         with new ullong_max module.
50103
50104 2005-01-19  Bruno Haible  <bruno@clisp.org>
50105
50106         * modules/sh-quote: New file.
50107         * MODULES.html.sh (Executing programs): Add sh-quote.
50108
50109 2005-01-19  Bruno Haible  <bruno@clisp.org>
50110
50111         * lib/sh-quote.h: New file, from GNU gettext.
50112         * lib/sh-quote.c: New file, from GNU gettext.
50113
50114 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
50115
50116         Merge from coreutils.
50117         * m4/ullong_max.m4: New file.
50118         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
50119         (gl_MACROS): Assume localeconv exists.
50120
50121 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
50122
50123         Merge changes from coreutils, as described below in several
50124         changelogs dated today.
50125
50126         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
50127         (O_DIRECTORY): Remove; not needed here, since "." must be
50128         a directory.  All uses removed.
50129         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
50130         universal on Suns, and we also need to test for IRIX.
50131         Revamp code to use 'if' rather than '#if'.
50132         Avoid unnecessary comparison of cwd->desc to 0.
50133
50134         * lib/utimens.c (futimens): Robustify the previous patch, by checking
50135         for known valid error numbers rather than observed invalid ones.
50136
50137 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
50138
50139         * modules/ullong_max: New file.
50140
50141         * modules/chdir-long, modules/openat: New files.
50142         * modules/save-cwd (Depends-on): Depend on chdir-long.
50143         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
50144
50145 2005-01-18  Jim Meyering  <jim@meyering.net>
50146
50147         Merge from coreutils.
50148         * m4/chdir-long.m4, m4/openat.m4: New files.
50149         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
50150         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
50151         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
50152         is sane and DOES follow symlinks.  Besides, testing 20 different
50153         systems found no broken chown implementations.
50154         Prompted by a change in rsync's copy of this macro.
50155         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
50156
50157         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
50158
50159         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
50160         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
50161         NULL-means-set-to-current-time semantics.
50162         Remove temporary file immediately, rather than waiting
50163         for configure's at-exit trap code to do it.
50164
50165 2005-01-18  Jim Meyering  <jim@meyering.net>
50166
50167         * lib/version-etc.c (version_etc_copyright): Update copyright date.
50168
50169         * lib/utimens.c (futimens): Account for the fact that futimes
50170         can also fail with errno == ENOSYS or errno == ENOENT.
50171         Patch from Dmitry V. Levin.
50172
50173         Change the name of the robust chdir function from chdir to chdir_long.
50174         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
50175         (restore_cwd): Use chdir_long, not chdir.
50176         * lib/chdir-long.c: Renamed from chdir.c.
50177         * lib/chdir-long.h: Renamed from chdir.h.
50178         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
50179         Hurd.
50180
50181 2005-01-18  Bruno Haible  <bruno@clisp.org>
50182
50183         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
50184         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
50185         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
50186         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
50187         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
50188         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
50189         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
50190         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
50191         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
50192         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
50193         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
50194         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
50195         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
50196         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
50197         Use an all-permissive copyright notice, recommended by RMS.
50198
50199 2005-01-18  Bob Proulx  <bob@proulx.com>
50200
50201         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
50202         simplify offsetof() macro construct to avoid compile failure with
50203         native HP-UX 11.0 ANSI C compiler.
50204
50205 2005-01-17  Bruno Haible  <bruno@clisp.org>
50206
50207         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
50208         redundant because stpncpy.m4 takes care of it.
50209
50210 2005-01-17  Bruno Haible  <bruno@clisp.org>
50211
50212         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
50213
50214 2005-01-17  Bruno Haible  <bruno@clisp.org>
50215
50216         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
50217         used.
50218
50219 2005-01-17  Bruno Haible  <bruno@clisp.org>
50220
50221         * lib/fwriteerror.h (fwriteerror): Change specification to include
50222         fclose.
50223         * lib/fwriteerror.c: Include <stdbool.h>.
50224         (fwriteerror): At the end, close the file stream. Record whether
50225         stdout was already closed.
50226
50227 2005-01-17  Bruno Haible  <bruno@clisp.org>
50228
50229         * lib/execute.c (environ): Declare if needed.
50230         * lib/pipe.c (environ): Likewise.
50231         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
50232
50233 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50234
50235         * modules/argp: Depend on vsnprintf
50236
50237 2005-01-10  Jim Meyering  <jim@meyering.net>
50238
50239         * modules/closeout (Depends-on): Add atexit.
50240
50241 2005-01-06  Bruno Haible  <bruno@clisp.org>
50242
50243         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
50244
50245 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
50246
50247         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
50248         definitions to be after all include files, to avoid collisions.
50249         Problem reported by Bob Proulx.
50250
50251 2005-01-04  Jim Meyering  <jim@meyering.net>
50252
50253         Changes imported from coreutils.
50254         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
50255         as the mkstemp template, use a temporary directory and an
50256         8.3-friendly template to avoid trouble on systems like DJGPP.
50257         Reported by Juan M. Guerrero via Stepan Kasal.
50258         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
50259         close. Remove the temporary directory right away, rather than waiting
50260         for configure's at-exit trap code to do it.
50261         Suggestion from Stepan Kasal.
50262
50263 2005-01-01  Simon Josefsson  <jas@extundo.com>
50264
50265         * gnulib-tool: Print #include directives when --import'ing.
50266
50267 2004-12-28  Simon Josefsson  <jas@extundo.com>
50268
50269         * tests/test-base64.c: Include required header files.  Remove
50270         unused variables.
50271
50272 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50273
50274         * modules/error (Depends-on): Remove gettext.
50275
50276 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50277
50278         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
50279         not needed.  This removes a dependency on the gettext module.
50280         [defined _LIBC]: Do not include <libintl.h>; not needed.
50281
50282 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
50283
50284         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
50285         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
50286
50287 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
50288
50289         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
50290         HAVE_DECL_STRTOLD.
50291
50292 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50293
50294         * modules/getdate (Depends-on): Remove alloca-opt.
50295
50296 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50297
50298         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
50299
50300 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50301
50302         * lib/argp-parse.c: Include <stddef.h>.
50303         (alignof, alignto): New macros.
50304         (parser_init): Don't assume that void * is aligned sufficiently
50305         for struct option.
50306
50307         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
50308         need to extend the stack.
50309         (YYINITDEPTH): New macro, so that the initial stack isn't overly
50310         large.
50311
50312 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50313
50314         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
50315
50316 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
50317
50318         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
50319         (2004-10-24) change.  Apparently this was a false alarm.
50320
50321         * modules/getdate: Depend on alloca-opt, not alloca.
50322
50323 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
50324
50325         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
50326         Remove now-obsolete comment about AIX.
50327         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
50328         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
50329         (YYMAXDEPTH): New macro.
50330
50331 2004-12-18  Simon Josefsson  <jas@extundo.com>
50332
50333         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
50334
50335 2004-12-18  Bruno Haible  <bruno@clisp.org>
50336
50337         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
50338
50339 2004-12-18  Bruno Haible  <bruno@clisp.org>
50340
50341         * lib/fatal-signal.c (fatal_signals): Make non-const.
50342         (init_fatal_signals): New function.
50343         (uninstall_handlers, install_handlers): Ignore signals that were set to
50344         SIG_IGN.
50345         (at_fatal_signal): Call init_fatal_signals.
50346         (init_fatal_signal_set): Likewise. Ignore signals that were set to
50347         SIG_IGN.
50348         Reported by Paul Eggert.
50349
50350 2004-12-18  Bruno Haible  <bruno@clisp.org>
50351
50352         * doc/alloca.texi: New file.
50353         * doc/alloca-opt.texi: New file.
50354
50355 2004-12-17  Jim Meyering  <jim@meyering.net>
50356
50357         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
50358         Otherwise, install-sh could exit with improper exit status when
50359         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
50360
50361 2004-12-16  Simon Josefsson  <jas@extundo.com>
50362
50363         * tests/test-base64.c: Add license.
50364
50365 2004-12-15  Stepan Kasal  <address@hidden>
50366
50367         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
50368
50369 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
50370
50371         * modules/getcwd (Files): Add m4/d-ino.m4.
50372         Suggested by Mark D. Baushke.
50373
50374 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
50375
50376         * lib/getdate.y (textint): New member "negative".
50377         (time_zone_hhmm): New function.
50378         Expect 14 shift-reduce conflicts, not 13.
50379         (o_colon_minutes): New rule.
50380         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
50381         (yylex): Set the "negative" member of signed numbers.
50382
50383 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
50384
50385         * doc/getdate.texi (Time of day items, Time zone items):
50386         Describe new formats +00:00, UTC+00:00.
50387
50388 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
50389
50390         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
50391         spurious "-l"s.  Problem reported by Stepan Kasal.
50392
50393 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
50394
50395         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
50396         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
50397
50398 2004-12-04  Simon Josefsson  <jas@extundo.com>
50399
50400         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
50401         Vandoorselaere <yoann@prelude-ids.org>.
50402
50403 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50404
50405         Changes imported from coreutils.
50406         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
50407         exist.
50408         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
50409
50410 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50411
50412         Changes imported from coreutils.
50413         * lib/hard-locale.c: Assume <locale.h> exists.
50414         Include "strdup.h".
50415         (GLIBC_VERSION): New macro.
50416         (hard_locale): Assume setlocale exists.
50417         Rewrite to avoid #ifdef.
50418         Use strdup rather than malloc + strcpy.
50419         * lib/human.c: Assume <locale.h> exists.
50420         (human_readable): Assume localeconv exists.
50421
50422 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50423
50424         * modules/hard-locale (Depends-on): Add strdup.
50425
50426 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
50427
50428         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
50429         convert T2, not T.  (Imported from libc.)
50430
50431 2004-11-30  Simon Josefsson  <jas@extundo.com>
50432
50433         * modules/restrict (License): Change to LGPL.
50434
50435 2004-11-30  Simon Josefsson  <jas@extundo.com>
50436
50437         * m4/restrict.m4: Add copyright and copying conditions.
50438
50439 2004-11-30  Simon Josefsson  <jas@extundo.com>
50440
50441         * m4/base64.m4: New file.
50442
50443 2004-11-30  Simon Josefsson  <jas@extundo.com>
50444
50445         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
50446         base64.
50447
50448         * tests/test-base64.c: New file.
50449
50450         * modules/base64: New file.
50451
50452 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
50453
50454         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
50455         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
50456
50457         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
50458
50459 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
50460
50461         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
50462         (__getcwd.c): Don't restore errno; glibc doesn't.
50463         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
50464         first, falling back to our code only if its results look suspicious.
50465         Ensure that the resulting buffer is only as large as necessary.
50466
50467         * lib/readutmp.c: Include readutmp.h first.
50468         Include <errno.h>, since readutmp.h no longer does that.
50469         * lib/readutmp.h: Don't include <errno.h>,
50470         <sys/param.h>, <time.h>; not needed to establish interface.
50471         (errno): Remove decl.
50472         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
50473         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
50474         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
50475
50476 2004-11-28  Simon Josefsson  <jas@extundo.com>
50477
50478         * lib/base64.h, base64.c: New file.
50479
50480 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50481
50482         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
50483
50484 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50485
50486         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
50487         (Depends-on): Remove pathmax, same.  Add mempcpy.
50488         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
50489         (Makefile.am): Append getcwd.h to lib_SOURCES.
50490         (Include): Add getcwd.h.
50491         (Maintainer): Change from Jim Meyering to "all, glibc",
50492         since getdate now uses intended-for-glibc code.
50493         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
50494         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
50495
50496 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
50497
50498         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
50499         HP's ANSI C compiler.
50500         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
50501         Declaring int functions causes warnings on some modern systems and
50502         shouldn't be needed to compile on ancient ones.
50503         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
50504         defined.
50505
50506         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
50507         with the following changes.
50508         (__set_errno): Parenthesize properly.
50509         Include <stdbool.h>.
50510         (MIN, MAX, MATCHING_INO): New macros.
50511         (__getcwd): Define with prototype, not K&R form.
50512         Use heuristics to allocate default buffer on stack if possible.
50513         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
50514         behavior, and to avoid the PATH_MAX limit when computing
50515         ../../../../...
50516         Use MATCHING_INO to compare inode number to file.
50517         Check for arithmetic overflow in size calculations.
50518         Fix bug in reallocation of dot array that caused getcwd to fail
50519         on directories nested deeper than 75.
50520         Be more careful about saving errno on error.
50521         Do not use realloc; use only free+malloc, as this is a bit
50522         more flexible and avoids a needless copy operation.
50523         Do not inspect st_dev and st_ino for symbolic links; POSIX
50524         doesn't specify the latter.
50525         Check for closedir errors.
50526         Avoid needless casts.
50527         Use "#ifdef weak_alias" around weak_alias, to be like other
50528         glibc code.
50529         The following changes to getcwd.c have effect only when used in
50530         gnulib; they have no effect inside glibc proper.
50531         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
50532         as alloca isn't used.
50533         (alloca, __alloca): Likewise.
50534         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
50535         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
50536         unconditionally, as gnulib assumes C89 or better.
50537         Do not include <sys/param.h>.
50538         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
50539         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
50540         better.
50541         (NULL) [!defined NULL]: Remove; we assume C89 or better.
50542         Include <dirent.h> in a way that is compatible with modern Autoconf.
50543         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
50544         New macros, if not already defined.
50545         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
50546         Use "_LIBC", not "defined _LIBC", for consistency.
50547         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
50548         a mempcpy module.
50549         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
50550         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
50551         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
50552         credit only to Jim Meyering and adjust the copyright dates.
50553         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
50554         <stdlib.h>, <unistd.h>, "pathmax.h".
50555         Instead, include "xgetcwd.h" (first) and "getcwd.h".
50556         (INITIAL_BUFFER_SIZE): Remove.
50557         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
50558
50559 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
50560
50561         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
50562         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
50563         Use the _ONCE methods, for efficiency.
50564         Check for fcntl.h.  In test program, include <errno.h>
50565         and <fcntl.h> if available.  Remove old K&R cruft from
50566         test program.  Check for common errors in GNU/Linux,
50567         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
50568         don't do AC_LIBOBJ, as that's getcwd.m4's job.
50569         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
50570         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
50571         name accordingly.
50572         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
50573         accommodate new getcwd.c.
50574         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
50575         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
50576         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
50577         that's all we need now.
50578
50579 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50580
50581         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
50582         argp-parse.c depends on getopt internals, that means we should
50583         always use our getopt, to be on the safe side.
50584         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
50585         order not to spoil the result of an eventual previous invocation
50586         of gl_GETOPT_SUBSTITUTE.
50587
50588 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50589
50590         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
50591         redefinition warnings. To avoid them, include the defines
50592         in `#if !defined __need_getopt ... #endif'. The only place
50593         where __getopt_argv_const is used is in definitions
50594         of getopt_long and getopt_long_only below, which are as well
50595         protected by `#ifndef __need_getopt'.
50596         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
50597         __need_getopt after including <stdio.h> and <unistd.h> These
50598         headers might have defined it.
50599
50600 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
50601
50602         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
50603
50604 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
50605
50606         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
50607         (futimens): New function, which uses futimes if available.
50608         (futimens, utimens): Support timespec==NULL, with same semantics
50609         as utime and utimens.
50610         * lib/utimens.h (futimens): New decl.
50611
50612 2004-11-23  Jim Meyering  <jim@meyering.net>
50613
50614         * lib/getopt_.h: Remove trailing blanks.
50615
50616 2004-11-23  Jim Meyering  <jim@meyering.net>
50617
50618         * lib/__fpending.c: Add comment.
50619
50620 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
50621
50622         * modules/canonicalize (Depends-on): Add xreadlink.
50623         Problem reported by James Youngman.
50624
50625 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50626
50627         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
50628         New macros.
50629         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
50630         optopt): Use them instead of invoking ## directly; otherwise, the
50631         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
50632
50633 2004-11-19  Bruno Haible  <bruno@clisp.org>
50634
50635         * lib/strtok_r.c: Move comments from here...
50636         * lib/strtok_r.h: ... to here.
50637
50638 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50639
50640         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
50641         implementations that mishandle size_t overflow.
50642
50643 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50644
50645         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
50646         might fail.  Problem reported by Yoann Vandoorselaere.
50647         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
50648         implementations that mishandle size_t overflow.
50649
50650 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50651
50652         * modules/canon-host (Depends-on): Add strdup.
50653
50654 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50655
50656         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
50657
50658 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50659
50660         * lib/canon-host.c: Include "strdup.h".
50661         (canon_host): Use getaddrinfo if available, so that IPv6 works.
50662         Use strdup instead of malloc/strcpy to duplicate strings.
50663
50664         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
50665         (human_space_before_unit): New constant.
50666         * lib/human.c (human_readable): Support it.
50667
50668         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
50669         (xgetcwd): Set errno correctly when failing.
50670         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
50671         the failure is actually due to a PATH_MAX problem.
50672
50673         Further getopt changes to make it more likely that glibc will
50674         buy the changes back.
50675         * lib/getopt.c (POSIXLY_CORRECT): New constant.
50676         (getopt): Use it, so to preserve glibc semantic
50677         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
50678         when compiling for libc.
50679         * lib/getopt_.h (__getopt_argv_const): Bring it back.
50680         (getopt_long, getopt_long_only): Use it.
50681
50682         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50683         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
50684         (getopt): Argv is now char * const *, as per standard.
50685         (_getopt_internal_r, _getopt_internal): Argv is now char **,
50686         not char *__getopt_argv_const *.
50687         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50688         _getopt_long_only_r): Likewise.
50689         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
50690         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50691         _getopt_long_r, _getopt_long_only_r): Likewise.
50692         * lib/getopt_.h (__getopt_argv_const): Remove.
50693         (getopt): Argv is now char * const *, as per standard.
50694
50695         * lib/getdate.y (tORDINAL): New token.
50696         (day, relunit): Allow it for relative times.
50697         (relative_time_table): Use tORDINAL for ordinals.
50698
50699 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50700
50701         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
50702         Document that "second" isn't allowed as an ordinal number.
50703
50704 2004-11-16  Jim Meyering  <jim@meyering.net>
50705
50706         * modules/closeout (Depends-on): Add fpending.
50707
50708 2004-11-15  Jim Meyering  <jim@meyering.net>
50709
50710         * lib/closeout.c: Include "__fpending.h" once again.
50711         Include <stdbool.h>.
50712         (close_stdout): Don't fail just because stdout was closed initially,
50713         since some programs don't write to stdout in the normal course of
50714         operation (other than --version and --help), and we don't want this
50715         function to make e.g. `touch file >&-' fail.
50716         But do fail if it was closed and someone has tried to write to it.
50717         E.g., `printf foo >&-' must fail.
50718
50719 2004-11-13  Jim Meyering  <jim@meyering.net>
50720
50721         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
50722
50723 2004-11-12  Simon Josefsson  <jas@extundo.com>
50724
50725         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
50726         small doc fix is still pending.
50727
50728 2004-11-11  Simon Josefsson  <jas@extundo.com>
50729
50730         * modules/strtok_r: New file.
50731
50732         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50733         strtok_r.
50734
50735 2004-11-11  Simon Josefsson  <jas@extundo.com>
50736
50737         * m4/strtok_r.m4: New file.
50738
50739         * m4/getopt.m4: Replace opterr.
50740
50741 2004-11-11  Simon Josefsson  <jas@extundo.com>
50742
50743         * lib/strtok_r.h, strtok_r.c: New file.
50744
50745 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
50746
50747         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
50748         of replacing opterr, getopt, etc.  This should handle the
50749         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
50750
50751 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
50752
50753         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
50754         we can stop lying to compilers about the constness of argv when we
50755         are compiled outside glibc.
50756         (getopt, getopt_long, getopt_long_only): Use it.
50757         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50758         _getopt_internal, getopt): Likewise.
50759         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50760         _getopt_long_only_r): Likewise.
50761         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50762         _getopt_long_r, _getopt_long_only_r): Likewise.
50763
50764         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
50765         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
50766         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
50767         the other external symbols.
50768         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
50769         declaration, since the above renaming now works around collisions.
50770
50771 2004-11-11  Jim Meyering  <jim@meyering.net>
50772
50773         * lib/linebreak.c: Remove trailing blanks.
50774         * lib/alloca_.h: Likewise.
50775         * lib/acosl.c: Likewise.
50776         * lib/euidaccess.c: Likewise.
50777         * lib/allocsa.h: Likewise.
50778
50779 2004-11-10  Simon Josefsson  <jas@extundo.com>
50780
50781         * m4/getaddrinfo.m4: New file.
50782
50783 2004-11-10  Simon Josefsson  <jas@extundo.com>
50784
50785         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
50786
50787 2004-11-10  Simon Josefsson  <jas@extundo.com>
50788
50789         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50790         getaddrinfo.
50791
50792         * modules/getaddrinfo: New file.
50793
50794 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50795
50796         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
50797
50798 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50799
50800         * lib/mktime.c (SHR): New macro, which is a portable
50801         substitute for >> that should work even on Crays.
50802         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
50803         Problem reported by Mark D. Baushke in
50804         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
50805         * lib/getdate.y (SHR): Likewise.
50806         (tm_diff): Use it.
50807         * lib/strftime.c (SHR): Likewise.
50808         (tm_diff): Use it.
50809         * lib/quotearg.c (struct quoting_options): Use unsigned int for
50810         quote_these_too, so that right shifts are well defined.  All uses
50811         changed.
50812
50813 2004-11-10  Jim Meyering  <jim@meyering.net>
50814
50815         Ensure that no close failure goes unreported.
50816         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
50817         return early when it seems there's nothing to flush.
50818         Don't include __fpending.h.
50819
50820 2004-11-10  Jim Meyering  <jim@meyering.net>
50821
50822         * modules/closeout (Depends-on): Remove fpending.
50823
50824 2004-11-10  Jim Meyering  <jim@meyering.net>
50825
50826         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
50827
50828 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50829
50830         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
50831         gl_FUNC_STRFTIME.
50832         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
50833         and AC_REQUIRE when possible, to avoid duplicate checks.
50834         Check for <wchar.h>.
50835
50836 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50837
50838         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
50839
50840 2004-11-09  Bruno Haible  <bruno@clisp.org>
50841
50842         * m4/sockpfaf.m4: New file.
50843
50844 2004-11-05  Bruno Haible  <bruno@clisp.org>
50845
50846         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
50847         Reported by Mark D. Baushke <mdb@cvshome.org>.
50848
50849 2004-11-04  Bruno Haible  <bruno@clisp.org>
50850
50851         2004-09-11  Bruno Haible  <bruno@clisp.org>
50852                 * allocsa.valgrind: New file.
50853         2004-02-06  Bruno Haible  <bruno@clisp.org>
50854                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
50855                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
50856                 Reported by Christopher Seip <chris.seip@hp.com>.
50857
50858 2004-11-04  Bruno Haible  <bruno@clisp.org>
50859
50860         * modules/allocsa (Files): Add lib/allocsa.valgrind.
50861         (Makefile.am): Distribute it.
50862
50863 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50864
50865         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
50866         with errno == ERANGE if the buffer is too small.
50867         Problem reported by Mark D. Baushke.
50868
50869 2004-11-03  Albert Chin  <china@thewrittenword.com>
50870             Paul Eggert  <eggert@cs.ucla.edu>
50871
50872         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
50873         equivalent, substitute $ac_type for equivalent type rather than
50874         blindly using uint32_t *always* which won't work if uint32_t is not
50875         available.  Define _UINT32_T to work around typedef of uint32_t if
50876         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
50877         2.5.1.
50878
50879 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50880
50881         * m4/jm-macros.m4: Sync from coreutils.
50882         (gl_MACROS): Check for mbrlen, for pathchk.
50883         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
50884
50885 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50886
50887         * lib/xreadlink.c (MAXSIZE): New macro.
50888         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
50889         size does not exceed MAXSIZE.  Avoid cast.
50890         As suggested by Mark D. Baushke in
50891         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
50892         if readlink fails with buffer size just under MAXSIZE, try again
50893         with MAXSIZE.
50894
50895 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50896
50897         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
50898
50899 2004-11-02  Derek R. Price  <derek@ximbiot.com>
50900         and  Paul Eggert  <eggert@cs.ucla.edu>
50901
50902         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
50903         (get_date): Overparenthesize to avoid GCC warning.
50904
50905 2004-11-02  Bruno Haible  <bruno@clisp.org>
50906
50907         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
50908         returns void.
50909
50910 2004-11-02  Bruno Haible  <bruno@clisp.org>
50911
50912         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
50913         function returns void.
50914
50915 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50916
50917         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
50918         fflush_unlocked, flockfile, funlockfile, funlockfile,
50919         fputs_unlocked, putc_unlocked.
50920
50921 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50922
50923         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50924         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
50925         already declared.
50926
50927 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50928
50929         * modules/getdate (Files): Add doc/getdate.texi.
50930         (Depends-on): Add setenv, xalloc.
50931
50932 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50933
50934         * lib/getdate.y: Add support for TZ="foo" within a date string.
50935         Fix some bugs near time_t boundaries.  Reject dates with
50936         out-of-range components, e.g., "Sept 31".
50937         Include <stdlib.h>, "setenv.h", "xalloc.h".
50938         (ISDIGIT_LOCALE): Remove; unused.
50939         Note that the TZ and time functions used here are not reentrant.
50940         (mktime_ok, get_tz): New functions.
50941         (TZBUFSIZE): New constant.
50942         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
50943         This requires that we sometimes generate our own TZ="XXX..." setting.
50944
50945 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50946
50947         * doc/getdate.texi: New file, from coreutils with modifications for
50948         the new TZ parsing.
50949
50950 2004-10-27  Derek R. Price  <derek@ximbiot.com>
50951
50952         * lib/mktime.c (not_equal_tm): Remove redundant check.
50953
50954 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50955
50956         * modules/regex (lib_SOURCES): Add regex.c.
50957         Reported by James Youngman in
50958         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
50959
50960 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50961
50962         * lib/getdate.y: Use Bison 1.875 features, and some minor
50963         code cleanups.  This change does not affect semantics.
50964         Don't include <stdlib.h>; no longer needed.
50965         Don't include unlocked-io.h; only the "#if TEST" code uses
50966         stdio, and performance isn't crucial there.
50967         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
50968         Bison 1.875 features as described below.
50969         All uses of "PC." replaced by "pc->".
50970         (YYSTYPE): Add a forward declaration.
50971         (yylex, yyerror): Use full prototypes in forward decls.
50972         Use "%pure-parser" rather than obsolescent "%pure_parser".
50973         Use %parse-param and %lex-param instead of obsolescent
50974         YYPARSE_PARAM and YYLEX_PARAM.
50975         (meridian_table, month_and_day_table, time_units_table,
50976         relative_time_table, time_zone_table, military_table,
50977         lookup_zone, lookup_word, get_date):
50978         Use NULL instead of 0 where appropriate.
50979         (to_hour): Avoid abort (), to avoid a dependency on
50980         stdlib.h.
50981         (yyerror, yylex): Now accepts parser_control * arg.
50982         (main) [TEST]: Use '\0' rather than 0 for char.
50983
50984 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50985
50986         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
50987
50988 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50989
50990         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
50991         It's now the caller's responsibility to handle the case where
50992         !HAVE_GETPAGESIZE && !defined getpagesize.
50993
50994         * lib/mktime.c (leapyear): Arg is long int, not int.
50995
50996 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
50997
50998         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
50999
51000 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51001
51002         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
51003         missing.  Problem reported by James Youngman.
51004
51005 2004-10-16  Simon Josefsson  <jas@extundo.com>
51006
51007         * gnulib-tool: Fix comments.  Fix parse problem.
51008         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
51009
51010 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
51011
51012         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
51013         implementation of getopt_long.  Problem reported by Alexander Taler in:
51014         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
51015
51016 2004-10-15  Bruno Haible  <bruno@clisp.org>
51017
51018         * gnulib-tool: Untabify. Initialize supplied_libname.
51019         (func_usage): More homogenous output.
51020         (func_modules_transitive_closure, func_modules_to_filelist,
51021         func_emit_lib_Makefile_am): New functions.
51022         (func_import): New function, extracted from big case statement. Use
51023         func_get_license, func_modules_transitive_closure,
51024         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
51025         opt_lgpl. Don't use test -a, as it's not portable.
51026         (func_create_testdir): Use func_modules_transitive_closure,
51027         func_modules_to_filelist, func_emit_lib_Makefile_am.
51028
51029 2004-10-15  Bruno Haible  <bruno@clisp.org>
51030
51031         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
51032
51033 2004-10-15  Bruno Haible  <bruno@clisp.org>
51034
51035         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
51036         the portions belonging to each module.
51037         Suggested by Derek Robert Price <derek@ximbiot.com>.
51038
51039 2004-10-12  Simon Josefsson  <jas@extundo.com>
51040
51041         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
51042         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
51043         to real functions.
51044
51045 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51046
51047         * modules/vsnprintf: New file.
51048
51049 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51050
51051         * m4/vsnprintf.m4: New file.
51052
51053 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51054
51055         * lib/vsnprintf.h: New file.
51056         * lib/vsnprintf.c: New file.
51057
51058 2004-10-11  Bruno Haible  <bruno@clisp.org>
51059
51060         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
51061         vsnprintf.
51062
51063 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
51064
51065         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
51066
51067 2004-10-07  Bruno Haible  <bruno@clisp.org>
51068
51069         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
51070         fits into the provided buffer.
51071
51072 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
51073
51074         * lib/diacrit.c, diacrit.h: Add GPL notice.
51075
51076         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
51077         notice.
51078         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
51079         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
51080         This avoids a potential constant-folding bug.
51081
51082 2004-10-05  Bruno Haible  <bruno@clisp.org>
51083
51084         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
51085         for the declaration of strsep.
51086
51087 2004-10-05  Bruno Haible  <bruno@clisp.org>
51088
51089         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
51090
51091 2004-10-04  Simon Josefsson  <jas@extundo.com>
51092
51093         * modules/memmem: New file.
51094         * tests/test-memmem.c: New file.
51095         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
51096
51097 2004-10-04  Simon Josefsson  <jas@extundo.com>
51098
51099         * m4/memmem.m4: New file.
51100
51101 2004-10-04  Simon Josefsson  <jas@extundo.com>
51102
51103         * lib/memmem.h: New file.
51104         * lib/memmem.c: New file, taken from glibc.
51105
51106 2004-10-04  Simon Josefsson  <jas@extundo.com>
51107
51108         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
51109         '#ifdef USE_UNLOCKED_IO'.
51110
51111 2004-10-04  Simon Josefsson  <jas@extundo.com>
51112
51113         * config/srclist.txt: Add memmem from glibc.
51114
51115 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
51116
51117         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
51118
51119         * modules/argmatch, modules/argp, modules/closeout, modules/error,
51120         modules/exclude, modules/getdate, modules/getline,
51121         modules/getndelim2, modules/getpass, modules/getpass-gnu,
51122         modules/getusershell, modules/linebuffer, modules/md5,
51123         modules/mountlist, modules/posixtm, modules/readtokens,
51124         modules/readutmp, modules/regex, modules/sha1,
51125         modules/version-etc, modules/yesno:
51126         Remove dependency on unlocked-io.
51127
51128 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
51129
51130         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
51131
51132         * m4/unlocked-io.m4: Add copyright notice.
51133         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
51134
51135 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
51136
51137         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
51138         * lib/xmalloc.c (xmemdup): Likewise.
51139         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
51140         XFREE): Remove these long-obsolescent macros.
51141         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
51142         * lib/xstrdup.c: Remove.
51143
51144         * lib/regex.c (re_comp): Cast gettext return value to char *,
51145         Problem reported by Martin Neitzel via Mark D. Baushke.
51146
51147 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
51148
51149         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
51150         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
51151         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
51152         regex.c, sha1.c, version-etc.c, yesno.c:
51153         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
51154         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
51155         the includer's responsibility.
51156
51157         Sync from coreutils.
51158
51159         * lib/modechange.c (mode_compile): Don't decrement a pointer that
51160         points to the start of a string, as the C Standard says the
51161         resulting behavior is undefined.
51162
51163         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
51164         simple -> simple_backups, numbered_existing ->
51165         numbered_existing_backups, numbered -> numbered_backups
51166         to avoid shadowing problems.  All uses changed.
51167         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
51168         * lib/backupfile.c (check_extension, numbered_backup):
51169         Rename locals to avoid shadowing 'basename'.
51170         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
51171         once.
51172
51173         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
51174         * lib/.cvsignore: Add getopt.h.
51175
51176 2004-10-04  Bruno Haible  <bruno@clisp.org>
51177
51178         * modules/README: New file.
51179         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
51180         not a module.
51181
51182 2004-10-02  Jim Meyering  <jim@meyering.net>
51183
51184         * lib/dirfd.h, getpagesize.h: Add copyright notice.
51185
51186 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51187
51188         * modules/strsep: New file.
51189
51190 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51191
51192         * m4/strsep.m4: New file.
51193
51194 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51195
51196         * lib/strsep.h: New file.
51197         * lib/strsep.c: New file.
51198
51199 2004-10-01  Simon Josefsson  <jas@extundo.com>
51200
51201         * lib/snprintf.c (snprintf): Handle size==0.
51202
51203 2004-10-01  Simon Josefsson  <jas@extundo.com>
51204             Bruno Haible  <bruno@clisp.org>
51205
51206         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
51207         (snprintf): Declare 'args'.
51208
51209 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
51210
51211         * lib/snprintf.c: Remove comments as to why each header is needed.
51212
51213 2004-10-01  Bruno Haible  <bruno@clisp.org>
51214
51215         * MODULES.html.sh: Add strsep.
51216
51217 2004-09-30  Simon Josefsson  <jas@extundo.com>
51218
51219         * modules/snprintf: New file.
51220
51221 2004-09-30  Simon Josefsson  <jas@extundo.com>
51222
51223         * m4/snprintf.m4: New file.
51224
51225 2004-09-30  Simon Josefsson  <jas@extundo.com>
51226
51227         * lib/snprintf.h, lib/snprintf.c: New files.
51228
51229 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51230
51231         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
51232         (hol_entry_help): Never translate an empty string.
51233         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
51234         * lib/argp.h (OPTION_NO_TRANS): New option.
51235
51236 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
51237
51238         * modules/argp (Maintainer): Replace Simon Josefsson
51239         by Sergey Poznyakoff.
51240
51241 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
51242
51243         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
51244         changes merged back into glibc.
51245
51246 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
51247
51248         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
51249
51250 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51251
51252         * lib/xvasprintf.c: Include xalloc.h.
51253         (xvasprintf): Use xalloc_die, not xmalloc_die.
51254
51255 2004-09-29  Bruno Haible  <bruno@clisp.org>
51256
51257         * modules/alloca-opt: New file, derived from modules/alloca.
51258         * modules/allocsa: Depend on alloca-opt instead of alloca.
51259         * modules/setenv: Likewise.
51260         * modules/vasnprintf: Likewise.
51261         * MODULES.html.sh: Add alloca-opt.
51262
51263 2004-09-28  Simon Josefsson  <jas@extundo.com>
51264
51265         * gnulib-tool: New parameter --lgpl, to asseert that modules are
51266         LGPL, and to replace license template from GPL to LGPL.
51267
51268 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
51269
51270         * modules/dummy: Change license to LGPL.
51271
51272 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
51273
51274         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
51275
51276 2004-09-24  Simon Josefsson  <jas@extundo.com>
51277
51278         * modules/minmax (License): Change from GPL to LGPL.
51279
51280 2004-09-23  Simon Josefsson  <jas@extundo.com>
51281
51282         * gnulib-tool (--import): Typo.
51283
51284 2004-09-23  Simon Josefsson  <jas@extundo.com>
51285
51286         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
51287
51288 2004-09-22  Bruno Haible  <bruno@clisp.org>
51289
51290         * modules/*: Add 'License' field.
51291         * gnulib-tool: Accept --extract-license option.
51292         (func_get_license): New function.
51293
51294 2004-09-21  Bruno Haible  <bruno@clisp.org>
51295
51296         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
51297         Reported by Simon Josefsson.
51298
51299 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51300
51301         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
51302         gl_AC_TYPE_LONG_LONG.
51303
51304 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51305
51306         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
51307
51308 2004-09-18  Simon Josefsson  <jas@extundo.com>
51309         and  Paul Eggert  <eggert@cs.ucla.edu>
51310
51311         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
51312         calls with autoreconf.  Define GL_LIB.
51313
51314 2004-09-14  Karl Berry  <karl@gnu.org>
51315
51316         * config/srclist.txt: unsync setenv.c, sigh.
51317
51318 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51319
51320         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
51321         Problem reported by Bruno Haible in:
51322         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
51323
51324 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51325
51326         * config/srclist.txt: Comment out argp-pvh.c.
51327
51328 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
51329
51330         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
51331         in case some system header has #define'd it.  Problem reported by
51332         Soeren D. Schulze in
51333         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
51334
51335 2004-09-09  Karl Berry  <karl@gnu.org>
51336
51337         * regex.[ch]: delete from the root.  These were supposed to be
51338                 synced with emacs cvs, but this has not happened for about
51339                 a year, and anyway nothing else uses emacs regex.[ch].
51340                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
51341                 lib/regex[.ch] is untouched.
51342
51343 2004-09-09  Bruno Haible  <bruno@clisp.org>
51344
51345         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
51346
51347 2004-09-09  Bruno Haible  <bruno@clisp.org>
51348
51349         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
51350         modifications.
51351         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
51352
51353 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
51354
51355         * modules/xvasprintf: New file.
51356         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
51357
51358 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
51359
51360         * lib/xvasprintf.h: New file.
51361         * lib/xvasprintf.c: New file.
51362         * lib/xasprintf.c: New file.
51363
51364 2004-09-08  Bruno Haible  <bruno@clisp.org>
51365
51366         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
51367
51368 2004-09-08  Bruno Haible  <bruno@clisp.org>
51369
51370         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
51371         length is > INT_MAX.
51372         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
51373         more.
51374
51375 2004-09-08  Bruno Haible  <bruno@clisp.org>
51376
51377         * lib/stdint_.h: New file, taken from GNU clisp.
51378
51379 2004-09-08  Bruno Haible  <bruno@clisp.org>
51380             Oskar Liljeblad  <oskar@osk.mine.nu>
51381
51382         * modules/stdint: New file.
51383         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
51384
51385 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51386
51387         Import from coreutils.
51388         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
51389         strings on unbounded length.  alloca's performance benefits aren't
51390         that important here.
51391         (V_STRDUP): Remove.
51392         (parse_with_separator): New function, with most of the internals
51393         of the old parse_user_spec.  Allow user to omit both user and group,
51394         for compatibility with FreeBSD.
51395         Clone only the user name, not the entire spec.
51396         Do not set *uid, *gid unless entirely successful.
51397         Avoid memory leak in some failing cases.
51398         Fix regression for USER.GROUP reported by Dmitry V. Levin in
51399         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
51400         (parse_user_spec): Rewrite to use parse_with_separator.
51401
51402 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51403
51404         * modules/userspec: Don't depend on alloca.
51405
51406 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51407
51408         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
51409
51410 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51411
51412         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
51413         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
51414         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
51415
51416 2004-08-16  Simon Josefsson  <jas@extundo.com>
51417
51418         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
51419         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
51420         Add --dry-run for --import.
51421         Let user provided command line parameters override configure.ac
51422         settings.
51423
51424 2004-08-12  Simon Josefsson  <jas@extundo.com>
51425
51426         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
51427         as discussed with Paul Eggert in threads rooted at
51428         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
51429         and
51430         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
51431         Before, the test was empty, and relied on ELIDE_CODE in source
51432         code.)
51433         (gl_PREREQ_GETOPT): New macro.
51434         (gl_GETOPT): Use them.
51435
51436 2004-08-12  Simon Josefsson  <jas@extundo.com>
51437
51438         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
51439         * lib/getopt_.h: Renamed from getopt.h.
51440
51441 2004-08-12  Simon Josefsson  <jas@extundo.com>
51442
51443         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
51444         Change default library name from libfoo to libgnu.
51445         Now, if you have a configure.ac that says:
51446                 gl_SOURCE_BASE(gl)
51447                 gl_M4_BASE(gl/m4)
51448                 gl_MODULES(error getopt etcetera)
51449                 gl_INIT
51450         you can import all you need by running:
51451                 ../gnulib/gnulib-tool --import
51452
51453         * modules/getopt (Files): Rename getopt.h to getopt_.h.
51454         (Makefile.am): Rewrite, use logic from argz.
51455         (Include): Use <getopt.h> instead of "getopt.h".
51456
51457 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51458
51459         * modules/argp (Files): Add m4/unlocked-io.m4.
51460         (Depends-on): Add extensions.
51461
51462 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51463
51464         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
51465         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
51466         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
51467         Check for program_invocation_name, program_invocation_short_name,
51468         flockfile, funlockfile, features.h, _getopt_long_only_r.
51469
51470 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51471
51472         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
51473         its complicated substitute.
51474         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
51475         and program_invocation_name.
51476         (__argp_basename) [!_LIBC]: Remove; the only use was
51477         replaced by its body.
51478         (__argp_short_program_name): Change condition from
51479         !defined __argp_short_program_name to
51480         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
51481         to match argp-namefrob.h.
51482         (__argp_failure): Don't assume strerror_r returns char *.
51483         * lib/argp-parse.c (N_): Define unconditionally.
51484         (argp_default_options): Fill out initializers with 0 to avoid
51485         gcc warnings.
51486
51487 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51488
51489         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
51490         getopt1.c.
51491
51492 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51493
51494         Merge from coreutils.
51495
51496         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
51497
51498         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
51499         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
51500
51501 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51502
51503         Merge from coreutils.
51504
51505         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
51506         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
51507         for Reliant Unix 5.43.
51508
51509         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
51510         (union fooround): Use uintmax_t, not long int.
51511         The rest is a merge from libc:
51512         [defined _LIBC]: Include <shlib-compat.h>.
51513         (_obstack) [defined _LIBC]: Remove after 2.3.4.
51514
51515         * lib/settime.c (settime): Recode to avoid warning with
51516         Sun Forte C 6U2.
51517
51518         * lib/strverscmp.c: Convert to UTF-8.
51519
51520 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51521
51522         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
51523         m4/uintmax_t.m4.
51524
51525 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51526
51527         * modules/xalloc-die: New file.
51528         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
51529
51530         * modules/md5 (Files): Add m4/uint32_t.m4.
51531         * modules/sha1: Renamed from modules/sha.
51532         (Files):
51533         Rename lib/sha.h to lib/sha1.h.
51534         Rename lib/sha.c to lib/sha1.c.
51535         Rename m4/sha.m4 to m4/sha1.m4.
51536         (lib_SOURCES): Likewise.
51537         (configure.ac): Rename gl_SHA to gl_SHA1.
51538         (Include): sha.h -> sha1.h.
51539
51540 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51541
51542         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
51543         * m4/sha1.m4: Renamed from sha.m4.
51544         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
51545
51546 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51547
51548         * lib/obstack.h (obstack_empty_p):
51549         Don't assume that chunk->contents is suitably aligned.
51550         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
51551         Likewise. Problem reported by Benno in
51552         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
51553
51554         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
51555         readable.  This could be improved further but it'd take some work.
51556
51557 2004-08-08  Simon Josefsson  <jas@extundo.com>
51558
51559         * modules/xgethostname (Depends-on): Remove exit and error (not
51560         used).
51561
51562         * modules/getpass-gnu: Add getpass.h.
51563         (Depends-on): Add stdbool.
51564         * modules/getpass: Add getpass.h.
51565
51566 2004-08-08  Simon Josefsson  <jas@extundo.com>
51567
51568         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
51569         Check getpass declaration.
51570
51571 2004-08-08  Simon Josefsson  <jas@extundo.com>
51572
51573         * lib/xgethostname.c: Don't include error.h (not used).
51574
51575         * lib/getpass.h: Add.
51576         * lib/getpass.c: Include getpass.h first.
51577
51578 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
51579
51580         * lib/xalloc-die.c: New file.
51581         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
51582         All uses removed.
51583         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
51584         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
51585         xalloc-die.c.
51586         (_, N_, xalloc_die): Move to xalloc-die.c.
51587         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
51588         so that we needn't mess with xalloc_msg_memory_exhausted.
51589
51590         * lib/sha1.h: Renamed from sha.h.
51591         (SHA1_H): Renamed from _SHA_H.
51592         (sha1_ctx): Renamed from sha_ctx.
51593         (sha1_init_ctx): Renamed from sha_init_ctx.
51594         (sha1_process_block): Renamed from sha_process_block.
51595         (sha1_process_bytes): Renamed from sha_process_bytes.
51596         (sha1_finish_ctx): Renamed from sha_finish_ctx.
51597         (sha1_read_ctx): Renamed from sha_read_ctx.
51598         (sha1_stream): Renamed from sha_stream.
51599         (sha1_buffer): Renamed from sha_buffer.
51600         * lib/sha1.c: Likewise; renamed from sha.c.
51601         Do not include <sys/types.h>.
51602         Include <stddef.h> rather than <stdlib.h>.
51603
51604 2004-08-08  Bruno Haible  <bruno@clisp.org>
51605
51606         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
51607         FILESYSTEM_PREFIX_LEN.
51608         * lib/progreloc.c: Likewise.
51609         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
51610
51611 2004-08-06  Simon Josefsson  <jas@extundo.com>
51612
51613         * modules/progname (Depends-on): Don't depend on stdbool.
51614
51615 2004-08-06  Simon Josefsson  <jas@extundo.com>
51616
51617         * modules/getsubopt: New file.
51618         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51619         getsubopt.
51620
51621 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51622
51623         More merge from coreutils.
51624
51625         * m4/utimens.m4, m4/utimecmp.m4: New files.
51626         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
51627         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
51628         prereq.m4, sha.m4: Import changes from coreutils.
51629
51630 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51631
51632         More merge from coreutils.
51633         * modules/raise, modules/readtokens0, modules/utimens:
51634         * modules/utimecmp, module/xnanosleep: New files.
51635         * modules/strftime: Add lib/strftime.h.
51636         Change include from <time.h> to "strftime.h".
51637         * modules/yesno: Add lib/yesno.h.
51638         * modules/backupfile: Remove lib/addext.c.
51639         * modules/euidaccess: Add stat-macros.h.
51640         * modules/canonicalize, modules/euidaccess,
51641         modules/filemode, modules/lchown, modules/makepath,
51642         modules/rmdir, modules/stat: Likewise.
51643
51644 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51645
51646         Merge from tar.
51647         * lib/argp-help.c (make_hol, hol_append): Don't assume that
51648         SIZE_MAX is a valid preprocessor constant.
51649         (__argp_basename): Change from "#ifndef _LIBC"
51650         to "#ifndef __argp_short_program_name", so that
51651         we don't compile these functions for tar.
51652
51653         More merges from coreutils.
51654         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
51655         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
51656         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
51657         * lib/addext.c: Remove; no longer needed.
51658         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
51659         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
51660         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
51661         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
51662         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
51663         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
51664         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
51665         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
51666         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
51667         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51668         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
51669         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
51670         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
51671         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
51672         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
51673         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
51674         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
51675         Import changes from coreutils.
51676
51677 2004-08-05  Simon Josefsson  <jas@extundo.com>
51678
51679         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
51680
51681 2004-08-05  Simon Josefsson  <jas@extundo.com>
51682
51683         * m4/getsubopt.m4: New file.
51684
51685 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51686
51687         Merge from coreutils.
51688
51689         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
51690         * m4/getcwd-path-max.m4: New files.
51691
51692         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
51693         FILESYSTEM_PREFIX_LEN ->
51694         FILE_SYSTEM_PREFIX_LEN.
51695         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
51696         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
51697         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
51698         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
51699
51700         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
51701         prerequisite modules now handle the DOS stuff.
51702         Don't check for unistd.h.
51703
51704 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51705
51706         Merge from coreutils.
51707
51708         * lib/.gdb-history: Remove; this doesn't belong here.
51709
51710         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
51711         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
51712         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
51713         * lib/getcwd.c: New files.
51714
51715         * lib/dirname.h: Include <stdbool.h>.
51716         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
51717         for consistency with POSIX terminology.  All uses changed.
51718         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
51719         (strip_trailing_slashes): Use bool for booleans.
51720         * lib/stripslash.c (strip_trailing_slashes): Likewise.
51721
51722         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
51723         sometimes returns a positive errno value even when it succeeds.
51724         (print_errno_message) [!LIBC]: Fall back on strerror if
51725         __strerror_r fails.
51726
51727         * lib/path-concat.c (mempcpy): Don't define if a system header defines
51728         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
51729         (longest_relative_suffix): New function.
51730         (path_concat): Use it.  Assume first argument is not NULL.
51731         Port to DOS.  Omit redundant separators.
51732         Report an error instead of returning NULL.
51733         Use mempcpy instead of memcpy.
51734         (xpath_concat): Remove: not declared or used.
51735
51736         * lib/same.h: Include <stdbool.h>
51737         (same_name): Return bool, not int.
51738         * lib/same.c (same_name): Likewise.
51739         (errno): Don't declare; we assume C89 or better now.
51740
51741         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
51742         if not already defined.
51743
51744         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
51745         * lib/dup-safer.c (errno): Likewise.
51746
51747 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51748
51749         Merge from coreutils.
51750         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
51751         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
51752         * modules/path-concat: Don't depend on strdup.
51753
51754 2004-08-03  Simon Josefsson  <jas@extundo.com>
51755
51756         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
51757         * lib/progname.h: Don't include stdbool.h.
51758
51759 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51760
51761         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
51762         * MODULES.html.sh (func_all_modules): Remove fatal.
51763
51764 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51765
51766         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
51767
51768 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51769
51770         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
51771         working.
51772
51773 2004-08-02  Simon Josefsson  <jas@extundo.com>
51774
51775         * lib/getsubopt.h: New file, with comments from Bruno Haible.
51776         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
51777         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
51778
51779 2004-08-01  Simon Josefsson  <jas@extundo.com>
51780
51781         * lib/xgetdomainname.c: Include stdlib.h, for free().
51782
51783 2004-07-19  Bruno Haible  <bruno@clisp.org>
51784
51785         * MODULES.html.sh (func_all_modules): Add dummy.
51786
51787 2004-07-16  Simon Josefsson  <jas@extundo.com>
51788
51789         * modules/dummy: New file.
51790
51791 2004-07-16  Simon Josefsson  <jas@extundo.com>
51792
51793         * lib/dummy.c: New file.
51794
51795 2004-07-16  Bruno Haible  <bruno@clisp.org>
51796
51797         * lib/backupfile.h: Add extern "C" for C++.
51798         * lib/closeout.h: Likewise.
51799         * lib/copy-file.h: Likewise.
51800         * lib/findprog.h: Likewise.
51801         * lib/full-write.h: Likewise.
51802         * lib/pathname.h: Likewise.
51803         * lib/progname.h: Likewise.
51804         * lib/stpcpy.h: Likewise.
51805         * lib/stpncpy.h: Likewise.
51806         * lib/strcase.h: Likewise.
51807         * lib/strstr.h: Likewise.
51808         * lib/xalloc.h: Likewise.
51809
51810         * lib/mbswidth.h: Add extern "C" for C++.
51811         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
51812
51813 2004-07-13  Robert Millan  <robertmh@gnu.org>
51814
51815         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
51816
51817 2004-07-09  Simon Josefsson  <jas@extundo.com>
51818
51819         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
51820         failed without this.)
51821
51822 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51823
51824         * modules/chown (Files): Add lib/fchown-stub.c, since
51825         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
51826
51827 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51828
51829         * lib/fchown-stub.c: New file.
51830
51831 2004-06-24  Jim Meyering  <jim@meyering.net>
51832
51833         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
51834
51835 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51836
51837         * modules/argz: Omit "#include".
51838
51839         * MODULES.html.sh (func_all_modules): Add calloc, to match
51840         2004-06-01 addition of calloc module.
51841
51842 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51843
51844         * m4/argz.m4: New file, which is autoupdated from libtool.
51845
51846 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51847
51848         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
51849         libtool.
51850
51851 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51852
51853         * config/srclist-update: Don't insist on "USA." before the
51854         close-comment, as libtool omits the period and puts the */ on a
51855         separate line.
51856         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
51857         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
51858
51859 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
51860
51861         * modules/argz: New file.
51862         * MODULES.html.sh (func_all_modules): Add argz.
51863
51864 2004-06-12  Jim Meyering  <jim@meyering.net>
51865         and  Paul Eggert  <eggert@cs.ucla.edu>
51866
51867         * modules/hash (Files): Add lib/xalloc.h.
51868         * modules/pipe (Depends-on): Add wait-process.
51869         * modules/stat (Depends-on): Add xalloc.
51870         * modules/userspec (Files): Add lib/userspec.h.
51871         * modules/xstrto
51872
51873         Upgrade from gettext-0.13.
51874         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
51875         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
51876         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
51877
51878 2004-06-10  Jim Meyering  <jim@meyering.net>
51879
51880         * lib/calloc.c: New file.
51881
51882 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51883
51884         * lib/getdate.y (yylex): Allow space between sign and number.
51885         Problem reported by Dan Jacobson.
51886
51887 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
51888
51889         Merge from coreutils CVS.
51890
51891         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
51892         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
51893         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
51894         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
51895         xstrtol.m4: Fix copyright date and/or serial number.
51896
51897         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
51898         See if we need an fchown replacement.
51899         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
51900         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
51901         and use the replacement function if we detect either defect.
51902
51903         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
51904         gl_UTIMECMP.
51905
51906 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
51907         and  Jim Meyering  <jim@meyering.net>
51908
51909         Merge from coreutils CVS.
51910
51911         * lib/stat-macros.h: New file, with contents from file-type.h
51912         and coreutils' system.h.
51913         * lib/file-type.c: Include "stat-macros.h".
51914         * lib/file-type.h (file_type): Move all macro definitions to new file,
51915         stat-macros.h.
51916
51917         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
51918         Wrap old code with this conditional.
51919         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
51920         function that does not dereference symlinks.
51921         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
51922
51923         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
51924         dependency problems.
51925         (xreadlink): Accept new arg SIZE, for efficiency.
51926         All decls and uses changed.
51927         * lib/xreadlink.h: Include <stddef.h>, for size_t.
51928
51929         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
51930         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
51931
51932         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
51933         sysexits.h.
51934
51935 2004-06-01  Jim Meyering  <jim@meyering.net>
51936
51937         * m4/calloc.m4: New file.
51938
51939 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
51940
51941         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
51942         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
51943         Also, fix a typo in a diagnostic.
51944
51945 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51946
51947         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
51948         or AC_FUNC_REALLOC.
51949
51950 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51951
51952         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
51953         macros to be defined.
51954         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
51955         the allocator returns NULL because the requested size is zero.
51956
51957 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51958
51959         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
51960         var.  Add comment explaining why libc still defines it.  This
51961         merges the following patch from glibc:
51962         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
51963
51964 2004-05-20  Andreas Schwab  <schwab@suse.de>
51965
51966         * m4/free.m4: Replace free if it not known to work, not the other
51967         way round.
51968
51969 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51970
51971         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
51972         present in glibc since revision 1.1 of this file.
51973         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
51974         obstack_alignment_mask, obstack_alloc, obstack_base,
51975         obstack_blank, obstack_blank_fast, obstack_chunk_size,
51976         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
51977         obstack_grow0, obstack_init, obstack_int_grow,
51978         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
51979         obstack_next_free, obstack_object_size, obstack_ptr_grow,
51980         obstack_ptr_grow_fast, obstack_room): Remove declarations of
51981         nonexistent functions.
51982
51983 2004-05-18  Karl Berry  <karl@gnu.org>
51984
51985         * config/srclist.txt: break link for vasnprintf.c.
51986
51987 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51988
51989         Port obstack to the AS/400, where pointers are 16 bytes wide and
51990         you cannot cast an integer to a valid pointer.  This patch is
51991         currently waiting to be integrated into glibc; see
51992         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
51993
51994         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
51995         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
51996         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
51997         (struct obstack): temp member is now a union of a pointer and
51998         an integer, instead of an integer.  All integer uses changed.
51999         This does not affect the physical layout of struct obstack,
52000         except on hosts (like the AS/400) where the size or alignment of
52001         void * is greater than that of ptrdiff_t.
52002         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
52003         __STDC__)]: Store temporary in pointer member of union, not
52004         integer member.
52005         * lib/obstack.c: Include <stddef.h>, for offsetof.
52006         (struct fooalign): Remove; it doesn't need a name.
52007         (union fooround): Change double to long double, and add void *.
52008         (DEFAULT_ALIGNMENT): Use offsetof to compute.
52009         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
52010         not a macro.  Hence the values are always int; so remove all
52011         casts-to-int in uses.
52012
52013 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52014
52015         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
52016         we can get this patch merged into glibc.
52017
52018 2004-05-17  Derek R. Price  <derek@ximbiot.com>
52019             Paul Eggert  <eggert@cs.ucla.edu>
52020
52021         * m4/argp: Depend on alloca.
52022
52023 2004-05-17  Derek R. Price  <derek@ximbiot.com>
52024             Paul Eggert  <eggert@cs.ucla.edu>
52025
52026         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
52027         freecoding.
52028
52029 2004-05-17  Bruno Haible  <bruno@clisp.org>
52030
52031         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
52032         precision that consists of a '.' followed by an empty digit string.
52033         Patch by Tor Lillqvist <tml@iki.fi>.
52034
52035 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52036
52037         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
52038         for backward compatibility with older code.  We need our own
52039         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
52040         it under some other name, and our alloca.h will define it.
52041
52042 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52043             Derek Price  <derek@ximbiot.com>
52044
52045         * lib/alloca.c: Include <alloca.h>, to get our interface.
52046         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
52047         include <alloca.h> first.  Use C89 prototype for alloca; this
52048         requires including <stddef.h> for size_t.  Use extern "C" if C++.
52049         Use #elif for simplicity, since we can assume C89 now.
52050         Don't try to source the system alloca.h since it will not be found
52051         and to prevent recursively including its replacement.
52052         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
52053         * lib/regex.c: Likewise.
52054
52055 2004-05-16  Derek Price  <derek@ximbiot.com>
52056             Paul Eggert  <eggert@cs.ucla.edu>
52057
52058         getline cleanup.  This changes the getndelim2 API: both order of
52059         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
52060         no delimiter).
52061
52062         * lib/getline.c: Don't include stddef.h or stdio.h, since our
52063         interface does that.
52064         (getline): Always use getdelim, so that we don't have two
52065         copies of this code.
52066         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
52067         if available.
52068         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
52069         (GETNDELIM2_MAXIMUM): New macro.
52070         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
52071         instead of the old practice of delim2==0.  All callers changed.
52072         Return -1 on overflow, instead of returning junk.
52073         Do not set *linesize unless allocation succeeds.
52074         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
52075         that we include sys/types.h.
52076         * lib/getnline.h: Likewise.
52077         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
52078         (getndelim2): Reorder arguments.
52079         * lib/getnline.c (getnline, getndelim):
52080         Don't discard the NMAX argument.
52081         (getnline): Invoke getndelim, to avoid code duplication.
52082         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
52083         of (size_t) -1 by callers of the getnline family.
52084
52085 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52086
52087         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
52088         Check for gettimeofday.
52089         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
52090         Check for settimeofday, stime.
52091
52092 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52093
52094         * lib/nanosleep.c (suspended): Change its type from int to
52095         sig_atomic_t volatile.
52096         (first_call): Make it private to rpl_nanosleep, and have it
52097         be zero initially as that's a bit faster.
52098         (my_usleep): Round up fractional times instead of truncating them,
52099         as this is the usual meaning for 'sleep'.
52100
52101         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
52102         doesn't work.
52103         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
52104         (ENOSYS): Define if not defined.
52105         (settime): Fall back on stime if it exists and settimeofday fails.
52106         But don't bother with fallbacks if a method fails with errno == EPERM.
52107
52108 2004-05-11  Jim Meyering  <jim@meyering.net>
52109
52110         Prior to this change, the save_cwd caller required read access to the
52111         current directory on most systems (ones with the fchdir function).
52112
52113         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
52114         fails, try write-only, and finally, resort to using xgetcwd.
52115
52116 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52117
52118         * lib/obstack.c, obstack.h: Import changes from libc.
52119
52120 2004-04-28  Bruno Haible  <bruno@clisp.org>
52121
52122         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
52123         also implicitly appends .exe to executables.
52124         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
52125         accepts Windows pathnames.
52126         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
52127         Treat Cygwin like Windows, since it now accepts Windows pathnames.
52128         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
52129         Treat Cygwin like Windows, since it now accepts Windows pathnames.
52130         Reported by Derek Robert Price <derek@ximbiot.com>.
52131
52132 2004-04-21  Karl Berry  <karl@gnu.org>
52133
52134         * config/srclist.txt (localcharset.c): break sync.
52135
52136 2004-04-20  Paul Eggert  <eggert@twinsun.com>
52137
52138         * m4/host-os.m4: Add a copyright notice.
52139
52140 2004-04-20  Jim Meyering  <jim@meyering.net>
52141
52142         Change UTILS_ to gl_ in AC_DEFINE'd names.
52143         Change utils_- and jm_-prefixed variables, too.
52144         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
52145         UTILS_FUNC_MKDIR_TRAILING_SLASH.
52146         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
52147
52148         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
52149         Don't emit trailing blanks.
52150         Also rename jm_-prefixed variables to have gl_ prefix.
52151
52152         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
52153         Also rename jm_-prefixed variables to have gl_ prefix.
52154
52155         * m4/jm-macros.m4: Reflect the renamings.
52156         * m4/prereq.m4: Likewise.
52157
52158 2004-04-20  Jim Meyering  <jim@meyering.net>
52159
52160         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
52161         memory.
52162
52163 2004-04-20  Jim Meyering  <jim@meyering.net>
52164             Bruno Haible  <bruno@clisp.org>
52165
52166         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
52167         memory when realloc fails.
52168
52169 2004-04-19  Jim Meyering  <jim@meyering.net>
52170
52171         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
52172         now that readutmp.c may call `free (0)'.
52173
52174 2004-04-19  Bruno Haible  <bruno@clisp.org>
52175
52176         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
52177         * m4/inttypes_h.m4: Likewise.
52178         * m4/stdint_h.m4: Likewise.
52179         * m4/intmax_t.m4: Likewise.
52180         * m4/uintmax_t.m4: Likewise.
52181
52182 2004-04-18  Jim Meyering  <jim@meyering.net>
52183
52184         * m4/prereq.m4: Don't forbid jm_ prefix.
52185
52186         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
52187         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
52188         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
52189         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
52190         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
52191         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
52192         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
52193         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
52194         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
52195         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
52196         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
52197         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
52198         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
52199         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
52200         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
52201         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
52202         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
52203         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
52204         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
52205
52206 2004-04-18  Jim Meyering  <jim@meyering.net>
52207
52208         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
52209         failure, don't leak memory and do call END_UTMP_ENT.
52210
52211 2004-04-16  Jim Meyering  <jim@meyering.net>
52212
52213         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
52214         coreutils' stat program.
52215         (gl_PREREQ): Don't require jm_PREREQ_STAT.
52216
52217 2004-04-11  Paul Eggert  <eggert@twinsun.com>
52218
52219         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
52220         C89.
52221         (CHAR_BIT): Remove, since we assume C89.
52222         Include <stdint.h> if available, as per current Autoconf CVS advice.
52223
52224 2004-03-31  Jim Meyering  <jim@meyering.net>
52225
52226         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
52227         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
52228         * m4/xalloc.m4: Likewise.
52229
52230 2004-03-30  Paul Eggert  <eggert@twinsun.com>
52231
52232         Merge from coreutils.
52233
52234         * m4/inttostr.m4: New file.
52235         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
52236         Require AM_STDBOOL_H and gl_TIMESPEC instead.
52237         Require gl_CLOCK_TIME.
52238         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
52239
52240 2004-03-30  Paul Eggert  <eggert@twinsun.com>
52241
52242         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
52243         not bool, to be more consistent with Unix conventions.
52244         Suggested by Bruno Haible.
52245
52246         Merge from coreutils.
52247
52248         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
52249         * lib/umaxtostr.c: New files.
52250
52251         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
52252         the usual <time.h> dance.
52253         (get_date): Change signature to support fractional time stamps.
52254         All callers changed.
52255         * lib/getdate.y: Include "getdate.h" first, as we can now
52256         assume C89 and don't need to worry about 'const'.
52257         Similarly, include "unlocked-io.h" near start, not in middle.
52258         Include <limits.h>.
52259         (textint.value): Use long int rather than int.
52260         (textint.digits): Use size_t rather than int.
52261         (BILLION, LOG10_BILLION): New constants.
52262         (parser_control): New member rel_ns.  Members day_ordinal,
52263         time_zone, month, day, hour, minutes, rel_year, rel_month,
52264         rel_day, rel_hour, rel_minutes, rel_seconds
52265         are now long int, not int.  Member seconds is now struct timespec,
52266         not int.  New member timespec_seen.  Members dates_seen, days_seen,
52267         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
52268         not int.
52269         (%union.intval): Now long int, not int.
52270         New member timespec.
52271         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
52272         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
52273         (spec): Now is a timespec or an item list.
52274         (timespec, items): New nonterminals.
52275         (time, rel, relunit, number, get_date):
52276         Add support for fractional seconds.
52277         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
52278         (gmtime, localtime, mktime): Remove decls; not needed with C89.
52279         (to_hour): First arg is now long int, not int.
52280         (to_year): Returns long int, not int.
52281         Don't treat year -70 like 70.
52282         (tm_diff): Returns long int, not int.
52283         (lookup_word): Use bool instead of int when appropriate.
52284         (yylex): Use size_t for count, not int.
52285         Detect overflow when parsing large integer constants.
52286         Add support for fractions.
52287         (get_date): Make pointers 'const' if possible.
52288         Use more-portable code to detect integer overflow.
52289         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
52290         Don't use ctime; it's not reliable if the year has >4 digits.
52291
52292         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
52293         This is for compatibility with BSD.
52294
52295         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
52296         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
52297         From coreutils' system.h.
52298
52299         * lib/userspec.c: Don't include "posixver.h".
52300         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
52301         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
52302         compatible extension.  Simplify code by removing a boolean int
52303         that was always nonzero if a string was nonnull.
52304
52305 2004-03-30  Jim Meyering  <jim@meyering.net>
52306
52307         Merge from coreutils.
52308
52309         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
52310         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
52311         on some systems one must include <grp.h> before it.
52312         Reported by Christian Krackowizer.
52313
52314 2004-03-30  Jim Meyering  <jim@meyering.net>
52315
52316         Merge from coreutils.
52317
52318         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
52319
52320         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
52321         an empty input stream.
52322
52323         * lib/readtokens.c: Include <stdbool.h>.
52324         (readtoken): Use `size_t' rather than int/long.
52325         All callers adjusted.
52326         Use `bool' rather than `int' where appropriate.
52327         Use memset rather than an explicit loop.
52328         Use x2nrealloc rather than xrealloc.
52329         Allow the use of `\0' as a delimiter.
52330         (readtokens): Likewise.
52331         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
52332
52333 2004-03-30  Jim Meyering  <jim@meyering.net>
52334
52335         * m4/realloc.m4: Remove file, since now it does no more than
52336         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
52337         the `configure.ac' section of module/realloc.
52338         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
52339
52340 2004-03-30  Bruno Haible  <bruno@clisp.org>
52341
52342         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
52343         nonnull.
52344
52345 2004-03-29  Paul Eggert  <eggert@twinsun.com>
52346
52347         Merge changes to getloadavg.c from coreutils and Emacs.
52348
52349         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
52350         Define to an expression, not to the empty string.
52351         Include cloexec.h and xalloc.h.
52352         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
52353         Use set_cloexec_flag rather than rolling our own.
52354         * lib/cloexec.c, lib/cloexec.h: New files.
52355
52356 2004-03-29  Paul Eggert  <eggert@twinsun.com>
52357
52358         * m4/cloexec.m4: New file.
52359
52360 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52361
52362         * lib/getopt.h: Sync with libc CVS.
52363
52364 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52365             Bruno Haible  <bruno@clisp.org>
52366
52367         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
52368         mbswidth.
52369
52370 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52371             Bruno Haible  <bruno@clisp.org>
52372
52373         * lib/mbswidth.h: Include <wchar.h> only if
52374         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
52375         <wchar.h>.
52376         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
52377
52378 2004-03-09  Paul Eggert  <eggert@twinsun.com>
52379
52380         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
52381         Sync with libc CVS.
52382         * lib/getopt_int.h: New file, also synced from libc.
52383
52384 2004-03-09  Paul Eggert  <eggert@twinsun.com>
52385
52386         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
52387         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
52388         Bring back getopt.c, getopt.h, getopt1.c.
52389
52390 2004-03-07  Paul Eggert  <eggert@twinsun.com>
52391
52392         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
52393         All uses changed.  Check for sa_sigaction member; this fixes
52394         a bug first reported by Jason Andrade in
52395         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52396
52397 2004-03-07  Paul Eggert  <eggert@twinsun.com>
52398
52399         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
52400         '#if' expressions.  Unlike the code it replaces, it does not
52401         depend on (defined _SC_PAGESIZE).  However, it does depend on
52402         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
52403         first reported by Jason Andrade in
52404         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52405
52406 2004-02-25  Simon Josefsson  <jas@extundo.com>
52407
52408         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
52409
52410 2004-02-25  Simon Josefsson  <jas@extundo.com>
52411
52412         * lib/strdup.h: New file.
52413         * lib/strdup.c: Include it.
52414         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
52415         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
52416
52417 2004-02-23  Karl Berry  <karl@gnu.org>
52418
52419         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
52420         (from fencepost.gnu.org:/gd/gnuorg).
52421
52422 2004-02-23  Karl Berry  <karl@gnu.org>
52423
52424         * config/srclistvars.sh (GNUORG) [karl]: redefine.
52425         * config/srclist.txt: add maintain/standards documents.
52426
52427 2004-02-18  Bruno Haible  <bruno@clisp.org>
52428
52429         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
52430         Reported by Derek Robert Price <derek@ximbiot.com>.
52431
52432 2004-02-16  Karl Berry  <karl@gnu.org>
52433
52434         * config/mkinstalldirs, install-sh: update from automake.
52435
52436 2004-02-06  Karl Berry  <karl@gnu.org>
52437
52438         * m4/po.m4: update from gettext 0.14.1.
52439
52440 2004-02-06  Karl Berry  <karl@gnu.org>
52441
52442         * lib/config.charset: update from gettext 0.14.1.
52443
52444 2004-02-05  Paul Eggert  <eggert@twinsun.com>
52445
52446         Add comments and code, prompted by suggestions from Bruno Haible
52447         for sh-quote.
52448         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
52449         describing the enum quoting_style values.
52450         * lib/quotearg.c (quotearg_alloc): New function.
52451         (quotearg_buffer_restyled): Treat lone { and } as special.
52452         Treat = as special.  Work around bug with older shells
52453         that "see" a '\' that is really the 2nd byte of a multibyte char.
52454         Quote empty string with shell_quoting_style.
52455
52456 2004-02-03  Bruno Haible  <bruno@clisp.org>
52457
52458         * m4/pipe.m4: New file, from GNU gettext.
52459
52460 2004-02-03  Bruno Haible  <bruno@clisp.org>
52461
52462         * lib/pipe.h: New file, from GNU gettext.
52463         * lib/pipe.c: New file, from GNU gettext.
52464
52465 2004-01-27  Bruno Haible  <bruno@clisp.org>
52466
52467         * m4/execute.m4: New file, from GNU gettext.
52468
52469 2004-01-27  Bruno Haible  <bruno@clisp.org>
52470
52471         * lib/execute.h: New file, from GNU gettext.
52472         * lib/execute.c: New file, from GNU gettext.
52473         * lib/w32spawn.h: New file, from GNU gettext.
52474
52475 2004-01-24  Paul Eggert  <eggert@twinsun.com>
52476
52477         Merge from diffutils.
52478
52479         * lib/file-type.c (file_type): Add typed memory objects.
52480         * lib/file-type.h (S_TYPEISTMO): New macro.
52481
52482         * lib/c-stack.h (c_stack_action): Remove argv argument.
52483         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
52484         (die): Don't calculate message unless segv_action returns.
52485         (get_stack_location, min_address_from_argv, max_address_from_argv,
52486         volatile stack_base, volatile_stack_size): Remove.
52487         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
52488         that every segmentation violation is a stack overflow.  (Ouch!)
52489         See Debian bug 136249 (still outstanding) for more info about why
52490         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
52491
52492 2004-01-24  Paul Eggert  <eggert@twinsun.com>
52493
52494         Exit-status fix from coreutils.
52495
52496         Use exit_failure consistently in place of EXIT_FAILURE,
52497         so that program exit statuses are consistent on failure.
52498
52499         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
52500         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
52501         * lib/argmatch.h: Comment fix to match the above.
52502         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
52503         Now a macro referring to exit_failure, instead of a separate
52504         variable.  Include "exitfail.h" to get it.
52505         * lib/xstrtol.h: Include "exitfail.h".
52506         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
52507
52508         * lib/long-options.c (parse_long_options): Use prototype
52509         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
52510         for clarity.
52511
52512 2004-01-21  Jim Meyering  <jim@meyering.net>
52513
52514         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
52515         so as not to conflict with a different-sized __mktime_internal
52516         function in GNU libc.
52517         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
52518         Problem building statically-linked `ls' reported by Michael Brunnbauer.
52519
52520 2004-01-20  Karl Berry  <karl@gnu.org>
52521
52522         * config/config.guess: update from config.
52523
52524         * config/srclistvars.sh: GNUWWWLICENSES for karl.
52525
52526 2004-01-20  Bruno Haible  <bruno@clisp.org>
52527
52528         Safer stack allocation.
52529         * lib/setenv.c: Include allocsa.h.
52530         (alloca): Remove fallback definition.
52531         (freea): Remove macro.
52532         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
52533         instead of freea.
52534
52535 2004-01-20  Bruno Haible  <bruno@clisp.org>
52536
52537         * m4/eealloc.m4: New file, from GNU gettext.
52538
52539 2004-01-20  Bruno Haible  <bruno@clisp.org>
52540
52541         * m4/allocsa.m4: New file, from GNU gettext.
52542
52543 2004-01-20  Bruno Haible  <bruno@clisp.org>
52544
52545         * lib/xallocsa.h: New file, from GNU gettext.
52546         * lib/xallocsa.c: New file, from GNU gettext.
52547
52548 2004-01-20  Bruno Haible  <bruno@clisp.org>
52549
52550         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
52551
52552 2004-01-20  Bruno Haible  <bruno@clisp.org>
52553
52554         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
52555         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
52556         specially.
52557
52558 2004-01-20  Bruno Haible  <bruno@clisp.org>
52559
52560         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
52561         patch.
52562
52563 2004-01-20  Bruno Haible  <bruno@clisp.org>
52564
52565         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
52566
52567 2004-01-20  Bruno Haible  <bruno@clisp.org>
52568
52569         * lib/eealloc.h: New file.
52570
52571 2004-01-20  Bruno Haible  <bruno@clisp.org>
52572
52573         * lib/binary-io.h: Avoid warnings on Cygwin.
52574
52575 2004-01-20  Bruno Haible  <bruno@clisp.org>
52576
52577         * lib/allocsa.h: New file, from GNU gettext.
52578         * lib/allocsa.c: New file, from GNU gettext.
52579
52580 2004-01-18  Karl Berry  <karl@gnu.org>
52581
52582         * doc/gpl.texi, doc/lgpl.texi: new files.
52583
52584 2004-01-18  Karl Berry  <karl@gnu.org>
52585
52586         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
52587         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
52588
52589 2004-01-15  Paul Eggert  <eggert@twinsun.com>
52590
52591         Merge from coreutils.
52592
52593         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
52594         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
52595         (gl_DEFAULT_POSIX2_VERSION): Move
52596         the documentation from 'configure' into 'config.hin',
52597         so that 'configure --help' isn't burdened by it and
52598         we don't have to worry about its formatting there.
52599         Reword the documentation so that it's more succinct
52600         and can be run together into a single paragraph.
52601         * m4/same.m4 (gl_SAME): Check for pathconf.
52602
52603 2004-01-15  Paul Eggert  <eggert@twinsun.com>
52604
52605         Merge from coreutils.
52606
52607         * lib/posixver.c: Include posixver.h.
52608
52609         * lib/same.c: Include <stdbool.h>, <limits.h>.
52610         (_POSIX_NAME_MAX): Define if not defined.
52611         (MIN): New macro.
52612         (same_name): If file names are silently truncated, report
52613         that the file names are the same if they are the same after
52614         the silent truncation.
52615
52616         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
52617         conversion function.
52618         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
52619         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
52620         longer needed.
52621
52622 2004-01-15  Jim Meyering  <jim@meyering.net>
52623
52624         Merge from coreutils.
52625
52626         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
52627         if no library is required.
52628         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
52629         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
52630         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
52631         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
52632         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
52633         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
52634         value, $ac_cv_search_crypt, if it's "none required".
52635         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
52636         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
52637         not gl_FUNC_GETLOADAVG.
52638         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
52639         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
52640
52641 2004-01-15  Jim Meyering  <jim@meyering.net>
52642
52643         Merge from coreutils.
52644
52645         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
52646         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
52647         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
52648
52649         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
52650         optional configure-time default.
52651
52652         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52653
52654         * lib/xreadlink.c (xreadlink): Correct outdated comment.
52655
52656 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
52657
52658         Merge from coreutils.
52659
52660         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
52661         value, $ac_cv_search_nanosleep, if it's "none required".
52662
52663 2004-01-14  Paul Eggert  <eggert@twinsun.com>
52664
52665         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
52666         with like-named macro in fnmatch.c.
52667         (EXT): Use an internal constant instead.
52668
52669         Merge fnmatch patches from glibc.
52670         * lib/fnmatch.c (mbsinit): Remove define.
52671         Add libc_hidden_ver (__fnmatch, fnmatch).
52672         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
52673         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
52674
52675 2004-01-14  Karl Berry  <karl@gnu.org>
52676
52677         * config/install-sh: update from automake.
52678
52679 2004-01-13  Karl Berry  <karl@gnu.org>
52680
52681         * config/install-sh: update from automake.
52682
52683 2004-01-09  Karl Berry  <karl@gnu.org>
52684
52685         * config/install-sh: update from automake.
52686
52687 2004-01-05  Karl Berry  <karl@gnu.org>
52688
52689         * config/config.{sub,guess}: update from config.
52690
52691 2003-12-31  Karl Berry  <karl@gnu.org>
52692
52693         * config/depcomp: update from automake.
52694
52695 2003-12-14  Karl Berry  <karl@gnu.org>
52696
52697         * lib/config.charset: update from gettext-runtime.
52698
52699 2003-12-03  Paul Eggert  <eggert@twinsun.com>
52700
52701         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
52702         Bug reported by Alfred M. Szmidt.
52703
52704 2003-12-03  Bruno Haible  <bruno@clisp.org>
52705
52706         * m4/gettext.m4: Upgrade from gettext-0.13.
52707         * m4/po.m4: Upgrade from gettext-0.13.
52708         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
52709         * m4/intmax.m4: New file, from gettext-0.13.
52710         * m4/printf-posix.m4: New file, from gettext-0.13.
52711
52712 2003-11-29  Karl Berry  <karl@gnu.org>
52713
52714         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
52715
52716 2003-11-25  Paul Eggert  <eggert@twinsun.com>
52717             Bruno Haible  <bruno@clisp.org>
52718
52719         * lib/printf-parse.h: Don't include sys/types.h.
52720         (ARG_NONE): New macro.
52721         (char_directive): Change type of *arg_index fields to size_t.
52722         * lib/printf-parse.c: Don't include sys/types.h.
52723         (SSIZE_MAX): Remove macro.
52724         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
52725         Remove unnecessary overflow check.
52726         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
52727         fields.
52728
52729 2003-11-25  Bruno Haible  <bruno@clisp.org>
52730
52731         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
52732
52733 2003-11-25  Bruno Haible  <bruno@clisp.org>
52734
52735         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
52736         gt_TYPE_SSIZE_T.
52737
52738 2003-11-24  Paul Eggert  <eggert@twinsun.com>
52739
52740         * modules/alloca: Remove dependency on xalloc.
52741
52742 2003-11-24  Paul Eggert  <eggert@twinsun.com>
52743
52744         * lib/alloca.c: Remove dependency on xalloc module.
52745         (xalloc_die): Remove.
52746         (memory_full) [!defined emacs]: New macro.
52747         [!defined emacs]: Don't include xalloc.h.
52748         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
52749         address arithmetic overflows.  Change datatypes a bit to avoid
52750         unnecessary casts.
52751
52752 2003-11-22  Jim Meyering  <jim@meyering.net>
52753
52754         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
52755         s/size/size_t/.
52756
52757 2003-11-21  Karl Berry  <karl@gnu.org>
52758
52759         * config/config.{sub,guess}: update from config.
52760
52761 2003-11-18  Karl Berry  <karl@gnu.org>
52762
52763         * config/config.{sub,guess}: update from config.
52764
52765         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
52766
52767 2003-11-17  Paul Eggert  <eggert@twinsun.com>
52768
52769         * README: Mention that S+T cannot overflow if S is the size of
52770         an existing object and T is sufficiently small.
52771
52772 2003-11-17  Jim Meyering  <jim@meyering.net>
52773
52774         On systems without utime and without a utimes function capable of
52775         dealing with a NULL struct utimbuf* argument, this utime replacement
52776         could -- in unusual circumstances -- leak a file descriptor.
52777         * lib/utime.c: Include <unistd.h> and <errno.h>.
52778         (utime_null): Be sure to close `fd' and to preserve errno.
52779         Reported by Geoff Collyer via Arnold Robbins.
52780
52781 2003-11-17  Bruno Haible  <bruno@clisp.org>
52782
52783         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
52784         (Depends-on): Add xsize.
52785
52786 2003-11-17  Bruno Haible  <bruno@clisp.org>
52787
52788         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
52789
52790 2003-11-17  Bruno Haible  <bruno@clisp.org>
52791
52792         * lib/vasnprintf.c (alloca): Remove fallback definition.
52793         (freea): Remove definition.
52794         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
52795         Reported by Paul Eggert.
52796
52797 2003-11-16  Paul Eggert  <eggert@twinsun.com>
52798             Bruno Haible  <bruno@clisp.org>
52799
52800         Protect against address arithmetic overflow.
52801         * lib/printf-args.h: Include stddef.h.
52802         (arguments): Change type of field 'count' to size_t.
52803         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
52804         'unsigned int' where appropriate.
52805         * lib/printf-parse.h: Include sys/types.h.
52806         (char_directive): Change type of *arg_index fields to ssize_t.
52807         (char_directives): Change type of fields 'count', max_*_length to
52808         size_t.
52809         * lib/printf-parse.c: Include sys/types.h and xsize.h.
52810         (SSIZE_MAX): Define fallback value.
52811         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
52812         instead of 'int' where appropriate. Check a_allocated, d_allocated
52813         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
52814         * lib/vasnprintf.c: Include xsize.h.
52815         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
52816         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
52817         overflow. Avoid wraparound when converting a width or precision from
52818         decimal to binary.
52819
52820 2003-11-16  Bruno Haible  <bruno@clisp.org>
52821
52822         Update from GNU gettext.
52823         * lib/printf-parse.c: Generalize to it can be compiled for wide
52824         strings.
52825         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
52826         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
52827         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
52828         SNPRINTF): New macros.
52829         Don't include <alloca.h> if the file is used inside libintl.
52830         (local_wcslen): New function, for Solaris 2.5.1.
52831         (VASNPRINTF): Use it instead of wcslen.
52832
52833 2003-11-16  Bruno Haible  <bruno@clisp.org>
52834
52835         * lib/xsize.h (xmax): New function.
52836         (xsum, xsum3, xsum4): Declare as "pure" functions.
52837
52838 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52839
52840         * modules/xalloc (Files): Undo latest change, since xalloc.h
52841         no longer needs SIZE_MAX or PTRDIFF_MAX.
52842
52843 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52844
52845         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
52846         gl_PTRDIFF_MAX.
52847
52848 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52849
52850         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
52851         "return", to pacify some unknown compiler.  Problem reported
52852         by Joerg Schilling.
52853
52854 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52855
52856         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
52857         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
52858         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
52859         heuristic is just as accurate as far as we know, and it removes a
52860         dependency on size_max.m4 and ptrdiff_max.m4.
52861
52862 2003-11-11  Bruno Haible  <bruno@clisp.org>
52863
52864         * modules/xsize (Files): Add m4/size_max.m4.
52865         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
52866
52867 2003-11-11  Bruno Haible  <bruno@clisp.org>
52868
52869         * m4/size_max.m4: New file.
52870         * m4/ptrdiff_max.m4: New file.
52871         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
52872         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
52873         (gl_XALLOC): Invoke it.
52874
52875 2003-11-11  Bruno Haible  <bruno@clisp.org>
52876
52877         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
52878         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
52879         defined.
52880
52881 2003-11-10  Paul Eggert  <eggert@twinsun.com>
52882
52883         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
52884         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
52885         rejected some allocations of exactly SIZE_MAX - 2 bytes.
52886         From Bruno Haible.
52887         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
52888         not (size_t) -1, since it's defined here.
52889
52890 2003-11-09  Karl Berry  <karl@gnu.org>
52891
52892         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
52893
52894 2003-11-06  Paul Eggert  <eggert@twinsun.com>
52895
52896         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
52897         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
52898         Reject sizes of exactly SIZE_MAX bytes.
52899         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
52900         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
52901
52902 2003-11-05  Bruno Haible  <bruno@clisp.org>
52903
52904         * lib/xsize.h: Include limits.h, to avoid a possible collision with
52905         SIZE_MAX defined in <limits.h> on Solaris.
52906
52907 2003-11-04  Jim Meyering  <jim@meyering.net>
52908
52909         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
52910         variable names, rather than @VAR@.
52911         * modules/poll: Likewise.
52912
52913 2003-11-04  Bruno Haible  <bruno@clisp.org>
52914
52915         * modules/xsize: New file.
52916         * modules/linebreak: Depend on xsize.
52917         * MODULES.html.sh (func_all_modules): Add xsize.
52918
52919 2003-11-04  Bruno Haible  <bruno@clisp.org>
52920
52921         * m4/xsize.m4: New file.
52922
52923 2003-11-04  Bruno Haible  <bruno@clisp.org>
52924
52925         * lib/xsize.h: New file.
52926         * lib/linebreak.c: Include xsize.h.
52927         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
52928         argument for overflow.
52929         Suggested by Paul Eggert.
52930
52931 2003-11-03  Karl Berry  <karl@gnu.org>
52932
52933         * config/config.{guess,sub}: update from config.
52934
52935 2003-11-03  Jim Meyering  <jim@meyering.net>
52936
52937         * modules/userspec (lib_SOURCES): Add userspec.h.
52938         (Include): Add "userspec.h".
52939         Improve description.
52940
52941 2003-11-03  Jim Meyering  <jim@meyering.net>
52942
52943         * lib/userspec.c: Include "userspec.h".
52944         * lib/userspec.h: New file.
52945
52946 2003-11-03  Bruno Haible  <bruno@clisp.org>
52947
52948         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
52949
52950 2003-11-03  Bruno Haible  <bruno@clisp.org>
52951
52952         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
52953         available, to avoid (extremely rare) race condition.
52954         Suggested by Paul Eggert.
52955
52956 2003-11-02  Karl Berry  <karl@gnu.org>
52957
52958         * config/srclist.txt (vasprintf.c): sync broken, sigh.
52959
52960 2003-10-31  Paul Eggert  <eggert@twinsun.com>
52961
52962         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
52963         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
52964         (read_filesystem_list): Set and use me_type_malloced.
52965         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
52966         whatever the type happens to be), for brevity and consistency.
52967         Check for size calculation overflow on Alphas running OSF/1.
52968
52969 2003-10-31  Jim Meyering  <jim@meyering.net>
52970
52971         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
52972
52973         * lib/linebuffer.c: Include <string.h> for declaration of memset.
52974
52975 2003-10-30  Paul Eggert  <eggert@twinsun.com>
52976             Bruno Haible  <bruno@clisp.org>
52977
52978         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
52979         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
52980
52981 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52982
52983         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
52984         netbsd*-gnu*.  Suggested by Robert Millan.
52985
52986 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52987
52988         * modules/group-member: Depend on stdbool.
52989
52990 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52991
52992         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
52993
52994 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52995
52996         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
52997         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
52998         after the 'gnu' in these cases.  This fixes some bugs in the
52999         previous change, and is based on suggestions by Robert Millan.
53000
53001 2003-10-29  Paul Eggert  <eggert@twinsun.com>
53002
53003         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
53004         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
53005         no longer needed.
53006         * lib/quotearg.c (quotearg_n_options): Use it.
53007         * lib/group-member.c: Include <stdbool.h>.
53008         (free_group_info): Arg is now const *; don't free arg.
53009         (get_group_info): Now returns bool and accepts struct group_info *,
53010         rather than returning a malloc'ed struct group_info *.
53011         All uses changed.  Check for overflow in internal size calculation.
53012
53013         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
53014         rather than xmalloc/xrealloc.
53015         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
53016         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
53017         conformance bug: the old code used a pointer after freeing the
53018         storage that it addressed.
53019         * lib/hash.c (hash_initialize): Simplify the code by using
53020         xalloc_oversized rather than doing it by hand.
53021         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
53022         the buffer preserved.  Use free and xmalloc instead.
53023         * lib/quotearg.c (quotearg_n_options): Likewise.
53024         Use a simpler test for size overflow.  Don't use xalloc_oversized
53025         because unsigned int might be wider than size_t (!); this suggests
53026         that we should switch from unsigned int to size_t for slot numbers.
53027
53028 2003-10-28  Paul Eggert  <eggert@twinsun.com>
53029
53030         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
53031         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
53032         NetBSD kernels.  Requested by Richard Stallman.
53033
53034 2003-10-27  Paul Eggert  <eggert@twinsun.com>
53035
53036         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
53037         to allocate the returned structure.  Do not allocate a subarray,
53038         as x2nrealloc will do that.
53039         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
53040         instead of xnrealloc.
53041         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
53042
53043 2003-10-27  Bruno Haible  <bruno@clisp.org>
53044
53045         * lib/stdbool_.h: Better support for BeOS.
53046
53047 2003-10-26  Paul Eggert  <eggert@twinsun.com>
53048
53049         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
53050         now uses inline.
53051
53052 2003-10-26  Paul Eggert  <eggert@twinsun.com>
53053
53054         * lib/xalloc.h (xalloc_oversized): New static inline function, for
53055         callers that want to do their own size-overflow checking.  Include
53056         <stdbool.h>, since xalloc_oversized returns bool.
53057         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
53058         to use xalloc_oversized.
53059
53060         Add two functions x2realloc, x2nrealloc, for programs that grow
53061         arrays dynamically by doubling their sizes.
53062         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
53063         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
53064         New functions.
53065
53066         Port to C99 semantics for 'inline' of external functions.
53067         Bug reported by Bruno Haible.
53068         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
53069         with the old contents of xnmalloc.
53070         (xnmalloc, xmalloc): Use it.
53071         (xnrealloc_inline): New static inline function,
53072         with the old contents of xnrealloc.
53073         (xnrealloc, xrealloc): Use it.
53074
53075         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
53076         that.
53077
53078 2003-10-26  Karl Berry  <karl@gnu.org>
53079
53080         * config/srclist.txt (COPYING.DOC): no longer available from
53081         /gd/gnuorg; don't know where the ultimate source is.
53082
53083 2003-10-25  Paul Eggert  <eggert@twinsun.com>
53084
53085         Fix several address-calculation bugs in the hash modules,
53086         plus some minor code cleanup.
53087
53088         * lib/hash.h: Include <stdbool.h>, for bool.
53089         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
53090         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
53091         hash_get_n_entries, hash_get_max_bucket_length,
53092         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
53093         hash_rehash): Use size_t rather than unsigned.
53094         * lib/hash.c (struct hash_table, hash_get_n_buckets,
53095         hash_get_n_buckets_used, hash_get_n_entries,
53096         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
53097         hash_get_entries, hash_do_for_each, hash_string, is_prime,
53098         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
53099         Likewise.
53100         (SIZE_MAX): Define if not defined.
53101         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
53102         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
53103         hash_print):
53104         Use const * when possible.
53105         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
53106         (check_tuning): Fix bug: if tuning parameters were very close to
53107         0 or 1, rounding errors could have caused subscript violations.
53108         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
53109         (hash_initialize): Add 'fail:' label
53110         to free table and return NULL, and use it to simplify code.
53111         Use calloc rather than clearing the storage ourself.
53112         (hash_initialize, hash_rehash): Check for arithmetic overflow in
53113         buffer size calculations.
53114         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
53115         Include <stddef.h>, for size_t.
53116         * lib/hash-pjw.c (hash_pjw): Likewise.
53117         Switch to method described by Bruno Haible.
53118         Include <limits.h>, for CHAR_BIT.
53119         (SIZE_BITS): New macro.
53120
53121 2003-10-23  Paul Eggert  <eggert@twinsun.com>
53122
53123         * m4/getline.m4 (AM_FUNC_GETLINE):
53124         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
53125         hosts.  Problem reported by Derek Robert Price in
53126         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
53127         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
53128         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
53129
53130 2003-10-21  Paul Eggert  <eggert@twinsun.com>
53131
53132         * lib/getndelim2.c (getndelim2): When size calculation overflows,
53133         ceiling the allocation at NMAX bytes rather than silently
53134         discarding input bytes before NMAX is reached.  This makes
53135         a difference only if NMAX exceeds SIZE_MAX / 2.
53136
53137         * lib/obstack.c: Merge from glibc.
53138         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
53139         Add libc_hidden_def (_obstack_newchunk).
53140         (_obstack_free) [! defined _LIBC]: Remove.
53141         [defined _LIBC]: Make a strong alias from obstack_free, rather than
53142         a clone of the function body.
53143         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
53144         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
53145
53146         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
53147         glibc.
53148         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
53149         arg to memcpy.
53150
53151         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
53152         (obstack_ptr_grow_fast, obstack_int_grow_fast):
53153         Don't use lvalue casts, as GCC plans to remove support for them
53154         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
53155         was also present in the non-GCC version, indicating that this
53156         code had always been buggy and had never been widely used.
53157         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
53158         Use the fast variant of each macro, rather than copying the
53159         definiens of the fast variant; that way, we'll be more likely to
53160         catch future bugs in the fast variants.
53161
53162 2003-10-20  Bruno Haible  <bruno@clisp.org>
53163
53164         * modules/wait-process: New file.
53165         * MODULES.html.sh (func_all_modules): Add wait-process.
53166
53167 2003-10-20  Bruno Haible  <bruno@clisp.org>
53168
53169         * m4/wait-process.m4: New file.
53170
53171 2003-10-20  Bruno Haible  <bruno@clisp.org>
53172
53173         * lib/wait-process.h: New file, from GNU gettext.
53174         * lib/wait-process.c: New file, from GNU gettext.
53175
53176 2003-10-19  Jim Meyering  <jim@meyering.net>
53177
53178         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
53179         HPUX 10.20.
53180
53181 2003-10-18  Karl Berry  <karl@gnu.org>
53182
53183         * config/config.guess: update from config.
53184
53185 2003-10-16  Paul Eggert  <eggert@twinsun.com>
53186
53187         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
53188         (getgroups): First arg is int, not size_t.
53189         Don't let 'free' mangle errno.
53190
53191 2003-10-16  Paul Eggert  <eggert@twinsun.com>
53192
53193         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
53194
53195 2003-10-16  Karl Berry  <karl@gnu.org>
53196
53197         * config/config.{guess,sub}: update from config.
53198
53199 2003-10-16  Jim Meyering  <jim@meyering.net>
53200
53201         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
53202         memcpy.
53203
53204 2003-10-15  Paul Eggert  <eggert@twinsun.com>
53205
53206         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
53207         (SIZE_MAX): Remove.
53208         (new_exclude, add_exclude_file): Initial size no longer needs to
53209         be a power of 2.
53210         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
53211         our own address arithmetic overflow checking.
53212
53213         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
53214         (fnmatch): Do not alloca more than 2000 wide characters;
53215         instead, use malloc for large buffers.
53216         Check for address arithmetic overflow, and return -1
53217         with errno set to ENOMEM in that case.
53218         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
53219         (NEW_PATTERN): Do not alloca more than 8000 bytes;
53220         instead, return -1.  Check for address arithmetic overflow.
53221
53222 2003-10-14  Paul Eggert  <eggert@twinsun.com>
53223
53224         Handle invalid suffixes and overflow independently, so that
53225         callers can treat them independently as needed.  Fix some bugs in
53226         suffix handling, e.g., "100k@" was not diagnosed as an invalid
53227         suffix for a human-readable blocksize.  The major caller-visible
53228         change is the addition of a new
53229         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
53230         that both overflow and suffix chars were found.
53231
53232         * lib/human.c (humblock): Don't check separately for invalid suffix
53233         char; that is xstrtoumax's job (now that its bug is fixed).
53234         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
53235         INTMAX_MAX]: New macros.
53236         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
53237         TYPE_MAXIMUM): New macros.
53238         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
53239         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
53240         if overflow occurs, as it's what __strtol does and it's more useful
53241         in practice.
53242         (__xstrtol): If __strtol reports some error other than ERANGE,
53243         reflect it to the caller as LONGINT_INVALID.  If it reports
53244         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
53245         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
53246         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
53247         value.
53248         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
53249         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
53250         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
53251         [defined UINTMAX_MAX]: New macros.
53252
53253 2003-10-14  Bruno Haible  <bruno@clisp.org>
53254
53255         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
53256
53257 2003-10-14  Bruno Haible  <bruno@clisp.org>
53258
53259         * m4/sig_atomic_t: New file, from GNU gettext.
53260         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
53261
53262 2003-10-14  Bruno Haible  <bruno@clisp.org>
53263
53264         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
53265         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
53266         Also use volatile where needed.
53267
53268 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53269
53270         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
53271         Change maintainer from Bruno Haible to 'all'.
53272
53273 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53274
53275         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
53276
53277 2003-10-12  Paul Eggert  <eggert@twinsun.com>
53278
53279         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
53280         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
53281         and define in terms of the other primitives.
53282         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
53283         (SIZE_MAX): Define if not already defined.
53284         (array_size_overflow): New function.
53285         (xalloc_die): Abort instead of exiting if 'error' returns.
53286         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
53287         (xmalloc, xrealloc): Use them.
53288         (xcalloc): Check for address arithmetic overflow.
53289         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
53290         a bit faster than strcpy.
53291
53292 2003-10-10  Simon Josefsson  <jas@extundo.com>
53293
53294         * modules/argp (Depends-on): Add restrict and strcase.
53295
53296 2003-10-10  Simon Josefsson  <jas@extundo.com>
53297
53298         * m4/argp.m4: Add AC_C_INLINE.
53299
53300 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53301
53302         Merge getpass from libc, plus a few fixes.
53303
53304         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
53305         Include <stdbool.h>.
53306         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
53307         __fsetlocking to empty.
53308         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
53309         do include <bits/libc-lock.h>.
53310         Do not include <fcntl.h>; not needed.
53311         [_LIBC]: Include <wchar.h>.
53312         (NOTCANCEL_MODE): New macro.
53313         (flockfile, funlockfile) [_LIBC]: New macros.
53314         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
53315         [!_LIBC]: New macros.
53316         (call_fclose): New function.
53317         (getpass): Use it.  Save tty stream separately; this simplifies the
53318         code and makes it more reliable if stdin happens to equal stdout.
53319         Invoke __fsetlocking on tty.
53320         Handle thread cancellation if needed.
53321         Namespace cleanup (use __tcgetattr, __getline).
53322         Use bool for Booleans.
53323         [USE_IN_LIBIO]: Handle wide streams.
53324         [!_LIBC]: Unconditionally do the fseek, since we don't know what
53325         stream might go where.
53326
53327         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
53328         doesn't have to include <stdio.h> before us.
53329         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
53330         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
53331         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
53332         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
53333         if not declared, so that we can use getpass.c code from libc without
53334         rewriting it.
53335         (flockfile, ftrylockfile, funlockfile): New macros.
53336
53337 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53338
53339         * modules/getpass: Depend on stdbool.
53340
53341 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53342
53343         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
53344
53345 2003-10-07  Karl Berry  <karl@gnu.org>
53346
53347         * config/config.{guess,sub}: update from config.
53348
53349 2003-10-06  Jim Meyering  <jim@meyering.net>
53350             Bruno Haible  <bruno@clisp.org>
53351
53352         This lets translators provide better translations for the
53353         "Written by ..." part of --version output.
53354         * lib/version-etc.h: Include stdarg.h.
53355         (version_etc_copyright): Declare as readonly.
53356         (version_etc): Make this function variadic with a NULL-terminated list
53357         of author name strings.
53358         (version_etc_va): New declaration.
53359         * lib/version-etc.c: Include stdarg.h, stdlib.h.
53360         (version_etc_copyright): Declare as readonly.
53361         (version_etc_va): New function. Provide a different translatable string
53362         for each possible number of authors < 10. Abbreviate when there are 10
53363         authors or more.
53364         (version_etc): Make this function variadic. Call version_etc_va.
53365         Suggestion from Gary V. Vaughan.
53366
53367         * lib/long-options.h (parse_long_options): Change prototype: the
53368         authors string is moved to the end and becomes variadic.
53369         * lib/long-options.c: Include stdarg.h.
53370         (parse_long_options): Make this function variadic, too.
53371         Call version_etc_va, not version_etc.
53372
53373 2003-10-06  Bruno Haible  <bruno@clisp.org>
53374
53375         * modules/version-etc-2: Remove file.
53376         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
53377
53378 2003-10-06  Bruno Haible  <bruno@clisp.org>
53379
53380         * modules/fatal-signal: New file.
53381         * MODULES.html.sh (func_all_modules): Add fatal-signal.
53382
53383 2003-10-06  Bruno Haible  <bruno@clisp.org>
53384
53385         * m4/fatal-signal.m4: New file.
53386         * m4/signalblocking.m4: New file, from GNU gettext.
53387
53388 2003-10-06  Bruno Haible  <bruno@clisp.org>
53389
53390         * lib/version-etc-2.h: Remove file.
53391         * lib/version-etc-2.c: Remove file.
53392
53393 2003-10-06  Bruno Haible  <bruno@clisp.org>
53394
53395         * lib/fatal-signal.h: New file, from GNU gettext.
53396         * lib/fatal-signal.c: New file, from GNU gettext.
53397
53398 2003-10-05  Paul Eggert  <eggert@twinsun.com>
53399
53400         * README: Rework advice for preventing empty .o files.
53401         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
53402         not <sys/types.h>.
53403
53404 2003-10-04  Karl Berry  <karl@gnu.org>
53405
53406         * lib/argp*: update from libc.
53407
53408 2003-10-04  Karl Berry  <karl@gnu.org>
53409
53410         * config/config.{guess,sub}: update from config.
53411
53412 2003-10-02  Bruno Haible  <bruno@clisp.org>
53413
53414         * modules/lchown (Include): Add lchown.h.
53415         * modules/time_r (Include): Use "..." syntax.
53416         * modules/xgetdomainname (Include): Add xgetdomainname.h.
53417
53418 2003-10-01  Simon Josefsson  <jas@extundo.com>
53419
53420         * MODULES.html.sh (func_all_modules): Move gethostname from section
53421         'based on' to section 'lacking' POSIX:2001.
53422
53423 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
53424
53425         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
53426         to output mode on the same stream.
53427
53428 2003-09-29  Paul Eggert  <eggert@twinsun.com>
53429
53430         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
53431         Fix arg typo in previous patch.
53432
53433 2003-09-28  Jim Meyering  <jim@meyering.net>
53434
53435         * lib/error.c: Correct cpp indentation.
53436
53437 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53438
53439         * modules/free: New file.
53440
53441 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53442
53443         * m4/free.m4: New file.
53444
53445 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53446
53447         * lib/minmax.h (MIN, MAX)
53448         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
53449         Omit the special code that used __typeof__, since we worry that
53450         it could be more trouble than it's worth.  See:
53451         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
53452         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
53453
53454         * lib/free.c: New file.
53455
53456 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
53457
53458         Trivial fixes to Makefile.am parts of module listings.
53459         * modules/strstr: Append strstr.h to lib_SOURCES.
53460         * modules/strcase: Likewise, for strcase.h.
53461
53462 2003-09-27  Karl Berry  <karl@gnu.org>
53463
53464         * config/mkinstalldirs: update from automake.
53465
53466 2003-09-26  Paul Eggert  <eggert@twinsun.com>
53467
53468         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
53469         (error_tail): Do not loop, reallocating temporary buffer, since
53470         the output cannot contain more wide characters than the input
53471         contains bytes, the size must be big enough already.  This avoids
53472         one potential size overflow calculation.  Check for size overflow
53473         when calculating temporary buffer size.  Free temporary buffer
53474         when done, if it was allocated with malloc; this plugs a memory
53475         leak.  Remove casts from void * to pointers, that are no longer
53476         needed now that we're assuming C89 or better.
53477
53478         Merge error changes from glibc.
53479
53480         * lib/error.c, error.h: Update copyright notice header to match glibc.
53481         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
53482         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
53483         Disable cancellation while printing error.
53484         * lib/error.h: Prepend __ to parameter names.
53485
53486 2003-09-26  Jim Meyering  <jim@meyering.net>
53487
53488         * lib/error.c (error_tail): Move some declarations
53489         into inner scope where the local variables are used.
53490
53491 2003-09-26  Bruno Haible  <bruno@clisp.org>
53492
53493         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
53494         stpncpy().
53495         Don't define stpncpy through config.h; it's now done through stpncpy.h.
53496
53497 2003-09-26  Bruno Haible  <bruno@clisp.org>
53498
53499         * lib/stpncpy.h (gnu_stpncpy): New declaration.
53500         (stpncpy): Define as alias for gnu_stpncpy.
53501         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
53502
53503 2003-09-25  Simon Josefsson  <jas@extundo.com>
53504
53505         * lib/xgetdomainname.h: New file.
53506         * lib/xgetdomainname.c: New file.
53507
53508 2003-09-25  Simon Josefsson  <jas@extundo.com>
53509             Bruno Haible  <bruno@clisp.org>
53510
53511         * modules/getdomainname: New file.
53512         * modules/xgetdomainname: New file.
53513         * MODULES.html.sh (func_all_modules): Add getdomainname,
53514         xgetdomainname.
53515
53516 2003-09-25  Simon Josefsson  <jas@extundo.com>
53517             Bruno Haible  <bruno@clisp.org>
53518
53519         * m4/getdomainname.m4: New file.
53520
53521 2003-09-25  Simon Josefsson  <jas@extundo.com>
53522             Bruno Haible  <bruno@clisp.org>
53523
53524         * lib/getdomainname.h: New file.
53525         * lib/getdomainname.c: New file.
53526
53527 2003-09-25  Karl Berry  <karl@gnu.org>
53528
53529         * lib/argp-fmtstream.c, argp-help.c: update from libc.
53530
53531 2003-09-25  Karl Berry  <karl@gnu.org>
53532
53533         * config/install-sh: update from automake.
53534
53535 2003-09-25  Bruno Haible  <bruno@clisp.org>
53536
53537         * modules/version-etc-2: New file, from modules/version-etc with
53538         modifications.
53539         * MODULES.html.sh (func_all_modules): Add version-etc-2.
53540
53541 2003-09-25  Bruno Haible  <bruno@clisp.org>
53542
53543         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
53544         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
53545
53546 2003-09-24  Simon Josefsson  <jas@extundo.com>
53547
53548         * modules/xgethostname: Add xgethostname.h.
53549
53550 2003-09-24  Paul Eggert  <eggert@twinsun.com>
53551
53552         * lib/linebuffer.c (freebuffer): Don't free the argument, just
53553         the buffer associated with the argument.  Bug reported by
53554         Simon Josefsson.
53555
53556 2003-09-24  Paul Eggert  <eggert@twinsun.com>
53557
53558         * README: Document assumptions that 'int' is at least 32 bits
53559         wide, that integer arithmetic is 2's complement without overflow,
53560         that there are no holes in integer values, that adding sizes of
53561         two nonoverlapping objects can't overflow, and that all-bits-zero
53562         yields scalar zero.  Fix spelling and capitalization typos.
53563
53564 2003-09-19  Karl Berry  <karl@gnu.org>
53565
53566         * lib/argp.h: update from libc.
53567
53568 2003-09-17  Paul Eggert  <eggert@twinsun.com>
53569
53570         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
53571         to avoid spurious warnings like "AC_RUN_IFELSE was called before
53572         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
53573
53574 2003-09-17  Paul Eggert  <eggert@twinsun.com>
53575
53576         * gnulib-tool: Use "test -h", not "test -L", for portability
53577         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
53578         (tags_regexp): Remove, since \| doesn't conform to POSIX.
53579         (sed_extract_prog): Issue s commands one-by-one, rather than
53580         using \| in one s command.
53581
53582 2003-09-16  Paul Eggert  <eggert@twinsun.com>
53583
53584         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
53585         input error, instead of returning NULL the next time we are called
53586         (and therefore losing track of errno).
53587
53588 2003-09-16  Bruno Haible  <bruno@clisp.org>
53589
53590         * gnulib-tool (func_create_testdir): Warn about duplicated
53591         dependencies.
53592
53593 2003-09-15  Paul Eggert  <eggert@twinsun.com>
53594
53595         * modules/argmatch, modules/fatal, modules/obstack,
53596         modules/xalloc, modules/xgethostname: Sort dependencies by
53597         importance, not alphabetically.
53598
53599 2003-09-15  Paul Eggert  <eggert@twinsun.com>
53600
53601         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
53602         fails, so that the caller gets the proper errno.
53603
53604         * lib/readutmp.c (read_utmp): Likewise.
53605         Check for fstat error.  Close stream and free storage
53606         when failing.
53607
53608 2003-09-14  Karl Berry  <karl@gnu.org>
53609
53610         * config/srclist.txt (strdup.c): disable for c89 changes.
53611
53612 2003-09-14  Jim Meyering  <jim@meyering.net>
53613
53614         * lib/getloadavg.c: Correct cpp indentation.
53615         * lib/strdup.c: Likewise.
53616         * lib/vasnprintf.c: Likewise.
53617
53618 2003-09-14  Bruno Haible  <bruno@clisp.org>
53619
53620         * modules/fwriteerror: New file.
53621         * MODULES.html.sh (func_all_modules): Add fwriteerror.
53622
53623 2003-09-14  Bruno Haible  <bruno@clisp.org>
53624
53625         * lib/fwriteerror.h: New file.
53626         * lib/fwriteerror.c: New file.
53627
53628 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53629
53630         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
53631         modules/xgethostname, modules/xalloc: Depend on exit.
53632
53633 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53634
53635         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
53636
53637         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
53638         and AC_MINIX, too, so that their extensions are available.
53639
53640         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
53641         This macro has been superseded by gl_BACKUPFILE.
53642
53643         More patches to assume C89 or better.
53644
53645         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
53646
53647         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
53648         unconditionally.
53649         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
53650         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
53651         Include <string.h>, <stdlib.h> unconditionally.
53652         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
53653         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
53654         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
53655         headers or for string.h.
53656         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
53657         or strtoul.
53658
53659         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
53660         headers.
53661         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
53662         * m4/userspec.m4 (gl_USERSPEC): Likewise.
53663         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
53664         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
53665         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53666         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
53667         memcpy, memset.
53668         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
53669         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
53670         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
53671         strtol.
53672         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
53673         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
53674         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
53675         strtoul.
53676
53677 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53678
53679         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
53680         * lib/obstack.c [!defined _LIBC]: Likewise.
53681         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
53682         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
53683         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
53684
53685         More changes to assume C89 or better.
53686
53687         * lib/error.c (error_tail): Assume vprintf.
53688
53689         * lib/argmatch.c (getenv): Remove decl.
53690         * lib/progreloc.c (get_full_program_name): Define via prototype.
53691         * lib/setenv.c (clearenv): Likewise.
53692         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
53693         needed.
53694         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
53695         (malloc, memcpy): Remove decls.
53696         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
53697         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
53698         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53699         (memcpy): Remove macro.
53700         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
53701         (__P): Remove.  All uses removed.
53702         (PTR): Remove.  All uses changed to void *.
53703         (CHAR_BIT, NULL): Remove.
53704         (spaces, zeros, memset_space, memset_zero)
53705         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
53706         Remove.
53707         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
53708         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
53709         Define with prototype.
53710         Remove now-unnecessary prototype decl.
53711         (extra_args_spec): Assume ANSI C.  All uses changed.
53712         (extra_args_spec_iso): Remove.
53713         (my_strftime, emacs_strftimeu): Define via prototype.
53714         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
53715         unconditionally.
53716         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
53717         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
53718         (strtoul, strtol): Remove decls.
53719         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
53720         LONG_MAX): Remove.
53721         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53722         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
53723         (LOCALE_PARAM_PROTO): New macro.
53724         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
53725         (INTERNAL (strtol), strtol): Define with a prototype.
53726         (PARAMS): Remove.  All uses removed.
53727         * lib/tempname.c: Include <string.h> unconditionally.
53728         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
53729         * lib/xgethostname.c (main): Define with a prototype.
53730         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
53731         Include <stdlib.h> unconditionally.
53732         (calloc, malloc, realloc, free): Remove decls.
53733         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
53734         Include <stdlib.h> unconditionally.  Sort include file names.
53735         (strtod): Remove.
53736         (xstrtod): Define with a prototype.
53737         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
53738         (strtol, strtoul): Remove decls.
53739
53740 2003-09-11  Paul Eggert  <eggert@twinsun.com>
53741
53742         More patches to assume C89 or better.
53743         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
53744         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
53745         string.h, memchr, STDC_HEADERS.
53746
53747 2003-09-11  Paul Eggert  <eggert@twinsun.com>
53748
53749         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
53750         Include <stdlib.h>, <string.h> unconditionally.
53751         Remove now-unnecessary cast to char *.
53752         * lib/strnlen.c: Include <string.h> unconditionally.
53753         * lib/yesno.c (yesno): Define with a prototype.
53754
53755 2003-09-11  Bruno Haible  <bruno@clisp.org>
53756
53757         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
53758
53759 2003-09-10  Jim Meyering  <jim@meyering.net>
53760
53761         * lib/error.c: Correct indentation of cpp directives.
53762
53763 2003-09-10  Bruno Haible  <bruno@clisp.org>
53764
53765         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
53766         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
53767         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
53768         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
53769         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
53770         <stdlib.h> and <string.h> checks.
53771         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
53772         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
53773
53774 2003-09-10  Bruno Haible  <bruno@clisp.org>
53775
53776         * lib/strcspn.c: Include <string.h> unconditionally.
53777         * lib/strpbrk.c: Include <string.h> unconditionally.
53778         * lib/strstr.c: Include <string.h> unconditionally.
53779         * lib/unicodeio.c: Include <string.h> unconditionally.
53780         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
53781         * lib/unsetenv.c: Likewise.
53782         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
53783         * lib/yesno.c: Include <stdlib.h> unconditionally.
53784         (rpmatch): Add prototype.
53785
53786 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53787
53788         More patches to assume C89 or better.
53789         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
53790         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
53791         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
53792         or for string.h.
53793         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
53794         stdlib.h.
53795         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
53796         C headers.
53797         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
53798         string.h.
53799         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
53800         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
53801         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
53802         or for string.h.
53803         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
53804         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
53805         C headers.
53806         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
53807         memcpy.
53808         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
53809         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
53810         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
53811         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
53812         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
53813         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
53814         string.h, free.
53815         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
53816         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
53817         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
53818         C headers, or for string.h.
53819         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
53820         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
53821         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
53822         headers, memory.h, stdlib.h, string.h, strings.h.
53823         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
53824         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
53825         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
53826         strchr.
53827         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
53828         headers, memory.h, string.h.
53829         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
53830         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
53831         free.
53832         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
53833         headers.
53834         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
53835         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
53836         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
53837         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
53838         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
53839
53840 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53841
53842         More K&R removal.
53843
53844         * lib/acosl.c (main): Use a prototype.
53845         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
53846         tanl.c: Likewise.
53847
53848         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
53849
53850         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
53851         (getopt, etopt_long, getopt_long_only, _getopt_internal)
53852         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
53853         with a prototype.
53854         * lib/getopt.c (const): Remove macro.
53855         Include <string.h> unconditionally.
53856         (my_index): Remove; all uses changed to strchr.
53857         (strlen): Remove decl.
53858         (exchange): Remove forward decl; no longer needed.
53859         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
53860         Define with prototype.
53861         * lib/getopt1.c (const): Remove macro.
53862         (getopt_long, getopt_long_only, main): Define with prototype.
53863
53864         * lib/getugroups.c: Include <string.h> unconditionally.
53865
53866         * lib/getusershell.c: Include <stdlib.h> unconditionally.
53867         (getusershell, setusershell, endusershell, readname, main):
53868         Define with prototypes.
53869
53870         * lib/group-member.c: Include group-member.h first.
53871         Include <stdlib.h> unconditionally.
53872
53873         * lib/hard-locale.c: Include hard-locale.h first.
53874         Include <stdlib.h>, <string.h> unconditionally.
53875
53876         * lib/hash.c (free, malloc): Remove decls.
53877         Include <stdlib.h> unconditionally.
53878
53879         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
53880         (getenv): Do not declare.
53881
53882         * lib/idcache.c: Include <string.h> unconditionally.
53883
53884         * lib/long-options.c: Include long-options.h first, to test interface.
53885         Include <stdlib.h> unconditionally.
53886
53887         * lib/makepath.c: Include makepath.h first, to test interface.
53888         Include <stdlib.h> and <string.h> unconditionally.
53889
53890         * lib/linebuffer.c: Include <stdlib.h>.
53891         (free): Remove decl.
53892
53893         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
53894         stddef.h. rpl_malloc returns void *, not char *.
53895         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
53896         prototype.
53897
53898         * lib/md5.h: Include <limits.h> unconditionally.
53899         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
53900         (__P): Remove; all uses removed.
53901         * lib/md5.c: Include "md5.h" first.
53902         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
53903         md5_buffer, md5_process_bytes, md5_process_block):
53904         Define with prototypes.
53905         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
53906         * lib/sha.c: Include "sha.h" first.
53907         Include <stdlib.h>, <string.h> unconditionally.
53908
53909         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
53910         * lib/memcmp.c (__ptr_t): Likewise.
53911         * lib/memrchr.c (__ptr_t): Likewise.
53912         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
53913         Include <string.h> unconditionally.
53914         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
53915         * lib/memchr.c: Include <stdlib.h> unconditionally.
53916         * lib/memchr.c (LONG_MAX): Remove.
53917         * lib/memrchr.c (LONG_MAX): Likewise.
53918         * lib/memchr.c (__memchr): Define via a prototype.
53919         * lib/memrchr.c (__memrchr): Likewise.
53920         * lib/memcmp.c (__P): Remove, and remove all uses.
53921         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
53922         Remove forward decls; no longer needed.
53923         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
53924         Use types required by C89 in prototype.
53925
53926         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
53927         * lib/savedir.c: Likewise.
53928         * lib/mkdir.c (free): Remove decl.
53929         * lib/rmdir.c (rmdir): Define with a prototype.
53930         * lib/savedir.c: Include savedir.h first, to test interface.
53931
53932         * lib/mktime.c (STDC_HEADERS): Remove.
53933         Include <stdlib.h>, <string.h> unconditionally.
53934
53935         * lib/modechange.c: Include <stdlib.h> unconditionally.
53936         (malloc): Remove decl.
53937
53938         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
53939         (free): Remove decl.
53940
53941         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
53942         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
53943         (This type really should be intptr_t, but that's a C99ism.)
53944         (_obstack_memcpy): Remove: all uses changed to memcpy.
53945         Include <string.h> unconditionally.
53946         (struct obstack): Assume __STDC__ for types of members
53947         chunkfun, freefun, extra_arg.
53948         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
53949         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
53950         obstack_begin, obstack_specify_allocation,
53951         obstack_specify_allocation_with_arg, obstack_chunkfun,
53952         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
53953         Remove unprototyped decls and the macros that use them.
53954         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
53955         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
53956         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
53957         (defined __STDC__ && __STDC__)]:
53958         Remove nonprototyped code.
53959         Include <stdlib.h> unconditionally.
53960         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
53961         _obstack_allocated_p, _obstack_free, obstack_free,
53962         _obstack_memory_used, print_and_abort):
53963         Define using prototypes.
53964         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
53965         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
53966         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
53967         obstack_next_free, obstack_object_size, obstack_room) [0]:
53968         Remove unused, unprototyped code.
53969
53970         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
53971
53972         * lib/physmem.c (physmem_total, physmem_available, main): Define
53973         with prototypes.
53974
53975         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
53976         (main): Define with a prototype.
53977
53978         * lib/posixver.c (getenv): Remove decl.
53979
53980         * lib/putenv.c (malloc): Returns void *, not char *.
53981         Include <string.h> unconditionally.
53982         (strchr, memcpy, NULL): Do not define.
53983
53984         * lib/readtokens.c: Include readtokens.h first, to test interface.
53985         Include <stdlib.h>, <string.h> unconditionally.
53986         (init_tokenbuffer): Define with a prototype.
53987
53988         * lib/regex.c (PARAMS): Remove.  All uses removed.
53989         All uses of _RE_ARGS removed, too.
53990         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53991         unconditionally.
53992         (bzero): Assume memset exists.
53993         (memcmp, memcpy, NULL): Remove.
53994         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
53995         char, or assignments to local vars of type signed char.
53996         (init_syntax_once, PREFIX(extract_number_and_incr),
53997         PREFIX(print_partial_compiled_pattern),
53998         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
53999         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
54000         PREFIX(regex_grow_registers), PREFIX(regex_compile),
54001         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
54002         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
54003         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
54004         wcs_compile_range, byte_compile_range, truncate_wchar,
54005         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
54006         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
54007         count_mbs_length, wcs_re_match_2_internal,
54008         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
54009         PREFIX(alt_match_null_string_p),
54010         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
54011         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
54012         regfree, PREFIX(extract_number)): Define with prototype.  Remove
54013         now-unnecessary declaration, if any.
54014         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
54015         regcomp, regexec):
54016         Remove now-unnecessary casts among pointer types.
54017         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
54018
54019         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
54020         (free): Remove decl.
54021
54022         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
54023
54024         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
54025         (free): Remove decl.
54026
54027         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
54028         * lib/xgetcwd.c: Likewise.
54029
54030         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
54031         (free): Remove decl.
54032
54033         * lib/strchrnul.c (strchrnul): Define with a prototype.
54034         Fix bug: c_in was not converted to char before searching.
54035
54036         The following changes are not K&R related:
54037
54038         * lib/group-member.h: Include <sys/types.h>, so that this file is
54039         self-contained.
54040         * lib/makepath.h: Likewise.
54041
54042         * lib/getusershell.c (readname, default_index, line_size, readname):
54043         Use size_t, not int, for sizes.
54044         (readname): If the size overflows, report an error instead of
54045         looping forever.
54046
54047 2003-09-09  Paul Eggert  <eggert@twinsun.com>
54048
54049         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
54050         libc.
54051
54052 2003-09-09  Paul Eggert  <eggert@twinsun.com>
54053
54054         * README: New section: portability guidelines.
54055
54056 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
54057
54058         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
54059         C89 spec.
54060
54061 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
54062
54063         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
54064
54065 2003-09-08  Paul Eggert  <eggert@twinsun.com>
54066
54067         Assume C89 or better; remove K&R cruft.
54068         A few of these changes were first proposed by Derek Robert Price
54069         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
54070
54071         * lib/addext.c: Include <string.h> unconditionally.
54072         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
54073         Don't declare getenv or malloc.
54074
54075         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
54076         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
54077         (NULL): Remove.
54078         (find_stack_direction, alloca): Use prototypes.
54079
54080         * lib/atexit.c (atexit): Define using a prototype.
54081
54082         * lib/basename.c, dirname.c, stripslash.c:
54083         Include <string.h> unconditionally.
54084
54085         * lib/bcopy.c: Include <stddef.h>.
54086         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
54087
54088         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
54089
54090         * lib/error.h (error, error_at_line, error_print_progname)
54091         [! (defined (__STDC__) && __STDC__)]: Remove decls.
54092         * lib/error.c: Include error.h first, to check interface.
54093         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
54094         (VA_START): Remove; all uses changeed to va_start.
54095         (exit, strerror): Remove decls.
54096         (error_print_progname): Prototype uncondionally.
54097         Don't include <errno.h>; no longer needed.
54098         (private_strerror): Remove.
54099         (error_tail): Always define.
54100         (error, error_at_line): Assume C89 or better; always use prototypes.
54101         * lib/fatal.c: Include "fatal.h" first, to test interface.
54102         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
54103         (VA_START): Remove; all uses changed to va_start.
54104         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
54105         this case.
54106         (exit): Remove decl.
54107         (fatal): Prototype unconditionally.  Assume va_start works.
54108         Abort at end, to pacify gcc.
54109
54110         * lib/euidaccess.c (main): Define with a prototype.
54111
54112         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
54113
54114         * lib/exitfail.c: Include <stdlib.h> unconditionally.
54115
54116         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
54117         prototypes.
54118         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
54119         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
54120         (getenv): Remove decl.
54121         (fnmatch): Define using a prototype.
54122         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
54123         (FCT): Define using a prototype.
54124
54125         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
54126
54127         * lib/gethostname.c: Include <stddef.h>.
54128         (gethostname): Define with prototype.  Length is size_t, not int.
54129
54130 2003-09-08  Paul Eggert  <eggert@twinsun.com>
54131
54132         Assume C89 or better; remove K&R cruft.
54133         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
54134         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
54135         string.h, getenv, malloc.
54136         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
54137         headers.
54138         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
54139         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
54140         do not check for strerror.
54141         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
54142         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
54143         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
54144         do not check for doprnt or vprintf.
54145         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
54146         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
54147
54148 2003-09-08  Paul Eggert  <eggert@twinsun.com>
54149
54150         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
54151         getversion.c should have been removed then, but was accidentally
54152         preserved.
54153
54154         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
54155         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
54156
54157 2003-09-08  Karl Berry  <karl@gnu.org>
54158
54159         * config/config.sub, config.guess, srclistvars.sh: update from savannah
54160                 config, forget about prep.
54161
54162         * config/depcomp, missing: update from automake.
54163
54164 2003-09-07  Paul Eggert  <eggert@twinsun.com>
54165
54166         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
54167         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
54168
54169 2003-09-07  Paul Eggert  <eggert@twinsun.com>
54170
54171         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
54172         copy_tm_result.  Bug reported by Simon Josefsson in
54173         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
54174
54175 2003-09-06  Paul Eggert  <eggert@twinsun.com>
54176
54177         * m4/time_r.m4: New file.
54178         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
54179         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
54180         is. Check for timegm declaration.
54181         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
54182         Do not check for gmtime_r.
54183         Replace mktime if __mktime_internal does not exist and if mktime
54184         hasn't been replaced already.
54185
54186 2003-09-06  Paul Eggert  <eggert@twinsun.com>
54187
54188         * lib/time_r.c, lib/time_r.h: New files.
54189
54190         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
54191         __localtime_r.
54192         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
54193         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
54194
54195         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
54196         __gmtime_r.
54197         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
54198         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
54199         Include <time_r.h>.
54200
54201         * lib/timegm.c: Switch to glibc implementation, with the following
54202         changes:
54203         [defined HAVE_CONFIG_H]: Include <config.h>.
54204         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
54205         (__mktime_internal) [!defined _LIBC]: New decl.
54206         (__gmtime_r) [!defined _LIBC]: New macro and function.
54207         (timegm): Use a prototype, since gnulib assumes C89.
54208         Do not bother declaring tmp to be const, as it's not really usefu.
54209         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
54210         (timegm): Declare only if HAVE_DECL_TIMEGM.
54211
54212 2003-09-06  Paul Eggert  <eggert@twinsun.com>
54213
54214         * MODULES.html.sh (func_all_modules): Add time_r.
54215         * modules/time_r: New file.
54216         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
54217         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
54218
54219 2003-09-03  Paul Eggert  <eggert@twinsun.com>
54220
54221         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
54222         Bug reported by Lute Kamstra in
54223         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
54224
54225         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
54226         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
54227         course with correspondingly smaller numbers for tomorrow and
54228         yesterday.  From Tadayoshi Funaba.  Originally installed into
54229         sh-utils on 1999-08-07, but the patch got lost (I guess during the
54230         coreutils merge?).
54231
54232 2003-08-31  Simon Josefsson  <jas@extundo.com>
54233
54234         * modules/timegm: New file.
54235         * MODULES.html.sh (func_all_modules): Add timegm.
54236
54237 2003-08-31  Simon Josefsson  <jas@extundo.com>
54238
54239         * m4/timegm.m4: New file.
54240
54241 2003-08-31  Simon Josefsson  <jas@extundo.com>
54242
54243         * lib/timegm.h: New file.
54244         * lib/timegm.c: New file.  Based on
54245         wget-1.8.2/src/http.c:mktime_from_utc.
54246
54247 2003-08-31  Karl Berry  <karl@gnu.org>
54248
54249         * lib/argp.h: update from libc.
54250
54251 2003-08-28  Bruno Haible  <bruno@clisp.org>
54252
54253         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
54254         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
54255         followed by '#define fnmatch fnmatch_posix' gives an error.
54256
54257 2003-08-28  Bruno Haible  <bruno@clisp.org>
54258
54259         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
54260         warning on QNX, which defines O_BINARY to 000000.
54261
54262 2003-08-27  Jim Meyering  <jim@meyering.net>
54263
54264         * m4/mkstemp.m4: Require that the system mkstemp be able to create
54265         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
54266         would fail after 32.  Reported by Danny Levinson.  Details here:
54267         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
54268
54269 2003-08-24  Bruno Haible  <bruno@clisp.org>
54270
54271         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
54272         MSVC7 <stdio.h> is included later.
54273
54274 2003-08-22  Simon Josefsson  <jas@extundo.com>
54275
54276         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
54277
54278 2003-08-20  Karl Berry  <karl@gnu.org>
54279
54280         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
54281
54282 2003-08-20  Bruno Haible  <bruno@clisp.org>
54283
54284         * modules/progname: New file.
54285         * MODULES.html.sh (func_all_modules): Add progname.
54286
54287 2003-08-20  Bruno Haible  <bruno@clisp.org>
54288
54289         * lib/progname.h: New file, from GNU gettext.
54290         * lib/progname.c: New file, from GNU gettext.
54291         * lib/progreloc.c: New file, from GNU gettext.
54292
54293 2003-08-19  Jim Meyering  <jim@meyering.net>
54294
54295         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
54296         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
54297
54298 2003-08-19  Bruno Haible  <bruno@clisp.org>
54299
54300         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
54301         more.
54302
54303 2003-08-19  Bruno Haible  <bruno@clisp.org>
54304
54305         * lib/xstrdup.c: Assume <string.h> exists.
54306
54307 2003-08-18  Paul Eggert  <eggert@twinsun.com>
54308
54309         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
54310         in makefile rules.
54311
54312 2003-08-18  Jim Meyering  <jim@meyering.net>
54313
54314         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
54315         * m4/lib-ld.m4: Likewise.
54316
54317 2003-08-18  Jim Meyering  <jim@meyering.net>
54318
54319         * lib/setenv.h: Indent nested cpp directive.
54320         * lib/vasnprintf.c: Remove trailing blanks.
54321
54322 2003-08-17  Simon Josefsson  <jas@extundo.com>
54323
54324         * modules/xstrndup: New file.
54325         * MODULES.html.sh (func_all_modules): Add xstrndup.
54326
54327 2003-08-17  Simon Josefsson  <jas@extundo.com>
54328
54329         * modules/argp: Fix autoconf macro name. Add more dependencies.
54330
54331 2003-08-17  Simon Josefsson  <jas@extundo.com>
54332
54333         * m4/xstrndup.m4: New file.
54334
54335 2003-08-17  Simon Josefsson  <jas@extundo.com>
54336
54337         * m4/argp.m4: New file.
54338
54339 2003-08-17  Simon Josefsson  <jas@extundo.com>
54340             Bruno Haible  <bruno@clisp.org>
54341
54342         * lib/xstrndup.h: New file.
54343         * lib/xstrndup.c: New file.
54344
54345 2003-08-17  Bruno Haible  <bruno@clisp.org>
54346
54347         * modules/strndup (Files, Include): Add lib/strndup.h.
54348
54349 2003-08-17  Bruno Haible  <bruno@clisp.org>
54350
54351         * modules/euidaccess (Files): Add lib/euidaccess.h.
54352
54353 2003-08-17  Bruno Haible  <bruno@clisp.org>
54354
54355         * lib/strndup.h: New file.
54356
54357 2003-08-17  Bruno Haible  <bruno@clisp.org>
54358
54359         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
54360         like AC_GNU_SOURCE.
54361         * modules/extensions (configure.ac): Comment out the invocation of
54362         gl_USE_SYSTEM_EXTENSIONS.
54363
54364 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54365
54366         Merges from coreutils, etc.
54367         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
54368         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
54369         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
54370         fixing a typo.
54371         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
54372         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
54373
54374 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54375
54376         Document merge from coreutils.
54377         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
54378         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
54379         * modules/utime: Add m4/utimes-null.m4.
54380
54381 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54382
54383         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
54384         space, undoing this 2003-08-12 change:
54385         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54386
54387 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54388
54389         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
54390         strtoul.c from libc, undoing this 2003-08-12 change:
54391         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54392
54393 2003-08-16  Jim Meyering  <jim@meyering.net>
54394
54395         Merges from coreutils.
54396         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
54397         prefix.  Adjust cache variables similarly.  Create 500 rather than
54398         just 300 files, to exercise bug on Darwin6.5, too.
54399         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
54400         $missing_dir.
54401         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
54402         AM_SYS_POSIX_TERMIOS.
54403         Reported by mkc@mathdogs.com.
54404         Also change use of $am_cv_sys_posix_termios
54405         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
54406         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
54407         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
54408         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
54409         in /proc/mounts until it finds one with matching device number.  This
54410         is unnecessary when the FILE argument *is* a mount point.  No stat call
54411         is necessary in that case.  So, disable the statvfs-testing code on
54412         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
54413         as RedHat bug# 84846.
54414         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54415         to 1MB, so as not to render systems with no stack size limit (e.g.,
54416         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
54417         Include <unistd.h>.  On some systems,
54418         it is required for the definition of _SC_PAGESIZE.
54419
54420 2003-08-16  Jim Meyering  <jim@meyering.net>
54421
54422         Merge from coreutils.
54423         * lib/xstrtoimax.c: #else #if -> #elif.
54424         * lib/xstrtoumax.c: Likewise.
54425
54426 2003-08-16  Jim Meyering  <jim@meyering.net>
54427
54428         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
54429         * m4/utimes.m4: Removed.
54430         * m4/utimes-null.m4: Renamed from utimes.m4.
54431
54432         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54433         to 1MB, so as not to render systems with no stack size limit (e.g.,
54434         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
54435         Include <unistd.h>.  On some systems,
54436         it is required for the definition of _SC_PAGESIZE.
54437
54438 2003-08-16  Jim Meyering  <jim@meyering.net>
54439         and Paul Eggert  <eggert@cs.ucla.edu>
54440
54441         Merges from coreutils, etc.
54442
54443         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
54444         using the latest version from cvs.  This avoids problems with #line
54445         directives using a vendor (Sun) compiler.
54446         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
54447         Don't set GETGROUPS_LIB here; now it's
54448         done via getgroups.m4's wrapper function.
54449         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
54450         rather than just in sh-util/configure.in, so that the
54451         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
54452         same.
54453         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
54454         AC_FUNC_GETLOADAVG where to find getloadavg.c.
54455         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
54456         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
54457         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
54458         Remove code that is now done by the newly-required macros.
54459         Append $(EXEEXT) to DF_PROG.
54460         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
54461         Do not invoke or require the following here,
54462         since prereq.m4 or some gnulib .m4 now does this for us:
54463         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
54464         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
54465         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
54466         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
54467         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
54468         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
54469         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
54470         AC_FUNC_OBSTACK.
54471         Do not replace the following functions, as this is now the job
54472         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
54473         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
54474         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
54475         atexit getpass, strdup, getpagesize.
54476         Replace 'raise'.
54477         Do not check for the following functions, as this is now the job
54478         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
54479         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
54480         setregid.
54481         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
54482         Check for sys/sysctl.h.
54483         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
54484         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
54485         of checking for ssize_t ourselves.
54486
54487         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
54488         Require every macro that gnulib/modules/* suggests for us.
54489         (jm_PREREQ_ADDEXT): New macro.
54490         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
54491         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
54492
54493         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
54494         (gl_PHYSMEM): Use it.
54495         Also check for `table' function.
54496         Check for new headers and functions.
54497         Add check for sys/sysmp.h.
54498         With suggestions from Kaveh Ghazi.
54499         Ignore headers that are present but cannot be compiled.  This
54500         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
54501         C 5.4.
54502
54503 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54504
54505         Document merge from coreutils.
54506         * modules/userspec: Depend on posixver.
54507         * modules/strftime: Depend on tzset.
54508
54509 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54510
54511         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
54512         rather than tab, after '#' in shell-script copyright notices.
54513         Suggested by Bruno Haible.
54514
54515 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54516
54517         * config/srclist-update: Use three spaces, rather than tab, after '#'
54518         in shell-script copyright notices.  Suggested by Bruno Haible.
54519         Remove unnecessary parenthesization in regular expression.
54520
54521 2003-08-15  Jim Meyering  <jim@meyering.net>
54522
54523         Merge from coreutils.
54524         * lib/xgethostname.c: Include <stdlib.h>.
54525         (xghostname): Don't exit for anything other than memory-related
54526         failure; just return NULL.
54527         * lib/userspec.c: Include "posixver.h".
54528         (parse_user_spec): Accept `.' as a separator only
54529         in pre-POSIX-200112 mode.
54530         * lib/strtoimax.c: Use #elif rather than #else #if.
54531         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
54532         Remove function, now that we can rely on a working tzset function.
54533         [!_LIBC]: Ensure that the required autoconf test has been run.
54534         [!defined _NL_CURRENT && HAVE_STRFTIME]:
54535         Use underlying_strftime for %r.
54536         * lib/sha.c: Merge in some clean-up and optimization changes from
54537         glibc.
54538         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
54539         Ensure that it is a multiple of 64.
54540         Rearrange loop exit tests so as to avoid performing an
54541         additional fread after encountering an error or EOF.
54542         * lib/realloc.c: Update copyright date.
54543
54544 2003-08-15  Jim Meyering  <jim@meyering.net>
54545         and Paul Eggert  <eggert@twinsun.com>
54546
54547         Merge from coreutils.
54548         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
54549         member but strut utmpx does not.  Needed for AIX 4.3.3.
54550         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
54551
54552 2003-08-15  Jim Meyering  <jim@meyering.net>
54553         and Paul Eggert  <eggert@cs.ucla.edu>
54554
54555         Merges from coreutils, etc.
54556         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
54557         Require gl_FUNC_TZSET_CLOBBER.
54558         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
54559         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
54560         members.
54561
54562 2003-08-14  Paul Eggert  <eggert@twinsun.com>
54563
54564         Help the merge from coreutils.
54565         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
54566         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
54567         * m4/tzset.m4: Use it too.
54568
54569 2003-08-14  Paul Eggert  <eggert@twinsun.com>
54570
54571         * modules/tzset: New file.
54572
54573 2003-08-14  Jim Meyering  <jim@meyering.net>
54574
54575         Merges from coreutils.
54576         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
54577         variable names, rather than @FNMATCH_H@.
54578         * modules/alloca: Likewise for $(ALLOCA_H).
54579
54580         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
54581         the three copies of the literal target, `fnmatch.h'.
54582         * modules/alloca (alloca.h): Likewise.
54583
54584 2003-08-14  Jim Meyering  <jim@meyering.net>
54585
54586         Merge from coreutils.
54587         * m4/tzset.m4: New file.
54588         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
54589         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
54590         otherwise, AIX 5.1 systems would end up using the latter.
54591         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
54592         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
54593         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
54594         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
54595
54596 2003-08-14  Jim Meyering  <jim@meyering.net>
54597
54598         Merge from coreutils.
54599         * lib/obstack.h: Whitespace changes.
54600         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
54601         and xcalloc return values.
54602         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
54603         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
54604         hang on OSF/1 5.1 for DIR on both local and remote file systems.
54605         Reported by (and fix confirmed by) Nelson H. F. Beebe.
54606         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
54607         error from mntctl.
54608         Use mntctl's return value to drive the entry-processing loop, since
54609         we can't rely on the value of the vmt_length member in the last
54610         entry.  On some systems doing so could result in exhausting
54611         virtual memory.  Based in part on a patch from Mike Jetzer.
54612
54613 2003-08-14  Jim Meyering  <jim@meyering.net>
54614         and Paul Eggert  <eggert@twinsun.com>
54615
54616         Merges from coreutils, plus other fixes.
54617         * lib/physmem.c: Merge in portability changes from gcc/libiberty
54618         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
54619         for credits and details.  Thanks to Kaveh Ghazi for helping
54620         to keep these files in sync.
54621         (ARRAY_SIZE): Define it.
54622         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
54623         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
54624         (memcasecmp): Don't assume size_t fits in unsigned int.
54625         Remove casts and duplicate code.
54626         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
54627         (memcpy): Remove definition.
54628         Merge in some clean-up and optimization changes from glibc.
54629         [BLOCKSIZE]: Move definition to top of file.
54630         Ensure that it is a multiple of 64.
54631         Rearrange loop exit tests so as to avoid performing an
54632         additional fread after encountering an error or EOF.
54633         * lib/md5.h (md5_uintptr): Define.
54634         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
54635         return to the initial working directory.  Preserve errno
54636         for caller.
54637         * lib/idcache.c: Include "xalloc.h".
54638         (xmalloc, xrealloc): Remove decls.
54639         (getuser): Remove casts no longer required in C89.
54640         * lib/human.c: Include stdio.h, for sprintf.
54641         * lib/group-member.c: Include "xalloc.h".
54642         (xmalloc, xrealloc): Remove decls.
54643         (get_group_info): Remove casts no longer required in C89.
54644         * lib/getusershell.c (readname): Remove casts no longer required in
54645         C89.
54646         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
54647         * lib/getline.c: Whitespace fix, from coreutils.
54648
54649 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54650
54651         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
54652         Check for isascii.
54653
54654         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54655         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54656         Undo previous (whitespace-only) change.
54657
54658 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54659
54660         * lib/exclude.c: Include <ctype.h>
54661         (IN_CTYPE_DOMAIN): New macro.
54662         (is_space): New fn.
54663         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
54664         and empty lines.
54665
54666         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54667         Undo previous (whitespace-only) change.
54668
54669 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54670
54671         * config/srclist-update: Change update back to the old behavior,
54672         leaving whitespace alone.  Use one 'sed' command rather than a
54673         pipeline.
54674         (fixlicense): Now a variable, not a function.
54675         (remove_trailing_blanks): Remove.
54676         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
54677         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54678         Undo previous (whitespace-only) change.
54679
54680 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54681
54682         Merge from coreutils.
54683         * modules/euidaccess: Add lib_SOURCES, include for new
54684         file euidaccess.h
54685
54686 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54687
54688         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54689         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54690         Normalize leading white space and remove trailing white space.
54691
54692         Merge from coreutils
54693         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
54694
54695         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
54696         0.12.1.  These files are now being upgraded automatically by
54697         ../config/srclist-update.
54698
54699 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54700
54701         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54702         Normalize leading white space and remove trailing white space.
54703         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
54704         notice, as per ../config/srclist-update.
54705
54706         Merge from coreutils.
54707         * lib/euidaccess.h: New file.
54708         * lib/euidaccess.c: Include it.
54709         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
54710         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
54711         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
54712
54713 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54714
54715         * config/srclist-update: Add copyright notice.
54716         (remove_id_lines, remove_trailing_blanks): New constants.
54717         (fixfile): Use them to normalize spacing a bit in copied files.
54718         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54719         Normalize leading white space and remove trailing white space.
54720
54721         * config/texinfo.tex: Sync with texinfo.
54722
54723         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
54724         strtoul.c from libc, to merge coreutils whitespace changes.
54725
54726         * config/srclist.txt: Get the following m4 files from gettext:
54727         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
54728         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
54729         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
54730         wint_t.m4.
54731
54732 2003-08-12  Karl Berry  <karl@gnu.org>
54733
54734         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
54735         been made.
54736
54737 2003-08-11  Paul Eggert  <eggert@twinsun.com>
54738
54739         * modules/gnu-source, m4/gnu-source.m4:
54740         Remove; we're assuming Autoconf 2.54 or later now.
54741         Suggested by Bruno Haible.
54742         * MODULES.html.sh (func_all_modules): Remove gnu-source.
54743
54744 2003-08-11  Bruno Haible  <bruno@clisp.org>
54745
54746         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
54747
54748 2003-08-11  Bruno Haible  <bruno@clisp.org>
54749
54750         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
54751         (vasnprintf): Use it instead of wcslen.
54752
54753 2003-08-11  Bruno Haible  <bruno@clisp.org>
54754
54755         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
54756         value to ensure that _Bool promotes to int. Use #define for _Bool when
54757         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
54758
54759 2003-08-10  Karl Berry  <karl@gnu.org>
54760
54761         * lib/regex.h: update from libc (whitespace fix).
54762
54763 2003-08-09  Paul Eggert  <eggert@twinsun.com>
54764
54765         Merge some files from coreutils.  These changes were
54766         originally made by Jim Meyering.
54767         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
54768         many older Unixes require this.
54769         * lib/alloca.c (alloca): Remove cast to argument of free;
54770         no longer needed in C89.
54771         * lib/alloca_.h, regex.h: Fix white space to match
54772         what GNU indent does.
54773
54774 2003-08-09  Paul Eggert  <eggert@twinsun.com>
54775
54776         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
54777         apparently Emacs's Unicode mode got confused before my 2003-08-05
54778         checkin.
54779
54780 2003-08-08  Paul Eggert  <eggert@twinsun.com>
54781
54782         * m4/extensions.m4: New file.
54783         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
54784         Require gl_USE_SYSTEM_EXTENSIONS.
54785         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
54786         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
54787
54788 2003-08-08  Paul Eggert  <eggert@twinsun.com>
54789
54790         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
54791         * modules/extensions, modules/gnu-source: New files.
54792         * modules/timespec, modules/unlocked-io: Depend on extensions.
54793
54794 2003-08-07  Paul Eggert  <eggert@twinsun.com>
54795
54796         * modules/restrict: New file.
54797         * MODULES.html.sh (func_all_modules): Add restrict.
54798         * modules/regex: Depend on restrict.
54799
54800 2003-08-07  Paul Eggert  <eggert@twinsun.com>
54801
54802         * m4/restrict.m4: New file.
54803         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
54804
54805 2003-08-07  Bruno Haible  <bruno@clisp.org>
54806
54807         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
54808         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
54809
54810 2003-08-07  Bruno Haible  <bruno@clisp.org>
54811
54812         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
54813         makes the module 'getndelim2' compatible with the module 'getline'.
54814
54815 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54816
54817         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
54818         byte with "\201" to avoid glitches when editing that source file
54819         with multi-gnome-terminal.
54820
54821 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54822
54823         * lib/bumpalloc.h: Remove.
54824
54825 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54826
54827         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
54828         * modules/bumpalloc: Remove.
54829
54830 2003-08-04  Paul Eggert  <eggert@twinsun.com>
54831
54832         * lib/getloadavg.c: Change copyright notice and spacing to conform to
54833         GNU coding style.
54834
54835         Merge from coreutils.
54836         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
54837         1. From glibc.
54838         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
54839         from Karl Berry, implemented by Jim Meyering.
54840         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
54841         from Dmitry V. Levin.
54842         Remove anachronistic cast of xrealloc.
54843         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
54844         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
54845         type. Otherwise, it wouldn't compile with at least /bin/cc on
54846         ymp-cray-unicos9.0.2.X.
54847         Combine two mostly-identical uses of alloca into one.
54848         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
54849
54850 2003-08-04  Dave Love  <d.love@dl.ac.uk>
54851
54852         [From Emacs.]
54853
54854         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
54855         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
54856         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
54857         obsolete NLIST_NAME_UNION.
54858         [__GNU__]: Undef BSD and FSCALE.
54859         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
54860
54861 2003-08-03  Paul Eggert  <eggert@twinsun.com>
54862
54863         * lib/stdbool_.h (_Bool): Make it signed char, instead of
54864         an enum type, so that it's guaranteed to promote to int.  See:
54865         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
54866
54867 2003-08-03  Karl Berry  <karl@gnu.org>
54868
54869         * config/depcomp: update from automake.
54870
54871 2003-07-31  Paul Eggert  <eggert@twinsun.com>
54872
54873         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
54874         (strerror): Don't assume that a printable int fits in 14 bytes.
54875
54876 2003-07-31  Bruno Haible  <bruno@clisp.org>
54877
54878         * modules/getpass-gnu: New file.
54879         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
54880
54881 2003-07-31  Bruno Haible  <bruno@clisp.org>
54882
54883         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
54884
54885 2003-07-24  Karl Berry  <karl@gnu.org>
54886
54887         * config/missing: update from automake.
54888
54889 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
54890             Bruno Haible  <bruno@clisp.org>
54891
54892         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
54893         * lib/getline.c (getline, getdelim): Likewise.
54894         Remove _GNU_SOURCE define; now it's defined in config.h through
54895         m4/getline.m4.
54896
54897 2003-07-23  Karl Berry  <karl@gnu.org>
54898
54899         * config/config.sub: update from prep.
54900
54901 2003-07-22  Paul Eggert  <eggert@twinsun.com>
54902
54903         * modules/xalloc (Depends-on): Add exitfail.
54904         * modules/xmemcoll: Likewise.
54905
54906 2003-07-22  Paul Eggert  <eggert@twinsun.com>
54907
54908         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
54909         over-parenthesization in macros.
54910
54911         Sync with coreutils.
54912
54913         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
54914         required by C99.
54915
54916         Use `exit_failure' for xalloc and xmemcoll instead of their own
54917         private exit-failure variables.
54918         * lib/xalloc.h (xalloc_exit_failure): Remove.
54919         * lib/xmalloc.c: Likewise.  Include exitfail.h.
54920         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
54921         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
54922         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
54923         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
54924
54925 2003-07-20  Jim Meyering  <jim@meyering.net>
54926
54927         * modules/closeout (Depends-on): Add exitfail.
54928         Suggestion from Bruno Haible.
54929
54930 2003-07-19  Karl Berry  <karl@gnu.org>
54931
54932         * config/config.sub: update from prep.
54933
54934 2003-07-18  Paul Eggert  <eggert@twinsun.com>
54935
54936         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
54937         Remove.
54938         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
54939         to test that it can stand by itself.  Include "exitfail.h".
54940         Clients should set exit_failure instead.
54941         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
54942
54943 2003-07-18  Bruno Haible  <bruno@clisp.org>
54944
54945         * modules/getndelim2: New file.
54946         * modules/getline: Share files with module getndelim2.
54947         * modules/getnline: Depend on getndelim2 instead of sharing files with
54948         it. Add getnline.c to lib_SOURCES.
54949         * MODULES.html.sh (func_all_modules): Add getndelim2.
54950
54951 2003-07-18  Bruno Haible  <bruno@clisp.org>
54952
54953         * m4/getndelim2.m4: New file.
54954         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
54955         invoke gl_PREREQ_GETNDELIM2.
54956         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
54957         gl_PREREQ_GETNDELIM2.
54958         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
54959         gl_GETNDELIM2.
54960
54961 2003-07-18  Bruno Haible  <bruno@clisp.org>
54962
54963         * lib/getndelim2.h: New file.
54964         * lib/getndelim2.c: Make into a module of its own. Include config.h,
54965         getndelim2.h.
54966         (getndelim2): Make non-static. Change return type to ssize_t.
54967         * lib/getline.h: Change argument names.
54968         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
54969         * lib/getnline.c: Include getndelim2.h.
54970
54971 2003-07-18  Andreas Schwab  <schwab@suse.de>
54972
54973         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
54974
54975 2003-07-17  Karl Berry  <karl@gnu.org>
54976
54977         * config/config.sub: update from prep.
54978
54979 2003-07-17  Bruno Haible  <bruno@clisp.org>
54980
54981         * modules/getnline: New file.
54982         * modules/getline: Add lib/getndelim2.c to source file list.
54983         * MODULES.html.sh (func_all_modules): Add getnline.
54984
54985 2003-07-17  Bruno Haible  <bruno@clisp.org>
54986
54987         * m4/getnline.m4: New file.
54988
54989 2003-07-17  Bruno Haible  <bruno@clisp.org>
54990
54991         * m4/Makefile.am.in: Remove file.
54992         * m4/Makefile.am: Remove file.
54993         * m4/Makefile.in: Remove file.
54994
54995 2003-07-17  Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/getnline.h: New file.
54998         * lib/getnline.c: New file.
54999         * lib/getndelim2.c: New file, extracted from getline.c.
55000         (getndelim2): Renamed from getdelim2, with added nmax argument.
55001         * lib/getline.c: Include getndelim2.c.
55002         (getdelim2): Moved out to getndelim2.c.
55003         (getline, getdelim): Update.
55004
55005 2003-07-17  Bruno Haible  <bruno@clisp.org>
55006
55007         * lib/Makefile.am: Remove file.
55008         * lib/Makefile.in: Remove file.
55009
55010 2003-07-17  Bruno Haible  <bruno@clisp.org>
55011
55012         * configure.in: Remove file.
55013         * Makefile.in: Remove file.
55014
55015 2003-07-17  Bruno Haible  <bruno@clisp.org>
55016
55017         * MODULES.html.sh: Put the </BODY> right before </HTML>.
55018
55019 2003-07-16  Karl Berry  <karl@gnu.org>
55020
55021         * config/srclist-update: was running fixlicense twice, which caused
55022                 texinfo.tex to be nullified for some reason.  Simplify,
55023                 $gplsrc is no longer needed as far as I can see?
55024
55025 2003-07-16  Jim Meyering  <jim@meyering.net>
55026
55027         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
55028
55029 2003-07-15  Paul Eggert  <eggert@twinsun.com>
55030
55031         * config/srclist.txt: Get the following files from gettext-runtime/intl
55032         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
55033         ref-del.sin.  From Bruno Haible.
55034         * config/srclist-update (fixfile): Change grep pattern again, since the
55035         previous fix didn't work (there was another trailing $).  Use
55036         '[$]' to escape the $s.
55037
55038 2003-07-15  Karl Berry  <karl@gnu.org>
55039
55040         * lib/vasnprintf.c: update from gettext.
55041
55042 2003-07-15  Karl Berry  <karl@gnu.org>
55043
55044         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
55045         gets expanded when surrounded by '$'.
55046
55047 2003-07-15  Jim Meyering  <jim@meyering.net>
55048
55049         * modules/save-cwd: Don't depend on error.  From Derek Price.
55050
55051 2003-07-15  Jim Meyering  <jim@meyering.net>
55052
55053         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
55054
55055 2003-07-14  Simon Josefsson  <jas@extundo.com>
55056
55057         * modules/mempcpy: New file.
55058         * MODULES.html.sh (func_all_modules): Add mempcpy.
55059
55060 2003-07-14  Simon Josefsson  <jas@extundo.com>
55061
55062         * m4/mempcpy.m4: New file.
55063
55064 2003-07-14  Simon Josefsson  <jas@extundo.com>
55065
55066         * lib/mempcpy.h: New file.
55067         * lib/mempcpy.c: New file.
55068
55069 2003-07-14  Paul Eggert  <eggert@twinsun.com>
55070
55071         * modules/getdate, modules/posixtm: Depend on mktime.
55072
55073 2003-07-14  Paul Eggert  <eggert@twinsun.com>
55074
55075         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
55076         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
55077         unicodeio.c, unicodeio.h, unlocked-io.h:
55078         Switch from LGPL to GPL.
55079
55080 2003-07-14  Paul Eggert  <eggert@twinsun.com>
55081
55082         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
55083         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
55084         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
55085         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
55086         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
55087         updated automatically by ../config/srclist-update.  This changes
55088         their license from LPGL to GPL.
55089
55090 2003-07-14  Paul Eggert  <eggert@twinsun.com>
55091
55092         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
55093         assumed to refer to the root of the most recent stable gettext version.
55094         * config/srclistvars.sh: Add defaults for eggert.
55095         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
55096         Match "This program" as well as "The program".  This is needed
55097         for gettext.
55098
55099 2003-07-14  Jim Meyering  <jim@meyering.net>
55100
55101         Don't emit diagnostics.  Let callers do that.
55102         * lib/save-cwd.c: Don't include "error.h".
55103         (save_cwd): Don't call error.  Ensure that errno is valid
55104         when returning nonzero.
55105
55106         * lib/save-cwd.h (restore_cwd): Update prototype.
55107         * lib/save-cwd.c (restore_cwd): Remove two parameters.
55108         Simplify.  Don't call error upon failure.  Let callers do that.
55109         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
55110         when auditing is enabled.  But don't bother updating the #if.
55111
55112 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
55113
55114         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
55115         it breaks C++ compilation.
55116         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
55117
55118 2003-07-10  Simon Josefsson  <jas@extundo.com>
55119
55120         * modules/strchrnul (Makefile.am): Add strchrnul.h.
55121
55122 2003-07-10  Jim Meyering  <jim@meyering.net>
55123
55124         * m4/clock_time.m4: Remove trailing blank.
55125         * m4/intmax_t.m4: Likewise.
55126
55127 2003-07-10  Jim Meyering  <jim@meyering.net>
55128
55129         * lib/vasnprintf.c: Remove trailing blanks.
55130         Make cpp indentation consistent.
55131
55132 2003-07-09  Paul Eggert  <eggert@twinsun.com>
55133
55134         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
55135         posixver.c, strftime.c, strnlen.c, strverscmp.c:
55136         Switch from LGPL to GPL.
55137
55138 2003-07-09  Paul Eggert  <eggert@twinsun.com>
55139
55140         * config/srclist.txt: Sort sublists.  Add
55141         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
55142         that differ from gnulib for one reason or another; we'd like this list
55143         to be smaller but for now let's document what we have.
55144
55145 2003-07-08  Paul Eggert  <eggert@twinsun.com>
55146
55147         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
55148         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
55149         and sweeter "eval x=$x".
55150         * config/srclist.txt: Get lib/argp* from glibc.
55151
55152 2003-07-07  Paul Eggert  <eggert@twinsun.com>
55153
55154         * lib/mktime.c: Fix some boundary cases and remove need for floating
55155         point.
55156
55157         Issue a compile-time diagnostic if time_t is floating point, or if
55158         two's complement arithmetic is not in effect, or if arithmetic
55159         right shift does not propagate the sign.  These assumptions were
55160         all in the original code but they weren't checked.
55161
55162         (TIME_T_MIDPOINT, verify): New macros.
55163         (__isleap): Remove; it has integer overflow problems.
55164         (leapyear): New function, without those problems.
55165         (ydhms_tm_diff): Remove; splitting into two parts.
55166         (ydhms_diff): New function, containing the arithmetic part of
55167         the old ydhms_tm_diff function.  Issue a compile-time
55168         diagnostic if we are not using C99 integer division.
55169         Avoid casts when possible.
55170         (guess_time_tm): New function, containing the checking part of
55171         the old ydhms_tm_diff function.  Return the new value, rather than
55172         the difference between it and the old.  Accept a new argument T
55173         so that *T specifies the old value.  Check for overflow in the result.
55174
55175         (__mktime_internal): Use a time_t offset, not a long int offset.
55176         This undoes the 2003-06-04 change, which is no longer needed now
55177         that we have better overflow checking.
55178         (localtime_offset): Likewise.
55179
55180         (__mktime_internal): Avoid harmful overflow on hosts where time_t
55181         and long are 64-bit but int is only 32-bit.
55182         (ydhms_diff): Use long int to store year1 and yday1.
55183         Issue a compile-time diagnostic if long int is not wide enough.
55184
55185         (__mktime_internal): Use long int to store adjusted year and yday.
55186         Use plain C rather than preprocessor commands, if that doesn't
55187         affect efficiency.
55188         Check for overflow (and try to repair) after each probe
55189         rather than checking only at the very end.  This avoids some bugs
55190         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
55191         does not equal GMT offset at maximum time).
55192         Use integer to check for overflow rather than floating point; this
55193         is more portable to non-IEEE hosts, and is a tad faster.
55194         When we detect that we are oscillating between two values,
55195         don't check whether tm_isdst has the requested value, since
55196         we already know the answer.  When tm_isdst has the wrong value,
55197         use a different heuristic to find the right one, based on the
55198         extreme values actually observed in practice in tz2003a,
55199         rather than the (overly optimistic) "previous 3 calendar quarters".
55200
55201         (not_equal_tm, print_tm, check_result): Use "const T" rather than
55202         "T const" to accommodate glibc style.
55203         (check_result): Use less-confusing report format.  "long" -> "long int.
55204         (main): Likewise.
55205         Don't loop if the iteration overflows time_t.
55206         Allow a negative step in the iteration.
55207
55208 2003-07-06  Karl Berry  <karl@gnu.org>
55209
55210         * config/depcomp: update from automake.
55211         * config/config.sub: update from prep.
55212
55213 2003-07-03  Karl Berry  <karl@gnu.org>
55214
55215         * config/config.guess: update from prep.
55216
55217 2003-07-01  Paul Eggert  <eggert@twinsun.com>
55218
55219         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
55220         xreadlink.c now includes it unconditionally.
55221
55222 2003-07-01  Paul Eggert  <eggert@twinsun.com>
55223
55224         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
55225         having it depend on HAVE_SYS_TYPES_H.
55226
55227 2003-07-01  Bruno Haible  <bruno@clisp.org>
55228
55229         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
55230         <sys/types.h> should be sufficient.
55231         Reported by Paul Eggert.
55232
55233 2003-06-26  Karl Berry  <karl@gnu.org>
55234
55235         * config/depcomp: update from automake.
55236
55237 2003-06-26  Bruno Haible  <bruno@clisp.org>
55238
55239         * modules/human: Depend on module stdbool.
55240
55241 2003-06-25  Bruno Haible  <bruno@clisp.org>
55242
55243         * modules/readlink: New file.
55244         * modules/xreadlink: Depend on it.
55245         * MODULES.html.sh (func_all_modules): Add readlink.
55246
55247 2003-06-25  Bruno Haible  <bruno@clisp.org>
55248
55249         * m4/readlink.m4: New file.
55250
55251 2003-06-25  Bruno Haible  <bruno@clisp.org>
55252
55253         * lib/readlink.c: New file.
55254
55255 2003-06-22  Karl Berry  <karl@gnu.org>
55256
55257         * config/srclist.txt: update mkinstalldirs from automake.
55258         * config/mkinstalldirs: update.
55259
55260 2003-06-22  Bruno Haible  <bruno@clisp.org>
55261
55262         Portability to mingw32.
55263         * m4/ssize_t.m4: New file, from GNU gettext.
55264         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
55265         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
55266
55267 2003-06-22  Bruno Haible  <bruno@clisp.org>
55268
55269         * modules/safe-read: Add m4/ssize_t.m4.
55270         * modules/xreadlink: Add m4/ssize_t.m4.
55271
55272 2003-06-20  Bruno Haible  <bruno@clisp.org>
55273
55274         Assume C89, so PARAMS isn't needed.
55275         * lib/unicodeio.h (PARAMS): Remove.
55276         * lib/unicodeio.c: Don't use PARAMS.
55277
55278 2003-06-18  Karl Berry  <karl@gnu.org>
55279
55280         * config/config.{guess,sub}: update from prep.
55281
55282 2003-06-18  Jim Meyering  <jim@meyering.net>
55283
55284         Merge changes from coreutils.
55285         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
55286         Remove explicit declarations of xmalloc and realloc.
55287         Include xalloc.h.
55288         (read_utmp): Remove anachronistic cast of xmalloc.
55289
55290 2003-06-17  Paul Eggert  <eggert@twinsun.com>
55291
55292         Assume C89, so PARAMS isn't needed.
55293         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
55294         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
55295         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
55296         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
55297         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
55298         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
55299         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
55300         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
55301         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
55302         lib/xstrtod.h, lib/xstrtol.h: Likewise.
55303         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
55304         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
55305         no longer needed. Anyway, config.h should always be included before any
55306         other file.
55307
55308 2003-06-11  Simon Josefsson  <jas@extundo.com>
55309
55310         * modules/sysexits: New file.
55311         * MODULES.html.sh (func_all_modules): Add sysexits.
55312
55313 2003-06-11  Simon Josefsson  <jas@extundo.com>
55314
55315         * lib/sysexit_.h: New file.
55316
55317 2003-06-11  Derek Price  <derek@ximbiot.com>
55318
55319         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
55320         necessary.
55321
55322 2003-06-11  Bruno Haible  <bruno@clisp.org>
55323
55324         * m4/sysexits.m4: New file.
55325
55326 2003-06-10  Simon Josefsson  <jas@extundo.com>
55327
55328         * lib/argp.h: New file, from glibc.
55329         * lib/argp-ba.c: New file, from glibc.
55330         * lib/argp-eexst.c: New file, from glibc.
55331         * lib/argp-fmtstream.c: New file, from glibc.
55332         * lib/argp-fmtstream.h: New file, from glibc.
55333         * lib/argp-fs-xinl.c: New file, from glibc.
55334         * lib/argp-help.c: New file, from glibc.
55335         * lib/argp-namefrob.h: New file, from glibc.
55336         * lib/argp-parse.c: New file, from glibc.
55337         * lib/argp-pv.c: New file, from glibc.
55338         * lib/argp-pvh.c: New file, from glibc.
55339         * lib/argp-xinl.c: New file, from glibc.
55340
55341 2003-06-10  Simon Josefsson  <jas@extundo.com>
55342
55343         * modules/strchrnul: New file.
55344
55345 2003-06-10  Simon Josefsson  <jas@extundo.com>
55346
55347         * modules/argp: New file.
55348
55349 2003-06-10  Simon Josefsson  <jas@extundo.com>
55350
55351         * m4/strchrnul.m4: New file.
55352
55353 2003-06-10  Simon Josefsson  <jas@extundo.com>
55354
55355         * lib/strchrnul.h: New file.
55356         * lib/strchrnul.c: New file.
55357
55358 2003-06-10  Bruno Haible  <bruno@clisp.org>
55359
55360         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
55361
55362 2003-06-07  Karl Berry  <karl@gnu.org>
55363
55364         * config/config.{guess,sub}: update from prep.
55365
55366 2003-06-07  Jim Meyering  <jim@meyering.net>
55367
55368         * modules/strtod: Use $(...) notation, not @...@ for
55369         AC_REPLACE'd variables.
55370         * modules/localcharset: Likewise.
55371
55372 2003-06-07  Jim Meyering  <jim@meyering.net>
55373
55374         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
55375         in place of my name in the copyright comment.
55376         Remove definition and uses of __P.
55377
55378         From coreutils.
55379         * lib/stat.c: Don't declare xmalloc explicitly.
55380         Instead, include "xalloc.h".
55381         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
55382         xrealloc, and xcalloc return values.
55383         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
55384         Improve comment.
55385         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
55386
55387 2003-06-07  Bruno Haible  <bruno@clisp.org>
55388
55389         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
55390         avoid AC_CONFIG_LINKS.
55391         * modules/fnmatch (Makefile.am): Use explicit creation rule for
55392         fnmatch.h, to avoid AC_CONFIG_LINKS.
55393         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
55394
55395 2003-06-07  Bruno Haible  <bruno@clisp.org>
55396
55397         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
55398         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
55399         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55400         directory.
55401         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
55402         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55403         directory.
55404
55405 2003-06-06  Jim Meyering  <jim@meyering.net>
55406
55407         Merge from coreutils.
55408         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
55409         Consolidate declarations and initializations of *_base* locals.
55410
55411         Merge from coreutils.
55412         This avoids a core dump on systems without GNU putenv,
55413         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
55414         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
55415         (unsetenv): New static function, from GNU libc.
55416         (rpl_putenv): Use it.
55417
55418         * lib/modechange.c: Remove trailing blanks.
55419
55420         Merge from coreutils.
55421         * lib/fsusage.c: Remove declaration of statfs.
55422         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
55423
55424         * lib/posixtm.c: Include <stdbool.h> unconditionally.
55425
55426 2003-06-06  Jim Meyering  <jim@meyering.net>
55427
55428         * lib/stdbool_.h: Renamed from stdbool.h.in.
55429
55430 2003-06-06  Jim Meyering  <jim@meyering.net>
55431             Bruno Haible  <bruno@clisp.org>
55432
55433         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
55434         Adjust Makefile.am snippet not to redirect directly to target.
55435         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
55436
55437 2003-06-05  Paul Eggert  <eggert@twinsun.com>
55438
55439         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
55440         mismatch, look in future quarters as well as past.  This fixes a
55441         bug when processing fall-backwards gaps immediately after a long
55442         period of daylight-saving time.
55443
55444         * lib/mktime.c: Assume freestanding C89 or better.
55445         (HAVE_LIMITS_H): Remove.  Assume it's 1.
55446         (__P): Remove; not used.
55447         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
55448         (mktime, not_equal_tm, print_tm, check_result,
55449         main): Use prototypes.  Use const * where appropriate.
55450         (main): Fix typo in testing code that uncovered by above changes.
55451         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
55452
55453 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55454
55455         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
55456         locale.h, localeconv.  This merges changes from coreutils.
55457
55458         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
55459         It can be removed after the next Autoconf is released.
55460         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
55461         needed.
55462
55463 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55464
55465         * lib/mktime.c: Fix Debian bug 177940
55466         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
55467         (localtime_offset): Now long int, not time_t, because we want it
55468         to be guaranteed to be signed.  All uses changed.
55469         (__mktime_internal): If overflow would occur when adding offset,
55470         don't add it.
55471
55472         Merge 'human' changes from coreutils.  Rewrite to support
55473         locale-specific notations like thousands separators.
55474         * lib/human.c: Simplify authorship notice.
55475         Include human.h immediately after config.h.
55476         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
55477         <limits.h>: Do not include, since human.h does.
55478         (SIZE_MAX, UINTMAX_MAX): New macros.
55479         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
55480         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
55481         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
55482         (power_letter): Renamed from suffixes.
55483         (generate_suffix_backwards): Remove.
55484         (adjust_value): Now takes int style (because of human.h changes)
55485         and long double value (for greater precision on some platforms).
55486         (group_number): New function.
55487         (human_readable): Use it.  Use integer options, not enum.
55488         Put the options before the sizes in the arg list.
55489         Support all the new options.
55490         The old human_readable function has been removed;
55491         use inttostr.h instead.
55492         (human_readable, default_block_size, humblock):
55493         Use uintmax_t, not int, for block sizes.
55494         (human_readable_inexact, block_size_types): Remove.
55495         (block_size_opts): New constant.
55496         (human_options): Renamed from human_block_size, with new signature
55497         that allows block sizes up to UINTMAX_MAX.  All callers changed.
55498         * lib/human.h: Add copyright and authorship notice.
55499         Include <limits.h> and <stdbool.h> unconditionally.
55500         (PARAMS): Remove.  All uses removed.
55501         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
55502         (enum human_inexact_style): Remove tag; now a nameless enum.
55503         (human_floor, human_ceiling, human_round_to_even): Now have
55504         values 2, 0, 1 rather than -1, 1, 0.
55505         (human_group_digits, human_suppress_point_zero, human_autoscale,
55506         human_base_1024, human_SI, human_B): New constants.
55507         (human_readable_inexact, human_block_size): Remove.
55508         (human_readable): Size args are now uintmax_t, not int.
55509         (human_options): New decl.
55510
55511         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
55512         unnecessary now that we assume C89 or better.  This change
55513         imported from coreutils.
55514
55515         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55516         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
55517         in the 2003-05-30 sync from glibc.
55518
55519         .h files should stand alone, but we shouldn't include <sys/types.h>
55520         if we can get away with just <stddef.h>.
55521
55522         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
55523         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
55524         rather than <sys/types.h>, as we merely need size_t.
55525         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
55526         to get size_t.
55527         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
55528         Include <stdio.h>, to get FILE.
55529         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
55530         memcasecmp.h has included <stddef.h> and all we need is size_t.
55531         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
55532         our interface, instead of including <sys/types.h>
55533
55534 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55535
55536         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
55537         now, as glibc mktime is buggy on non-glibc systems.
55538
55539 2003-06-03  Karl Berry  <karl@gnu.org>
55540
55541         * config/config.sub: update from prep.
55542
55543 2003-06-02  Paul Eggert  <eggert@twinsun.com>
55544
55545         [from coreutils]
55546         Fix some minor time-related bugs with POSIX time arguments.
55547         Some valid time stamps were being rejected (notably -1, and
55548         time stamps before 1900 on 64-bit hosts).  And some invalid
55549         time stamps were being accepted, e.g. September 31.
55550
55551         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
55552         that we can return (time_t) -1 successfully.
55553         * lib/posixtm.c: Likewise.
55554         [HAVE_STDBOOL_H]: Include <stdbool.h>.
55555         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
55556         (t): Remove static var.
55557         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
55558         of static var.  All uses changed.
55559         (year): Do not reject years before 1900; they can occur with
55560         64-bit time_t.
55561         (posix_time_parse): Do not check for out-of-range components;
55562         that is now the caller's responsibility, since our checks were
55563         only approximations.
55564         (posixtime): Use mktime to check for out-of-range components,
55565         since it knows them exactly.
55566         If mktime returns (time_t) -1, check whether an error actually occurred
55567         by invoking localtime on -1.
55568         (main) [TEST_POSIXTIME]: Check for input data errors, and report
55569         posixtime failures better.
55570         Improve the test data (in comments only).
55571
55572 2003-06-02  Karl Berry  <karl@gnu.org>
55573
55574         * config/mkinstalldirs (version): new variable.
55575         (--version): new option.
55576         (usage): improve message.
55577
55578 2003-05-30  Karl Berry  <karl@gnu.org>
55579
55580         * lib/mktime.c: update from libc.
55581
55582 2003-05-30  Bruno Haible  <bruno@clisp.org>
55583
55584         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
55585         * config/config.rpath: Upgrade to gettext-0.12.1.
55586
55587 2003-05-30  Bruno Haible  <bruno@clisp.org>
55588
55589         * m4/gettext.m4: Upgrade to gettext-0.12.1.
55590         * m4/nls.m4: New file, from gettext-0.12.1.
55591         * m4/po.m4: New file, from gettext-0.12.1.
55592         * m4/progtest.m4: Upgrade to gettext-0.12.1.
55593
55594 2003-05-30  Bruno Haible  <bruno@clisp.org>
55595
55596         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
55597         * lib/localcharset.h: Likewise.
55598         * lib/localcharset.c: Likewise.
55599
55600 2003-05-29  Karl Berry  <karl@gnu.org>
55601
55602         * config/config.rpath: update from gettext.
55603
55604 2003-05-28  Paul Eggert  <eggert@twinsun.com>
55605
55606         Assume the headers required for C89 freestanding compilers.
55607         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
55608         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
55609         * m4/human.m4 (gl_HUMAN): Likewise.
55610         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
55611         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
55612         * m4/userspec.m4 (gl_USERSPEC): Likewise.
55613         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
55614         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55615         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
55616
55617 2003-05-28  Paul Eggert  <eggert@twinsun.com>
55618
55619         Assume the headers required for C89 freestanding compilers.
55620         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
55621         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
55622         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
55623         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
55624         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
55625         define, since <limits.h> is guaranteed to do that.
55626         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
55627         * lib/exclude.c: Include <stdbool.h> unconditionally.
55628         * lib/tempname.c: Include <stddef.h> unconditionally.
55629         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
55630         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
55631         <stddef.h> does that.
55632         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
55633         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
55634         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
55635         needed.
55636         * lib/xstrtol.c: Likewise.
55637         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
55638         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
55639
55640         * lib/addext.c (addext): Use assignment rather than cast, to avoid
55641         warnings on some platforms.
55642
55643         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55644         arbitrarily.
55645
55646 2003-05-26  Jim Meyering  <jim@meyering.net>
55647
55648         Merge in a change from coreutils:
55649         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
55650         that is guaranteed to be `no'.  Use `no_such_member' to indicate
55651         that condition, rather than `-1' which is slightly misleading.
55652         Change the name of the cache variable to have the gl_ prefix.
55653         Prompted by a patch from Richard Dawe for DJGPP.
55654
55655 2003-05-24  Karl Berry  <karl@gnu.org>
55656
55657         * config/config.guess: update from prep.
55658
55659 2003-05-22  Karl Berry  <karl@gnu.org>
55660
55661         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
55662
55663 2003-05-20  Karl Berry  <karl@gnu.org>
55664
55665         * config/config.guess: update from prep.
55666
55667 2003-05-18  Karl Berry  <karl@gnu.org>
55668
55669         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
55670         might actually be set by the user.
55671
55672         * config/depcomp, install-sh, mdate-sh: update from automake.
55673
55674 2003-05-17  Bruno Haible  <bruno@clisp.org>
55675
55676         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
55677         invalid expansion for AC_EGREP_CPP.
55678         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
55679         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55680         Suggested by Akim Demaille <akim@epita.fr> in
55681         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
55682
55683 2003-05-12  Jim Meyering  <jim@meyering.net>
55684
55685         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
55686         the space-padded-by-default conversion specifiers, %e, %k, %l.
55687
55688 2003-05-12  Bruno Haible  <bruno@clisp.org>
55689
55690         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
55691         the string is longer than 4 KB.
55692
55693 2003-05-11  Karl Berry  <karl@gnu.org>
55694
55695         * config/config.{guess,sub}: update from prep.
55696
55697 2003-05-09  Bruno Haible  <bruno@clisp.org>
55698
55699         * modules/error: Add m4/strerror_r.m4 to file list.
55700
55701 2003-05-03  Bruno Haible  <bruno@clisp.org>
55702
55703         Upgrade to Unicode-4.0.
55704         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
55705         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
55706         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
55707         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
55708         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
55709         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
55710         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
55711         Change width of U+E0100..U+E01EF from 1 to 0.
55712
55713 2003-04-25  Jim Meyering  <jim@meyering.net>
55714
55715         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
55716         of type size_t, not int.
55717
55718 2003-04-25  Bruno Haible  <bruno@clisp.org>
55719
55720         * lib/copy-file.c: Include <stddef.h>, for size_t.
55721
55722 2003-04-21  Paul Eggert  <eggert@twinsun.com>
55723
55724         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
55725         code which expansion is under static control.  Patch imported from
55726         Akim Demaille's patch to Bison; see
55727         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
55728
55729 2003-04-14  Bruno Haible  <bruno@clisp.org>
55730
55731         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
55732
55733 2003-04-11  Jim Meyering  <jim@meyering.net>
55734
55735         Merge changes from Coreutils.
55736
55737         2003-03-22  Jim Meyering  <jim@meyering.net>
55738
55739         * lib/strftime.c (widen): Cast alloca return value to proper type.
55740
55741         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
55742
55743         From GNU libc.
55744         * lib/strftime.c (my_strftime): Handle very large width
55745         specifications for numeric values correctly.  Improve checks for
55746         overflow.
55747
55748         2003-01-19  Jim Meyering  <jim@meyering.net>
55749
55750         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
55751         definitions.
55752         (nl_get_alt_digit) [! defined my_strftime]: Define.
55753         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
55754         _nl_get_alt_digit and _nl_get_walt_digit.
55755
55756         * lib/strftime.c (my_strftime): Merge in locale-related changes from
55757         libc. These changes have no effect outside of _LIBC.
55758
55759 2003-04-10  Bruno Haible  <bruno@clisp.org>
55760
55761         * modules/findprog: New file.
55762         * MODULES.html.sh (func_all_modules): Add it.
55763
55764 2003-04-10  Bruno Haible  <bruno@clisp.org>
55765
55766         * m4/findprog.m4: New file.
55767         * m4/eaccess.m4: New file.
55768
55769 2003-04-10  Bruno Haible  <bruno@clisp.org>
55770
55771         * lib/findprog.h: New file, from GNU gettext.
55772         * lib/findprog.c: New file, from GNU gettext.
55773
55774 2003-04-05  Jim Meyering  <jim@meyering.net>
55775
55776         Merge changes from Coreutils.
55777
55778         * lib/exclude.h (PARAMS): Remove definition and uses.
55779         * lib/exclude.c: Remove uses of `PARAMS'.
55780
55781         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
55782         Add test-cases for DOS filenames. Declare program_name.
55783         (main): Set up program_name.  Patch by Rich Dawe.
55784
55785         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55786         error from mntctl.
55787         Use mntctl's return value to drive the entry-processing loop, since
55788         we can't rely on the value of the vmt_length member in the last
55789         entry.  On some systems doing so could result in exhausting
55790         virtual memory.  Based in part on a patch from Mike Jetzer.
55791
55792 2003-04-04  Bruno Haible  <bruno@clisp.org>
55793
55794         * modules/linebreak: New file.
55795         * MODULES.html.sh (func_all_modules): Add it.
55796
55797 2003-04-04  Bruno Haible  <bruno@clisp.org>
55798
55799         * m4/linebreak.m4: New file.
55800
55801 2003-04-04  Bruno Haible  <bruno@clisp.org>
55802
55803         * lib/linebreak.h: New file, from GNU gettext.
55804         * lib/linebreak.c: New file, from GNU gettext with slight
55805         modifications.
55806         * lib/lbrkprop.h: New file, from GNU gettext.
55807
55808 2003-04-03  Bruno Haible  <bruno@clisp.org>
55809
55810         * modules/utf8-ucs4: New file.
55811         * modules/utf16-ucs4: New file.
55812         * modules/ucs4-utf8: New file.
55813         * modules/ucs4-utf16: New file.
55814         * MODULES.html.sh (func_all_modules): Add them.
55815
55816 2003-04-03  Bruno Haible  <bruno@clisp.org>
55817
55818         * m4/utf-ucs4.m4: New file.
55819         * m4/ucs4-utf.m4: New file.
55820
55821 2003-04-03  Bruno Haible  <bruno@clisp.org>
55822
55823         * lib/utf8-ucs4.h: New file, from GNU gettext.
55824         * lib/utf16-ucs4.h: New file, from GNU gettext.
55825         * lib/ucs4-utf8.h: New file, from GNU gettext.
55826         * lib/ucs4-utf16.h: New file, from GNU gettext.
55827
55828 2003-04-02  Bruno Haible  <bruno@clisp.org>
55829
55830         * modules/binary-io: New file.
55831         * MODULES.html.sh (func_all_modules): Add it.
55832
55833 2003-04-02  Bruno Haible  <bruno@clisp.org>
55834
55835         * lib/binary-io.h: New file, from GNU gettext.
55836
55837 2003-04-01  Bruno Haible  <bruno@clisp.org>
55838
55839         * modules/pathname: New file.
55840         * MODULES.html.sh (func_all_modules): Add it.
55841
55842 2003-04-01  Bruno Haible  <bruno@clisp.org>
55843
55844         * lib/pathname.h: New file, from GNU gettext.
55845         * lib/concatpath.c: New file, from GNU gettext.
55846
55847 2003-03-30  Bruno Haible  <bruno@clisp.org>
55848
55849         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
55850
55851 2003-03-30  Bruno Haible  <bruno@clisp.org>
55852
55853         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
55854         function chown() doesn't exist.
55855
55856 2003-03-28  Bruno Haible  <bruno@clisp.org>
55857
55858         * modules/copy-file: New file.
55859         * MODULES.html.sh (func_all_modules): Add it.
55860
55861 2003-03-28  Bruno Haible  <bruno@clisp.org>
55862
55863         * m4/copy-file.m4: New file.
55864
55865 2003-03-28  Bruno Haible  <bruno@clisp.org>
55866
55867         * lib/copy-file.h: New file, from GNU gettext.
55868         * lib/copy-file.c: New file, from GNU gettext.
55869
55870 2003-03-18  Jim Meyering  <jim@meyering.net>
55871
55872         * lib/quote.c (quote_n): Fix typo in comment.
55873
55874 2003-03-18  Bruno Haible  <bruno@clisp.org>
55875
55876         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
55877         checking.
55878         * m4/onceonly_2_57.m4: Likewise.
55879
55880 2003-03-17  Bruno Haible  <bruno@clisp.org>
55881
55882         * m4/onceonly.m4: Require autoconf 2.54 or newer.
55883         (m4_quote): Remove macro.
55884         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
55885
55886 2003-03-14  Jim Meyering  <jim@meyering.net>
55887
55888         Merge changes from Coreutils.
55889         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
55890         to be const, in order to avoid warnings.
55891         (obstack_room): Likewise.
55892         (obstack_empty_p): Likewise.
55893
55894 2003-03-14  Bruno Haible  <bruno@clisp.org>
55895
55896         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
55897         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
55898
55899 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55900
55901         Merge changes from Bison.
55902         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
55903         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
55904         when compiling Bison 1.875's `bitset bset = obstack_alloc
55905         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
55906         * lib/hash.c: Include <stdbool.h> unconditionally.
55907
55908 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55909
55910         * m4/onceonly.m4 (m4_quote): New macro.
55911         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
55912         Quote AC_FOREACH variable-expansions properly.
55913
55914 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55915
55916         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
55917
55918 2003-03-09  Paul Eggert  <eggert@twinsun.com>
55919
55920         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
55921         Reported by Bruce Becker; see:
55922         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
55923
55924 2003-03-03  Paul Eggert  <eggert@twinsun.com>
55925             Bruno Haible  <bruno@clisp.org>
55926
55927         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
55928         Reported by John Hughes, see
55929         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
55930
55931 2003-02-20  Bruno Haible  <bruno@clisp.org>
55932
55933         * MODULES.html.sh (func_all_modules): Add poll.
55934
55935 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55936
55937         * modules/poll: New file.
55938
55939 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55940
55941         * lib/poll_.h: New file.
55942         * lib/poll.c: New file.
55943
55944 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55945
55946         * m4/poll.m4: New file.
55947
55948 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55949
55950         * modules/mathl: New file.
55951
55952 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55953
55954         * lib/mathl.h: New file.
55955         * lib/acosl.c: New file.
55956         * lib/asinl.c: New file.
55957         * lib/atanl.c: New file.
55958         * lib/ceill.c: New file.
55959         * lib/cosl.c: New file.
55960         * lib/expl.c: New file.
55961         * lib/floorl.c: New file.
55962         * lib/frexpl.c: New file.
55963         * lib/ldexpl.c: New file.
55964         * lib/logl.c: New file.
55965         * lib/sincosl.c: New file.
55966         * lib/sinl.c: New file.
55967         * lib/sqrtl.c: New file.
55968         * lib/tanl.c: New file.
55969         * lib/trigl.c: New file.
55970         * lib/trigl.h: New file.
55971
55972 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55973
55974         * m4/mathl.m4: New file.
55975
55976 2003-02-18  Bruno Haible  <bruno@clisp.org>
55977
55978         * MODULES.html.sh (func_all_modules): Add mathl.
55979
55980 2003-02-17  Bruno Haible  <bruno@clisp.org>
55981
55982         * modules/mkdtemp: New module.
55983         * MODULES.html.sh (func_all_modules): Add it.
55984
55985 2003-02-17  Bruno Haible  <bruno@clisp.org>
55986
55987         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
55988
55989 2003-02-17  Bruno Haible  <bruno@clisp.org>
55990
55991         * lib/mkdtemp.h: New file, from GNU gettext.
55992         * lib/mkdtemp.c: New file, from GNU gettext.
55993
55994 2003-02-02  Jim Meyering  <jim@meyering.net>
55995
55996         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
55997         e.g. glibc-2.2.93.
55998
55999 2003-01-31  Bruno Haible  <bruno@clisp.org>
56000
56001         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
56002         'rpl_rename'.
56003         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
56004         'rpl_strnlen'.
56005         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
56006         'rpl_strtod'.
56007         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
56008         'rpl_utime'.
56009
56010 2003-01-31  Bruno Haible  <bruno@clisp.org>
56011
56012         * lib/rename.c: #undef rename before defining rpl_rename.
56013         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
56014
56015 2003-01-30  Bruno Haible  <bruno@clisp.org>
56016
56017         * modules/vasnprintf, modules/vasprintf: New modules.
56018         * MODULES.html.sh (func_all_modules): Add them.
56019
56020 2003-01-30  Bruno Haible  <bruno@clisp.org>
56021
56022         * m4/signed.m4: New file, from GNU gettext.
56023         * m4/longdouble.m4: New file, from GNU gettext.
56024         * m4/wchar_t.m4: New file, from GNU gettext.
56025         * m4/wint_t.m4: New file, from GNU gettext.
56026         * m4/vasnprintf.m4: New file.
56027         * m4/vasprintf.m4: New file.
56028
56029 2003-01-30  Bruno Haible  <bruno@clisp.org>
56030
56031         * lib/printf-args.h: New file, from GNU gettext.
56032         * lib/printf-args.c: New file, from GNU gettext.
56033         * lib/printf-parse.h: New file, from GNU gettext.
56034         * lib/printf-parse.c: New file, from GNU gettext.
56035         * lib/vasnprintf.h: New file, from GNU gettext.
56036         * lib/vasnprintf.c: New file, from GNU gettext.
56037         * lib/asnprintf.c: New file, from GNU gettext.
56038         * lib/vasprintf.h: New file, from GNU gettext with modifications.
56039         * lib/vasprintf.c: New file, from GNU gettext.
56040         * lib/asprintf.c: New file, from GNU gettext.
56041
56042 2003-01-29  Bruno Haible  <bruno@clisp.org>
56043
56044         * modules/stpncpy: New module.
56045         * MODULES.html.sh (func_all_modules): Add it.
56046
56047 2003-01-29  Bruno Haible  <bruno@clisp.org>
56048
56049         * m4/stpncpy.m4: New file.
56050
56051 2003-01-29  Bruno Haible  <bruno@clisp.org>
56052
56053         * lib/stpncpy.h: New file, from GNU gettext with modifications.
56054         * lib/stpncpy.c: New file, from GNU gettext with modifications.
56055
56056 2003-01-28  Bruno Haible  <bruno@clisp.org>
56057
56058         * modules/c-ctype: New module.
56059         * MODULES.html.sh (func_all_modules): Add it.
56060
56061 2003-01-28  Bruno Haible  <bruno@clisp.org>
56062
56063         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
56064         Paul Eggert.
56065         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
56066         Paul Eggert.
56067
56068 2003-01-27  Bruno Haible  <bruno@clisp.org>
56069
56070         * modules/xsetenv: New module.
56071         * MODULES.html.sh (func_all_modules): Add it.
56072
56073 2003-01-27  Bruno Haible  <bruno@clisp.org>
56074
56075         * lib/xsetenv.h: New file, from GNU gettext.
56076         * lib/xsetenv.c: New file, from GNU gettext.
56077
56078 2003-01-23  Jim Meyering  <jim@meyering.net>
56079
56080         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
56081         from working on systems without dirfd (at least Irix and OSF1/Tru64).
56082
56083 2003-01-23  Bruno Haible  <bruno@clisp.org>
56084
56085         * modules/minmax: New module.
56086         * MODULES.html.sh (func_all_modules): Add it.
56087
56088 2003-01-23  Bruno Haible  <bruno@clisp.org>
56089
56090         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
56091         Eggert.
56092
56093 2003-01-22  Bruno Haible  <bruno@clisp.org>
56094
56095         * modules/exit: New module.
56096         * MODULES.html.sh (func_all_modules): Add it.
56097
56098 2003-01-22  Bruno Haible  <bruno@clisp.org>
56099
56100         * lib/exit.h: New file, from GNU gettext.
56101
56102 2003-01-19  Bruno Haible  <bruno@clisp.org>
56103
56104         * gnulib-tool: Recognize option --extract-maintainer.
56105         (func_get_maintainer): New function.
56106         * modules/*: Add Maintainer entry.
56107
56108 2003-01-16  Jim Meyering  <jim@meyering.net>
56109
56110         * m4/regex.m4: The `regex' struct is both input and output.
56111         Initialize it before each use.  Patch by Tim Waugh.
56112
56113 2003-01-16  Bruno Haible  <bruno@clisp.org>
56114
56115         * MODULES.html.sh: Add a table of contents. Add the module name as
56116         leftmost column. Add hyperlinks.
56117
56118 2003-01-15  Bruno Haible  <bruno@clisp.org>
56119
56120         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
56121
56122 2003-01-15  Bruno Haible  <bruno@clisp.org>
56123
56124         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
56125         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
56126         suffix.
56127
56128 2003-01-15  Bruno Haible  <bruno@clisp.org>
56129
56130         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
56131
56132 2003-01-15  Bruno Haible  <bruno@clisp.org>
56133
56134         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
56135         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
56136
56137 2003-01-14  Jim Meyering  <jim@meyering.net>
56138
56139         * lib/same.c (same_name): Tweak a comment.
56140
56141 2003-01-14  Bruno Haible  <bruno@clisp.org>
56142
56143         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
56144         when a string comparison is sufficient.
56145
56146 2003-01-14  Bruno Haible  <bruno@clisp.org>
56147
56148         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
56149         'unsigned int'.
56150
56151 2003-01-14  Bruno Haible  <bruno@clisp.org>
56152
56153         * lib/hash-pjw.c: Add comment about low quality of this function.
56154
56155 2003-01-13  Bruno Haible  <bruno@clisp.org>
56156
56157         * modules/stpcpy: Distribute lib/stpcpy.h.
56158         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
56159
56160 2003-01-13  Bruno Haible  <bruno@clisp.org>
56161
56162         * modules/*: Add a description.
56163         * modules/strpbrk: Fix Makefile.am snippet.
56164         * modules/strtoimax: Fix dependencies.
56165         * modules/strtoumax: Likewise.
56166
56167 2003-01-13  Bruno Haible  <bruno@clisp.org>
56168
56169         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
56170         * modules/alloca (Makefile.am): All object files depend on alloca.h.
56171         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
56172
56173 2003-01-13  Bruno Haible  <bruno@clisp.org>
56174
56175         * gnulib-tool (func_create_testdir): Store config/* files in the main
56176         directory.
56177         * config.rpath: Move to ...
56178         * config/config.rpath: ... here.
56179         * modules/gettext: Contains config/config.rpath, not config.rpath.
56180         * modules/iconv: Likewise.
56181
56182 2003-01-12  Paul Eggert  <eggert@twinsun.com>
56183
56184         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56185         to avoid collisions with libcurses and libreadline.
56186
56187         * m4/getstr.m4: Remove.
56188         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
56189
56190 2003-01-12  Paul Eggert  <eggert@twinsun.com>
56191
56192         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56193         to avoid collisions with libcurses and libreadline.
56194
56195         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
56196         * lib/getstr.h, getstr.c: Remove.
56197         * lib/getline.c: Include "getline.h", to check interface.
56198         Move body of old getstr.c here: this defines MIN_CHUNK and
56199         declares getdelim2, which is renamed from getstr.
56200         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
56201
56202         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
56203         All uses changed.
56204         * lib/linebuffer.h: Likewise.
56205         (readline): Remove backward-compatibility macro.
56206
56207 2003-01-12  Paul Eggert  <eggert@twinsun.com>
56208
56209         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
56210         to avoid collisions with libcurses and libreadline.
56211         * getstr: Remove.
56212         * MODULES.html.sh: Remove getstr.
56213         * modules/getline: Depend on unlocked-io, not getstr.
56214
56215 2003-01-12  Jim Meyering  <jim@meyering.net>
56216
56217         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
56218
56219 2003-01-10  Bruno Haible  <bruno@clisp.org>
56220
56221         * modules/alloca: Change Makefile.am requirements. Simplify Include
56222         requirements. Add lib/alloca_.h to file list.
56223
56224 2003-01-10  Bruno Haible  <bruno@clisp.org>
56225
56226         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
56227
56228 2003-01-10  Bruno Haible  <bruno@clisp.org>
56229
56230         * lib/alloca_.h: New file.
56231         * lib/getdate.y: Unconditionally include alloca.h.
56232         * lib/makepath.c: Likewise.
56233         * lib/setenv.c: Likewise.
56234         * lib/userspec.c: Likewise.
56235
56236 2003-01-09  Karl Berry  <karl@gnu.org>
56237
56238         * MODULES.html.sh: include `dirname $0` in PATH, to find
56239         gnulib-tool.
56240
56241 2003-01-09  Bruno Haible  <bruno@clisp.org>
56242
56243         * modules/stdbool: Change configure.ac, Makefile.am requirements.
56244         Simplify Include requirements. Add lib/stdbool.h.in to file list.
56245
56246 2003-01-09  Bruno Haible  <bruno@clisp.org>
56247
56248         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
56249
56250 2003-01-09  Bruno Haible  <bruno@clisp.org>
56251
56252         * lib/stdbool.h.in: New file.
56253
56254 2003-01-09  Bruno Haible  <bruno@clisp.org>
56255
56256         * gnulib-tool (func_all_modules): Ignore files ending in ~.
56257         * MODULES.html.sh: Likewise.
56258
56259 2003-01-08  Jim Meyering  <jim@meyering.net>
56260
56261         * lib/full-write.c: Undefine and define-away `const' after inclusion
56262         of errno.h, not before.  Suggestion from Bruno Haible.
56263
56264 2003-01-08  Bruno Haible  <bruno@clisp.org>
56265
56266         * modules/full-read: Depend on full-write.
56267
56268 2003-01-08  Bruno Haible  <bruno@clisp.org>
56269
56270         * lib/safe-read.c: Include specification header first, to ensure its
56271         selfcontainedness.
56272         * lib/full-write.c: Likewise.
56273
56274 2003-01-07  Jim Meyering  <jim@meyering.net>
56275
56276         * lib/full-write.c: Rework so that it may serve to define full_read,
56277         too.
56278         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
56279
56280 2003-01-07  Bruno Haible  <bruno@clisp.org>
56281
56282         * lib/strtoimax.c: Include <stdint.h> as an alternative to
56283         <inttypes.h>.
56284         * lib/xstrtol.h: Likewise.
56285         * lib/xstrtoimax.c: Likewise.
56286         * lib/xstrtoumax.c: Likewise.
56287         * lib/human.h: Likewise.
56288
56289         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
56290         on systems that have <inttypes.h> but not <stdint.h>.
56291
56292 2003-01-07  Bruno Haible  <bruno@clisp.org>
56293
56294         * MODULES.html.sh: Add copyright notice.
56295         (missed_files): Omit CVS directory entries.
56296         (func_module): Make it work with sed-3.02.
56297         * MODULES.txt: Remove file.
56298
56299 2003-01-06  Jim Meyering  <jim@meyering.net>
56300
56301         * lib/version-etc.c: Update year in translatable copyright string.
56302
56303 2003-01-03  Karl Berry  <karl@gnu.org>
56304
56305         * config/config.{guess,sub}: update from prep.
56306
56307 2003-01-02  Karl Berry  <karl@gnu.org>
56308
56309         * doc/COPYING.DOC: belatedly updated to 1.2.
56310
56311 2003-01-01  Karl Berry  <karl@gnu.org>
56312
56313         * gnulib-tool (func_verify_module): report module name $module in
56314         error message, not $1.
56315         * gnulib-tool (create-testdir): don't complain if destdir couldn't
56316         be created, only if it doesn't exist.
56317         * gnulib-tool (last_checkin_date): don't expand the $Date here.
56318
56319 2002-12-31  Paul Eggert  <eggert@twinsun.com>
56320
56321         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
56322
56323 2002-12-31  Paul Eggert  <eggert@twinsun.com>
56324
56325         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
56326         memcmp if strcoll doesn't work.
56327
56328 2002-12-31  Bruno Haible  <bruno@clisp.org>
56329
56330         * lib/utime.c (utime_null): No need to call ftruncate if the file was
56331         nonempty.
56332
56333 2002-12-31  Bruno Haible  <bruno@clisp.org>
56334
56335         * lib/memcoll.c (STRCOLL): New macro.
56336         (memcoll): Use it.
56337
56338 2002-12-31  Bruno Haible  <bruno@clisp.org>
56339
56340         * lib/localcharset.h: New file.
56341         * lib/localcharset.c: Include it.
56342         * lib/unicodeio.c: Likewise.
56343
56344 2002-12-31  Bruno Haible  <bruno@clisp.org>
56345
56346         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
56347         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
56348
56349 2002-12-31  Bruno Haible  <bruno@clisp.org>
56350
56351         * lib/getline.h: Include <stddef.h>, for size_t.
56352
56353         * lib/unicodeio.h: Include <stddef.h>, for size_t.
56354         * lib/unicodeio.c: Don't include <stddef.h>.
56355
56356 2002-12-31  Bruno Haible  <bruno@clisp.org>
56357
56358         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
56359         HAVE_TM_ZONE.
56360
56361 2002-12-24  Karl Berry  <karl@gnu.org>
56362
56363         * config/config.guess: update from prep.
56364
56365 2002-12-24  Bruno Haible  <bruno@clisp.org>
56366
56367         General infrasructure.
56368         * m4/README: Rewritten.
56369         * m4/onceonly.m4: New file.
56370         * m4/onceonly_2_57.m4: New file.
56371
56372         Module atexit.
56373         * m4/atexit.m4: New file.
56374
56375         Module strtod.
56376         * m4/strtod.m4: New file.
56377
56378         Module strtol.
56379         * m4/strtol.m4: New file.
56380
56381         Module strtoul.
56382         * m4/strtoul.m4: New file.
56383
56384         Module memchr.
56385         * m4/memchr.m4: New file.
56386
56387         Module memcmp.
56388         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
56389         (jm_FUNC_MEMCMP): Invoke it.
56390
56391         Module memcpy.
56392         * m4/memcpy.m4: New file.
56393
56394         Module memmove.
56395         * m4/memmove.m4: New file.
56396
56397         Module memset.
56398         * m4/memset.m4: New file.
56399
56400         Module strcspn.
56401         * m4/strcspn.m4: New file.
56402
56403         Module strpbrk.
56404         * m4/strpbrk.m4: New file.
56405
56406         Module strstr.
56407         * m4/strstr.m4: New file.
56408
56409         Module strerror.
56410         * m4/strerror.m4: New file.
56411
56412         Module mktime.
56413         * m4/mktime.m4: Renamed from jm-mktime.m4.
56414         (gl_PREREQ_MKTIME): New macro.
56415         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
56416
56417         Module malloc.
56418         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
56419         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
56420         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
56421
56422         Module realloc.
56423         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
56424         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
56425         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
56426
56427         Module strftime.
56428         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
56429         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
56430         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
56431         gl_TM_GMTOFF.
56432         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
56433
56434         Module xalloc.
56435         * m4/xalloc.m4: New file.
56436
56437         Module alloca.
56438         * m4/alloca.m4: New file.
56439
56440         Module putenv.
56441         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
56442         (jm_FUNC_PUTENV): Invoke it.
56443
56444         Module setenv.
56445         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
56446         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
56447         when invoked twice.
56448         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
56449         gt_FUNC_SETENV.
56450
56451         Module memrchr.
56452         * m4/memrchr.m4: New file.
56453
56454         Module stpcpy.
56455         * m4/stpcpy.m4: New file.
56456
56457         Module strcase.
56458         * m4/strcase.m4: New file.
56459
56460         Module strdup.
56461         * m4/strdup.m4: New file.
56462
56463         Module strnlen.
56464         * m4/strnlen.m4: New file.
56465
56466         Module strndup.
56467         * m4/strndup.m4: New file.
56468
56469         Module xstrtod.
56470         * m4/xstrtod.m4: New file.
56471
56472         Module xstrtol.
56473         * m4/xstrtol.m4: New file.
56474
56475         Module getdate.
56476         * m4/getdate.m4: New file.
56477
56478         Module unlocked-io.
56479         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
56480         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
56481         * m4/jm-glibc-io.m4n: Remove file.
56482
56483         Module long-options.
56484         * m4/long-options.m4: New file.
56485
56486         Module md5.
56487         * m4/md5.m4: New file.
56488
56489         Module sha.
56490         * m4/sha.m4: New file.
56491
56492         Module getstr.
56493         * m4/getstr.m4: New file.
56494
56495         Module getline.
56496         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
56497         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
56498         <sys/types.h>, for size_t. Use the function name gnu_getline, not
56499         simply getline. Infoke gl_PREREQ_GETLINE.
56500
56501         Module obstack.
56502         * m4/obstack.m4: New file.
56503
56504         Module hash.
56505         * m4/hash.m4: New file.
56506
56507         Module readtokens.
56508         * m4/readtokens.m4: New file.
56509
56510         Module strverscmp.
56511         * m4/strverscmp.m4: New file.
56512
56513         Module stdbool.
56514         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
56515         OSF/1.
56516
56517         Module strtoll.
56518         * m4/strtoll.m4: New file.
56519
56520         Module strtoull.
56521         * m4/strtoull.m4: New file.
56522
56523         Module strtoimax.
56524         * m4/strtoimax.m4: New file.
56525
56526         Module strtoumax.
56527         * m4/strtoumax.m4: New file.
56528
56529         Module xstrtoimax.
56530         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
56531         jm_AC_PREREQ_XSTRTOIMAX.
56532         Moved the strtol prerequisites to strtol.m4.
56533         Moved the strtoll prerequisites to strtoll.m4.
56534         Moved the strtoimax prerequisites to strtoimax.m4.
56535
56536         Module xstrtoumax.
56537         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
56538         jm_AC_PREREQ_XSTRTOUMAX.
56539         Moved the strtoul prerequisites to strtoul.m4.
56540         Moved the strtoull prerequisites to strtoull.m4.
56541         Moved the strtoumax prerequisites to strtoumax.m4.
56542
56543         Module chown.
56544         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
56545         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
56546
56547         Module dup2.
56548         * m4/dup2.m4: New file.
56549
56550         Module ftruncate.
56551         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
56552         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
56553
56554         Module getgroups.
56555         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
56556         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
56557
56558         Module gettimeofday.
56559         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
56560         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
56561         gl_PREREQ_GETTIMEOFDAY.
56562
56563         Module mkdir.
56564         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
56565         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
56566
56567         Module mkstemp.
56568         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
56569         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
56570         jm_AC_TYPE_UINTMAX_T.
56571         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
56572
56573         Module stat.
56574         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
56575         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
56576
56577         Module lstat.
56578         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
56579         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
56580
56581         Module timespec.
56582         * m4/timespec.m4 (gl_TIMESPEC): New macro.
56583         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
56584         * m4/st_mtim.m4: Indentation.
56585
56586         Module nanosleep.
56587         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
56588         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
56589         gl_PREREQ_NANOSLEEP.
56590
56591         Module regex.
56592         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
56593         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
56594         (gl_REGEX): New macro.
56595
56596         Module rename.
56597         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
56598         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
56599
56600         Module rmdir.
56601         * m4/rmdir.m4: New file.
56602
56603         Module utime.
56604         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
56605         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
56606         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
56607
56608         Module dirname.
56609         * m4/dirname.m4: New file.
56610
56611         Module getopt.
56612         * m4/getopt.m4: New file.
56613
56614         Module unistd-safer.
56615         * m4/unistd-safer.m4: New file.
56616
56617         Module fnmatch.
56618         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
56619         declaration.
56620         (gl_PREREQ_FNMATCH_EXTRA): New macro.
56621         (gl_FUNC_FNMATCH_POSIX): New macro.
56622         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
56623         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
56624         simply fnmatch.
56625
56626         Module exclude.
56627         * m4/exclude.m4: New file.
56628
56629         Module human.
56630         * m4/human.m4: New file.
56631
56632         Module acl.
56633         * m4/acl.m4: Nop.
56634
56635         Module backupfile.
56636         * m4/backupfile.m4: New file.
56637         * m4/d-ino.m4: Indentation.
56638
56639         Module fsusage.
56640         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
56641         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
56642         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
56643
56644         Module dirfd.
56645         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
56646         requirements.
56647
56648         Module euidaccess.
56649         * m4/euidaccess.m4: New file.
56650
56651         Module file-type.
56652         * m4/file-type.m4: New file.
56653
56654         Module fileblocks.
56655         * m4/fileblocks.m4: New file.
56656
56657         Module filemode.
56658         * m4/filemode.m4: New file.
56659
56660         Module isdir.
56661         * m4/isdir.m4: New file.
56662
56663         Module lchown.
56664         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
56665         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
56666
56667         Module makepath.
56668         * m4/makepath.m4: New file.
56669
56670         Module modechange.
56671         * m4/modechange.m4: New file.
56672
56673         Module mountlist.
56674         * m4/mountlist.m4: New file.
56675         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
56676         Indentation.
56677
56678         Module path-concat.
56679         * m4/path-concat.m4: New file.
56680
56681         Module pathmax.
56682         * m4/pathmax.m4: New file.
56683
56684         Module same.
56685         * m4/same.m4: New file.
56686
56687         Module save-cwd.
56688         * m4/save-cwd.m4: New file.
56689
56690         Module savedir.
56691         * m4/savedir.m4: New file.
56692
56693         Module xgetcwd.
56694         * m4/xgetcwd.m4: New file.
56695         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
56696
56697         Module xreadlink.
56698         * m4/xreadlink.m4: New file.
56699
56700         Module safe-read.
56701         * m4/safe-read.m4: New file.
56702
56703         Module safe-write.
56704         * m4/safe-write.m4: New file.
56705
56706         Module closeout.
56707         * m4/closeout.m4: New file.
56708
56709         Module stdio-safer.
56710         * m4/stdio-safer.m4: New file.
56711
56712         Module getpass.
56713         * m4/getpass.m4: New file.
56714
56715         Module getugroups.
56716         * m4/getugroups.m4: New file.
56717
56718         Module group-member.
56719         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
56720         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
56721
56722         Module idcache.
56723         * m4/idcache.m4: New file.
56724
56725         Module userspec.
56726         * m4/userspec.m4: New file.
56727
56728         Module gettime.
56729         * m4/clock_time.m4: New file.
56730         * m4/gettime.m4: New file.
56731
56732         Module settime.
56733         * m4/settime.m4: New file.
56734
56735         Module posixtm.
56736         * m4/posixtm.m4: New file.
56737
56738         Module gethostname.
56739         * m4/gethostname.m4: New file.
56740
56741         Module canon-host.
56742         * m4/canon-host.m4: New file.
56743
56744         Module gettext.
56745         * m4/codeset.m4: New file, from gettext-0.11.5.
56746         * m4/gettext.m4: New file, from gettext-0.11.5.
56747         * m4/glibc21.m4: New file, from gettext-0.11.5.
56748         * m4/iconv.m4: New file, from gettext-0.11.5.
56749         * m4/intdiv0.m4: New file, from gettext-0.11.5.
56750         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
56751         * m4/inttypes.m4: New file, from gettext-0.11.5.
56752         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
56753         * m4/isc-posix.m4: New file, from gettext-0.11.5.
56754         * m4/lcmessage.m4: New file, from gettext-0.11.5.
56755         * m4/lib-ld.m4: New file, from gettext-0.11.5.
56756         * m4/lib-link.m4: New file, from gettext-0.11.5.
56757         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
56758         * m4/progtest.m4: New file, from gettext-0.11.5.
56759         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
56760         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
56761         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
56762
56763         Module localcharset.
56764         * m4/localcharset.m4: New file.
56765
56766         Module hard-locale.
56767         * m4/hard-locale.m4: New file.
56768
56769         Module mbswidth.
56770         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
56771         onceonly macros.
56772         * m4/mbrtowc.m4: Add comment.
56773
56774         Module memcasecmp.
56775         * m4/memcasecmp.m4: New file.
56776
56777         Module memcoll.
56778         * m4/memcoll.m4: New file.
56779
56780         Module unicodeio.
56781         * m4/unicodeio.m4: New file.
56782
56783         Module rpmatch.
56784         * m4/rpmatch.m4: New file.
56785
56786         Module yesno.
56787         * m4/yesno.m4: New file.
56788
56789         Module exitfail.
56790         * m4/exitfail.m4: New file.
56791
56792         Module c-stack.
56793         * m4/c-stack.m4 (gl_C_STACK): New macro.
56794         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
56795
56796         Module error.
56797         * m4/error.m4 (gl_ERROR): New macro.
56798         (jm_PREREQ_ERROR): Use onceonly macros.
56799
56800         Module fatal.
56801         * m4/fatal.m4: New file.
56802
56803         Module getloadavg.
56804         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
56805         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
56806
56807         Module getpagesize.
56808         * m4/getpagesize.m4: New file.
56809
56810         Module getusershell.
56811         * m4/getusershell.m4: New file.
56812
56813         Module physmem.
56814         * m4/physmem.m4: New file.
56815
56816         Module posixver.
56817         * m4/posixver.m4: New file.
56818
56819         Module quotearg.
56820         * m4/quotearg.m4: New file.
56821
56822         Module quote.
56823         * m4/quote.m4: New file.
56824
56825         Module readutmp.
56826         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
56827
56828         Module sig2str.
56829         * m4/sig2str.m4: New file.
56830
56831         Other.
56832         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
56833         ulonglong.m4.
56834         * m4/intmax_t.m4: New file.
56835         * m4/d-type.m4: Indentation.
56836         * m4/jm-macros.m4: Update.
56837         * m4/prereq.m4 (jm_PREREQ): Update.
56838         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
56839         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
56840         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
56841         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
56842         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
56843         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
56844         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
56845         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
56846         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
56847         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
56848         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
56849         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
56850         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
56851         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
56852         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
56853         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
56854         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
56855         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
56856         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
56857
56858 2002-12-24  Bruno Haible  <bruno@clisp.org>
56859
56860         * MODULES.txt: Update according to m4/ changes.
56861
56862         Module gettext.
56863         * config.rpath: New file, from gettext-0.11.5.
56864
56865         * modules/*: New module descriptions.
56866         * gnulib-tool: New file.
56867         * MODULES.html.sh: New file.
56868
56869 2002-12-21  Karl Berry  <karl@gnu.org>
56870
56871         * doc/fdl.texi: update to version 1.2.
56872
56873 2002-12-19  Karl Berry  <karl@gnu.org>
56874
56875         * config/config.guess: update from prep.
56876
56877 2002-12-18  Bruno Haible  <bruno@clisp.org>
56878
56879         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
56880         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
56881
56882 2002-12-17  Bruno Haible  <bruno@clisp.org>
56883
56884         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
56885         stdlib.h, string.h.
56886
56887 2002-12-17  Bruno Haible  <bruno@clisp.org>
56888
56889         * lib/canon-host.c (strdup): Remove unused declaration.
56890
56891         * lib/fsusage.c: Include full_read.h.
56892         (get_fs_usage): Use full_read instead of safe_read.
56893
56894         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
56895
56896 2002-12-12  Karl Berry  <karl@gnu.org>
56897
56898         * config/config.guess: update from prep.
56899
56900 2002-12-11  Bruno Haible  <bruno@clisp.org>
56901
56902         * m4/setenv.m4: New file, from gettext-0.11.5.
56903
56904 2002-12-11  Bruno Haible  <bruno@clisp.org>
56905
56906         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
56907         not unsetenv().
56908         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
56909         modifications:
56910
56911         2002-12-11  Bruno Haible  <bruno@clisp.org>
56912
56913                 * setenv.c (alloca): Fall back to malloc.
56914                 (freea): New macro.
56915                 (setenv): Use freea() to free memory allocated with alloca().
56916
56917         2002-11-13  Bruno Haible  <bruno@clisp.org>
56918
56919                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
56920                 function declarations.
56921                 * unsetenv.c (unsetenv): Likewise.
56922
56923         2002-03-04  Bruno Haible  <bruno@clisp.org>
56924
56925                 Portability to AIX 4.3.3.
56926                 * unsetenv.c: New file, extracted from setenv.c.
56927                 * setenv.c: Move the unsetenv() function to unsetenv.c.
56928
56929         2001-12-20  Bruno Haible  <bruno@clisp.org>
56930
56931                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
56932                 use malloc instead. For SunOS 4.
56933
56934         2001-12-11  Bruno Haible  <bruno@clisp.org>
56935
56936                 * setenv.c: Declare alloca.
56937                 (compar_fn_t): New typedef.
56938                 (KNOWN_VALUE, STORE_VALUE): Use it.
56939
56940         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
56941         setenv.h.
56942
56943 2002-12-10  Paul Eggert  <eggert@twinsun.com>
56944
56945         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
56946         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
56947         Choose values that are less likely to collide with system fnmatch
56948         options.
56949         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
56950         defined (e.g., a pure POSIX system).
56951         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
56952         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
56953
56954 2002-12-06  Paul Eggert  <eggert@twinsun.com>
56955
56956         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
56957         a pain in practice to deal with generated m4 files.  This change
56958         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
56959
56960         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
56961         and jm-glibc-io.m4, as they are no longer a special case.
56962         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
56963         kludge and the auto-generation stuff.  Check only whether the
56964         functions are declared, not whether they exist, since older hosts
56965         that don't declare the functions can't use the optimization anyway.
56966
56967 2002-12-06  Jim Meyering  <jim@meyering.net>
56968
56969         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
56970
56971         Merge in changes from libc's misc/error.c, in preparation
56972         for the merge of gnulib's changes back into libc.
56973
56974         * lib/error.c (_): Define only if not already defined.
56975         Move definition to follow all #include directives.
56976         Include unlocked-io.h only if !_LIBC.
56977         [_LIBC]: Include <libio/libioP.h>.
56978         [USE_IN_LIBIO]: Include <libio/iolibio.h>
56979         (fflush): Tweak definition to use INTUSE.
56980         (putc): Define.
56981
56982 2002-12-05  Paul Eggert  <eggert@twinsun.com>
56983
56984         * lib/alloca.c [defined emacs]: Include "lisp.h".
56985         (xalloc_die) [defined emacs]: New macro.
56986         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
56987         [! defined emacs]: Include <xalloc.h>.
56988         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
56989         (pointer): Typedef to POINTER_TYPE *.
56990         (malloc): Remove decl; we now always use xmalloc.
56991         (alloca): Use old-style definition, since Emacs needs this.
56992         Check for arithmetic overflow when computing combined size.
56993
56994 2002-12-04  Paul Eggert  <eggert@twinsun.com>
56995
56996         Do not generate unlocked-io.h automatically, since it's easier to
56997         maintain it by hand.
56998
56999         * lib/unlocked-io.h: New file, from GNU diffutils,
57000         but with proper copyright notice and attribution.
57001         * lib/gen-uio: Remove.
57002         * lib/Makefile.am: Add copyright notice.
57003         (libfetish_a_SOURCES): Add unlocked-io.h.
57004         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
57005         (DISTCLEANFILES, io_functions): Remove macros.
57006         (EXTRA_DIST): Remove gen_uio.
57007         (unlocked-io.h): Remove rule.
57008
57009 2002-12-04  Jim Meyering  <jim@meyering.net>
57010
57011         Reflect the fact that stat.c and lstat.c are no longer generated.
57012         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
57013         (DISTCLEANFILES): Likewise.
57014         (EXTRA_DIST): Likewise.
57015         (all_local): Don't depend on stat.c or lstat.c.
57016         (stat.c, lstat.c): Remove rules.
57017         (EXTRA_DIST): Remove xstat.in.
57018
57019         * lib/xstat.in: Remove file.  Contents moved into stat.c.
57020         * lib/stat.c: New file.  Contents mostly from xstat.in.
57021         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
57022         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
57023
57024         * lib/safe-read.c: Rework so that it may serve to define safe_write,
57025         too.
57026         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
57027
57028 2002-12-03  Jim Meyering  <jim@meyering.net>
57029
57030         * lib/safe-read.c, safe-write.c: Change variable names and comments,
57031         but not semantics, to minimize the differences between these two files.
57032         (safe_read): Change comment to mention SAFE_READ_ERROR.
57033
57034         * lib/safe-read.c (IS_EINTR): Define.
57035         (safe_read): Use IS_EINTR in place of in-function cpp directives.
57036
57037 2002-12-02  Jim Meyering  <jim@meyering.net>
57038
57039         * lib/safe-read.c (EINTR): Define.
57040         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
57041         (INT_MAX): Provide fallback.
57042         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
57043
57044         * lib/safe-read.h (SAFE_READ_ERROR): Define.
57045
57046 2002-12-02  Bruno Haible  <bruno@clisp.org>
57047
57048         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
57049         Define, taken from safe-read.c.
57050         (INT_MAX): Provide fallback.
57051         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
57052         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
57053
57054         * lib/safe-read.c (EINTR): Remove definition.
57055         (safe_read): Don't use EINTR if it is absent.
57056
57057 2002-12-01  Jim Meyering  <jim@meyering.net>
57058
57059         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
57060         zero.
57061         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
57062
57063 2002-11-27  Paul Eggert  <eggert@twinsun.com>
57064
57065         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
57066         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
57067         with `if (! (value < limit)) abort ();', for readability.
57068
57069 2002-11-26  Karl Berry  <karl@gnu.org>
57070
57071         * lib/strdup.c: copy from libc again, with jim's ok.
57072         * lib/.cppi-disable: re-add strdup.c
57073
57074 2002-11-25  Karl Berry  <karl@gnu.org>
57075
57076         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
57077         instead of "strtol.c".
57078
57079 2002-11-25  Karl Berry  <karl@gnu.org>
57080
57081         * config/install-sh: update from automake for variable quoting, $0 in
57082         error msgs, etc.
57083
57084         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
57085         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
57086         entry.
57087
57088 2002-11-25  Jim Meyering  <jim@meyering.net>
57089
57090         * lib/mktime.c: Sync from libc, now that it has the latest fix.
57091
57092 2002-11-24  Karl Berry  <karl@gnu.org>
57093
57094         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
57095         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
57096
57097 2002-11-24  Jim Meyering  <jim@meyering.net>
57098
57099         Update from coreutils:
57100
57101         * lib/mktime.c: Merge in changes from libc.
57102
57103         Avoid a link-time failure on some Linux systems.
57104         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
57105         (otherwise).
57106         (__mon_yday): Declare with the STATIC attribute.
57107         (__mktime_internal): Likewise.
57108         Based on a report from Greg Schafer.
57109
57110 2002-11-23  Jim Meyering  <jim@meyering.net>
57111
57112         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
57113         Use `unsigned', not `int', as type of index.
57114
57115         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
57116
57117         * lib/fsusage.c: Remove unneeded parentheses around operands of
57118         `defined'.
57119
57120 2002-11-22  Paul Eggert  <eggert@twinsun.com>
57121
57122         * lib/quotearg.h: Allow multiple inclusion by surrounding with
57123         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
57124         so that we can be included first.
57125         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
57126         * lib/quotearg.c: Include quotearg.h immediately after config.h.
57127         No need to include stddef.h or sys/types.h any more.
57128         Surround local include files with "", not "<>".
57129         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
57130         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
57131         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
57132         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
57133         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
57134         (ISPRINT): Remove; no longer needed now that we assume C89.
57135
57136         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
57137         Preserve errno.
57138
57139         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
57140         quotearg_char): Use SIZE_MAX rather than
57141         (size_t) -1 when we are talking about "infinity".
57142
57143         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
57144
57145 2002-11-22  Paul Eggert  <eggert@twinsun.com>
57146
57147         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
57148         hint that one should use `if (! x) abort ();' rather than `assert
57149         (x);', and anyway it's one less thing to worry about configuring.
57150         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
57151         hash_rehash, hash_insert): Use abort rather than assert.
57152
57153 2002-11-22  Bruno Haible  <bruno@clisp.org>
57154
57155         * lib/safe-read.h: Assume C89. Add comments.
57156         (safe_read): Change return type to size_t.
57157         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
57158         byte counts > SSIZE_MAX correctly.
57159         * lib/safe-write.h: New file.
57160         * lib/safe-write.c: New file.
57161         * lib/full-read.h: New file.
57162         * lib/full-read.c: New file.
57163         * lib/full-write.h: Assume C89. Add comments.
57164         * lib/full-write.c: Include safe-write.h.
57165         (full_write): Rewritten to use safe_write.
57166         Suggested by Jim Meyering and Paul Eggert.
57167
57168 2002-11-21  Jim Meyering  <jim@meyering.net>
57169
57170         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
57171
57172         Merge in changes from the coreutils.
57173
57174         2002-09-25  Paul Eggert  <eggert@twinsun.com>
57175         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
57176         <stdint.h>.
57177         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
57178         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
57179         int.  Work more efficiently if X is the same width as uintmax_t.
57180         Do not compare X to -1, to avoid bogus compiler warning.
57181         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
57182         Don't assume that f_frsize and f_bsize are the same type.
57183
57184         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
57185         warning on FreeBSD.
57186
57187         * lib/makepath.c (make_path): Restore umask *before* creating the final
57188         component.
57189         (make_path): Minor reformatting.
57190
57191         * lib/xmalloc.c: Adjust to work with new autoconf macros,
57192         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
57193         HAVE_MALLOC/HAVE_REALLOC.
57194
57195         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
57196         dummy ones.  At least on GNU/Linux systems, `auto' means something
57197         else.
57198         From Michael Stone.
57199
57200 2002-11-21  Bruno Haible  <bruno@clisp.org>
57201
57202         Remove case insensitive option matching.
57203         * lib/argmatch.h (argcasematch): Remove declaration.
57204         (ARGCASEMATCH): Remove macro.
57205         (__xargmatch_internal): Remove case_sensitive argument.
57206         (XARGMATCH): Update.
57207         (XARGCASEMATCH): Remove macro.
57208         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
57209         case_sensitive argument.
57210         (argcasematch): Remove function.
57211         (__xargmatch_internal): Remove case_sensitive argument.
57212         (main): Use XARGMATCH instead of XARGCASEMATCH.
57213
57214         * lib/xmalloc.c: Change compile-time error message. Add comment about
57215         required autoconf version.
57216
57217 2002-11-20  Paul Eggert  <eggert@twinsun.com>
57218
57219         Merge argmatch cleanups from Bison.  Assume C89.
57220
57221         * lib/argmatch.c: Include config.h here, not in argmatch.h.
57222         Include stdlib.h, for EXIT_FAILURE.
57223         Always include <string.h>, since we assume C89.
57224         (EXIT_FAILURE): Remove pre-C89 bug workaround.
57225         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
57226         Include <stddef.h> instead, since it's all we need for size_t.
57227         (PARAMS): Remove.  All uses removed.
57228         (ARRAY_CARDINALITY): Do not bother to #undef.
57229         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
57230         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
57231         Remove unnecessary parentheses.
57232         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
57233         Insert necessary parentheses.
57234         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
57235         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
57236
57237 2002-11-19  Bruno Haible  <bruno@clisp.org>
57238
57239         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
57240         * lib/mbswidth.h: Include <stddef.h>, for size_t.
57241
57242         * lib/mbswidth.h (PARAMS): Remove macro.
57243         (mbswidth, mbsnwidth): Use ANSI C function declarations.
57244         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
57245
57246         * lib/gcd.h (PARAMS): Remove macro.
57247         (gcd): Use ANSI C function declarations.
57248         * lib/gcd.c (gcd): Likewise.
57249
57250 2002-11-15  Bruno Haible  <bruno@clisp.org>
57251
57252         * lib/strcspn.c: Include <stddef.h>.
57253         (strcspn): Use ANSI C function declaration. Change return type to
57254         size_t. Use NULL.
57255         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
57256         (strpbrk): Use NULL.
57257         * lib/strpbrk.h (PARAMS): Remove macro.
57258         (strpbrk): Use ANSI C function declaration.
57259         * lib/strstr.c: Don't include <sys/types.h>.
57260         * lib/strstr.h (PARAMS): Remove macro.
57261         (strstr): Use ANSI C function declarations.
57262
57263 2002-11-14  Karl Berry  <karl@gnu.org>
57264
57265         * config/mkinstalldirs: `do' on separate line, instead of
57266         `for var; do'.
57267
57268 2002-11-06  Bruno Haible  <bruno@clisp.org>
57269
57270         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
57271         * lib/gcd.c (gcd): Likewise.
57272
57273 2002-11-05  Bruno Haible  <bruno@clisp.org>
57274
57275         * lib/gcd.h: New file, from gettext-0.11.5.
57276         * lib/gcd.c: New file, from gettext-0.11.5.
57277
57278 2002-11-05  Bruno Haible  <bruno@clisp.org>
57279
57280         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57281         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57282         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57283         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57284
57285         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
57286         <libintl.h>.
57287         * lib/makepath.c: Include gettext.h instead of <locale.h> and
57288         <libintl.h>.
57289
57290         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
57291         * lib/human.c: Include gettext.h instead of <libintl.h>.
57292         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
57293         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
57294         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
57295         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
57296         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
57297         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
57298         (textdomain): Remove definition.
57299         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
57300
57301         * lib/long-options.c: Remove include of <libintl.h> and definition of
57302         _.
57303         * lib/same.c: Remove include of <libintl.h> and definition of _.
57304
57305 2002-11-04  Owen Taylor  <otaylor@redhat.com>
57306
57307         * lib/config.charset: A few additions for Solaris.
57308
57309 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
57310
57311         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
57312         * lib/localcharset.c (locale_charset): Declare as extern "C".
57313
57314 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
57315
57316         * lib/config.charset: msdos in uk_UA uses CP1125.
57317
57318 2002-11-04  Bruno Haible  <bruno@clisp.org>
57319
57320         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
57321         * lib/strcase.h: New file, from GNU gettext-0.11.5.
57322         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
57323         * lib/strstr.h: New file, from GNU gettext-0.11.5.
57324         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
57325
57326 2002-11-04  Bruno Haible  <bruno@clisp.org>
57327
57328         * lib/localcharset.c (locale_charset): Don't return an empty string.
57329
57330 2002-11-04  Bruno Haible  <bruno@clisp.org>
57331
57332         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
57333         aliases.
57334
57335 2002-11-04  Bruno Haible  <bruno@clisp.org>
57336
57337         * lib/config.charset: Update for newest glibc. Add canonical names
57338         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
57339
57340 2002-11-04  Bruno Haible  <bruno@clisp.org>
57341
57342         * lib/config.charset: Add support for NetBSD.
57343
57344 2002-11-04  Bruno Haible  <bruno@clisp.org>
57345
57346         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
57347
57348 2002-11-01  Bruno Haible  <bruno@clisp.org>
57349
57350         * configure.in: Add AC_CONFIG_AUX_DIR call.
57351         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
57352         test/Makefile.
57353         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
57354
57355 2002-09-28  Karl Berry  <karl@gnu.org>
57356
57357         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
57358         installed automake until the next release, since changes have been
57359         made.
57360
57361 2002-09-25  Karl Berry  <karl@gnu.org>
57362
57363         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
57364         * lib/getopt*: copy from libc/posix.
57365         * lib/gettext.h: copy from gettext.
57366         * lib/.cppi-disable: add strdup.c, gettext.h.
57367
57368 2002-09-25  Karl Berry  <karl@gnu.org>
57369
57370         * config/srclist.txt: enable gettext.h check.
57371         * config/config.{guess,sub}: update from prep.
57372         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
57373                 from automake 1.6.3.
57374         See srclist*.
57375
57376 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
57377
57378         * regex.c (PATFETCH): Remove the translating fetch.
57379         (PATFETCH_RAW): Rename to PATFETCH.
57380         (set_image_of_range): New fun.
57381         (SET_RANGE_TABLE_WORK_AREA): Use it.
57382         (regex_compile): Don't translate the pattern chars so eagerly.
57383         Only do it when inserting an `exactn' bytecode or when handling
57384         a char-range.
57385         (mutually_exclusive_p): Avoid empty statement.
57386
57387 2002-07-06  Jim Meyering  <meyering@lucent.com>
57388
57389         * m4/README: Don't mention Makefile.am.in.
57390         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
57391
57392 2002-07-01  Jim Meyering  <meyering@lucent.com>
57393
57394         * lib/c-stack.c: Include sys/time.h.
57395         From Volker Borchert.
57396
57397 2002-06-26  Paul Eggert  <eggert@twinsun.com>
57398
57399         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
57400
57401 2002-06-26  Paul Eggert  <eggert@twinsun.com>
57402
57403         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
57404         New macro.  Use it uniformly instead of
57405         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
57406         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
57407         reported by Vin Shelton.
57408
57409 2002-06-22  Paul Eggert  <eggert@twinsun.com>
57410
57411         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
57412         Do not assume SA_SIGINFO behavior.
57413         Bug reported by Jim Meyering on NetBSD 1.5.2.
57414
57415 2002-06-22  Jim Meyering  <meyering@lucent.com>
57416
57417         * m4/c-stack.m4: New file, from diffutils-2.8.2.
57418         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
57419
57420         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
57421         now that configure.ac uses AC_GNU_SOURCE.
57422         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
57423         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
57424
57425         Update to latest tools.  Suggestions from Paul Eggert.
57426         * m4/stdbool.m4: New file, from diffutils-2.8.2.
57427         * m4/gnu-source.m4: Update from diffutils-2.8.2.
57428         * m4/fnmatch.m4: Likewise.
57429         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
57430         to AC_HEADER_STDBOOL
57431
57432 2002-06-22  Jim Meyering  <meyering@lucent.com>
57433
57434         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
57435         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
57436
57437 2002-06-22  Jim Meyering  <meyering@lucent.com>
57438
57439         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
57440
57441         * lib/exitfail.c, exitfail.h: Likewise.
57442         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
57443
57444         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
57445         of fnmatch.h.
57446         (EXTRA_DIST): Add fnmatch_loop.c.
57447         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
57448
57449         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
57450         * lib/fnmatch.c: Update from diffutils-2.8.2.
57451         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
57452         * lib/fnmatch.h: Remove file.
57453
57454 2002-06-21  Jim Meyering  <meyering@lucent.com>
57455
57456         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
57457         * m4/mbrtowc.m4: Likewise.
57458
57459         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
57460         * m4/mbswidth.m4: Reflect name change:
57461         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
57462         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
57463
57464         * m4/lib-link.m4: Update from gettext-0.11.2.
57465         * m4/gettext.m4: Likewise.
57466
57467         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
57468         From Alfred M. Szmidt.
57469
57470 2002-06-18  Paul Eggert  <eggert@twinsun.com>
57471
57472         * lib/file-type.h: Report an error if neither S_ISREG nor
57473         S_IFREG is defined, instead of using a test specific to glibc
57474         2.2.  This should be safe, since POSIX requires S_ISREG and
57475         Unix Version 7 had S_IFREG.  We don't need to check for
57476         <sys/types.h> since we don't use any symbols that it defines.
57477
57478 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
57479
57480         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
57481         $@-t, so that each temporary file name is unique and valid in the first
57482         8 characters, for operation under DOS.
57483
57484 2002-06-15  Paul Eggert  <eggert@twinsun.com>
57485
57486         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
57487
57488 2002-06-15  Jim Meyering  <meyering@lucent.com>
57489
57490         Work even with DJGPP 2.03, which lacks support for symlinks.
57491         From Richard Dawe.
57492         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
57493         is defined.
57494         * lib/lchown.c (S_ISLNK): Likewise.
57495
57496 2002-06-15  Jim Meyering  <meyering@lucent.com>
57497
57498         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
57499         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
57500         have been included before this file.
57501
57502 2002-06-14  Jim Meyering  <meyering@lucent.com>
57503
57504         * lib/file-type.h: Use the version from diffutils-2.8.2.
57505         * lib/file-type.c: Likewise.
57506
57507 2002-06-07  Jim Meyering  <meyering@lucent.com>
57508
57509         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
57510         They're needed at least for NetBSD 1.5.2.
57511         ($statxfs_includes): Include those same headers.
57512         ($statxfs_includes): Include sys/vfs.h if available.
57513         ($statxfs_includes): Likewise for sys/statvfs.h.
57514         Check for the following members in both structs statfs and statvfs:
57515         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
57516
57517 2002-06-01  Jim Meyering  <meyering@lucent.com>
57518
57519         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
57520         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
57521
57522 2002-05-28  Jim Meyering  <meyering@lucent.com>
57523
57524         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
57525         Reported by Volker Borchert.
57526
57527 2002-05-27  Jim Meyering  <meyering@lucent.com>
57528
57529         Fix a problem seen only on nonconforming systems whereby ls.c's
57530         use of localtime, and then of gettimeofday would cause trouble:
57531         the localtime call used to initialize rpl_gettimeofday's save
57532         mechanism would clobber ls's current local time information so
57533         that in any long listing the first file would always be listed
57534         with date 1970-01-01.  Analysis by Volker Borchert.
57535
57536         * lib/gettimeofday.c (localtime): Undefine.
57537         (rpl_localtime): New function.
57538
57539 2002-05-27  Jim Meyering  <meyering@lucent.com>
57540
57541         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
57542         localtime.
57543
57544         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
57545         use the replacement function; it wouldn't resolve at link time.
57546         Reported by Volker Borchert.
57547
57548 2002-05-22  Jim Meyering  <meyering@lucent.com>
57549
57550         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
57551         file-type.h.
57552         * lib/file-type.h: New file.
57553         * lib/file-type.c (file_type): New file/function.  Extracted from
57554         diffutils.
57555
57556 2002-04-30  Jim Meyering  <meyering@lucent.com>
57557
57558         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
57559
57560 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57561
57562         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
57563
57564 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57565
57566         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
57567         Do not check for alloca.h (no longer used) or stdbool.h (was never
57568         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
57569
57570 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57571
57572         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
57573
57574 2002-04-29  Jim Meyering  <meyering@lucent.com>
57575
57576         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
57577         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
57578         Use AC_FUNC_STRNLEN here instead.
57579
57580         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
57581         With autoconf-2.53a, it's part of AC_PROG_CC.
57582
57583 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57584
57585         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
57586         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
57587
57588 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57589
57590         * lib/sig2str.h, lib/sig2str.c: New files.
57591         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
57592
57593 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57594
57595         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
57596         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
57597         of 127, since 64 is the largest conceivable number for ancient
57598         nonstandard hosts.
57599         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
57600
57601 2002-04-28  Jim Meyering  <meyering@lucent.com>
57602
57603         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
57604
57605 2002-04-24  Jim Meyering  <meyering@lucent.com>
57606
57607         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
57608         (jm_PREREQ): Use it.
57609
57610         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
57611         mach/mach.h fcntl.h.
57612         Check for this function: setlocale.
57613
57614 2002-04-24  Jim Meyering  <meyering@lucent.com>
57615
57616         * lib/gettext.h: New file, from Gettext.
57617         * lib/Makefile.am (INCLUDES): Remove -I../intl.
57618         (libfetish_a_SOURCES): Add gettext.h.
57619
57620 2002-04-16  Jim Meyering  <meyering@lucent.com>
57621
57622         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
57623         ut_pid, ut_id, ut_exit.
57624
57625 2002-04-16  Jim Meyering  <meyering@lucent.com>
57626
57627         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
57628         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
57629         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
57630
57631 2002-04-12  Jim Meyering  <meyering@lucent.com>
57632
57633         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
57634         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
57635         existence of the getmntinfo function.  Needed for Darwin 5.3.
57636
57637         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
57638         This is necessary at least on Darwin 5.3.
57639
57640         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
57641         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
57642         strnlen.o in the library, and that makes some versions of ranlib
57643         object.
57644
57645 2002-04-12  Jim Meyering  <meyering@lucent.com>
57646
57647         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
57648
57649 2002-04-09  Jim Meyering  <meyering@lucent.com>
57650
57651         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
57652         to be more precise.  Rather than saying we're checking whether the
57653         function `works', say what we're testing.
57654         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
57655         Reported by Bruno Haible.
57656
57657 2002-03-10  Jim Meyering  <meyering@lucent.com>
57658
57659         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
57660         Suggestion from Santiago Vila.
57661
57662 2002-03-08  Jim Meyering  <meyering@lucent.com>
57663
57664         * lib/rename.c: Mention that this wrapper is needed also on
57665         mips-dec-ultrix4.4 systems.
57666
57667 2002-03-02  Jim Meyering  <meyering@lucent.com>
57668
57669         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
57670         not HAVE_CLOCK_SETTIME.
57671
57672 2002-02-27  Paul Eggert  <eggert@twinsun.com>
57673
57674         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
57675         Check for clock_settime.
57676
57677 2002-02-27  Paul Eggert  <eggert@twinsun.com>
57678
57679         * lib/nanosleep.h: Rename to....
57680         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
57681
57682         * lib/gettime.c: New file.
57683         * lib/settime.c: New file.
57684         * lib/stime.c: Remove.
57685
57686         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
57687         timespec.h.  Remove nanosleep.h.
57688
57689 2002-02-25  Paul Eggert  <eggert@twinsun.com>
57690
57691         * m4/acl.m4: New file.
57692         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
57693         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
57694
57695 2002-02-25  Paul Eggert  <eggert@twinsun.com>
57696
57697         * lib/acl.c, lib/acl.h: New files.
57698         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
57699
57700 2002-02-24  Jim Meyering  <meyering@lucent.com>
57701
57702         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
57703         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
57704         cause trouble.  Reported by Nelson Beebe.
57705
57706 2002-02-23  Paul Eggert  <eggert@twinsun.com>
57707
57708         * lib/path-concat.c (xpath_concat): Reorder code to pacify
57709         compilers that don't know that xalloc_die never returns.
57710
57711 2002-02-20  Jim Meyering  <meyering@lucent.com>
57712
57713         * lib/getdate.c: Regenerate using bison-1.33.
57714
57715 2002-02-17  Jim Meyering  <meyering@lucent.com>
57716
57717         * config/config.guess (main): Don't use `head -1'; it's no longer
57718         portable. Use `sed 1q' instead.
57719
57720 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
57721
57722         * m4/codeset.m4: Upgrade to gettext-0.11.
57723         * m4/gettext.m4: Upgrade to gettext-0.11.
57724         * m4/glibc21.m4: Upgrade to gettext-0.11.
57725         * m4/iconv.m4: Upgrade to gettext-0.11.
57726         * m4/isc-posix.m4: Upgrade to gettext-0.11.
57727         * m4/lcmessage.m4: Upgrade to gettext-0.11.
57728         * m4/lib-ld.m4: New file, from gettext-0.11.
57729         * m4/lib-link.m4: New file, from gettext-0.11.
57730         * m4/lib-prefix.m4: New file, from gettext-0.11.
57731         * m4/progtest.m4: Upgrade to gettext-0.11.
57732
57733 2002-02-15  Paul Eggert  <eggert@twinsun.com>
57734
57735         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
57736         (jm_PREREQ): Use it.
57737
57738 2002-02-15  Paul Eggert  <eggert@twinsun.com>
57739
57740         * lib/posixver.c, lib/posixver.h: New files.
57741         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57742
57743 2002-02-02  Paul Eggert  <eggert@twinsun.com>
57744             Bruno Haible  <bruno@clisp.org>
57745
57746         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
57747         (fwrite_success_callback): New declaration.
57748         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
57749         print_unicode_char. Call failure callback instead of error.
57750         (fwrite_success_callback): New function.
57751         (exit_failure_callback): New function.
57752         (fallback_failure_callback): New function.
57753         (print_unicode_char): Call unicode_to_mb.
57754
57755 2002-01-26  Jim Meyering  <meyering@lucent.com>
57756
57757         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
57758         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
57759
57760 2002-01-26  Jim Meyering  <meyering@lucent.com>
57761
57762         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
57763
57764 2002-01-22  Paul Eggert  <eggert@twinsun.com>
57765
57766         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
57767
57768 2002-01-22  Jim Meyering  <meyering@lucent.com>
57769
57770         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
57771         Otherwise, some versions of automake would omit the rule that makes
57772         Makefile from Makefile.in.
57773
57774 2002-01-21  Paul Eggert  <eggert@twinsun.com>
57775
57776         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
57777         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57778         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
57779         (memcoll): Set errno to zero if there is no error.
57780
57781         * lib/quotearg.c (quotearg_buffer_restyled):
57782         Fix bug with quoting buffers containing NUL when backslashing escapes.
57783         This bug was exposed by the other changes in this patch.
57784         (quotearg_n_options): New arg ARGSIZE.
57785         All callers changed.
57786         (quoting_options_from_style): New function.
57787         (quotearg_n_style): Use it.
57788         (quotearg_n_style_mem): New function.
57789
57790         * lib/quotearg.h (quotearg_n_style_mem): New function.
57791
57792 2002-01-19  Jim Meyering  <meyering@lucent.com>
57793
57794         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
57795         Remove useless quotes: DF_PROG="df".
57796         * m4/strnlen.m4: New file.
57797
57798 2002-01-16  Paul Eggert  <eggert@twinsun.com>
57799
57800         * lib/backupfile.c (ISDIGIT): Comment fix.
57801         * lib/getdate.y (ISDIGIT): Likewise.
57802         * lib/posixtm.c (ISDIGIT, year): Likewise.
57803         * lib/strverscmp.c (ISDIGIT): Likewise.
57804         * lib/userspec.c (ISDIGIT): Likewise.
57805
57806 2002-01-16  Jim Meyering  <meyering@lucent.com>
57807
57808         * lib/getdate.y: Add three semicolons, each just before a closing
57809         brace. Bison (as of version 1.31) no longer papers over that mistake.
57810
57811 2002-01-05  Jim Meyering  <meyering@lucent.com>
57812
57813         * lib/version-etc.c (version_etc_copyright): Update copyright year.
57814
57815 2001-12-19  Paul Eggert  <eggert@twinsun.com>
57816
57817         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
57818         not silently exit merely because the output buffer happens to
57819         have nothing pending.
57820
57821 2001-12-18  Paul Eggert  <eggert@twinsun.com>
57822
57823         See the big note in ../ChangeLog.
57824         * lib/human.c (suffixes): Prefer K to k for 1024.
57825         (generate_suffix_backwards): New function.
57826         (human_readable_inexact): Use it.
57827         * lib/xstrtol.c (__xstrtol): If there is no number but there
57828         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
57829         Accept 'K' as well as 'k'.
57830
57831 2001-12-15  Jim Meyering  <meyering@lucent.com>
57832
57833         * lib/regex.h (__restrict_arr): Update from libc.
57834
57835         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
57836         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
57837         (STREQ): Define.
57838
57839 2001-12-14  Jim Meyering  <meyering@lucent.com>
57840
57841         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
57842         Suggestion from Bruno Haible.
57843
57844 2001-12-10  Jim Meyering  <meyering@lucent.com>
57845
57846         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
57847         xrealloc, Instead, include "xalloc.h".
57848         (initbuffer): Don't cast xmalloc return value to char*.
57849         (readline): Reword comment.
57850         Don't cast xrealloc return value to char*
57851         Return NULL, not 0.
57852
57853 2001-12-09  Jim Meyering  <meyering@lucent.com>
57854
57855         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
57856         about `signed and unsigned type in conditional expression'.
57857         * lib/posixtm.c (posix_time_parse): Likewise.
57858
57859         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
57860
57861         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
57862         to avoid a pedantic warning.
57863
57864         * lib/getstr.c: Don't include assert.h.
57865         (getstr): Remove warning-evoking assertions.
57866         Return -1 if offset parameter is out of bounds.
57867         Change the type of a local from int to size_t.
57868
57869         * lib/strftime.c (my_strftime_localtime_r): Include this function
57870         definition in the `#if ! HAVE_TM_GMTOFF' block.
57871
57872         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
57873         Include xalloc.h instead.
57874
57875 2001-12-02  Jim Meyering  <meyering@lucent.com>
57876
57877         * lib/tempname.c: Don't declare getenv, thus reverting the change of
57878         2001-11-18.  It's no longer necessary, now that stdlib.h is always
57879         included.
57880
57881         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
57882         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
57883
57884 2001-11-30  Akim Demaille  <akim@epita.fr>
57885
57886         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
57887         before being defined.
57888
57889 2001-11-27  Paul Eggert  <eggert@twinsun.com>
57890
57891         * lib/quotearg.h (quotearg_n, quotearg_n_style):
57892         First arg is int, not unsigned.
57893         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
57894         (SIZE_MAX, UINT_MAX): New macros.
57895         (quotearg_n_options): Abort if N is negative.
57896         Avoid overflow check on hosts where size_t is 64 bits and int
57897         is 32 bits, as overflow is impossible there.
57898         Fix off-by-one typo that caused unnecessary reallocation.
57899
57900 2001-11-27  Jim Meyering  <meyering@lucent.com>
57901
57902         * lib/tempname.c: Merge with version from libc.
57903         * lib/regex.c: Likewise.
57904
57905         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
57906         systems for which STDC_HEADERS is 0, it was not included, resulting in
57907         a warning about an integer-to-pointer conversion problem with getenv.
57908         Reported by Volker Borchert.
57909
57910 2001-11-26  Jim Meyering  <meyering@lucent.com>
57911
57912         * lib/gtod.h: Remove file.
57913         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
57914         * lib/gettimeofday.c: Don't include gtod.h.
57915         (GTOD_init): Remove function.
57916         (rpl_gettimeofday): Do its job here instead, rather than aborting.
57917         Suggestion from Volker Borchert.
57918
57919 2001-11-23  Jim Meyering  <meyering@lucent.com>
57920
57921         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
57922         it.
57923         * lib/hash.c (struct hash_table): Define it here instead.
57924
57925 2001-11-22  Jim Meyering  <meyering@lucent.com>
57926
57927         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
57928
57929 2001-11-20  Jim Meyering  <meyering@lucent.com>
57930
57931         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
57932         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
57933
57934 2001-11-19  Jim Meyering  <meyering@lucent.com>
57935
57936         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
57937         directory.  Use "conftestXXXXXX" as the template.
57938         Suggestion from Paul Eggert.
57939
57940         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
57941         immediately, so the test doesn't mistakenly hit the max-open-files
57942         limit.
57943
57944 2001-11-18  Paul Eggert  <eggert@twinsun.com>
57945
57946         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
57947         (TEMPORARIES): New macro.
57948         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
57949         removes an artificial limitation (e.g. HP-UX 10.20, where
57950         TMP_MAX is 17576).
57951
57952 2001-11-18  Jim Meyering  <meyering@lucent.com>
57953
57954         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
57955
57956 2001-11-18  Jim Meyering  <meyering@lucent.com>
57957
57958         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
57959         on SunOS 4.
57960
57961         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
57962         files will be created before anything else.
57963
57964 2001-11-17  Paul Eggert  <eggert@twinsun.com>
57965
57966         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
57967         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
57968
57969 2001-11-17  Jim Meyering  <meyering@lucent.com>
57970
57971         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
57972         Prompted by a report from Bob Proulx.
57973
57974         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
57975         Instead, require UTILS_FUNC_MKSTEMP.
57976
57977 2001-11-17  Jim Meyering  <meyering@lucent.com>
57978
57979         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
57980         Now, that's done as part of AC_FUNC_STRTOD.
57981
57982 2001-11-17  Jim Meyering  <meyering@lucent.com>
57983
57984         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
57985         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
57986         rather than group writable.  Patch by Juan F. Codagnone.
57987
57988         * lib/readtokens.c: Remove explicit declarations of xmalloc and
57989         xrealloc, Instead, include "xalloc.h".
57990
57991         * lib/mountlist.c: Include unlocked-io.h after all system headers.
57992         Remove explicit declarations of xmalloc, xrealloc,
57993         and xstrdup.  Instead, include "xalloc.h".
57994
57995         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
57996         unlocked-io.h.
57997         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
57998         Likewise.
57999         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
58000
58001         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
58002         Reported by Padraig Brady.
58003
58004         * lib/mkstemp.c: #undef mkstemp.
58005         Include config.h.
58006         (rpl_mkstemp): Rename from mkstemp.
58007         Protoize.
58008
58009 2001-11-16  Jim Meyering  <meyering@lucent.com>
58010
58011         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
58012         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
58013         determine the amount of total physical memory, use pstat_getstatic.
58014         HPUX-11 doesn't define _SC_PHYS_PAGES.
58015         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
58016         If sysconf couldn't be used to determine the amount of available
58017         physical memory, use both pstat_getstatic and pstat_getdynamic.
58018         Based on a patch from Bob Proulx.
58019
58020 2001-11-10  Jim Meyering  <meyering@lucent.com>
58021
58022         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
58023         (jm_PREREQ): Use it.
58024
58025 2001-11-09  Jim Meyering  <meyering@lucent.com>
58026
58027         * m4/jm-macros.m4: Require autoconf-2.52f.
58028         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
58029         Use these AC_-prefixed names, not the AM_-prefixed ones.
58030
58031         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
58032
58033 2001-11-05  Jim Meyering  <meyering@lucent.com>
58034
58035         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
58036
58037 2001-11-04  Jim Meyering  <meyering@lucent.com>
58038
58039         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
58040         $DEFS.
58041
58042 2001-11-03  Jim Meyering  <meyering@lucent.com>
58043
58044         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
58045         of AC_DEFUN.
58046
58047         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
58048         know the name of the variable in the macro definition.
58049
58050 2001-11-03  Jim Meyering  <meyering@lucent.com>
58051
58052         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
58053         in argmatch_to_argument call.
58054
58055         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
58056         argument.
58057
58058         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
58059         e.g., a fault due to an attempt to free a NULL pointer.
58060
58061 2001-11-01  Jim Meyering  <meyering@lucent.com>
58062
58063         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
58064         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
58065
58066 2001-11-01  Jim Meyering  <meyering@lucent.com>
58067
58068         * lib/dirfd.c, lib/dirfd.h: New files.
58069         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
58070
58071         * lib/hash.c (hash_print) [TESTING]: Clean up.
58072
58073 2001-10-22  Paul Eggert  <eggert@twinsun.com>
58074
58075         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
58076         to avoid a warning if -Wall.
58077
58078 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
58079
58080         * README: New file
58081         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
58082         (per RMS's instructions, this is now the canonical source)
58083         * lgpl/, gpl/: New directories.
58084
58085 2001-10-21  Paul Eggert  <eggert@twinsun.com>
58086
58087         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
58088
58089 2001-10-21  Jim Meyering  <meyering@lucent.com>
58090
58091         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
58092         this code would end up calling gettext even in packages built
58093         with --disable-nls.
58094         * lib/getopt.c (_): Likewise.
58095         * lib/regex.c (_): Likewise.
58096
58097 2001-10-20  Paul Eggert  <eggert@twinsun.com>
58098
58099         * m4/error.m4 (jm_PREREQ_ERROR):
58100         Do not invoke AC_CHECK_FUNCS with strerror_r, as
58101         AC_FUNC_STRERROR_R does that.
58102         Check for strerror declaration.
58103
58104         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
58105         are supposed to have them these days.
58106         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
58107         Merge changes from latest Autoconf CVS.
58108         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
58109         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
58110         POSIX decided to standardize on the int flavor of strerror_r.
58111
58112 2001-10-20  Paul Eggert  <eggert@twinsun.com>
58113
58114         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
58115         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
58116         Use strerror_r that is only a macro, even if it is not a function.
58117         (strerror): Check for HAVE_DECL_STRERROR before declaring.
58118         (private_strerror): Use prototypes, not old-style function definition.
58119         (print_errno_message): New function.
58120         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
58121         char*-flavored one.
58122         (error_tail, error, error_at_line): Use it.
58123
58124 2001-10-11  Jim Meyering  <meyering@lucent.com>
58125
58126         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
58127         and quote_n (1, ... to avoid clobbering a buffer.
58128
58129 2001-10-05  Jim Meyering  <meyering@lucent.com>
58130
58131         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
58132         hash-pjw.h.
58133         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
58134         * lib/hash-pjw.h: New file.
58135
58136 2001-09-30  Jim Meyering  <meyering@lucent.com>
58137
58138         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
58139         `struct fsstat' has the `f_fstypename' member.
58140         Use that to define FS_TYPE, which is now used to make
58141         the getfsstat link test tighter.
58142
58143 2001-09-30  Jim Meyering  <meyering@lucent.com>
58144
58145         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
58146         Include <sys/ucred.h>, for Apple Darwin.
58147         Include sys/mount.h and sys/fs_types.h only if available.
58148         (FS_TYPE): Define.
58149         (read_filesystem_list): Use FS_TYPE.
58150
58151 2001-09-29  Paul Eggert  <eggert@twinsun.com>
58152
58153         * lib/exclude.c (excluded_filename): 0 -> false, since it's
58154         a boolean context.
58155
58156 2001-09-29  Jim Meyering  <meyering@lucent.com>
58157
58158         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
58159         [one-argument getmntent function]): Include stdio.h before mntent.h.
58160         SunOS 4.1.x needs it for the declaration of `FILE'.
58161         Patch by Volker Borchert.
58162
58163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
58164         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
58165         sys/fs_types.h, and make the link-test for getfsstat guard #include
58166         directives with appropriate #if HAVE_*_H tests so that we can
58167         detect getfsstat on Apple Darwin1.3.7 systems.
58168         Reported by Nelson Beebe.
58169         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
58170
58171 2001-09-28  Paul Eggert  <eggert@twinsun.com>
58172
58173         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
58174         #defines strtoimax.  Also treat the other strto* functions
58175         like strtoimax.
58176
58177         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58178         Check for strtoul and strtoumax,
58179         as those declarations are made even in the signed case.
58180         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
58181         Likewise, for strtol and strtoimax.
58182
58183 2001-09-28  Paul Eggert  <eggert@twinsun.com>
58184
58185         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
58186         #defines strtoimax.  Also treat the other strto* functions
58187         like strtoimax.
58188
58189         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
58190         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
58191         (strtoimax, strtoumax): Do not declare if already defined as a macro.
58192
58193 2001-09-26  Jim Meyering  <meyering@lucent.com>
58194
58195         Most macros in unlocked-io.h had the wrong number of arguments.
58196         * lib/gen-uio: New script.
58197         (USE_UNLOCKED_IO): Define to 1 if not already defined.
58198         * lib/unlocked-io.hin: Remove file.
58199         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
58200         rather than trying to embed it here.
58201         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
58202         Reported by Padraig Brady.
58203
58204 2001-09-25  Volker Borchert  <bt@teknon.de>
58205
58206         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
58207         `result'.
58208
58209 2001-09-24  Jim Meyering  <meyering@lucent.com>
58210
58211         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
58212
58213 2001-09-23  Jim Meyering  <meyering@lucent.com>
58214
58215         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
58216         instead of the mere test for existence of mntent.h.  The latter
58217         would get a false-positive on AIX 3.4 systems.
58218         In the outer getmntent if-block, don't die if neither of the getmntent
58219         tests succeeds.  Instead, just fall through and continue with the
58220         remaining tests.
58221
58222 2001-09-23  Jim Meyering  <meyering@lucent.com>
58223
58224         * lib/mountlist.c: Remove useless parentheses in #if directives.
58225         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
58226         the deprecated MOUNTED symbol is no longer defined in mntent.h.
58227
58228 2001-09-22  Jim Meyering  <meyering@lucent.com>
58229
58230         * m4/gettext.m4: New file.  From gettext.
58231         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
58232         * m4/progtest.m4: Likewise
58233         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
58234         * m4/glibc21.m4: Likewise.
58235
58236         * m4/libintl.m4: Remove.  No longer used.
58237
58238 2001-09-22  Jim Meyering  <meyering@lucent.com>
58239
58240         * lib/localcharset.c: Update from latest gettext.
58241         * lib/config.charset: Likewise.
58242
58243 2001-09-20  Jim Meyering  <meyering@lucent.com>
58244
58245         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
58246         strtoimax.
58247         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
58248         strtoumax.
58249
58250 2001-09-20  Jim Meyering  <meyering@lucent.com>
58251
58252         * lib/xstrtol.c (strtoimax): Guard declaration with
58253         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
58254         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
58255         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
58256         (strtoumax): Likewise, for completeness (it wasn't necessary).
58257
58258 2001-09-17  Paul Eggert  <eggert@twinsun.com>
58259
58260         * lib/strtoimax.c (HAVE_LONG_LONG):
58261         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
58262         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
58263         to work around bug in IBM C compiler.
58264
58265 2001-09-17  Jim Meyering  <meyering@lucent.com>
58266
58267         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
58268         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
58269         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
58270         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
58271         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
58272         whenever the right hand side need not be expanded by the shell.
58273
58274 2001-09-16  Paul Eggert  <eggert@twinsun.com>
58275
58276         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
58277         library.  It's not correct, as some older glibcs are buggy.
58278         fnmatch wasn't fixed until glibc 2.2.
58279
58280         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
58281         special shell magic here.
58282
58283 2001-09-16  Jim Meyering  <meyering@lucent.com>
58284
58285         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
58286         * m4/jm-macros.m4: Require it.
58287
58288 2001-09-16  Jim Meyering  <meyering@lucent.com>
58289
58290         * lib/mkdir.c: New file.
58291
58292 2001-09-15  Jim Meyering  <meyering@lucent.com>
58293
58294         * m4/jm-macros.m4: Check for help2man.
58295
58296 2001-09-11  Jim Meyering  <meyering@lucent.com>
58297
58298         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
58299         The body, by Paul Eggert, was moved here from configure.in.
58300         * m4/jm-macros.m4: Require UTILS_HOST_OS.
58301
58302 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58303
58304         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
58305         (jm_PREREQ): Use it.
58306
58307 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58308
58309         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
58310         Use ssize_t, not int, to store result of readlink.
58311         Check for ssize_t overflow as well as size_t overflow,
58312         as POSIX says the result of readlink is implementation-defined
58313         when ssize_t overflows.
58314         Remove unnecessary cast to char*.
58315         Use free+malloc instead of realloc, as the storage doesn't need
58316         to be preserved and it's clearer and can be more efficient that way.
58317         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
58318         * lib/xreadlink.h (xreadlink): Update prototype.
58319
58320 2001-09-04  Paul Eggert  <eggert@twinsun.com>
58321
58322         * lib/xgetcwd.c: Revert some of the previous change; intead,
58323         fix the HAVE_GETCWD_NULL code to behave more like the
58324         !HAVE_GETCWD_NULL code used to.
58325
58326         Include "xalloc.h".
58327         (xgetcwd): Do not return NULL when memory is exhausted; instead,
58328         invoke xalloc_die.
58329
58330 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58331
58332         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
58333         sys/param.h, as pathmax.h includes them.
58334
58335 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58336
58337         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
58338         (jm_PREREQ_XGETCWD): New macro.
58339
58340         * m4/getcwd.m4: New file.
58341
58342 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58343
58344         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
58345         like the HAVE_GETCWD_NULL code.
58346         Include pathmax.h if not HAVE_GETCWD.
58347         Do not include xalloc.h.
58348         (INITIAL_BUFFER_SIZE): New symbol.
58349         Do not use xmalloc / xrealloc, since the caller is responsible for
58350         handling errors.  Preserve errno around `free' during failure.
58351         Do not overrun buffer when using getwd.
58352
58353 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58354
58355         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
58356         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
58357         getcwd (NULL, 0).
58358
58359 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58360
58361         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
58362         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
58363         spotted by Jim Meyering.
58364
58365 2001-09-03  Jim Meyering  <meyering@lucent.com>
58366
58367         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
58368         failure.
58369
58370 2001-09-02  Jim Meyering  <meyering@lucent.com>
58371
58372         * lib/error.c: Update from GNU libc.
58373
58374 2001-09-01  Jim Meyering  <meyering@lucent.com>
58375
58376         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
58377         Used by df.
58378
58379 2001-09-01  Jim Meyering  <meyering@lucent.com>
58380
58381         * lib/xreadlink.c: New file.
58382         * lib/xreadlink.h: New file.
58383         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
58384         xreadlink.h.
58385
58386         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
58387         doesn't conflict with sparc Solaris 7's definition in
58388         /usr/include/sys/int_types.h.
58389
58390         * lib/exclude.c: Use `""', not `<>' to #include non-system header
58391         files.
58392         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
58393         and strncasecmp as r-values.  Unixware didn't have declarations.
58394
58395 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58396
58397         * lib/xstrtol.h: Add copyright notice.
58398         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
58399         LONGINT_INVALID_SUFFIX_CHAR.
58400
58401 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58402
58403         * lib/xstrtol.c (strtoimax): New decl.
58404
58405 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58406
58407         * lib/xgetcwd.c: Don't include pathmax.h.
58408         Include stdlib.h and unistd.h if available.
58409         Include xalloc.h.
58410         (xmalloc, xstrdup, free): Remove decls.
58411         (xgetcwd): Don't assume sizes fit in unsigned.
58412         Check for overflow when computing sizes.
58413         Simplify reallocation code.
58414
58415 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58416
58417         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
58418         a directory's st_size can have an arbitrary value, so the old
58419         usage could waste an arbitrary amount of memory.  All uses
58420         changed.
58421         * lib/savedir.h: Update prototype.
58422
58423 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58424
58425         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
58426
58427         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
58428         old strtoimax.c.
58429
58430         Also, make the following further changes to make this file's
58431         configuration more similar to that of strtol.c:
58432         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
58433         (strtoumax, uintmax_t, strtoull, strtol): Remove.
58434         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
58435         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
58436         changed to signed values.
58437
58438         And make the following changes as well:
58439         Fix copyright notice, as 1999 was missing.
58440         (verify): New macro.
58441         (strtoimax): Check sizes at compile-time, not run-time.
58442         Prefer strtol to strtoll if both work.
58443         (main): Remove; it was not that useful and was a pain to maintain.
58444
58445         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
58446
58447 2001-08-31  Jim Meyering  <meyering@lucent.com>
58448
58449         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
58450         Use an initial, malloc'd, buffer of length 128 rather than
58451         a statically allocated one of length 1024.
58452
58453 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58454
58455         Simplify code, partly by assuming autoconf 2.52 semantics.
58456
58457         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
58458
58459         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
58460         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
58461         All uses removed.
58462         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
58463         Move AC_REQUIRE to next-to-top level, to avoid confusion.
58464         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
58465         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
58466         jm_AC_HEADER_INTTYPES_H.
58467         * m4/jm-macros.m4 (jm_MACROS): Likewise.
58468
58469         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
58470
58471         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58472         Quote first arg of AC_DEFUN.
58473         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
58474         since they are needed to parse the include file even if we need
58475         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
58476         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
58477         but with opposite signedness.
58478
58479 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58480
58481         Merge 'exclude' changes from tar 1.13.22.
58482         This fixes one or two unlikely storage allocation overflow bugs,
58483         but doesn't change user-visible behavior otherwise.
58484
58485 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58486
58487         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
58488         (jm_PREREQ_EXCLUDE): New macro.
58489
58490 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58491
58492         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
58493         tm to be declared.
58494
58495 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58496
58497         * lib/hash.c: Remove '2001' from copyright notice.
58498
58499 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58500
58501         * lib/full-write.h: New file.
58502         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
58503         * lib/full-write.c: Correct credits, as cccp.c no longer
58504         exists and anyway it was so heavily changed from the old cccp
58505         code as to be unrecognizable.  Include full-write.h.
58506         (full_write) Return size_t, with short writes meaning failure.
58507         All callers changed.  This fixes a bug with large buffers
58508         on 64-bit hosts.
58509         * lib/utime.c: Include full-write.h.
58510
58511 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58512
58513         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
58514         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
58515         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
58516         Include if available.
58517         (<xalloc.h>): Include
58518         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
58519         (verify): New macro.  Use it to verify that EXCLUDE macros do not
58520         collide with FNM macros.
58521         (struct patopts): New struct.
58522         (struct exclude): Use it, as exclude patterns now come with options.
58523         (new_exclude): Support above changes.
58524         (new_exclude, add_exclude_file):
58525         Initial size must now be a power of two to simplify overflow checking.
58526         (free_exclude, fnmatch_no_wildcards): New function.
58527         (excluded_filename): No longer requires options arg, as the options
58528         are determined by add_exclude.  Now returns bool, not int.
58529         (excluded_filename, add_exclude):
58530         Add support for the fancy new exclusion options.
58531         (add_exclude, add_exclude_file): Now takes int options arg.
58532         Check for arithmetic overflow when computing sizes.
58533         (add_exclude_file): xrealloc might modify errno, so don't
58534         realloc until after errno might be used.
58535
58536         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
58537         New macros.
58538         (free_exclude): New decl.
58539         (add_exclude, add_exclude_file): Now takes int options arg.
58540         (excluded_filename): No longer requires options arg, as the options
58541         are determined by add_exclude.  Now returns bool, not int.
58542
58543 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58544
58545         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
58546
58547 2001-08-27  Jim Meyering  <meyering@lucent.com>
58548
58549         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
58550
58551         * lib/version-etc.c (N_): Remove definition.
58552         Revert most of last change.
58553         Instead, simply don't mark the `Copyright...' string for translation.
58554         Based on advice from Paul Eggert.
58555
58556         * lib/strtoxmax.c: Tweak comment.
58557
58558 2001-08-26  Jim Meyering  <meyering@lucent.com>
58559
58560         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
58561
58562         * m4/xstrtoimax.m4: New file.
58563         * m4/xstrtoumax.m4: Add comments explaining why we
58564         AC_REPLACE_FUNCS(strtol).
58565
58566 2001-08-26  Jim Meyering  <meyering@lucent.com>
58567
58568         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
58569         of copyright with `%s' so translators don't get an untranslated
58570         message in 2002.
58571         (COPYRIGHT_YEAR): Define.
58572         (version_etc): Use fprintf rather than fputs.
58573         Suggestion from Ulrich Drepper.
58574
58575         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
58576
58577         * lib/strtoll.c: New file, from GNU libc.
58578         * lib/xstrtoimax.c: New file.
58579
58580         * lib/xstrtol.h: Add xstrtoimax.
58581         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
58582         * lib/strtoimax.c: New file.  Likewise, but first define
58583         STRTOUXMAX_SIGNED.
58584
58585         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
58586         ...
58587         * lib/strtoxmax.c: ... then renamed to this.
58588
58589 2001-08-18  Paul Eggert  <eggert@twinsun.com>
58590
58591         * m4/inttypes.m4: Add AC_PREREQ(2.13).
58592         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
58593         (jm_AC_TYPE_INTMAX_T): New macro.
58594         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
58595
58596         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
58597
58598         * m4/longlong.m4: Renamed from ulonglong.m4.
58599         * m4/inttypes.m4: Renamed from inttypes_h.m4.
58600         * m4/uintmax_t.m4: Removed.
58601
58602 2001-08-13  Paul Eggert  <eggert@twinsun.com>
58603
58604         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
58605         Port to Solaris 8, where 'sed' requires a space after the 'r'
58606         command, and where sh dislikes "$/".  Clean up the spacing a bit.
58607         Redirect output to $tmp just once.
58608
58609 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
58610
58611         * lib/addext.c (<errno.h>): Include.
58612         (errno): Declare if not defined.
58613         (addext): Work correctly when pathconf returns -1 and leaves
58614         errno alone because there is no limit.  Also, work even if
58615         pathconf returns a value greater than SIZE_MAX.
58616
58617 2001-08-12  Jim Meyering  <meyering@lucent.com>
58618
58619         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
58620         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
58621         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
58622         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
58623         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
58624         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
58625         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
58626         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
58627         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
58628         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
58629         utime.m4, utimes.m4, xstrtoumax.m4:
58630         Quote the first argument in each use of AC_DEFUN.
58631
58632 2001-08-12  Jim Meyering  <meyering@lucent.com>
58633
58634         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
58635         Simply `return getcwd (NULL, 0);'.
58636         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
58637         Use 1300 as initial value for length, not PATH_MAX.
58638
58639         * lib/pathmax.h: Clean up cpp syntax.
58640
58641 2001-08-12  Jim Meyering  <meyering@lucent.com>
58642
58643         * lib/gettimeofday.c: New file.
58644         * lib/gtod.h: New file.
58645         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
58646
58647 2001-08-05  Jim Meyering  <meyering@lucent.com>
58648
58649         * m4/jm-macros.m4: Require autoconf-2.52.
58650
58651 2001-08-04  Jim Meyering  <meyering@lucent.com>
58652
58653         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
58654         stmt, to get in sync with glibc.
58655
58656 2001-08-03  Paul Eggert  <eggert@twinsun.com>
58657
58658         The following changes are from gettext 0.10.39 as maintained by
58659         Bruno Haible.
58660
58661         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
58662         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
58663         with inverted sense.  All uses changed.
58664
58665         * lib/mbswidth.c: Don't include <limits.h>.
58666         Include <stdlib.h> and <string.h> unconditionally.
58667         (iswcntrl, mbsinit, ISCNTRL): New macros.
58668         (mbsnwidth): Use K&R style function declarations.
58669         Don't bother checking for MB_LEN_MAX == 1, since the compiler
58670         can optimize it when MB_CUR_MAX == 1.
58671         The width of control characters is zero, not 1.
58672
58673 2001-08-03  Paul Eggert  <eggert@twinsun.com>
58674
58675         The following changes are from gettext 0.10.39 as maintained by
58676         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
58677
58678         * m4/codeset.m4: Upgrade to serial AM1.
58679         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
58680         all uses changed.  Quote first arg of AC_DEFUN.
58681         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
58682
58683         * m4/iconv.m4: Upgrade to serial AM2.
58684         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
58685         Add --with-libconv-prefix.
58686         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
58687         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
58688         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
58689         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
58690         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
58691
58692         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
58693         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
58694         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
58695         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
58696         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
58697         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
58698         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
58699         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
58700         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
58701
58702         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
58703         string.h any more.
58704
58705         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
58706         not the default value.
58707
58708         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
58709         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
58710         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
58711         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
58712         Also check for iswcntrl, used for wcwidth fallback.
58713         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
58714         to Autoconf 2.13.
58715
58716 2001-08-03  Jim Meyering  <meyering@lucent.com>
58717
58718         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
58719         as it was in the original.  Reported by Paul Eggert.
58720
58721 2001-07-16  Jim Meyering  <meyering@lucent.com>
58722
58723         * m4/gettimeofday.m4: New file.
58724         Prompted by a report from Bernhard Baehr.
58725
58726 2001-07-15  Jim Meyering  <meyering@lucent.com>
58727
58728         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
58729         stuff. Now it's in ../Makefile.cfg.
58730
58731 2001-07-15  Jim Meyering  <meyering@lucent.com>
58732
58733         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
58734         (BUILT_SOURCES): Add unlocked-io.h.
58735         (io_functions): Define.
58736         (unlocked-io.h): New rule.
58737         (DISTCLEANFILES): Add unlocked-io.h.
58738         (all-local): Depend on unlocked-io.h, to ensure it is created.
58739
58740         * lib/unlocked-io.hin: New file
58741
58742         * lib/regex.c: Update from glibc.
58743
58744 2001-07-05  Jim Meyering  <meyering@lucent.com>
58745
58746         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
58747         recommendation.
58748         (libfetish_a_SOURCES): Put all .h files here instead.
58749         Remove a thus-exposed (better checks in automake) duplicate and
58750         two unnecessary .h files.
58751
58752 2001-07-04  Jim Meyering  <meyering@lucent.com>
58753
58754         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
58755         that generates jm-glibc-io.m4 so that it doesn't trigger any make
58756         distcheck failure.
58757
58758 2001-07-02  Jim Meyering  <meyering@lucent.com>
58759
58760         The following changes were prompted by suggestions from Bruno Haible.
58761
58762         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
58763         is now generated.
58764         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
58765         definition of EXTRA_DIST.
58766         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
58767         ensure that the generated file is created/updated whenever the list
58768         of $(unlocked_functions) is changed.
58769         (jm-glibc-io.m4): New rule.
58770         (unlocked-io.h): New rule -- currently unused.
58771
58772 2001-06-24  Jim Meyering  <meyering@lucent.com>
58773
58774         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
58775         unmatched right bracket, rather than kludging it with an extra,
58776         falsely-matching quote in a comment.  Patch by Akim Demaille.
58777
58778 2001-06-11  Jim Meyering  <meyering@lucent.com>
58779
58780         * lib/regex.c: Update from GNU libc.
58781
58782 2001-05-27  Jim Meyering  <meyering@lucent.com>
58783
58784         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
58785         Check for ut_type in struct utmp.
58786
58787 2001-05-27  Jim Meyering  <meyering@lucent.com>
58788
58789         * lib/readutmp.h (UT_TYPE): Define.
58790
58791 2001-05-24  Jim Meyering  <meyering@lucent.com>
58792
58793         * lib/argmatch.c: Include "quote.h".
58794         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
58795         quote function.  Reported by Göran Uddeborg.
58796
58797 2001-05-22  Jim Meyering  <meyering@lucent.com>
58798
58799         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
58800         now that we use the package-supplied version unconditionally.
58801         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
58802
58803 2001-05-21  Jim Meyering  <meyering@lucent.com>
58804
58805         * m4/regex.m4: Change a couple backticks to single quotes to avoid
58806         shell syntax errors.
58807
58808 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
58809
58810         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
58811
58812 2001-05-20  Paul Eggert  <eggert@twinsun.com>
58813
58814         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
58815         Don't bother to check library strftime, since
58816         we'll be using our own my_strftime function anyway.
58817         Define my_strftime instead of strftime.
58818
58819 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
58820
58821         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
58822         which is not yet declared.
58823
58824 2001-05-15  Jim Meyering  <meyering@lucent.com>
58825
58826         * m4/regex.m4: Use proper quoting so brackets appear in the test
58827         program.
58828         Reported by, and with help from, Bruno Haible.
58829
58830 2001-05-13  Jim Meyering  <meyering@lucent.com>
58831
58832         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
58833         undefined.
58834
58835 2001-05-11  Paul Eggert  <eggert@twinsun.com>
58836
58837         dirname code cleanup.  base_name now behaves more compatibly
58838         with POSIX basename when given file names that have trailing
58839         slashes, and similarly for dir_name.  Add new primitives
58840         base_len and dir_len.  Put the directory-name-related decls
58841         into dirname.h.
58842
58843         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
58844         * lib/backupfile.c (base_name): Likewise.
58845         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
58846         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
58847         * lib/makepath.c (strip_trailing_slashes): Likewise.
58848         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
58849         ISSLASH): Likewise.
58850         * lib/rename.c (strip_trailing_slashes): Likewise.
58851         * lib/same.c (base_name): Likewise.
58852         * lib/stripslash.c (ISSLASH): Likewise.
58853
58854         * lib/addext.c: Include <dirname.h> after size_t is defined.
58855         * lib/backupfile.c: Likewise.
58856
58857         * lib/addext.c (addext): Use base_len to trim redundant
58858         trailing slashes instead of doing it ourselves.
58859         But do not trim the last slash if it is not redundant.
58860
58861         * lib/backupfile.c (find_backup_file_name,
58862         max_backup_version): Use base_len instead of rolling it ourselves.
58863         Handle the case of "" and (on DOS) "C:" correctly.
58864
58865         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
58866         needed. Include <string.h>, <dirname.h>.
58867         (base_name): Allow file names ending in slashes, other than names
58868         that are all slashes.  In this case, return the basename followed
58869         by the slashes.  This is more general, and can be used in places
58870         where the original base_name purposely had an assertion failure.
58871         (base_len): New function.
58872
58873         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
58874         Do not include <assert.h>; no longer needed.
58875         Include xalloc.h.
58876         (memrchr): Remove decl.
58877         (dir_name_r): Remove.
58878         (dir_len): Renamed from dirlen.  All callers changed.
58879         Rewrite in terms of base_name, for simplicity and consistency.
58880         (dir_name): Never return NULL.  All callers changed.
58881         Do not include <stdlib.h> in test program; no longer needed.
58882         return 0; is fine for test program.
58883
58884         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
58885         New macros.
58886         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
58887
58888         * lib/path-concat.c (path_concat): Use base_len to compute
58889         base length, not strlen; this means we cannot rely on memcpy
58890         to null-terminate.
58891
58892         * lib/same.c (STREQ): Remove.
58893         (same_name): Handle the case where the basename ends in trailing '/'.
58894
58895         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
58896         a slash was stripped.  Do not strip the last slash after a
58897         file system prefix.
58898
58899 2001-05-11  Paul Eggert  <eggert@twinsun.com>
58900
58901         * lib/Makefile.am (libfetish_a_SOURCES):
58902         Add strftime.c, since we now compile it on all hosts.
58903
58904         * lib/strftime.c (my_strftime):
58905         Define to nstrftime if emacs, but only if my_strftime is not defined.
58906         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
58907         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
58908         Add one more extra argument: a nanoseconds value.
58909         All uses changed.
58910         (ns): New macro.
58911         (my_strftime function): Add %N format.
58912         (emacs_strftimeu): Renamed from emacs_strftime,
58913         with extra ut argument.
58914
58915 2001-05-09  Paul Eggert  <eggert@twinsun.com>
58916
58917         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
58918
58919 2001-04-21  Jim Meyering  <meyering@lucent.com>
58920
58921         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
58922         doesn't interfere.
58923
58924 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
58925
58926         * m4/ftruncate.m4: Check for chsize.
58927         Link with ftruncate.o unconditionally if ftruncate is missing.
58928         This was required when cross-compiling to i586-mingw32msvc.
58929
58930 2001-04-08  Jim Meyering  <meyering@lucent.com>
58931
58932         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
58933         recomputed; that's necessary when the offset spans a DST transition.
58934         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
58935
58936 2001-04-02  Jim Meyering  <meyering@lucent.com>
58937
58938         * lib/regex.h, regex.c: Update from GNU libc.
58939
58940 2001-03-24  Jim Meyering  <meyering@lucent.com>
58941
58942         * m4/jm-macros.m4: Require autoconf-2.49d.
58943
58944 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
58945
58946         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
58947
58948 2001-03-19  Paul Eggert  <eggert@twinsun.com>
58949
58950         * lib/version-etc.c (version_etc_copyright): Update to 2001.
58951
58952 2001-03-17  Jim Meyering  <meyering@lucent.com>
58953
58954         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
58955         now that the version in autoconf is equivalent.
58956         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
58957
58958         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
58959         Suggestion from Akim Demaille.
58960
58961         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
58962         (jm_PREREQ_TEMPNAME): New function.
58963
58964 2001-03-16  Paul Eggert  <eggert@twinsun.com>
58965
58966         * lib/tempname.c (uint64_t): Define to uintmax_t if
58967         not defined, and if UINT64_MAX is not defined.
58968         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
58969         Reported by John David Anglin.
58970
58971 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
58972
58973         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
58974         resolve alias if codeset is empty.
58975         * lib/config.charset (BeOS): Use wildcard syntax.
58976
58977 2001-03-13  Jim Meyering  <meyering@lucent.com>
58978
58979         * lib/path-concat.c (path_concat)
58980         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
58981         concatenating e.g., `C:' and `foo'.
58982         From Bruno Haible.
58983
58984 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
58985
58986         * lib/localcharset.c (locale_charset): Don't use
58987         setlocale(LC_CTYPE,NULL). Don't return NULL.
58988         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
58989
58990 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
58991
58992         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
58993         support for DOS/DJGPP.
58994
58995 2001-03-01  Paul Eggert  <eggert@twinsun.com>
58996
58997         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
58998         lacks mkstemp.  Compile our own tempname.c if we compile our own
58999         mkstemp.c, as mkstemp relies on tempname.
59000
59001 2001-03-01  Jim Meyering  <meyering@lucent.com>
59002
59003         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
59004         AH_VERBATIM really does output its argument verbatim.
59005
59006 2001-02-28  Paul Eggert  <eggert@twinsun.com>
59007
59008         * lib/Makefile.am (libfetish_a_SOURCES):
59009         Add dup-safer.c, fopen-safer.c.
59010         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
59011
59012         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
59013         * lib/unistd-safer.h: New files.
59014
59015 2001-02-25  Paul Eggert  <eggert@twinsun.com>
59016
59017         The mkstemp replacement is taken from glibc 2.2.2, with some
59018         portability fixes for use outside glibc, as follows:
59019
59020         * lib/tempname.c (struct_stat64): New macro.
59021         (direxists, __gen_tempname): Use it.
59022         This avoids a portability problem with Solaris 8.
59023
59024         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
59025         (<stddef.h>, <stdint.h>, <string.h>):
59026         Include only if STDC_HEADERS || _LIBC.
59027         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
59028         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
59029         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
59030         (__set_errno): Define this macro if <errno.h> doesn't.
59031         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
59032         Define these macros if <stdio.h> doesn't.
59033         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
59034         Define these macros if <sys/stat.h>
59035         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
59036         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
59037         __xstat64): Define if not _LIBC.
59038         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
59039         (__gen_tempname): Invoke gettimeofday only if
59040         HAVE_GETTIMEOFDAY || _LIBC;
59041         otherwise, fall back on plain "time".
59042         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
59043
59044         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
59045
59046         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
59047
59048 2001-02-18  Paul Eggert  <eggert@twinsun.com>
59049
59050         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
59051
59052 2001-02-17  Paul Eggert  <eggert@twinsun.com>
59053
59054         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
59055         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
59056         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
59057         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59058
59059 2001-02-17  Paul Eggert  <eggert@twinsun.com>
59060
59061         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
59062         Remove workaround macros for hosts that have mbrtowc but not
59063         mbstate_t, as we now insist on proper declarations for both
59064         before using mbrtowc.
59065
59066 2001-02-17  Jim Meyering  <meyering@lucent.com>
59067
59068         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
59069         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
59070         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
59071         UnixWare 7.1.1.
59072
59073         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
59074         rather than AC_CACHE_VAL.
59075
59076 2001-02-17  Jim Meyering  <meyering@lucent.com>
59077
59078         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
59079         around included file name.
59080
59081         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
59082
59083         * lib/strftime.c: Update from GNU libc (the only changes were to
59084         comments).
59085
59086 2001-02-17  Jim Meyering  <meyering@lucent.com>
59087
59088         * lib/regex.c: Update from libc.
59089
59090 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
59091
59092         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
59093         clash.
59094
59095 2001-02-16  Paul Eggert  <eggert@twinsun.com>
59096
59097         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
59098         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
59099         Reported by Mark Hounschell via Paul Eggert.
59100
59101 2001-02-07  Jim Meyering  <meyering@lucent.com>
59102
59103         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
59104
59105 2001-02-05  Jim Meyering  <meyering@lucent.com>
59106
59107         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
59108         it includes the patch required for `large file' support with at least
59109         HP-UX's 10.20 /bin/cc.
59110
59111 2001-02-03  Jim Meyering  <meyering@lucent.com>
59112
59113         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
59114         AS_IF, now that it works once again (mysteriously).
59115         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
59116
59117 2001-01-30  Jim Meyering  <meyering@lucent.com>
59118
59119         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
59120         * m4/chown.m4: Rename conftestchown to conftest.chown.
59121         * m4/rename.m4: s/conftestdir/conftest.d1/ and
59122         s/conftestdir2/conftest.d2/.
59123         * m4/utimes.m4: s/conftestdata/conftest.data/
59124         Inspired by Pavel Roskin's change in autoconf.
59125
59126 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
59127
59128         * lib/config.charset: Update for FreeBSD 4.2.
59129
59130 2001-01-27  Jim Meyering  <meyering@lucent.com>
59131
59132         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
59133         a use of AS_IF.
59134         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
59135
59136 2001-01-26  Jim Meyering  <meyering@lucent.com>
59137
59138         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
59139         quotearg.c includes it.
59140
59141 2001-01-26  Jim Meyering  <meyering@lucent.com>
59142
59143         * lib/quotearg.c: Include stddef.h.
59144         * lib/quote.c: Include stddef.h.
59145         Reported by Axel Kittenberger.
59146
59147         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
59148         line in double quotes so that it evokes a better diagnostic.
59149         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
59150         Reported by Axel Kittenberger.
59151
59152 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
59153
59154         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
59155         as if it was a `charset'.
59156
59157 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
59158
59159         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
59160         has const.
59161
59162 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
59163
59164         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
59165         to avoid a warning.  Add back 'const' to inptr.
59166
59167 2001-01-20  Jim Meyering  <meyering@lucent.com>
59168
59169         Be sure that headers are checked before used in code compiled
59170         for the type checks.
59171         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
59172         In place of that, invoke jm_CHECK_ALL_TYPES.
59173         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
59174         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
59175         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
59176         The check for ssize_t was mistakenly run before the test for unistd.h.
59177
59178         The configure-time check for stdbool.h was missing.
59179         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
59180         (jm_PREREQ_HASH): New function.
59181
59182 2001-01-17  Jim Meyering  <meyering@lucent.com>
59183
59184         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
59185         for autoconf-2.49c.
59186         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
59187
59188 2001-01-16  Jim Meyering  <meyering@lucent.com>
59189
59190         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
59191         From Bruno Haible.
59192
59193 2001-01-14  Jim Meyering  <meyering@lucent.com>
59194
59195         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
59196         foo and bar.  Create conftestdir/ in the script, not in the C code.
59197         Remove directories in the script, not in the C code.
59198         Remove conftestdir{,2} before trying to create the directory.
59199         Make the entire configure script fail if the mkdir fails.
59200
59201 2001-01-14  Jim Meyering  <meyering@lucent.com>
59202
59203         * lib/rename.c: New file.  From Volker Borchert.
59204         Include stdlib.h, string.h or strings.h, and xalloc.h.
59205         Use strip_trailing_slashes rather than open-coding it.
59206
59207 2001-01-03  Paul Eggert  <eggert@twinsun.com>
59208
59209         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
59210
59211 2001-01-03  Jim Meyering  <meyering@lucent.com>
59212
59213         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
59214         of local `inptr' to avoid warning with some system declarations of
59215         iconv.
59216
59217 2001-01-02  Volker Borchert  <bt@teknon.de>
59218
59219         * m4/rename.m4: New file.
59220         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
59221
59222 2001-01-01  Jim Meyering  <meyering@lucent.com>
59223
59224         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
59225         even on systems with utmpx.h.  It's necessary for the declaration of
59226         utmp's ut_user member.  Reported by Andreas Jaeger.
59227
59228         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
59229         available. They are required for the declarations of getgrgid and
59230         getpwuid resp.
59231         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
59232         Reported by Andreas Jaeger.
59233
59234 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
59235
59236         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
59237         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
59238         so `make install' also works in VPATH builds.
59239
59240 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
59241
59242         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
59243         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
59244         can be used in subdirectories.
59245
59246 2000-12-29  Paul Eggert  <eggert@twinsun.com>
59247
59248         * lib/modechange.c: Do not assume that mode_t uses the
59249         traditional octal encoding.  E.g. "chmod 1 FOO" should set
59250         the other-execute bit of FOO even if S_IXOTH != 1.
59251
59252         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
59253         WOTH, XOTH, ALLM): New macros.
59254         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
59255          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
59256         Use them.
59257         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
59258         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
59259         (mode_compile):
59260         No need to use uintmax_t; unsigned long is long enough.
59261         Don't bother to get suffix since we don't use it.
59262
59263 2000-12-26  Jim Meyering  <meyering@lucent.com>
59264
59265         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
59266         better with autoheader.
59267
59268 2000-12-24  Jim Meyering  <meyering@lucent.com>
59269
59270         * lib/hash.c (is_prime): Return explicit boolean values.
59271         (hash_get_first): Return NULL to appease Irix5.6's 89.
59272         Reported by Nelson Beebe.
59273
59274 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
59275
59276         * lib/localcharset.c (locale_charset): Add support for Win32.
59277
59278 2000-12-18  Paul Eggert  <eggert@twinsun.com>
59279
59280         * lib/physmem.h, lib/physmem.c: New files.
59281
59282         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
59283         (noinst_HEADERS): Add physmem.h.
59284
59285         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
59286         't' for compatibility with Solaris 8 sort.
59287
59288 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
59289
59290         * lib/config.charset: Add support for BeOS.
59291
59292 2000-12-17  Jim Meyering  <meyering@lucent.com>
59293
59294         * m4/dos.m4 (jm_AC_DOS): New file and macro.
59295         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
59296
59297 2000-12-16  Jim Meyering  <meyering@lucent.com>
59298
59299         This bug had a serious impact on chown: `chown N:M FILE' (for integer
59300         N and M) would have treated it like `chown N:N FILE'.
59301
59302         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
59303
59304 2000-12-16  Jim Meyering  <meyering@lucent.com>
59305
59306         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
59307         SHELLS_FILE to a file name that's useful on djgpp systems.
59308         Include stdlib.h.
59309         (ADDITIONAL_DEFAULT_SHELLS): Define.
59310         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
59311         Based mostly on a patch from Prashant TR.
59312
59313 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
59314
59315         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
59316         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
59317         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
59318
59319 2000-12-08  Andreas Schwab  <schwab@suse.de>
59320
59321         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
59322         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
59323
59324 2000-12-07  Jim Meyering  <meyering@lucent.com>
59325
59326         * lib/stripslash.c (ISSLASH): Define.
59327         (strip_trailing_slashes): Use ISSLASH rather than comparing against
59328         `/'.
59329         From Prashant TR.
59330
59331         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
59332         (dir_name_r): Declare this function as static.
59333         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
59334         manifest itself on a name containing a mix of slashes and
59335         backslashes.
59336         Make this function work with names starting with a DOS-style
59337         drive letter and colon prefix.
59338         (dir_name): Append `.' if necessary.
59339         Based mostly on patches from Prashant TR and Eli Zaretskii.
59340
59341         * lib/dirname.h (dir_name_r): Remove prototype.
59342
59343 2000-12-06  Paul Eggert  <eggert@twinsun.com>
59344
59345         * m4/off_t-format.m4: Remove this file.
59346         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
59347
59348 2000-12-06  Jim Meyering  <meyering@lucent.com>
59349
59350         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
59351         replacement strtoull, we may well need the replacement strtoul, too.
59352         Check for declarations of strtoul and strtoull.
59353         Check for strtol.  Mainly as a cue to cause automake to include
59354         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
59355         Check for limits.h -- strtol.c needs it.
59356
59357 2000-12-05  Jim Meyering  <meyering@lucent.com>
59358
59359         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
59360
59361 2000-12-04  Jim Meyering  <meyering@lucent.com>
59362
59363         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
59364         Also include memory.h, stdlib.h, unistd.h if appropriate.
59365         Reported by Andreas Jaeger (conflicting declaration of malloc).
59366
59367 2000-12-02  Jim Meyering  <meyering@lucent.com>
59368
59369         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
59370         * m4/jm-macros.m4 (jm_MACROS): require it.
59371
59372 2000-12-02  Jim Meyering  <meyering@lucent.com>
59373
59374         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
59375
59376 2000-12-01  Paul Eggert  <eggert@twinsun.com>
59377
59378         * lib/memrchr.c: Include <config.h> before any system include file.
59379
59380 2000-11-30  Jim Meyering  <meyering@lucent.com>
59381
59382         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
59383
59384 2000-11-30  Jim Meyering  <meyering@lucent.com>
59385
59386         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
59387
59388 2000-11-29  Paul Eggert  <eggert@twinsun.com>
59389
59390         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
59391
59392 2000-11-26  Jim Meyering  <meyering@lucent.com>
59393
59394         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
59395
59396 2000-11-22  Paul Eggert  <eggert@twinsun.com>
59397
59398         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
59399         size of (size_t) -1; it's not portable.
59400
59401 2000-11-17  Jim Meyering  <meyering@lucent.com>
59402
59403         * lib/strstr.c: Update from GNU libc.
59404
59405 2000-11-17  Akim Demaille  <akim@epita.fr>
59406
59407         * lib/obstack.h: Formatting changes.
59408         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
59409         prevent type checking.
59410         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
59411         cast the value to (void *): assigning a `foo *' to a `void *'
59412         variable is valid.
59413         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
59414
59415 2000-11-16  Jim Meyering  <meyering@lucent.com>
59416
59417         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
59418
59419 2000-11-11  Jim Meyering  <meyering@lucent.com>
59420
59421         * lib/error.c: Add a couple #includes, merging from GNU libc version.
59422
59423 2000-11-10  Jim Meyering  <meyering@lucent.com>
59424
59425         * lib/obstack.h: Update from GNU libc.
59426         * lib/obstack.c: Likewise.
59427
59428 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
59429
59430         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
59431
59432 2000-11-06  Paul Eggert  <eggert@twinsun.com>
59433
59434         * lib/getusershell.c (setusershell): Use rewind rather than
59435         fseek/fseeko, to avoid configuration hassles with fseeko.
59436         Don't bother opening SHELLS_FILE if shellstream is NULL;
59437         it's not necessary.
59438
59439 2000-11-05  Jim Meyering  <meyering@lucent.com>
59440
59441         * lib/makepath.h (make_dir): Declare.
59442         * lib/makepath.c (make_dir): Remove `static' attribute.
59443         Tweak a comment.
59444
59445 2000-11-04  Jim Meyering  <meyering@lucent.com>
59446
59447         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
59448
59449 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
59450
59451         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
59452         last one in a bucket, advance to the next bucket.
59453
59454 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
59455
59456         * lib/fnmatch.c: Do not comment out all the code if we are using
59457         the GNU C library, because in some cases we are replacing buggy
59458         code in the GNU C library itself.
59459
59460 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
59461
59462         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
59463         (regex_compile): Catch bogus \(\1\).
59464
59465 2000-10-30  Paul Eggert  <eggert@twinsun.com>
59466
59467         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
59468         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
59469         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
59470
59471 2000-10-30  Paul Eggert  <eggert@twinsun.com>
59472
59473         * lib/error.h, getline.h, modechange.h:
59474         Remove "2000" from Copyright line, as the file hasn't been
59475         changed this year other than in the copyright notice.
59476
59477         * lib/xalloc.h: Add "2000" to Copyright line, as this file
59478         was changed this year.
59479
59480 2000-10-29  Jim Meyering  <meyering@lucent.com>
59481
59482         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
59483         renaming.
59484         * m4/ls-mntd-fs.m4: Likewise
59485
59486 2000-10-29  Jim Meyering  <meyering@lucent.com>
59487
59488         * lib/xstat.in: Fix grammar in comment.
59489
59490 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
59491
59492         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
59493         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
59494         doesn't define __restrict_arr.
59495
59496 2000-10-28  Jim Meyering  <meyering@lucent.com>
59497
59498         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
59499         (jm_PREREQ_MEMCHR): New function.
59500
59501 2000-10-28  Jim Meyering  <meyering@lucent.com>
59502
59503         * lib/memchr.c: Update from libc.
59504         Adjust for portability:
59505         [HAVE_STDLIB_H]: Include stdlib.h.
59506         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
59507         Undef __memchr, too.
59508         [!weak_alias]: Define __memchr to memchr.
59509
59510         * lib/regex.c: Update from libc.
59511         * lib/regex.h: Likewise.
59512         * lib/getopt1.c: Likewise.
59513         * lib/memcmp.c: Likewise.
59514
59515         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
59516         Avoid using fseek, when possible -- it's broken by design.
59517         Patch by Ulrich Drepper.
59518
59519 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
59520
59521         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
59522         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
59523         Giving in to popular pressure to shut up the compiler with casts.
59524
59525 2000-10-26  Jim Meyering  <meyering@lucent.com>
59526
59527         * lib/strftime.c: Update from libc.
59528
59529 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
59530
59531         * regex.c: More `unsigned char' -> `re_char' changes.
59532         Also change several `int' into `re_wchar_t'.
59533         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
59534         (PUSH_FAILURE_POINTER): Don't cast any more.
59535         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
59536         We want GCC to complain, since this piece of code makes
59537         re_match non-reentrant, which *should* be fixed.
59538         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
59539         (EXTEND_BUFFER): Use RETALLOC.
59540         (SET_LIST_BIT): Don't cast.
59541         (re_wchar_t): New type.
59542         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
59543         that those two functions will always properly return.
59544         (IMMEDIATE_QUIT_CHECK): Cast to void.
59545         (analyse_first): Use recursion rather than an explicit stack.
59546         (re_compile_fastmap): Can't fail anymore.
59547         (re_search_2): Don't check re_compile_fastmap for failure.
59548         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
59549         Now also sets the new value (passed in a new argument).
59550         (re_match_2_internal): Use it.
59551         Also, use a new var `reg' of type size_t when looping through regs
59552         rather than reuse the inappropriate `mcnt'.
59553
59554 2000-10-25  Jim Meyering  <meyering@lucent.com>
59555
59556         * lib/obstack.c: Update from libc.
59557
59558 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
59559
59560         * regex.c (regex_compile): Change the way of handling a range from
59561         a char less than 256 to a char not less than 256.
59562
59563 2000-10-24  Andrew Innes  <andrewi@gnu.org>
59564
59565         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
59566         NT-Emacs only.
59567         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
59568         so that re_search functions only quit when callers expect them to.
59569
59570 2000-10-23  Jim Meyering  <meyering@lucent.com>
59571
59572         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
59573         wrong.  That set_locale call must not have any side effects.
59574         From Paul Eggert.
59575
59576 2000-10-22  Jim Meyering  <meyering@lucent.com>
59577
59578         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
59579         [CYCLIC]: Remove now-unused definition.
59580
59581         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
59582         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
59583         Suggestion from Ulrich Drepper.
59584
59585 2000-10-21  Jim Meyering  <meyering@lucent.com>
59586
59587         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
59588         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
59589         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
59590
59591 2000-10-21  Jim Meyering  <meyering@lucent.com>
59592
59593         * lib/dirname.c (memrchr): Declare if necessary.
59594         (dir_name): Remove the restriction that there be no
59595         trailing slashes.  Now, this code skips past them, effectively
59596         ignoring them.
59597         [TEST_DIRNAME] (main): New unit tests.
59598
59599         * lib/memrchr.c: New file from GNU libc.
59600         Undef __memrchr, too.
59601         [!weak_alias]: Define __memrchr to memrchr.
59602         Guard weak_alias use with `#ifdef weak_alias'.
59603
59604 2000-10-21  Jim Meyering  <meyering@lucent.com>
59605
59606         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
59607         (dir_name): Use dir_name_r.
59608         * lib/dirname.h (dir_name_r): Declare it.
59609
59610 2000-10-17  Jim Meyering  <meyering@lucent.com>
59611
59612         * lib/quote.h (PARAMS): Define and use.
59613         Reported by Akim Demaille.
59614
59615         * lib/getopt.c: Update from libc.
59616
59617 2000-10-16  Jim Meyering  <meyering@lucent.com>
59618
59619         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
59620         setlocale.
59621         From Jan Fedak.
59622
59623 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
59624
59625         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
59626
59627 2000-09-25  Jim Meyering  <meyering@lucent.com>
59628
59629         * lib/md5.h (rol): Define (from GnuPG).
59630
59631         * lib/sha.c: Give credit (GnuPG) where due.
59632         (M): Use rol rather than open-coding it.
59633         Add a FIXME comment.
59634
59635 2000-09-21  Jim Meyering  <meyering@lucent.com>
59636
59637         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
59638         Reported by Michael Stone.
59639
59640 2000-09-20  Jim Meyering  <meyering@lucent.com>
59641
59642         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
59643         (noinst_HEADERS): Add sha.h.
59644         Based on code from Scott G. Miller and from GnuPG.
59645
59646 2000-09-18  Jim Meyering  <meyering@lucent.com>
59647
59648         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
59649         LIBS. Otherwise, everyone ends up linking with -lelf for some
59650         configurations.
59651         Reported by Mike Stone.
59652
59653 2000-09-15  Jim Meyering  <meyering@lucent.com>
59654
59655         * lib/regex.c: Update from libc.
59656
59657 2000-09-10  Jim Meyering  <meyering@lucent.com>
59658
59659         * lib/getopt.c (_getopt_internal): Update from glibc.
59660
59661 2000-09-09  Jim Meyering  <meyering@lucent.com>
59662
59663         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
59664         think it should be used as a general replacement for isascii.
59665         * lib/fnmatch.c: Likewise.
59666         * lib/mbswidth.c: Likewise
59667         * lib/regex.c: Likewise.
59668
59669         Don't use atoi.
59670         * lib/userspec.c: Include sys/param.h and limits.h.
59671         Include xstrtol.h.
59672         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59673         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
59674         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
59675         UID, GID.  Check range.
59676
59677 2000-09-06  Jim Meyering  <meyering@lucent.com>
59678
59679         * lib/getopt.c (_getopt_internal): Update from glibc.
59680
59681 2000-08-30  Jim Meyering  <meyering@lucent.com>
59682
59683         * lib/strftime.c: Merge in changes from GNU libc.
59684
59685 2000-08-26  Jim Meyering  <meyering@lucent.com>
59686
59687         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
59688         * m4/fpending.m4: New file.
59689
59690 2000-08-26  Jim Meyering  <meyering@lucent.com>
59691
59692         * lib/closeout.c: Include "__fpending.h".
59693         (close_stdout_status): Return right away if there's nothing to flush.
59694
59695         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
59696         * lib/__fpending.c: New file.
59697         * lib/__fpending.h: New file.
59698
59699 2000-08-20  Jim Meyering  <meyering@lucent.com>
59700
59701         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
59702         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
59703         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
59704
59705 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
59706
59707         Improve fileutils installation on systems where running
59708         programs (like install) can't be unlinked.
59709         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
59710         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
59711
59712 2000-08-07  Paul Eggert  <eggert@twinsun.com>
59713
59714         Standardize on "memory exhausted" instead of "Memory exhausted"
59715         or "virtual memory exhausted".
59716         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
59717         "virtual memory exhausted".
59718         * lib/same.c (same_name): Invoke xalloc_die instead of printing
59719         our own message.
59720         * lib/userspec.c (parse_user_spec): Likewise.
59721         * lib/bumpalloc.h: comment fix
59722         * lib/same.c, userspec.c: Include xalloc.h.
59723
59724         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
59725         not char *const and pointing to a constant array.
59726         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
59727         (xrealloc): Comment fix.
59728
59729         * lib/userspec.c (parse_user_spec):
59730         Don't translate a message until just before returning,
59731         to avoid unnecessary translation.
59732
59733 2000-08-07  Jim Meyering  <meyering@lucent.com>
59734
59735         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
59736         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
59737         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
59738         getgroups.c, gethostname.c, getopt.h, group-member.c,
59739         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
59740         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
59741         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
59742         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
59743         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
59744         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
59745         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
59746         yesno.c: Back out Copyright date changes for each file with no change
59747         this year.  This eases coordination with other programs using the same
59748         source code modules.  From Paul Eggert.
59749
59750 2000-08-06  Paul Eggert  <eggert@twinsun.com>
59751
59752         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
59753         not char, for compatibility with glibc 2.1.3 strftime.c.
59754
59755 2000-08-03  Greg McGary  <greg@mcgary.org>
59756
59757         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
59758         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
59759         (EXTEND_BUFFER): Use them.
59760
59761 2000-08-01  Jim Meyering  <meyering@lucent.com>
59762
59763         * lib/dirname.c (ISSLASH): Define.
59764         (BACKSLASH_IS_PATH_SEPARATOR): Define.
59765         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
59766         both `\' and `/' may be use as path separators.
59767         Based on a patch from Prashant TR.
59768
59769 2000-07-31  Paul Eggert  <eggert@twinsun.com>
59770
59771         * lib/quotearg.c (quotearg_n_options): Don't make the initial
59772         slot vector a constant, since it might get modified.
59773
59774 2000-07-31  Jim Meyering  <meyering@lucent.com>
59775
59776         * lib/xmalloc.c: Use `virtual memory exhausted', not
59777         `Memory exhausted'.
59778         * lib/obstack.c (print_and_abort): Likewise.
59779
59780 2000-07-30  Paul Eggert  <eggert@twinsun.com>
59781
59782         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
59783         buffer, so that the caller can always quote one small
59784         component of a "memory exhausted" message in slot 0.
59785         From a suggestion by Jim Meyering.
59786
59787 2000-07-30  Jim Meyering  <meyering@lucent.com>
59788
59789         * lib/makepath.c (make_path): Quote the other instance, too.
59790
59791         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
59792         (STATIC_BUF_SIZE): Define.
59793         (quotearg_n_options): Use only statically allocated storage when
59794         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
59795         than STATIC_BUF_SIZE.
59796
59797 2000-07-29  Jim Meyering  <meyering@lucent.com>
59798
59799         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
59800         * lib/dirname.c (dir_name): Likewise.
59801
59802         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
59803         `/'.
59804
59805         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
59806         (dir_name): Assert that there are no trailing slashes.
59807
59808 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
59809
59810         * lib/mbswidth.h (mbswidth): Add a flags argument.
59811         (mbswidth): New declaration.
59812         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
59813         * lib/mbswidth.c (mbswidth): Add a flags argument.
59814         (mbsnwidth): New function.
59815
59816 2000-07-24  Jim Meyering  <meyering@lucent.com>
59817
59818         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
59819
59820 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59821
59822         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
59823
59824 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59825
59826         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
59827         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
59828         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
59829         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
59830         invoke multibyte primitives.
59831
59832 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59833
59834         * lib/quotearg.c:
59835         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
59836         so that mbstate_t is always defined.
59837
59838         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
59839         be 1 in at least one GCC installation, and this configuration
59840         error is likely to be common.  Ignoring MB_LEN_MAX hurts
59841         performance on hosts that have mbrtowc but have only unibyte
59842         locales, but I assume these hosts are rare.
59843
59844 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59845
59846         * lib/mbswidth.c (_XOPEN_SOURCE):
59847         Don't define; this causes problems on Solaris 7.
59848         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
59849
59850 2000-07-23  Jim Meyering  <meyering@lucent.com>
59851
59852         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
59853         too: getgrgid, getpwuid, getuid.
59854
59855 2000-07-23  Jim Meyering  <meyering@lucent.com>
59856
59857         * lib/basename.c (base_name): Add an assertion.
59858
59859 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
59860
59861         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
59862         shadow its mbsinit function.
59863
59864 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
59865
59866         * lib/mbswidth.h: New file.
59867         * lib/mbswidth.c: New file.
59868         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
59869         (noinst_HEADERS): Add mbswidth.h.
59870
59871 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
59872
59873         * lib/config.charset: Add support for FreeBSD. Improve support for
59874         HP-UX and IRIX 6.
59875
59876 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
59877
59878         * m4/mbswidth.m4: New file.
59879         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
59880
59881 2000-07-15  Jim Meyering  <meyering@lucent.com>
59882
59883         * lib/makepath.c: Include quote.h.
59884         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
59885         corresponding argument in a `quote (...)' call.
59886         Give better diagnostics.
59887
59888         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
59889         (noinst_HEADERS): Add quote.h.
59890
59891         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
59892         from tar's src/misc.c.
59893         * lib/quote.h: New file.  Prototypes for same.
59894
59895 2000-07-14  Paul Eggert  <eggert@twinsun.com>
59896
59897         From a suggestion by Bruno Haible.
59898         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
59899         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
59900         to decide whether to define the BeOS workaround macro;
59901         this adjusts to the change to AC_MBSTATE_T.
59902
59903 2000-07-14  Jim Meyering  <meyering@lucent.com>
59904
59905         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
59906         jm_AC_TYPE_UINTMAX_T.
59907
59908 2000-07-13  Paul Eggert  <eggert@twinsun.com>
59909
59910         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
59911
59912         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
59913         quotearg_buffer_restyled): Add support for
59914         clocale_quoting_style.  Undo previous change to
59915         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
59916         and "{RIGHT QUOTATION MARK}" msgids.
59917
59918 2000-07-10  Paul Eggert  <eggert@twinsun.com>
59919
59920         From a suggestion by Bruno Haible.
59921         * m4/mbstate_t.m4 (AC_MBSTATE_T):
59922         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
59923         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
59924         and mbstate_t, to a single-part test that simply defines mbstate_t.
59925         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
59926         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
59927
59928 2000-07-10  Jim Meyering  <meyering@lucent.com>
59929
59930         * m4/strerror_r.m4: Mirror the correction made in autoconf.
59931
59932         * m4/gnu-source.m4: Output to confdefs.h directly.
59933         Suggestion from Akim Demaille.
59934
59935 2000-07-09  Paul Eggert  <eggert@twinsun.com>
59936
59937         The old behavior of quoting `like this' doesn't look good with
59938         newer, ISO-style fonts.  See:
59939         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
59940
59941         Instead, quote "like this" by default.  Let the translator
59942         tailor the locale-specific quoting behavior by providing
59943         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
59944
59945         * lib/quotearg.c (N_): New macro.
59946         (gettext_default): New function.
59947         (quotearg_buffer_restyled): Use
59948         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
59949         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
59950
59951 2000-07-09  Jim Meyering  <meyering@lucent.com>
59952
59953         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
59954         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
59955
59956         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
59957         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
59958
59959 2000-07-09  Jim Meyering  <meyering@lucent.com>
59960
59961         * lib/Most files: Update copyright dates to include 2000.
59962
59963 2000-07-08  Jim Meyering  <meyering@lucent.com>
59964
59965         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
59966         if not defined.
59967         (xgethostname): Remove now-unnecessary #ifdef.
59968         Move declaration of `err' into loop where it's used.
59969
59970 2000-07-05  Paul Eggert  <eggert@twinsun.com>
59971         and Bruno Haible  <haible@clisp.cons.org>
59972
59973         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
59974         only if the test for an object-type mbstate_t fails.  This
59975         prevents us from mistakenly reporting that mbstate_t is a
59976         system object type after we "#define mbstate_t int" to work
59977         around its lack.
59978
59979 2000-07-05  Paul Eggert  <eggert@twinsun.com>
59980         and Bruno Haible  <haible@clisp.cons.org>
59981
59982         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
59983
59984 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59985
59986         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
59987         to strerror_r.
59988         Include <ctype.h> for use of isalpha.
59989
59990 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59991
59992         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
59993         by allocating a larger buffer. Test the gethostname return value for
59994         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
59995         returns an error and ENAMETOOLONG isn't defined.
59996
59997 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59998
59999         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
60000         dimension.
60001
60002 2000-07-04  Jim Meyering  <meyering@lucent.com>
60003
60004         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
60005         of the deprecated AC_CHECKING.
60006
60007 2000-07-04  Jim Meyering  <meyering@lucent.com>
60008
60009         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
60010         Reported by Bruno Haible.
60011
60012 2000-07-04  Jim Meyering  <meyering@lucent.com>
60013
60014         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
60015         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
60016         lacks mbrtowc.
60017
60018 2000-07-03  Paul Eggert  <eggert@twinsun.com>
60019
60020         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
60021         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
60022
60023 2000-07-03  Paul Eggert  <eggert@twinsun.com>
60024         and Bruno Haible  <haible@clisp.cons.org>
60025
60026         * lib/quotearg.c (mbrtowc):
60027         Assign to *pwc, and return 1 only if result is nonzero.
60028         (iswprint): Use ISPRINT when substituting our own mbrtowc.
60029
60030 2000-07-03  Jim Meyering  <meyering@lucent.com>
60031
60032         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
60033
60034 2000-07-03  Jim Meyering  <meyering@lucent.com>
60035
60036         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
60037         This is necessary to get a definition of e.g., UTMP_FILE on
60038         HP-UX 10.20.
60039         From Bob Proulx.
60040
60041 2000-07-02  Jim Meyering  <meyering@lucent.com>
60042
60043         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
60044
60045         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
60046         AC_LIBOBJ(function_name).
60047         * m4/chown.m4: Likewise.
60048         * m4/fnmatch.m4: Likewise.
60049         * m4/ftruncate.m4: Likewise.
60050         * m4/getgroups.m4: Likewise.
60051         * m4/getline.m4: Likewise.
60052         * m4/group-member.m4: Likewise.
60053         * m4/jm-macros.m4: Likewise.
60054         * m4/lstat.m4: Likewise.
60055         * m4/malloc.m4: Likewise.
60056         * m4/memcmp.m4: Likewise.
60057         * m4/nanosleep.m4: Likewise.
60058         * m4/putenv.m4: Likewise.
60059         * m4/realloc.m4: Likewise.
60060         * m4/regex.m4: Likewise.
60061         * m4/stat.m4: Likewise.
60062         * m4/strftime.m4: Likewise.
60063
60064 2000-07-02  Jim Meyering  <meyering@lucent.com>
60065
60066         * lib/quotearg.c (mbstate_t): Don't define here.
60067
60068 2000-07-02  Jim Meyering  <meyering@lucent.com>
60069
60070         * lib/nanosleep.c (SIGCONT): Define if not already defined.
60071
60072 2000-07-01  Jim Meyering  <meyering@lucent.com>
60073
60074         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
60075
60076 2000-07-01  Jim Meyering  <meyering@lucent.com>
60077
60078         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
60079         problem.
60080
60081 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
60082
60083         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
60084         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
60085
60086 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
60087
60088         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
60089         per change in ../m4/ls-mntd-fs.m4.
60090         (read_filesystem_list): Ignore symbolic links.
60091
60092 2000-06-29  Jim Meyering  <meyering@lucent.com>
60093
60094         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
60095         for declaration of strcmp.
60096
60097         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
60098
60099         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
60100         Avoid warning by casting result to `char *' to remove `const'.
60101
60102 2000-06-28  Jim Meyering  <meyering@lucent.com>
60103
60104         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
60105         included by quotearg.c, for which we perform this test.  From
60106         Bruno Haible.
60107
60108 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
60109
60110         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
60111         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
60112         <utmpx.h> exists, put readutmp.o into LIBOBJS.
60113
60114 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
60115
60116         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
60117
60118 2000-06-26  Paul Eggert  <eggert@twinsun.com>
60119
60120         savedir now sets errno on failure and invokes xmalloc to get memory.
60121         Fix a couple of other minor bugs while we're at it.
60122
60123         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
60124         (NAMLEN): Remove macro.
60125         (malloc, realloc): Remove decls.
60126         (stpcpy): Likewise.
60127         ("xalloc.h"): Include.
60128         (NAME_SIZE_DEFAULT): New macro.
60129         (savedir): Use xmalloc / xrealloc to allocate memory.
60130         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
60131         Skip "" directory entries.
60132         Use strlen to calculate directory entry length, since the old method
60133         is rarely used these days and isn't worth supporting.
60134         Don't use a pointer after freeing it.
60135         Check for integer overflow when calculating allocation size.
60136         Use memcpy to copy entries, instead of stpcpy.
60137         Set errno properly when returning NULL.
60138         Check for readdir error.
60139
60140 2000-06-26  Jim Meyering  <meyering@lucent.com>
60141
60142         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
60143
60144 2000-06-25  Jim Meyering  <meyering@lucent.com>
60145
60146         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
60147         Linux header bug when _XOPEN_SOURCE is defined to 500.
60148
60149 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
60150
60151         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
60152         deficiency.
60153
60154 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
60155
60156         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
60157         Include xalloc.h.
60158         Don't include <stdlib.h>.  Don't declare malloc, realloc.
60159
60160 2000-06-24  Jim Meyering  <meyering@lucent.com>
60161
60162         * m4/strerror_r.m4: Revive this file -- to try out an experimental
60163         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
60164         for which strerror does return char*, but which lacks a conveniently
60165         accessible declaration of the function.  If the compile-test says
60166         strerror_r doesn't work, then resort to a `run'-test that works on
60167         BeOS and segfaults on DEC Unix.
60168
60169 2000-06-24  Jim Meyering  <meyering@lucent.com>
60170
60171         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
60172
60173 2000-06-23  Paul Eggert  <eggert@twinsun.com>
60174
60175         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
60176         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
60177
60178 2000-06-23  Paul Eggert  <eggert@twinsun.com>
60179
60180         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
60181         (mbrtowc, mbstate_t): Define substitutes if
60182         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
60183         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
60184         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
60185
60186 2000-06-23  Jim Meyering  <meyering@lucent.com>
60187
60188         * m4/afs.m4: Add missing AC_MSG_RESULT.
60189         Reported by Bruno Haible.
60190
60191         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
60192         Suggestion from Bruno Haible.
60193
60194 2000-06-23  Jim Meyering  <meyering@lucent.com>
60195
60196         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
60197
60198 2000-06-21  Jim Meyering  <meyering@lucent.com>
60199
60200         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
60201
60202 2000-06-21  Jim Meyering  <meyering@lucent.com>
60203
60204         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
60205         (noinst_HEADERS): Add getstr.h.
60206
60207         * lib/getline.c (getstr): Move into a separate file.
60208         * lib/getstr.c (getstr): New file, extracted from getline.c, with
60209         the following changes: new parameter, delim2; both delim[12]
60210         parameters have type `int', not `char'.  The latter would lose
60211         with 8-bit delimiters.
60212         * lib/getstr.h: New file.
60213
60214 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
60215
60216         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
60217         than 1024, return a memory chunk of least possible size, instead
60218         of size PATH_MAX + 2. In the loop, increment the size proportionally.
60219         Use free/xmalloc instead of xrealloc to avoid copying for very long
60220         paths.
60221
60222 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
60223
60224         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
60225         the empty string.
60226
60227 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
60228
60229         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
60230         address, not strdup.  Include <stdlib.h> and don't declare free().
60231
60232 2000-06-19  Jim Meyering  <meyering@lucent.com>
60233
60234         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
60235
60236 2000-06-18  Jim Meyering  <meyering@lucent.com>
60237
60238         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
60239
60240         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
60241         `checking whether...' message to be consistent with that of the
60242         lstat test.
60243
60244 2000-06-18  Jim Meyering  <meyering@lucent.com>
60245
60246         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
60247         Besides, these days every porting target provides a mkdir function.
60248
60249         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
60250         needed. (this snippet comes from src/system.h).
60251
60252 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
60253
60254         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
60255
60256 2000-06-15  Paul Eggert  <eggert@twinsun.com>
60257
60258         * lib/human.c (adjust_value): New function.
60259         (human_readable_inexact): Apply rounding style even when
60260         printing approximate values.
60261
60262 2000-06-14  Paul Eggert  <eggert@twinsun.com>
60263
60264         * lib/human.c (human_readable_inexact): Allow an input block
60265         size that is not a multiple of the output block size, and vice versa.
60266         Reported by Piergiorgio Sartor.
60267
60268 2000-06-14  Paul Eggert  <eggert@twinsun.com>
60269
60270         * lib/getdate.y (get_date): Apply relative times after time
60271         zone indicator, not before.  Reported by Todd A. Jacobs.
60272
60273 2000-06-13  Jim Meyering  <meyering@lucent.com>
60274
60275         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
60276
60277         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
60278
60279 2000-06-12  Paul Eggert  <eggert@twinsun.com>
60280
60281         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
60282
60283 2000-06-12  Jim Meyering  <meyering@lucent.com>
60284
60285         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
60286         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
60287         optional argument.
60288         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
60289         the optional argument, `lib'.
60290
60291 2000-06-08  Jim Meyering  <meyering@lucent.com>
60292
60293         * m4/largefile.m4: Remove file (now that it's part of autoconf).
60294
60295 2000-06-04  Paul Eggert  <eggert@twinsun.com>
60296
60297         Rewrite largefile configuration so that we don't need to run
60298         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
60299         AC_CANONICAL_HOST in configure.in -- jmm]
60300
60301         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
60302         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
60303         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
60304         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
60305         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
60306         All uses changed.
60307         Instead of inspecting the output of getconf, try to compile the
60308         test program without and with the macro definition.
60309         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
60310         for getconf.  Instead, check for the needed flags by compiling
60311         test programs.
60312
60313 2000-06-04  Paul Eggert  <eggert@twinsun.com>
60314
60315         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
60316
60317 2000-06-04  Jim Meyering  <meyering@lucent.com>
60318
60319         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
60320         SunOS 4.1.4 for which gid_t is an unsigned type.
60321
60322 2000-06-03  Jim Meyering  <meyering@lucent.com>
60323
60324         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
60325         now that autoconf requires that.
60326
60327         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
60328         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
60329         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
60330
60331 2000-06-03  Jim Meyering  <meyering@lucent.com>
60332
60333         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
60334
60335 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
60336
60337         * m4/glibc21.m4: New file.
60338         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
60339
60340 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
60341
60342         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
60343         newer, don't install charset.alias.
60344         * lib/config.charset: Change the Linux/glibc rules so they become empty
60345         on glibc-2.1 or newer.
60346
60347 2000-06-02  Jim Meyering  <meyering@lucent.com>
60348
60349         * lib/mountlist.c: Back out last change.  Instead, do this...
60350         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
60351         me_dummy member using the same `ignore'-testing code.
60352         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
60353         fs_type strings.
60354         From Mark D. Roth.
60355
60356 2000-05-29  Jim Meyering  <meyering@lucent.com>
60357
60358         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
60359         mounts with the `ignore' attribute.  Based on a patch from
60360         Mark D. Roth.
60361
60362 2000-05-28  Jim Meyering  <meyering@lucent.com>
60363
60364         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
60365         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60366         * m4/stat.m4: Likewise.
60367         * m4/lstat.m4: Likewise.
60368         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
60369
60370         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
60371         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
60372
60373 2000-05-26  Jim Meyering  <meyering@lucent.com>
60374
60375         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
60376
60377 2000-05-24  Jim Meyering  <meyering@lucent.com>
60378
60379         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
60380         autoconf requires that.
60381         * m4/lib-check.m4: Likewise.
60382         * m4/jm-macros.m4: Likewise.
60383         * m4/strftime.m4: Likewise.
60384
60385         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
60386         AC_CHECK_DECLS, now that autoconf requires that.
60387
60388 2000-05-22  Jim Meyering  <meyering@lucent.com>
60389
60390         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60391         * m4/lstat.m4: Likewise.
60392
60393 2000-05-22  Jim Meyering  <meyering@lucent.com>
60394
60395         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
60396
60397 2000-05-20  Jim Meyering  <meyering@lucent.com>
60398
60399         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
60400         (jm_PREREQ): Use it.
60401
60402 2000-05-18  Jim Meyering  <meyering@lucent.com>
60403
60404         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
60405         back, too, since it may have been modified by allocate_entry.
60406         (hash_delete): Rewrite to use neither the assignment operator
60407         nor the comma operator in an if-expression.
60408
60409 2000-05-15  Paul Eggert  <eggert@twinsun.com>
60410
60411         * lib/closeout.c:
60412         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
60413         Remove; no longer needed.
60414         "quotearg.h": Add include.
60415         (file_name): Do not bother to explicitly initialize to NULL; it's less
60416         efficient on some hosts.
60417         (close_stdout_status): Remove test as to whether stdout was already
60418         closed; it breaks for the case "echo x | sort >&-".
60419         Quote file name colons.
60420         Do not assume that _("write error") lacks format strings.
60421
60422 2000-05-15  Jim Meyering  <meyering@lucent.com>
60423
60424         * lib/version-etc.c (version_etc_copyright): Update the copyright
60425         string used in all --version output.
60426
60427 2000-05-14  Jim Meyering  <meyering@lucent.com>
60428
60429         * lib/closeout.c (close_stdout_set_file_name): New function.
60430         (close_stdout_status): Use new file-scoped global.
60431         Return right away if fstat says the stdout file descriptor is invalid.
60432         * lib/closeout.h (close_stdout_set_file_name): Declare.
60433
60434 2000-05-10  Jim Meyering  <meyering@lucent.com>
60435
60436         * lib/closeout.c [default_exit_status]: New file-scoped variable.
60437         (close_stdout_set_status): New function.
60438         * lib/closeout.h (close_stdout_set_status): Declare.
60439
60440 2000-05-09  Jim Meyering  <meyering@lucent.com>
60441
60442         * m4/gettext.m4: Rename this...
60443         * m4/libintl.m4: ...to this.
60444
60445 2000-05-08  Jim Meyering  <meyering@lucent.com>
60446
60447         * lib/long-options.c: Don't include closeout.h.
60448         (parse_long_options): Don't call close_stdout for --version.
60449
60450 2000-05-06  Paul Eggert  <eggert@twinsun.com>
60451
60452         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
60453         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
60454         2.1.3 bug.  This avoids a clash when files like regex.c define
60455         _GNU_SOURCE.
60456
60457 2000-05-06  Jim Meyering  <meyering@lucent.com>
60458
60459         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
60460         (AC_REPLACE_FUNCS): Add strnlen.
60461
60462         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
60463         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
60464
60465         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
60466         AC_SEARCH_LIBS call for nanosleep.
60467         (LIB_NANOSLEEP): Set and AC_SUBST.
60468
60469 2000-05-06  Jim Meyering  <meyering@lucent.com>
60470
60471         * lib/strnlen.c: Undefine __strnlen and strnlen.
60472         [!weak_alias]: Define __strnlen to strnlen.
60473
60474         * lib/atexit.c: New file, from libiberty.
60475
60476 2000-05-06  Jim Meyering  <meyering@lucent.com>
60477
60478         * lib/closeout.c (close_stdout_status): Also check for errors on the
60479         stderr stream.
60480
60481 2000-05-05  Jim Meyering  <meyering@lucent.com>
60482
60483         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
60484         AC_SEARCH_LIBS call for clock_gettime.
60485         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
60486
60487         * m4/search-libs.m4: Update from autoconf.
60488
60489         su doesn't work on Solaris 2.6.
60490         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
60491         <shadow.h>.  Reported by Dragos Harabor.
60492
60493 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
60494
60495         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
60496         memcpy instead of xmalloc, xrealloc, path_concat.
60497         (locale_charset): Treat empty environment variables as absent.
60498         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
60499
60500 2000-05-04  Jim Meyering  <meyering@lucent.com>
60501
60502         * lib/getopt.c: Update from glibc.
60503         * lib/obstack.c: Likewise.
60504         * lib/obstack.h: Likewise.
60505         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
60506         file
60507
60508         * lib/regex.h: Likewise.
60509         * lib/strndup.c: Likewise.
60510         * lib/strnlen.c: New file, from glibc.
60511
60512 2000-05-03  Jim Meyering  <meyering@lucent.com>
60513
60514         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
60515
60516 2000-05-02  Paul Eggert  <eggert@twinsun.com>
60517
60518         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
60519         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
60520         compile-time test, rather than inspecting host and OS, to
60521         decide whether to define _LARGEFILE_SOURCE.
60522
60523 2000-05-01  Jim Meyering  <meyering@lucent.com>
60524
60525         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
60526
60527         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
60528         Based on a patch from Bruno Haible.
60529
60530 2000-05-01  Jim Meyering  <meyering@lucent.com>
60531
60532         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
60533
60534 2000-04-29  Jim Meyering  <meyering@lucent.com>
60535
60536         * lib/path-concat.c: Declare strdup only if it's not defined.
60537         * lib/canon-host.c: Likewise.
60538
60539 2000-04-28  Jim Meyering  <meyering@lucent.com>
60540
60541         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
60542         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
60543         is included first, then limits.h is included by locale.h by libintl.h.
60544         From John David Anglin.
60545
60546 2000-04-25  Jim Meyering  <meyering@lucent.com>
60547
60548         * lib/makepath.c (S_IRWXUGO): Define.
60549         (make_path): Always perform explicit chmod if MODE specifies any
60550         of the `special' permission bits.  Prompted by a bug report against
60551         install from Mate Wierdl and Joost van Baal.
60552
60553 2000-04-18  Jim Meyering  <meyering@lucent.com>
60554
60555         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
60556         (jm_PREREQ): Use it.
60557
60558 2000-04-18  Jim Meyering  <meyering@lucent.com>
60559
60560         * lib/README: New file.
60561
60562         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
60563         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
60564
60565 2000-04-17  Jim Meyering  <meyering@lucent.com>
60566
60567         Get it right :-)
60568         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
60569         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
60570         Suggestion from Akim Demaille.
60571
60572 2000-04-17  Jim Meyering  <meyering@lucent.com>
60573
60574         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
60575         the definition of it to rpl_strftime also defined-away the system's
60576         declaration.
60577
60578 2000-04-15  Jim Meyering  <meyering@lucent.com>
60579
60580         Use `C' to denote so-called `contiguous' files, the same way
60581         that tar does.
60582         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
60583         (ftypelet): Use S_ISCTG.
60584         From Michael Deutschmann.
60585
60586 2000-04-14  Jim Meyering  <meyering@lucent.com>
60587
60588         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
60589         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
60590         clobbered.
60591
60592 2000-04-14  Jim Meyering  <meyering@lucent.com>
60593
60594         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
60595
60596 2000-04-13  Jim Meyering  <meyering@lucent.com>
60597
60598         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
60599         AH_VERBATIM to insert required #ifndef into config.h.in.
60600         Suggestion from Akim Demaille.
60601
60602 2000-04-12  Jim Meyering  <meyering@lucent.com>
60603
60604         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
60605         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
60606         Christian Krackowizer.
60607
60608         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
60609         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
60610         (AC_SYS_LARGEFILE): Require.
60611         (AM_C_PROTOTYPES): Require.
60612
60613 2000-04-08  Jim Meyering  <meyering@lucent.com>
60614
60615         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
60616         names don't conflict.  Reported by Eli Zaretskii.
60617
60618 2000-04-07  Jim Meyering  <meyering@lucent.com>
60619
60620         * lib/putenv.c: Move inclusion of errno.h so it follows that of
60621         sys/types.h, to work around system header problems on AIX 3.2.5.
60622         From Bruno Haible.
60623
60624 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
60625
60626         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
60627         bug.  Deal with the different error behavior of Irix iconv.
60628
60629 2000-04-05  Paul Eggert  <eggert@twinsun.com>
60630
60631         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
60632         IRIX if the installer said otherwise.
60633
60634 2000-04-05  Jim Meyering  <meyering@lucent.com>
60635
60636         Portability tweaks required for ultrix4.3.
60637         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
60638         (jm_CHECK_DECLS): Add getutent to the list of functions.
60639         (_jm_DECL_HEADERS): Add utmpx.h.
60640         From John David Anglin.
60641
60642         * m4/strftime.m4: Back out the 2000-04-02 change.
60643         Instead of that change, simply undefine putenv in the test program.
60644
60645 2000-04-05  Jim Meyering  <meyering@lucent.com>
60646
60647         Portability tweaks required for ultrix4.3.
60648         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
60649         getutent.
60650         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
60651         * lib/canon-host.c: Declare strdup.
60652         * lib/path-concat.c: Likewise.
60653         From John David Anglin.
60654
60655 2000-04-04  Jim Meyering  <meyering@lucent.com>
60656
60657         Be more DOS 8.3-friendly.
60658         * lib/ref-add.sin: Renamed from ref-add.sed.in.
60659         * lib/ref-del.sin: Renamed from ref-del.sed.in.
60660         * lib/Makefile.am: Reflect renaming.
60661         Reported by Eli Zaretskii.
60662
60663         Use a temporary file name that won't clash with `charset.alias'
60664         in the DOS 8.3 name space.
60665         * lib/Makefile.am (charset_tmp): Define.
60666         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
60667         (uninstall-local): Likewise.
60668         Reported by Eli Zaretskii.
60669
60670 2000-04-03  Jim Meyering  <meyering@lucent.com>
60671
60672         * m4/gettext.m4: Fix typo in comment.
60673
60674         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
60675         textutils/configure.in).  Suggestion from Paul Eggert.
60676         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
60677
60678 2000-04-02  Paul Eggert  <eggert@twinsun.com>
60679
60680         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
60681         variable in the shell rather than using putenv, which isn't
60682         portable.  This avoids the configure-time inter-test dependency
60683         on the potentially-renamed putenv function.
60684
60685 2000-03-30  Paul Eggert  <eggert@twinsun.com>
60686
60687         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
60688         before checking struct stat.st_blksize, so that
60689         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
60690
60691 2000-03-29  Paul Eggert  <eggert@twinsun.com>
60692
60693         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
60694         since strftime.c uses HAVE_STRFTIME to decide whether to use
60695         the underlying strftime.
60696
60697 2000-03-29  Paul Eggert  <eggert@twinsun.com>
60698
60699         * lib/time/strftime.c (my_strftime): Make sure we call the system
60700         strftime, not ourselves, when invoking the underlying strftime.
60701
60702 2000-03-24  Jim Meyering  <meyering@lucent.com>
60703
60704         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
60705         (charset_alias): Define.
60706         (install-exec-local): Factor out common code.
60707         (uninstall-local): Split lines longer than 80.
60708         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
60709         (SUFFIXES): Define.
60710         (.sed.in.sed): New rule.  Don't redirect directly to $@.
60711         (CLEANFILES): Add ref-add.sed and ref-del.sed.
60712
60713 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
60714
60715         * lib/config.charset: Output a line containing "Packages using this
60716         file".
60717         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
60718         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
60719         ref-del.sed): New rules.
60720
60721 2000-03-17  Jim Meyering  <meyering@lucent.com>
60722
60723         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
60724         Otherwise, include <strings.h>
60725
60726 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
60727
60728         * lib/unicodeio.c (utf8_wctomb): New function.
60729         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
60730         format instead of in UCS-4 with platform dependent endianness.
60731
60732 2000-03-10  Jim Meyering  <meyering@lucent.com>
60733
60734         * m4/lib-check.m4: Look for getspnam in -lgen, too.
60735         From Marco Franzen.
60736
60737 2000-03-07  Paul Eggert  <eggert@twinsun.com>
60738
60739         * lib/savedir.c (savedir): Work even if directory size is
60740         negative; this can happen with some screwy NFS configurations.
60741
60742 2000-03-06  Jim Meyering  <meyering@lucent.com>
60743
60744         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
60745         if it's NULL (because we ran out of memory).  From Bruno Haible.
60746
60747 2000-03-05  Jim Meyering  <meyering@lucent.com>
60748
60749         * lib/localcharset.c ("path-concat.h"): Include.
60750         (get_charset_aliases): Use path_concat instead of ANSI string
60751         concatenation.
60752
60753         * lib/unicodeio.h (PARAMS): Define.
60754         Use it to guard prototype.
60755
60756 2000-03-04  Jim Meyering  <meyering@lucent.com>
60757
60758         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
60759         for lib/localcharset.c.
60760
60761 2000-03-04  Jim Meyering  <meyering@lucent.com>
60762
60763         * lib/Makefile.am (install-exec-local): Create $(libdir) before
60764         installing into it.
60765         (uninstall-local): Uncomment this rule so `make distcheck' works
60766         once again.
60767
60768         * lib/unicodeio.c (<errno.h>): Include it.
60769         (errno): Declare if not defined.
60770
60771         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
60772
60773         * lib/config.charset: New version, incorporating remarks from a linux
60774         i18n mailing list.  From Bruno Haible.
60775
60776 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
60777
60778         * m4/codeset.m4: New file.
60779         * m4/iconv.m4: New file.
60780         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
60781
60782 2000-03-03  Jim Meyering  <meyering@lucent.com>
60783
60784         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
60785
60786 2000-03-02  Jim Meyering  <meyering@lucent.com>
60787
60788         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
60789         the messages come out on separate lines.
60790
60791         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
60792         rather than jm_CHECK_DECLARATIONS.
60793         * m4/decl.m4: Remove now-unused file.
60794
60795         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
60796         geteuid.
60797
60798 2000-03-02  Jim Meyering  <meyering@lucent.com>
60799
60800         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
60801
60802 2000-03-01  Jim Meyering  <meyering@lucent.com>
60803
60804         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
60805         * lib/unicodeio.c: Likewise.
60806
60807 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
60808
60809         * lib/config.charset: New file.
60810         * lib/localcharset.c: New file.
60811         * lib/unicodeio.h, lib/unicodeio.c: New files.
60812         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
60813         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
60814         (noinst_HEADERS): Add unicodeio.h.
60815         (all-local, install-exec-local, charset.alias): New targets.
60816
60817 2000-02-28  Paul Eggert  <eggert@twinsun.com>
60818
60819         * lib/quotearg.c (ALERT_CHAR): New macro.
60820         (quotearg_buffer_restyled): Use it.
60821
60822 2000-02-27  Jim Meyering  <meyering@lucent.com>
60823
60824         * m4/check-decl.m4: Add getenv to the list.
60825
60826 2000-02-27  Jim Meyering  <meyering@lucent.com>
60827
60828         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
60829         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
60830
60831         * lib/backupfile.c: Guard inclusion of stdlib.h with
60832         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
60833         Declare malloc if needed.
60834
60835         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
60836         `#ifndef HAVE_DECL..'
60837         now that autoconf always defines the HAVE_DECL_ symbols.
60838         * lib/human.c: Likewise.
60839         * lib/same.c: Likewise.
60840         * lib/strtoumax.c: Likewise.
60841
60842         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
60843         declaration check was not run.
60844         * lib/hash.c: Likewise.
60845         * lib/human.c: Likewise.
60846         * lib/same.c: Likewise.
60847         * lib/strtoumax.c: Likewise.
60848
60849         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
60850         `.', then first look up the entire `.'-containing string as a login
60851         name.
60852
60853 2000-02-23  Jim Meyering  <meyering@lucent.com>
60854
60855         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
60856         in place of my hack.
60857
60858 2000-02-18  Paul Eggert  <eggert@twinsun.com>
60859
60860         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
60861         (textint): New typedef.
60862         (parser_control): Member year changed from int to textint.
60863         All uses changed.
60864         (YYSTYPE): Removed; replaced by %union with int and textint members.
60865         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
60866         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
60867         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
60868         (tSNUMBER, tUNUMBER): Now of type <textintval>.
60869         (date, number, to_year): Use width of number in digits, not its value,
60870         to determine whether it's a 2-digit year, or a 2-digit time.
60871         (yylex): Store number of digits of numeric tokens.
60872         Reported by John Kendall.
60873
60874         (parser_control): Changed from struct parser_control to typedef (for
60875         consistency).  All uses changed.
60876
60877         (tID): Removed; not used.
60878         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
60879
60880 2000-02-14  Paul Eggert  <eggert@twinsun.com>
60881
60882         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
60883         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
60884
60885 2000-02-12  Jim Meyering  <meyering@lucent.com>
60886
60887         * lib/userspec.c (ISDIGIT): Define it.
60888         (isdigit): Remove definition.
60889         (is_number): Use ISDIGIT, not isdigit.
60890         <libintl.h>: Include.
60891         (_ and N_): Define.
60892         (parse_user_spec): Mark translatable strings.
60893
60894 2000-02-10  Jim Meyering  <meyering@lucent.com>
60895
60896         With these changes, nanosleep.[ch] are finally enough like the other
60897         lib/* replacement files to compile on a few more losing systems.
60898
60899         * lib/nanosleep.h: Don't include config.h.
60900         Remove prototype from declaration of nanosleep.
60901         (PARAMS): Remove now-unneeded definition.
60902         * lib/nanosleep.c: #undef nanosleep.
60903         (rpl_nanosleep): Rename from nanosleep.
60904
60905 2000-02-10  Jim Meyering  <meyering@lucent.com>
60906
60907         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
60908         gnu_nanosleep to rpl_nanosleep.
60909
60910 2000-02-09  Jim Meyering  <meyering@lucent.com>
60911
60912         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
60913         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
60914
60915 2000-02-08  Akim Demaille  <akim@epita.fr>
60916
60917         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
60918         `[' and `]' and remove uses of `changequote'.
60919         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
60920         (AC_SYS_LARGEFILE): Likewise.
60921         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
60922         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
60923         of changequote.
60924         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
60925         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
60926         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
60927         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
60928
60929 2000-02-05  Jim Meyering  <meyering@lucent.com>
60930
60931         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
60932         Remove explicit use of AC_HEADER_TIME.  It is required by
60933         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
60934         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
60935         in autoconf whereby the expansion of the latter ended up preceding
60936         the expansion of its prerequisite, AC_HEADER_TIME.
60937         Reported by Volker Borchert.
60938
60939 2000-02-03  Jim Meyering  <meyering@lucent.com>
60940
60941         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
60942
60943 2000-02-03  Jim Meyering  <meyering@lucent.com>
60944
60945         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
60946         rather than with `#if HAVE_UTMPNAME'.
60947
60948 2000-02-02  Jim Meyering  <meyering@lucent.com>
60949
60950         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
60951         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
60952         Reported by Eli Zaretskii.
60953
60954 2000-02-01  Jim Meyering  <meyering@lucent.com>
60955
60956         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
60957
60958 2000-01-31  Jim Meyering  <meyering@lucent.com>
60959
60960         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
60961         functions.  Add the time.h and sys/time.h headers along with the
60962         AC_REQUIRE'ment of AC_HEADER_TIME.
60963
60964 2000-01-31  Jim Meyering  <meyering@lucent.com>
60965
60966         * lib/nanosleep.h (nanosleep): Guard declaration with
60967         `#if ! HAVE_DECL_NANOSLEEP'.
60968         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
60969         the declaration in that vendor's sys/timers.h.
60970         Reported by Christian Krackowizer.
60971
60972         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
60973         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
60974         (ISPRINT): Likewise.
60975         Reported by Tom Tromey.
60976
60977 2000-01-30  Jim Meyering  <meyering@lucent.com>
60978
60979         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
60980
60981         * m4/prereq.m4 (utmp_includes): Define.
60982         Check for ut_user and ut_name members in both struct utmpx
60983         and struct utmp.
60984
60985 2000-01-30  Jim Meyering  <meyering@lucent.com>
60986
60987         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
60988         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
60989         header files where only utmpx.ut_user is declared.
60990
60991         * lib/readutmp.h (UT_USER): Define.
60992
60993 2000-01-29  Jim Meyering  <meyering@lucent.com>
60994
60995         * m4/lib-check.m4: New file containing library-related checks from
60996         fileutils and sh-utils (textutils had none).
60997
60998 2000-01-28  Jim Meyering  <meyering@lucent.com>
60999
61000         * m4/perl.m4: Change format of warning message to look more like that
61001         from the missing script.  Suggestion from François Pinard.
61002
61003 2000-01-25  Jim Meyering  <meyering@lucent.com>
61004
61005         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
61006         well as time.h in the compile check.
61007         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
61008         Fix typo in cross-compiling case: s/yes/no/.
61009
61010 2000-01-23  Jim Meyering  <meyering@lucent.com>
61011
61012         * m4/jm-macros.m4: Move df-related tests here from
61013         fileutils/configure.in
61014
61015         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
61016         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
61017
61018         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
61019         s/space/ac_fsusage_space/.
61020         (jm_FILE_SYSTEM_USAGE): Take two parameters.
61021
61022         * m4/ftruncate.m4: New file (derived from part of
61023         fileutils/configure.in).
61024         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
61025         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
61026
61027         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
61028         AC_SUBST these here, rather than just in sh-util/configure.in, so
61029         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
61030         all the same.
61031         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
61032         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
61033         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
61034         (AC_SUBST(POW_LIBM)): Likewise.
61035         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
61036
61037 2000-01-23  Jim Meyering  <meyering@lucent.com>
61038
61039         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
61040         obstack.c.
61041
61042 2000-01-22  Jim Meyering  <meyering@lucent.com>
61043
61044         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
61045
61046         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
61047
61048         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
61049         configure.in
61050         (AC_CHECK_HEADERS): Likewise for sh-utils.
61051         (AC_CHECK_HEADERS): Likewise for textutils.
61052         Merge the three lists of headers.
61053
61054         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
61055         from fileutils' configure.in.
61056
61057         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
61058         code. Moved tests into their own function (_jm_DECL_HEADERS) in
61059         check-decl.m4.
61060
61061         * m4/check-decl.m4: Use #if rather than #ifdef.
61062         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
61063         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
61064         (_jm_DECL_HEADERS): Define new function.
61065         (jm_CHECK_DECLARATIONS): Require it.
61066
61067 2000-01-22  Jim Meyering  <meyering@lucent.com>
61068
61069         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
61070         [! HAVE_DECL_STRTOULL]: Declare strtoull.
61071         Required for some AIX systems.  Reported by Christian Krackowizer.
61072         [TESTING] (main): New function.
61073
61074         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
61075         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
61076         letters.
61077
61078         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
61079         iswprint.
61080
61081         * lib/strverscmp.c (ISDIGIT): Define.
61082         (strverscmp): Use ISDIGIT, not isdigit.
61083
61084 2000-01-19  Jim Meyering  <meyering@lucent.com>
61085
61086         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
61087         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
61088         defines `struct timespec' in <sys/time.h>
61089
61090         * m4/c-bs-a.m4: Remove uses of changequote altogether.
61091         Thanks to Akim for explaining.
61092
61093 2000-01-17  Paul Eggert  <eggert@twinsun.com>
61094
61095         * lib/nanosleep.c (nanosleep):
61096         Don't use SA_INTERRUPT to decide whether to call sigaction, as
61097         POSIX.1 doesn't require SA_INTERRUPT and some systems
61098         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
61099         it's been part of POSIX.1 since day 1 (in 1988).
61100
61101 2000-01-17  Jim Meyering  <meyering@lucent.com>
61102
61103         * lib/interlock: Remove unused file.  Reported by François Pinard.
61104
61105 2000-01-16  Paul Eggert  <eggert@twinsun.com>
61106
61107         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
61108         alert, backslash, formfeed, and vertical tab unnecessarily in
61109         shell quoting style.
61110
61111 2000-01-16  Jim Meyering  <meyering@lucent.com>
61112
61113         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
61114         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
61115         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
61116         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
61117
61118 2000-01-16  Jim Meyering  <meyering@lucent.com>
61119
61120         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
61121         because the latter didn't work.
61122
61123 2000-01-15  Jim Meyering  <meyering@lucent.com>
61124
61125         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
61126         (AC_REPLACE_FUNCS): Add memcpy and memset.
61127         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
61128         Add strpbrk.
61129         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
61130
61131 2000-01-12  Jim Meyering  <meyering@lucent.com>
61132
61133         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
61134         (jm_PREREQ): Use it.
61135         (jm_PREREQ_READUTMP): New macro.
61136         (jm_PREREQ): Use it.
61137
61138 2000-01-11  Paul Eggert  <eggert@twinsun.com>
61139
61140         Quote multibyte characters correctly.
61141         * m4/c-bs-a.m4: New file.
61142         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
61143         (jm_PREREQ): Use it.
61144
61145 2000-01-11  Paul Eggert  <eggert@twinsun.com>
61146
61147         * m4/uintmax_t.m4: Port to autoconf 2.13.
61148
61149 2000-01-08  Jim Meyering  <meyering@ascend.com>
61150
61151         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
61152         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
61153
61154 2000-01-04  Jim Meyering  <meyering@ascend.com>
61155
61156         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
61157         jm_STRUCT_DIRENT_D_TYPE.
61158         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
61159         jm_STRUCT_DIRENT_D_INO.
61160         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
61161         jm_STRUCT_UTIMBUF.
61162         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
61163         renamings.
61164         * m4/utime.m4: Likewise.
61165
61166         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
61167         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
61168
61169 2000-01-03  Paul Eggert  <eggert@twinsun.com>
61170
61171         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
61172         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
61173
61174 2000-01-02  Jim Meyering  <meyering@ascend.com>
61175
61176         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
61177         remember if this is necessary.
61178
61179 1999-12-26  Jim Meyering  <meyering@ascend.com>
61180
61181         * m4/jm-macros.m4: Use it here.
61182         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
61183
61184 1999-12-23  Jim Meyering  <meyering@ascend.com>
61185
61186         * m4/jm-macros.m4: Check for clock_gettime (moved from
61187         fileutils/configure.in)
61188         Check for gettimeofday.
61189
61190 1999-12-20  Jim Meyering  <meyering@ascend.com>
61191
61192         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
61193         autoconf-2.14a-1999-12-20.
61194
61195 1999-12-19  Jim Meyering  <meyering@ascend.com>
61196
61197         * m4/lstat-slash.m4: New file.
61198         * m4/jm-macros.m4: Use the new macro:
61199         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61200
61201 1999-12-07  Jim Meyering  <meyering@ascend.com>
61202
61203         * m4/perl.m4: Require that File::Compare be available, too.
61204         Too many systems seem to lack it.
61205
61206         * m4/strftime.m4: Add checks for most of the cpp macros tested in
61207         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
61208
61209 1999-11-18  Paul Eggert  <eggert@twinsun.com>
61210
61211         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
61212         problem with the QNX 4.25 shell, which doesn't propagate exit
61213         status of failed commands inside shell assignments.
61214
61215 1999-11-17  Jim Meyering  <meyering@ascend.com>
61216
61217         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
61218
61219 1999-11-07  Jim Meyering  <meyering@ascend.com>
61220
61221         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
61222
61223 1999-11-06  Jim Meyering  <meyering@ascend.com>
61224
61225         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
61226         * m4/jm-macros.m4 (jm_MACROS): Use it here.
61227
61228 1999-11-05  Jim Meyering  <meyering@ascend.com>
61229
61230         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
61231         configure.in of textutils, fileutils, and sh-utils into this one
61232         (shared between those packages) file.
61233         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
61234         AC_STRUCT_ST_BLKSIZE.
61235
61236 1999-11-03  Jim Meyering  <meyering@ascend.com>
61237
61238         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
61239         of AC_CHECK_TYPE checks includes unistd.h.
61240         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
61241         Suggestion from Akim Demaille.
61242
61243 1999-10-30  Jim Meyering  <meyering@ascend.com>
61244
61245         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
61246         m4-quoted string.
61247         * m4/ls-mntd-fs.m4: Likewise.
61248         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
61249         * m4/jm-winsz1.m4: Likewise.
61250
61251         * m4/const.m4: Remove file, since the fix made it into the experimental
61252         version of autoconf.
61253         * m4/mktime.m4: Likewise.
61254
61255         * m4/check-type.m4: Remove file, now that the latest version of
61256         AC_CHECK_TYPE takes a third arg to specify additional #includes.
61257
61258         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
61259         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
61260         AC_CHECK_TYPE.
61261
61262 1999-10-04  Jim Meyering  <meyering@ascend.com>
61263
61264         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
61265
61266 1999-09-22  Paul Eggert  <eggert@twinsun.com>
61267
61268         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
61269         2.95.1 bug with HP-UX 10.20.
61270
61271 1999-09-17  Jim Meyering  <meyering@ascend.com>
61272
61273         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
61274         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
61275         due to missing strdup (against sh-utils-2.0).
61276
61277 1999-08-29  Jim Meyering  <meyering@ascend.com>
61278
61279         * m4/jm-macros.m4: Require jm_BISON.
61280         * m4/bison.m4: New file.
61281
61282 1999-08-17  Paul Eggert  <eggert@twinsun.com>
61283
61284         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
61285         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
61286
61287 1999-08-05  Jim Meyering  <meyering@ascend.com>
61288
61289         * m4/getline.m4: Rename test file from conftestdata to conftest.data
61290         to avoid conflicts with `conftest' on 8+3 filesystems.
61291         Suggestion from Eli Zaretskii.
61292
61293 1999-08-04  Jim Meyering  <meyering@ascend.com>
61294
61295         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
61296         fileutils and sh-utils (textutils's getline test was inadequate).
61297         (AM_FUNC_GETLINE): Run this test.
61298         (AC_CHECK_FUNCS): Check for getdelim.
61299         Reported by Bob Proulx.
61300
61301 1999-08-02  Jim Meyering  <meyering@ascend.com>
61302
61303         * m4/jm-macros.m4: Add a comment.
61304
61305 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61306
61307         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
61308         <inttypes.h> defines strtoumax as a macro (and not as a
61309         function).
61310
61311 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61312
61313         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
61314         that we can shift, multiply and divide unsigned long long
61315         values; Ultrix cc can't do it.
61316
61317 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61318
61319         * m4/mktime.m4: New file, which is a preview of what should appear
61320         in the next public autoconf release.
61321
61322 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61323
61324         * m4/lfs.m4: Remove this file.
61325         * m4/largefile.m4: New file.  It contains the old contents of
61326         lfs.m4, except that all names with prefix AC_LFS have been
61327         changed to use the prefix AC_SYS_LARGEFILE instead, to be
61328         compatible with future autoconf versions.  Also, some minor m4
61329         quoting problems have been fixed.
61330
61331 1999-08-01  Paul Eggert  <eggert@twinsun.com>
61332
61333         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
61334         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
61335         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
61336         and simplify the shell code.
61337
61338 1999-08-01  Jim Meyering  <meyering@ascend.com>
61339
61340         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
61341         m4.
61342
61343 1999-07-20  Jim Meyering  <meyering@ascend.com>
61344
61345         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
61346
61347 1999-07-15  Jim Meyering  <meyering@ascend.com>
61348
61349         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
61350
61351 1999-05-22  Jim Meyering  <meyering@ascend.com>
61352
61353         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
61354
61355 1999-05-20  Jim Meyering  <meyering@ascend.com>
61356
61357         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
61358         Add a colon after each `then' in case $4 is empty.
61359
61360 1999-05-16  Jim Meyering  <meyering@ascend.com>
61361
61362         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
61363
61364 1999-05-10  Jim Meyering  <meyering@ascend.com>
61365
61366         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
61367
61368         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
61369         AC_FUNC_MKTIME.
61370
61371 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
61372
61373         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
61374
61375 1999-05-04  Paul Eggert  <eggert@twinsun.com>
61376
61377         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
61378         not CPPFLAGS, so that linking works correctly in IRIX.
61379
61380 1999-04-30  Paul Eggert  <eggert@twinsun.com>
61381
61382         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
61383
61384 1999-04-20  Paul Eggert  <eggert@twinsun.com>
61385
61386         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
61387         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
61388         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
61389         jm_AC_TYPE_UNSIGNED_LONG_LONG.
61390         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
61391
61392         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
61393
61394 1999-04-20  Jim Meyering  <meyering@ascend.com>
61395
61396         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
61397         AC_REPLACE xstroull if necessary.  From Paul Eggert.
61398         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
61399
61400 1999-04-18  Jim Meyering  <meyering@ascend.com>
61401
61402         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
61403         * m4/jm-macros.m4: Use it.
61404
61405 1999-04-06  Jim Meyering  <meyering@ascend.com>
61406
61407         * m4/strftime.m4: Remove test for %f.
61408
61409 1999-03-29  Jim Meyering  <meyering@ascend.com>
61410
61411         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
61412         superset of the AC_TYPE_* checks in the textutils, fileutils,
61413         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
61414         AC_TYPE_PID_T.
61415
61416 1999-03-28  Jim Meyering  <meyering@ascend.com>
61417
61418         * m4/jm-macros.m4: Define GNU_PACKAGE here.
61419         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
61420         replaced e.g., in the *.sh files of the sh-utils.
61421
61422 1999-03-20  Jim Meyering  <meyering@ascend.com>
61423
61424         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
61425         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
61426         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
61427
61428 1999-03-19  Jim Meyering  <meyering@ascend.com>
61429
61430         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
61431
61432 1999-03-12  Jim Meyering  <meyering@ascend.com>
61433
61434         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
61435
61436 1999-03-07  Jim Meyering  <meyering@ascend.com>
61437
61438         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
61439         declared.
61440
61441 1999-02-17  Jim Meyering  <meyering@ascend.com>
61442
61443         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
61444         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
61445
61446 1999-02-07  Jim Meyering  <meyering@ascend.com>
61447
61448         * m4/group-member.m4: New file -- extracted from sh-utils'
61449         configure.in.
61450
61451         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
61452         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
61453
61454 1999-02-06  Jim Meyering  <meyering@ascend.com>
61455
61456         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
61457         * m4/fnmatch.m4: Likewise.
61458         * m4/getgroups.m4: Likewise.
61459         * m4/lstat.m4: Likewise.
61460         * m4/malloc.m4: Likewise.
61461         * m4/putenv.m4: Likewise.
61462         * m4/realloc.m4: Likewise.
61463         * m4/regex.m4: Likewise.
61464         * m4/stat.m4: Likewise.
61465         * m4/strftime.m4: Likewise.
61466         Suggestion from Alain Magloire.
61467
61468         * m4/chown.m4: Use `.$ac_objext', not `.o'.
61469         * m4/fnmatch.m4: Likewise.
61470         * m4/getgroups.m4: Likewise.
61471         * m4/getline.m4: Likewise.
61472         * m4/lstat.m4: Likewise.
61473         * m4/malloc.m4: Likewise.
61474         * m4/memcmp.m4: Likewise.
61475         * m4/putenv.m4: Likewise.
61476         * m4/realloc.m4: Likewise.
61477         * m4/regex.m4: Likewise.
61478         * m4/stat.m4: Likewise.
61479         * m4/strftime.m4: Likewise.
61480         Suggestion from Alain Magloire.
61481
61482         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
61483         an argument.
61484
61485         * m4/regex.m4: Add a run-time Test for proper operation of
61486         re_compile_pattern.
61487
61488 1999-01-31  Jim Meyering  <meyering@ascend.com>
61489
61490         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
61491
61492 1999-01-30  Jim Meyering  <meyering@ascend.com>
61493
61494         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
61495
61496         * m4/jm-mktime.m4: Make this a wrapper around the official
61497         AM_FUNC_MKTIME rather than my private copy, now that the official one
61498         is up to date.
61499         * m4/mktime.m4: Remove file.
61500
61501         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
61502         * m4/uptime.m4: Likewise.
61503         * m4/uintmax_t.m4: Likewise.
61504
61505 1999-01-28  Jim Meyering  <meyering@ascend.com>
61506
61507         * m4/jm-macros.m4: Use jm_AFS.
61508         * m4/afs.m4: New file (from fileutils' configure.in).
61509
61510         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
61511         * m4/chown.m4: Likewise.
61512         * m4/d-ino.m4: Likewise.
61513         * m4/d-type.m4: Likewise.
61514         * m4/fnmatch.m4: Likewise.
61515         * m4/getgroups.m4: Likewise.
61516         * m4/gettext.m4: Likewise.
61517         * m4/jm-mktime.m4: Likewise.
61518         * m4/jm-winsz2.m4: Likewise.
61519         * m4/lcmessage.m4: Likewise.
61520         * m4/ls-mntd-fs.m4: Likewise.
61521         * m4/malloc.m4: Likewise.
61522         * m4/memcmp.m4: Likewise.
61523         * m4/putenv.m4: Likewise.
61524         * m4/realloc.m4: Likewise.
61525         * m4/st_mtim.m4: Likewise.
61526         * m4/strftime.m4: Likewise.
61527
61528 1999-01-16  Jim Meyering  <meyering@ascend.com>
61529
61530         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
61531         (ARGMATCH_DIE_DECL): Define.
61532
61533 1999-01-12  Jim Meyering  <meyering@ascend.com>
61534
61535         * m4/Makefile.am.in: Rewrite to avoid using fmt.
61536         Reported by Lars Hecking.
61537
61538 1999-01-10  Jim Meyering  <meyering@ascend.com>
61539
61540         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
61541         gross kludge.
61542         * m4/inttypes_h.m4: Likewise.
61543         * m4/lstat.m4: Likewise.
61544         * m4/malloc.m4: Likewise.
61545         * m4/readdir.m4: Likewise.
61546         * m4/realloc.m4: Likewise.
61547         * m4/st_dm_mode.m4: Likewise.
61548         * m4/stat.m4: Likewise.
61549         * m4/utimbuf.m4: Likewise.
61550         * m4/utimes.m4: Likewise.
61551
61552         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
61553         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
61554         comments in config.h.in are meaningful.
61555
61556         * m4/jm-macros.m4: Require autoconf-2.13 here.
61557
61558         * m4/regex.m4: By default, don't use the included regex.c on systems
61559         with glibc 2.  Suggestion from Uli Drepper.
61560
61561 1999-01-02  Jim Meyering  <meyering@ascend.com>
61562
61563         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
61564
61565 1998-12-18  Jim Meyering  <meyering@ascend.com>
61566
61567         * m4/Makefile.am.in (Makefile.am): Simplify rule.
61568         Based on a suggestion from Lars Hecking.
61569
61570 1998-11-16  Paul Eggert  <eggert@twinsun.com>
61571
61572         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
61573
61574 1998-11-16  Jim Meyering  <meyering@ascend.com>
61575
61576         * m4/lfs.m4: Double-quote the `uname...` expression.
61577
61578 1998-11-14  Jim Meyering  <meyering@ascend.com>
61579
61580         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
61581         * m4/stat.m4: Likewise.
61582
61583 1998-11-03  Jim Meyering  <meyering@ascend.com>
61584
61585         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
61586         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
61587
61588 1998-10-18  Jim Meyering  <meyering@ascend.com>
61589
61590         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
61591
61592 1998-10-17  Jim Meyering  <meyering@ascend.com>
61593
61594         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
61595         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
61596         calls for those previously hard-coded headers.  Instead, take a new
61597         parameter.
61598         (jm_CHECK_DECLARATIONS): Reflect interface change.
61599         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
61600         (jm_CHECK_DECL_LOCALTIME_R): New macro.
61601
61602         * m4/mktime.m4: Test for spring-forward gap before long-running test.
61603
61604 1998-10-14  Jim Meyering  <meyering@ascend.com>
61605
61606         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
61607         instead of "TZ=America/Vancouver".  From Paul Eggert.
61608
61609 1998-10-11  Jim Meyering  <meyering@ascend.com>
61610
61611         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
61612         This adds a test for a recently added compatibility fix for mktime.c.
61613         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
61614
61615 1998-09-27  Jim Meyering  <meyering@ascend.com>
61616
61617         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
61618
61619         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
61620         ../configure.in, including a change from Gordon Matzigkeit to allow
61621         cross-compiling for the Hurd.
61622
61623         * m4/glibc.m4: New file/macro to test for the GNU C Library
61624         versions 1 and 2.  From Gordon Matzigkeit.
61625         Indent.
61626
61627 1998-09-21  Jim Meyering  <meyering@ascend.com>
61628
61629         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
61630
61631 1998-08-18  Paul Eggert  <eggert@twinsun.com>
61632
61633         Port nanosecond-resolution times to UnixWare 2.1.2 and
61634         pedantic Solaris 2.6.
61635
61636         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
61637         AC_STRUCT_ST_MTIM.
61638         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
61639         Generate name of ns member, instead of just 1 or undef.
61640         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
61641
61642 1998-08-15  Jim Meyering  <meyering@ascend.com>
61643
61644         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
61645         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
61646         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
61647         instead of jm_TYPE_SSIZE_T.
61648
61649 1998-08-12  Jim Meyering  <meyering@ascend.com>
61650
61651         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
61652
61653 1998-08-02  Jim Meyering  <meyering@ascend.com>
61654
61655         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
61656         in acconfig.h manually.
61657
61658 1998-07-31  Paul Eggert  <eggert@twinsun.com>
61659
61660         * m4/st_mtim.m4: New file.
61661
61662 1998-07-28  Jim Meyering  <meyering@ascend.com>
61663
61664         * m4/utimes.m4: Undef stat.
61665
61666 1998-07-25  Jim Meyering  <meyering@ascend.com>
61667
61668         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
61669         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
61670
61671 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
61672
61673         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
61674         uid and gid actually remain unchanged.
61675
61676 1998-07-07  Jim Meyering  <meyering@ascend.com>
61677
61678         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
61679
61680 1998-07-04  Jim Meyering  <meyering@ascend.com>
61681
61682         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
61683         to prove that this macro can be used in packages without regex.c.
61684
61685 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
61686
61687         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
61688         is to be used.
61689
61690 1998-07-03  Jim Meyering  <meyering@ascend.com>
61691
61692         * m4/gettext.m4: Add -lintl if it's found to be necessary.
61693
61694         * m4/gettext.m4: New file -- from gettext-0.10.35.
61695         * m4/lcmessage.m4: Likewise.
61696         * m4/progtest.m4: Likewise.
61697
61698         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
61699         * m4/jm-macros.m4: Require the new macro.
61700
61701 1998-06-29  Jim Meyering  <meyering@ascend.com>
61702
61703         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
61704         for the definition of NGROUPS (used in a system header included
61705         by sys/mount.h).
61706
61707 1998-06-28  Jim Meyering  <meyering@ascend.com>
61708
61709         * m4/ls-mntd-fs.m4: New file.
61710         * m4/fstypename.m4: New file.
61711
61712         * m4/jm-macros.m4: Require the new macro.
61713         * m4/jm-glibc-io.m4: New file.
61714
61715 1998-05-19  Jim Meyering  <meyering@ascend.com>
61716
61717         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
61718         * m4/lchown.m4: New file.
61719
61720         * m4/Makefile.am.in: New file.
61721         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
61722
61723 1998-05-14  Jim Meyering  <meyering@ascend.com>
61724
61725         * m4/Makefile.am (EXTRA_DIST): Add them.
61726         * m4/jm-macros.m4: New file.
61727         * m4/utimbuf.m4: New file.
61728
61729 1998-05-12  Jim Meyering  <meyering@ascend.com>
61730
61731         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
61732
61733 1998-05-11  Jim Meyering  <meyering@ascend.com>
61734
61735         * m4/isc-posix.m4: New file.
61736
61737 1998-05-10  Jim Meyering  <meyering@ascend.com>
61738
61739         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
61740
61741 1998-05-09  Jim Meyering  <meyering@ascend.com>
61742
61743         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
61744         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
61745         with automake.
61746
61747         * m4/ssize_t.m4: New file.
61748         * m4/mktime.m4: Remove file -- the new automake has this now.
61749
61750 1998-04-26  Jim Meyering  <meyering@ascend.com>
61751
61752         * m4/assert.m4: New file.
61753         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
61754
61755 1998-04-05  Jim Meyering  <meyering@ascend.com>
61756
61757         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
61758         (jm_PREREQ): Use it here.
61759
61760 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
61761
61762         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
61763         in acconfig.h.
61764
61765 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
61766
61767         * m4/prereq.m4: New file.
61768         * m4/error.m4: New file.
61769         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
61770
61771 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
61772
61773         * m4/getline.m4: Don't set am_cv_func_working_getline before the
61774         cache-check for the same variable -- that defeated the purpose of
61775         the test; the test program was never run.  This was a problem only
61776         on systems with losing getline functions -- HP-UX 10.20 is one.
61777         Reported by Bjorn Helgaas.
61778
61779 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
61780
61781         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
61782
61783 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
61784
61785         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
61786
61787         * m4/const.m4: New file.  Use an initializer in this declaration
61788         typedef int charset[2]; const charset x;
61789         Reported by Bob Glickstein.
61790
61791 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
61792
61793         * m4/chown.m4: Fix reversed types on -1 args to chown.
61794         From Kaveh Ghazi.
61795
61796 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
61797
61798         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
61799         Add lseek and memchr.
61800
61801         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
61802         T.E.Dickey <dickey@clark.net> said that some older preprocessors
61803         have a 20-character limit on names.
61804
61805 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
61806
61807         * m4/inttypes_h.m4: New file.
61808         * m4/uintmax_t.m4: New file.
61809         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
61810
61811
61812         -----
61813
61814         Local Variables:
61815         coding: utf-8
61816         End:
61817
61818         Copyright (C) 1997-2010 Free Software Foundation, Inc.
61819
61820         Copying and distribution of this file, with or without
61821         modification, are permitted provided the copyright notice
61822         and this notice are preserved.